/* KanaryGate live site styles (ported from the design canvas). */
:root {
  --paper: #F6F4EE; --ink: #1E242B; --muted: #525D6A; --line: #E2DDD2; --edge: #C9C2B4;
  --yellow: #FACC15; --gold: #8A6900; --cream: #F3E7B8; --green: #047857; --red: #B91C1C;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, monospace;
  --sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --display: Rubik, system-ui, sans-serif;
  --pixel: Silkscreen, monospace;
  --lift: 0 12px 32px -8px rgba(30,36,43,0.12), 0 3px 8px -2px rgba(30,36,43,0.06);
  --soft: 0 4px 16px -4px rgba(30,36,43,0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); } a:hover { color: var(--muted); }
input::placeholder { color: #6B7480; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.pixel { font-family: var(--pixel); }
.muted { color: var(--muted); }
p { margin: 0; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .08s; }
.btn:active { transform: translateY(2px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 40px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: #18181B; border-color: #D9A700; box-shadow: 0 3px 0 #CA9A04; }
.btn-dark { background: var(--ink); color: #FFF; border-color: #11161B; box-shadow: 0 3px 0 #090C0F; }
.btn-dark:hover { color: #FFF; }
.btn-white { background: #FFF; color: var(--ink); border-color: var(--edge); box-shadow: 0 3px 0 #DCD5C7; }
.btn-green { background: var(--green); color: #FFF; border-color: #065F46; box-shadow: 0 3px 0 #064E3B; }
.btn-orange { background: #F38020; color: var(--ink); border-color: #D66910; box-shadow: 0 3px 0 #B85609; }
.btn-red { background: #DC2626; color: #FFF; border-color: #B91C1C; box-shadow: 0 3px 0 #991B1B; }

/* header */
header.top { border-bottom: 1px solid var(--line); }
header.top nav { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 0; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); border: 2px solid #E2CE7D; box-shadow: 0 3px 0 #D4BE6A; display: flex; align-items: center; justify-content: center; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-word span { color: #A16207; }
/* Product names in running copy (KanaryGate, KanaryMarkers): the logo's display face on a canary-yellow highlighter stripe */
.cg { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; padding: 0 0.12em; margin: 0 -0.04em; border-radius: 3px;
  background: linear-gradient(transparent 55%, var(--cg-stripe, #FDE68A) 55%, var(--cg-stripe, #FDE68A) 90%, transparent 90%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* on yellow surfaces a yellow stripe vanishes: use a white one */
.plan.feature, .chip, .banner.demo { --cg-stripe: #FFFFFF; }
@media print { .cg { background: none; } }
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.navlinks a { text-decoration: none; font-weight: 700; padding: 10px 0; }

/* hero */
.hero { padding-block: 48px 64px; /* only top and bottom: the side margins come from .wrap */ display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.chip { align-self: flex-start; font-family: var(--pixel); font-size: 12px; letter-spacing: 0.04em; color: #5C4805; background: var(--cream); border: 1.5px solid #E2CE7D; padding: 5px 12px; border-radius: 999px; }
h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
h1 mark { background: var(--yellow); color: inherit; padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 18px; color: var(--muted); max-width: 580px; }
.audit-form { background: #FFF; border: 1.5px solid var(--edge); border-radius: 14px; padding: 14px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.audit-row { display: flex; flex-wrap: wrap; gap: 10px; }
.audit-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #FAF9F6; font-family: var(--mono); font-size: 15px; color: var(--ink); }
.audit-row .btn { min-height: 48px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3B444E; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.form-note { font-size: 13px; color: var(--muted); }
.form-error { font-size: 14px; font-weight: 700; color: var(--red); }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.samples button { min-height: 32px; padding: 0 10px; border-radius: 7px; background: #EAE4D7; border: 1px solid #D5CEC0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); cursor: pointer; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.ticks li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.stage { flex: 1 1 460px; min-width: 0; background: linear-gradient(180deg, #FBF6E6 0%, #F1E6C5 100%); border: 2px solid #E2D5B0; border-radius: 22px; padding: 16px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 12px; }
.stage-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 4px; font-family: var(--pixel); font-size: 11px; }
.stage-top span { background: #FFF; border: 1px solid #DDD2B2; border-radius: 999px; padding: 4px 10px; }
.voxel { width: 100%; height: 360px; position: relative; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 28%, #FFFDF8 0%, #F3E8C8 100%); cursor: grab; touch-action: pan-y; user-select: none; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.modes button { min-height: 44px; padding: 6px; border-radius: 9px; font-family: var(--pixel); font-size: 11px; cursor: pointer; background: #FFF; color: var(--muted); border: 1.5px solid #DDD2B2; }
.modes button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }

/* sections */
section.band { border-top: 1px solid var(--line); }
.band-inner { padding-block: 56px; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-family: var(--pixel); font-size: 13px; color: var(--gold); }
h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.25; }
.intro { display: flex; flex-direction: column; gap: 6px; max-width: 780px; }
.intro p { color: var(--muted); }

/* derby */
.track { background: #D4E8D4; border: 2px solid #B6D4B6; border-radius: 22px; padding: 18px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 14px; }
.track-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.track-bar .target { font-weight: 700; }
.track-bar .target small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: #2E5935; }
.track-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.banner.demo { background: #FEF9C3; border: 1.5px solid #E2CE7D; color: #5C4805; }
.banner.live { background: #DCFCE7; border: 1.5px solid #86EFAC; color: #14532D; }
.banner.whatif { background: #DBEAFE; border: 1.5px solid #93C5FD; color: #1E3A8A; }
.screen { position: relative; background: #1C2B22; border: 4px solid #2C3A32; border-radius: 14px; overflow: hidden; }
.screen canvas { display: block; width: 100%; height: auto; }
.screen .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(11,18,64,0.82); color: #FFF; font-family: var(--pixel); font-size: 14px; text-align: center; padding: 20px; }
.screen .overlay .big { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 3vw, 34px); color: var(--yellow); }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.chutes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chutes button { text-align: left; min-height: 72px; padding: 8px 10px; border-radius: 10px; background: #FFF; border: 1.5px solid #B5CEB5; box-shadow: 0 3px 0 #A7C4A7; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--ink); }
.chutes .row1 { display: flex; justify-content: space-between; gap: 6px; width: 100%; font-family: var(--pixel); font-size: 11px; }
.chutes .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.chutes .state { font-family: var(--pixel); font-size: 11px; }
.good { color: var(--green); } .bad { color: var(--red); } .warn { color: #92400E; } .unclear { color: #475569; }

.card { background: #FFF; border: 1.5px solid var(--edge); border-radius: 16px; padding: 20px; box-shadow: var(--soft); display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-head .title { font-family: var(--display); font-weight: 800; font-size: 19px; }
.pill { font-family: var(--pixel); font-size: 12px; padding: 6px 12px; border-radius: 10px; }
.pill.bad { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.pill.good { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.pill.unclear { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; }
.table-scroll { overflow-x: auto; }
table.results { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
table.results th { text-align: left; font-family: var(--pixel); font-size: 11px; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); font-weight: 400; }
table.results td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.results td.agent { font-weight: 700; white-space: nowrap; }
table.results td.why { font-size: 13px; color: var(--muted); }
table.results tr.r-good { box-shadow: inset 4px 0 0 #10B981; background: #F0FDF4; }
table.results tr.r-bad { box-shadow: inset 4px 0 0 #EF4444; background: #FEF2F2; }
table.results tr.r-warn { box-shadow: inset 4px 0 0 #F59E0B; background: #FFFBEB; }
table.results tr.r-unclear { box-shadow: inset 4px 0 0 #94A3B8; background: #F8FAFC; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tag.good { background: #D1FAE5; color: #065F46; } .tag.bad { background: #FEE2E2; color: #991B1B; }
.tag.warn { background: #FEF3C7; color: #92400E; } .tag.unclear { background: #E2E8F0; color: #334155; }
.goal-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.goal-switch button { font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid #D6D1C4; background: #FFF; color: var(--ink, #1E242B); cursor: pointer; }
.goal-switch button[aria-checked="true"] { background: var(--ink, #1E242B); color: #FFF; border-color: var(--ink, #1E242B); }
.vis-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vis { border: 1px solid var(--line, #E5E1D6); border-left-width: 5px; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #FFF; }
.vis p { margin: 0; }
.vis-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.vis-block { border-left-color: #DC2626; } .vis-likely { border-left-color: #D97706; } .vis-check, .vis-tip { border-left-color: #94A3B8; } .vis-ok { border-left-color: #059669; }
.notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.facts span { background: #F1EDE3; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
pre.code { margin: 0; background: #181E25; color: #E2E8F0; font-family: var(--mono); font-size: 12.5px; padding: 14px; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.rule { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; }
.rule.hit { border-color: #F59E0B; background: #FFFBEB; }
.rule-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.rule-head strong { font-family: var(--display); }
.small { font-size: 13px; }

/* containment */
.blue { background: #D6E6F2; border: 2px solid #B5CFE3; border-radius: 22px; padding: 20px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.incident { background: #FFF; border: 1.5px solid #C4D8E8; border-radius: 16px; padding: 18px; box-shadow: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.incident-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.badge { flex: 0 0 auto; font-family: var(--pixel); font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.badge.bad { background: #FEE2E2; color: #991B1B; } .badge.good { background: #D1FAE5; color: #065F46; }
.badge.demo { background: #FFF; border: 1px solid #B5CFE3; color: var(--ink); border-radius: 999px; padding: 4px 10px; white-space: normal; flex: 1 1 auto; min-width: 0; }
blockquote { margin: 0; background: #FFFBEB; border-radius: 10px; padding: 12px; font-size: 14px; color: #3F3206; }
blockquote .tok { background: #FDE047; border-radius: 4px; padding: 1px 5px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
blockquote .where { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: #785E08; }
dl.meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; background: #F8FAFC; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
dl.meta dt { font-weight: 700; display: inline; } dl.meta dd { margin: 0; display: inline; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { background: #FFF; border: 1.5px solid #C4D8E8; border-radius: 14px; padding: 14px; font-size: 14px; }
.steps li strong { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; }

/* pricing */
.sprint > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.sprint { margin-top: 20px; display: grid; grid-template-columns: minmax(200px, 1fr) 2fr minmax(200px, 1fr); gap: 20px; align-items: center; background: #FFF; border: 2px solid var(--ink, #1E242B); border-radius: 16px; padding: 22px 24px; }
.sprint ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.sprint .sprint-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 860px) { .sprint { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: #FFF; border: 1.5px solid var(--edge); border-radius: 18px; padding: 22px; box-shadow: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.plan.feature { background: var(--cream); border: 2px solid #D9A700; box-shadow: var(--lift); }
.plan .label, .sprint .label { display: flex; justify-content: space-between; gap: 8px; font-family: var(--pixel); font-size: 12px; color: var(--muted); }
.plan .price, .sprint .price { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.plan .price small, .sprint .price small { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 20px; font-size: 14px; }
.plan .btn { margin-top: auto; }
.ea { background: #1E242B; color: #FFF; border-radius: 6px; padding: 1px 6px; font-size: 10px; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.faq details { background: #FFF; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: #3B444E; font-size: 15px; }

footer.bottom { border-top: 1px solid var(--line); }
footer.bottom .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

/* dialogs */
dialog { border: 2px solid var(--edge); border-radius: 20px; width: min(720px, calc(100vw - 40px)); max-height: 90vh; padding: 24px; color: var(--ink); }
dialog::backdrop { background: rgba(20,25,31,0.55); }
.dlg { display: flex; flex-direction: column; gap: 14px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-head h3 { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 700; font-size: 13px; }
.field input, .field select { min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1.5px solid var(--edge); font-family: var(--mono); font-size: 14px; background: #FFF; color: var(--ink); }
.status { font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* print: the audit report only */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #FFF; font-size: 12px; }
  header.top, .hero, #how, #pricing, #faq, footer.bottom, .track-btns, .chutes, .banner, .no-print, dialog { display: none !important; }
  .print-only { display: block; }
  section.band { border: 0; }
  .band-inner { padding: 0; gap: 12px; }
  .track, .card { box-shadow: none; break-inside: avoid; }
  .track { padding: 8px; }
  table.results { min-width: 0; font-size: 11px; }
  pre.code { background: #F4F4F5; color: #111; border: 1px solid #DDD; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .dots::after { animation: none; content: '...'; } }
@media (max-width: 560px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .voxel { height: 280px; } }
.navlinks .btn { white-space: nowrap; flex-shrink: 0; padding: 0 14px; }

.learn-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.learn-links a { display: block; height: 100%; padding: 14px 16px; background: #FFF; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; text-decoration: none; }
.learn-links a:hover { border-color: var(--edge); }

.live-strip { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.live-dot-s { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; display: inline-block; }

/* audit: runner choice, and the share / email / ask-AI card (5 Dec 2026) */
.runners { border: 1.5px solid var(--edge); border-radius: 12px; padding: 8px 12px 10px; margin: 0; }
.runners legend { font-weight: 700; font-size: 14px; padding: 0 6px; display: flex; gap: 14px; align-items: center; }
.runners legend .all { font-weight: 400; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.runner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 12px; }
.runner-list label { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 32px; }
.runner-list .kind { font-family: var(--pixel, monospace); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #525D6A; }
.keep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.keep-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.keep-box h3 { margin: 0; }
#share-canvas { width: 100%; height: auto; border-radius: 12px; border: 1.5px solid var(--edge); box-shadow: 0 3px 0 #DCD5C7; background: #F6F4EE; }
#mail-form, #ai-form { display: flex; flex-direction: column; gap: 8px; }
#mail-form input[type=email], .ai-q input { min-height: 40px; border-radius: 9px; border: 1.5px solid var(--edge); padding: 0 10px; font: inherit; }
.ai-q { margin: 0; line-height: 2.6; }
.ai-q input { width: 11em; max-width: 100%; }
.ai-result { border: 1.5px solid var(--edge); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ai-result .verdict { font-family: var(--display, sans-serif); font-weight: 800; font-size: 18px; }
.ai-result .verdict.good { color: #047857; } .ai-result .verdict.bad { color: #B91C1C; }
.ai-result ol { margin: 0; padding-left: 20px; }

/* Homepage hero: the Canary Derby is the hero (5 Dec 2026, round 12) */
.hd { padding-block: 28px 40px; display: grid; gap: 18px; }
.hd h1 { font-size: clamp(34px, 4.2vw, 56px); }
.hd .lede { font-size: 17px; max-width: 680px; }
.hd-form { max-width: none; padding: 10px; gap: 8px; }
.hd-form .audit-row input { font-size: 16px; }
.hd-form .free { font-size: 13px; color: var(--muted); margin: 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hd-form .free span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.race-options { border-top: 1.5px dashed var(--line); padding-top: 10px; display: grid; gap: 8px; }
.race-options .target-line { font-family: var(--pixel); font-size: 11px; letter-spacing: .04em; }
.race-options .target-line span { font-family: var(--mono); font-size: 13px; letter-spacing: 0; background: #FEF3C7; padding: 1px 6px; border-radius: 5px; }
.hd .track { padding: 12px; gap: 10px; }
.hd .track .banner { font-size: 13px; }
.hd .chutes button { min-height: 58px; }
.nav-call { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Version B: the command centre. Copy and input left, race right */
.hd-b { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); align-items: center; gap: 28px; }
.hd-b .hd-left { display: grid; gap: 16px; align-content: start; }
.hd-b h1 { font-size: clamp(32px, 3.6vw, 52px); }
@media (max-width: 1000px) { .hd-b { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hd .chutes { grid-template-columns: repeat(3, 1fr); } .hd .chutes button { min-height: 0; padding: 6px; } .hd .chutes .name { font-size: 12px; } .hd .track-btns .btn { font-size: 13px; } }
/* the live line under the race: one tidy line */
.hd .live-strip { display: block; margin: 0; font-size: 14px; }
.hd .live-strip .live-dot-s { display: inline-block; vertical-align: middle; margin-right: 6px; }
.hd-b .chutes { grid-template-columns: repeat(3, 1fr); }
/* phones: a compact header (logo, Book a call, Free audit) so the race shows on the first screen */
@media (max-width: 700px) {
  .navlinks a:not(.btn-yellow):not(.nav-call), .navlinks #sfx { display: none; }
  .navlinks { gap: 14px; }
  header.top nav { flex-wrap: nowrap; }
  .hd { padding-block: 16px 28px; gap: 12px; }
  .hd h1 { font-size: 34px; }
  .hd .lede { font-size: 15px; }
  .hd-form .free span:nth-child(n+3) { display: none; }
  .hd .track-bar .target small { display: none; }
  .hd .track-btns .btn { padding: 0 10px; min-height: 36px; }
}
@media (max-width: 700px) {
  .navlinks { flex-wrap: nowrap; }
  .navlinks .nav-call { white-space: nowrap; font-size: 14px; }
  .hd-form .audit-row { flex-wrap: nowrap; }
  .hd-form .audit-row input { flex: 1 1 0; }
  .hd-form .audit-row .btn { padding: 0 14px; }
  .hd .track { padding: 8px; gap: 8px; border-radius: 16px; }
  .hd .track .banner { font-size: 12px; padding: 6px 10px; }
  .hd .track-bar .target { font-size: 13px; }
  .hd #speed { display: none; }
  .hd .track-btns .btn { font-size: 12.5px; min-height: 32px; }
}
@media (max-width: 700px) { header.top .brand-word { font-size: 18px; } header.top .brand-icon svg { width: 22px; height: 22px; } .navlinks { gap: 10px; } .navlinks .btn { padding: 0 10px; } }
.race-options summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 2px; }
.race-options[open] summary { margin-bottom: 6px; }
.consent-main { font-weight: 600; }
