/* SobiStudios · one shared stylesheet. Ported from the approved preview build (2026-10-27): tokens, light + dark
   system themes, the page bands. Fonts are self-hosted (assets/fonts.css). Blue accent #0b4fd0 is the one signal.
   Layout: single column of bands, 1080px measure; hero split text/proof; everything left-aligned. Dark for everyone. */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
:root {
  /* one theme, dark, for every visitor (Rob, 2026-10-27); the blue accent is the brand's #0b4fd0 lifted for dark paper */
  --bg: #0e1218;
  --surface: #151b24;
  --ink: #eef1f6;
  --muted: #9aa5b8;
  --line: #2a3340;
  --accent: #5b8df5;
  --accent-brand: #0b4fd0;
  --accent-ink: #0a1020;
  --accent-soft: #1b2740;
  --mark: #4a3b00;
  --mark-ink: #ffe27a;
  --good: #5ccf8f;
  --bad: #ff8a7a;
  --warn: #e3a95b;
  --warn-soft: #3a2c17;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 64px; }
.band + .band { border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.lede.small { font-size: 1rem; }
.lede.fragments { color: var(--ink); }
.skip { position: absolute; left: 16px; top: -3rem; background: var(--ink); color: var(--bg); padding: 8px 16px; z-index: 30; border-radius: 6px; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* checklist */
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks > div { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.checks .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: 0.9rem; font-weight: 700; }
.checks .stack { gap: 4px; }
.checks h3 { font-size: 1.05rem; }
.checks p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.checks .stat-sm { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); white-space: nowrap; padding-top: 4px; }
.checks .stat-col { display: grid; gap: 4px; justify-items: end; max-width: 26ch; }
.checks .src { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); text-align: right; }
.checks .src a { color: var(--muted); }
.checks-block { display: grid; gap: 12px; }
.checks-note { display: grid; gap: 6px; padding-top: 4px; }
.checks-note .src { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.checks-note .src a { color: var(--muted); }
@media (max-width: 640px) { .checks > div { grid-template-columns: 36px 1fr; } .checks .stat-col { grid-column: 2; justify-items: start; max-width: none; } .checks .stat-sm { white-space: normal; padding-top: 0; } .checks .src { text-align: left; } }
.anchor { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav ul a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav ul a.btn { color: var(--accent-ink); } /* the nav button keeps the button's text colour (specificity fix, WCAG contrast) */
.nav .nav-short, .nav-phonebar { display: none; }
@media (max-width: 640px) {
  .nav ul li:not(.cta):not(.nav-phone) { display: none; }
  .nav ul { gap: 10px; justify-content: flex-end; flex-wrap: nowrap; }
  .nav .wrap { flex-wrap: nowrap; gap: 10px; }
  .nav .nav-long { display: none; }
  .nav .nav-short { display: inline; }
  .nav ul li.nav-phone a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
}
/* below this width brand, "Phone line" and the button do not fit one row: the link becomes a slim bar under the header */
@media (max-width: 379px) {
  .nav ul li.nav-phone { display: none; }
  .nav-phonebar { display: flex; align-items: center; min-height: 40px; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); text-decoration: none; }
  .nav-phonebar[aria-current="page"] { color: var(--accent); font-weight: 600; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sub-link { font-size: 0.95rem; color: var(--muted); }
.sub-link a { color: var(--ink); }

/* slots pill */
.slots { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.slots i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }

/* hero */
.hero { padding-block: 56px 64px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.audit-hero .stack-lg { max-width: 640px; }
.price-note { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* phone demo: three concept sites, live in a frame; the tabs swap the frame (assets/home.js) */
.demo-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.demo-tabs .tab { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-family: var(--mono); font-size: 0.8rem; cursor: pointer; }
.demo-tabs .tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.demo-tabs .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.phone-wrap .review-link { text-align: center; }
@media (max-width: 640px) {
  .demo-tabs { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .demo-tabs .tab { min-height: 44px; padding: 8px 6px; flex: 1 1 0; min-width: 0; font-size: 0.78rem; }
  /* first screen at 390x844 reaches the top of the phone frame (addendum 3, A6) */
  .hero { padding-block: 24px 48px; }
  .hero .grid { gap: 20px; }
  .hero .stack-lg { gap: 16px; }
  .hero .stack { gap: 10px; }
  .hero .phone-wrap { gap: 10px; }
}
.phone-wrap { display: grid; gap: 12px; justify-items: center; }
.phone { width: min(300px, 100%); aspect-ratio: 9 / 18.5; max-width: 100%; border-radius: 34px; border: 8px solid #1b1f24; background: #f6f3ee; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(14,20,32,0.25); color-scheme: light; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36%; height: 20px; border-radius: 12px; background: #1b1f24; z-index: 2; }
.phone .scr { display: block; width: 100%; height: 100%; border: 0; background: #f6f3ee; }
.phone-cap { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-align: center; max-width: 34ch; }
.phone-cap a { color: var(--ink); }

/* trust strip */
.trust { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.trust div { padding: 14px 16px; border-right: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.trust div:last-child { border-right: 0; }
.trust b { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }
.trust span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 640px) { .trust div { border-right: 0; border-bottom: 1px solid var(--line); } .trust div:last-child { border-bottom: 0; } .trust div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* founder */
.founder { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.founder.founder--nopic { grid-template-columns: 1fr; }
.founder .pic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.founder p { color: var(--muted); }
.founder b { font-family: var(--display); color: var(--ink); }
@media (max-width: 520px) { .founder { grid-template-columns: 1fr; } }

/* industries */
.ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ind a.card { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.ind a.card:hover { border-color: var(--accent); }
.ind a.card.first { border-color: var(--accent); background: var(--accent-soft); }
.ind .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ind p { color: var(--muted); font-size: 0.95rem; }
.ind .more { font-size: 0.9rem; color: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { display: grid; gap: 8px; padding: 20px 0 0; border-top: 3px solid var(--line); min-width: 0; }
.step.now { border-top-color: var(--accent); }
.step .day { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.step p { color: var(--muted); font-size: 0.95rem; }

/* pricing */
/* addendum 11: the 7-Day Site on top, Care / Grow / Lead side by side (Grow emphasized), then the phone line */
.price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .price > .plan > ul { display: block; columns: 2; column-gap: 40px; } .price > .plan > ul li { break-inside: avoid; margin-bottom: 6px; } }
.plan-tier { display: flex; flex-direction: column; }
.plan-tier .cta-row { margin-top: auto; padding-top: 6px; }
.plan-tier .amt { flex-direction: column; align-items: flex-start; row-gap: 2px; }
.plan-tier--grow { border: 2px solid var(--accent); padding: 27px; }
.plan .badge { display: inline-block; margin-left: 8px; padding: 3px 8px; line-height: 1; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; vertical-align: 1px; }
.plan .amt .intro { align-self: center; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mark-ink); background: var(--mark); padding: 3px 8px; border-radius: 999px; }
.plan .amt-note { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
.tier-note { font-size: 0.95rem; border-left: 3px solid var(--good); padding-left: 12px; }
.compare-link { margin-top: -8px; }
.compare-wrap { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overscroll-behavior-x: contain; }
.compare-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.compare th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 40%; min-width: 220px; text-align: left; font-weight: 400; color: var(--ink); background: var(--surface); }
.compare .is-grow { background: var(--accent-soft); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--muted); }
@media (max-width: 640px) { .compare { min-width: 500px; } .compare th, .compare td { padding: 10px 12px; } .compare th[scope="row"] { width: 150px; min-width: 150px; } }
.eyebrow .name { text-transform: none; letter-spacing: 0; }
.plan { display: grid; align-content: start; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.plan.lead { border-color: var(--accent); }
.plan .eyebrow .plan-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.plan .eyebrow .plan-link:hover { color: var(--accent); }
.plan .amt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan .amt small { font-family: var(--mono); font-size: 0.8rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 0.95rem; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.terms div { display: grid; gap: 4px; padding: 16px; border-left: 3px solid var(--accent); background: var(--surface); min-width: 0; }
.terms b { font-family: var(--display); font-weight: 600; }
.terms p { color: var(--muted); font-size: 0.92rem; }

/* faq */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.stat .n { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.stat p { color: var(--muted); font-size: 0.92rem; }
.stat .src { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.stat h3 { font-size: 1.05rem; }
audio { display: block; width: 100%; max-width: 520px; }
.script-label { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* demo line */
.demo { display: grid; gap: 14px; padding: 28px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.demo .eyebrow { color: var(--bg); opacity: 0.7; }
.demo h2 { color: inherit; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.demo .num { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; user-select: all; }
.demo p { opacity: 0.8; font-size: 0.95rem; }
.demo .btn-primary { background: var(--bg); color: var(--ink); }
.demo .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,0.35); }
.demo .copy { font-family: var(--mono); font-size: 0.8rem; opacity: 0.8; }

/* script lines */
.script { display: grid; gap: 10px; font-family: var(--mono); font-size: 0.88rem; }
.script div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface); min-width: 0; }
.script div.ai { border-left-color: var(--accent); }
.script b { color: var(--muted); font-weight: 500; }

/* forms */
.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.field input, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 0.9rem; }
.form .note { font-size: 0.9rem; color: var(--muted); }
.form .alert { color: var(--bad); font-size: 0.95rem; }
.form .alert:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--good); border-radius: 10px; background: var(--surface); max-width: 520px; }
.done b { font-family: var(--display); color: var(--good); }
.done:focus { outline: none; }
.notice { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); max-width: 520px; }

/* closing */
.close { background: var(--accent); color: var(--accent-ink); }
.close h2 { color: var(--accent-ink); }
.close p { opacity: 0.85; }
.close .lede { color: var(--accent-ink); } /* the lede's muted colour must not win over the band's ink (WCAG contrast) */
.close .btn-primary { background: var(--accent-ink); color: var(--accent); }
.close .btn-ghost { color: var(--accent-ink); border-color: rgba(255,255,255,0.4); }
.close .sub-link { color: inherit; opacity: 0.85; }
.close .sub-link a { color: inherit; }

/* footer */
footer { padding-block: 32px; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: grid; gap: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

/* subpages: page head, prose, breadcrumbs, demo figure, long step list */
.page-head { padding-block: 48px 8px; }
.page-head .wrap { display: grid; gap: 16px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--muted); margin-top: 12px; }
.prose p.small { font-size: 0.85rem; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-family: var(--display); font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.demo-figure { display: grid; gap: 14px; }
.demo-figure figure { margin: 0; position: relative; }
.demo-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.demo-figure .tag { position: absolute; bottom: 10px; left: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--mark); color: var(--mark-ink); padding: 3px 8px; border-radius: 4px; }
.demo-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.steps-long { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps-long li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.steps-long .day { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 4px; }
.steps-long p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; max-width: 62ch; }
.steps-long .you { font-family: var(--mono); font-size: 0.78rem; }
@media (max-width: 520px) { .steps-long li { grid-template-columns: 1fr; gap: 6px; } }
.err-page { padding-block: 64px; }
.err-page .wrap { display: grid; gap: 16px; }
.err-page ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

@media (prefers-reduced-motion: no-preference) { .btn { transition: filter 120ms, border-color 120ms; } }

/* ------------------------------------------------------------------ /frontdesk/ panels (addendum 6, ported from the approved
   frontdesk-visuals-demo.html). Namespaced fd-; colours from the site tokens; motion is transform/opacity only, loops after load,
   never scroll-triggered, and stops under prefers-reduced-motion. */
.fd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fd-split > * { min-width: 0; }
@media (max-width: 860px) { .fd-split { grid-template-columns: 1fr; gap: 32px; } }
.fd-demo-strip { margin-top: 40px; }
.fd-steps-list { grid-template-columns: 1fr; gap: 14px; }
.fd-steps-list .step { grid-template-columns: 72px 1fr; column-gap: 12px; row-gap: 4px; padding-top: 14px; border-top-width: 1px; }
.fd-steps-list .step.now { border-top-width: 3px; }
.fd-steps-list .step .day { grid-row: 1 / 3; padding-top: 3px; }
.fd-steps-list .step h3, .fd-steps-list .step p { grid-column: 2; }
.fd-stats-list { grid-template-columns: 1fr; gap: 12px; }
.fd-stats-list .stat { grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 4px; padding: 16px 18px; }
.fd-stats-list .stat .n { grid-row: 1 / 3; font-size: 1.6rem; padding-top: 2px; }
.fd-stats-list .stat h3, .fd-stats-list .stat p { grid-column: 2; }

.fd-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); min-width: 0; }
.band.alt .fd-panel { background-image: linear-gradient(rgba(255,255,255,.035), rgba(255,255,255,.035)); }
.fd-pbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.035); }
.fd-dots { display: flex; gap: 5px; }
.fd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.fd-live { display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.fd-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: fd-pulse 1.6s ease-in-out infinite; }
@keyframes fd-pulse { 50% { opacity: .25; } }

/* P1 lock-screen phone */
.fd-phone { width: min(300px, 100%); max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 38px; border: 9px solid #05070a; background: linear-gradient(180deg, #1a2740 0%, #0f1520 60%, #0b0f16 100%); position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.5); color: #fff; }
.fd-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 14px; background: #05070a; }
.fd-lock { position: absolute; inset: 0; padding: 58px 14px 18px; display: flex; flex-direction: column; align-items: center; }
.fd-day { font-family: var(--display); font-size: .85rem; color: #c8d2e4; }
.fd-time { font-family: var(--display); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; margin-top: 2px; }
.fd-cards { margin-top: 26px; width: 100%; display: grid; gap: 8px; }
.fd-card { background: rgba(255,255,255,.09); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 11px 12px; font-size: .74rem; line-height: 1.35; }
.fd-card .fd-top { display: flex; justify-content: space-between; font-size: .62rem; color: #b9c3d6; margin-bottom: 3px; font-family: var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.fd-card b { font-weight: 600; color: #fff; }
.fd-callcard { position: relative; min-height: 62px; }
.fd-callcard .fd-st { position: absolute; inset: 11px 12px; }
.fd-ring { animation: fd-ring 8s infinite; }
.fd-ans { animation: fd-ans 8s infinite; }
@keyframes fd-ring { 0%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes fd-ans { 0%, 30% { opacity: 0; } 36%, 100% { opacity: 1; } }
.fd-ringdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; animation: fd-pulse .8s infinite; }
.fd-notif { animation: fd-notif 8s infinite; }
@keyframes fd-notif { 0%, 50% { opacity: 0; transform: translateY(-10px); } 58%, 100% { opacity: 1; transform: none; } }
.fd-sms .fd-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--good); color: #06210f; font-size: .62rem; font-weight: 700; margin-right: 6px; vertical-align: -4px; }

/* P2 timelines */
.fd-tl { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fd-tl { grid-template-columns: 1fr; } .fd-tlcol--ok { border-left: 0 !important; border-top: 1px solid var(--line); } }
.fd-tlcol { padding: 18px 18px 8px; min-width: 0; }
.fd-tlcol--ok { border-left: 1px solid var(--line); }
.fd-tlcol h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.fd-tag { font-family: var(--mono); font-size: .62rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.fd-tag--bad { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.fd-tag--ok { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.fd-tlsteps { list-style: none; margin: 0; padding: 0; display: grid; }
.fd-tlsteps li { display: grid; grid-template-columns: 64px 14px 1fr; gap: 10px; align-items: start; padding-bottom: 14px; position: relative; font-size: .9rem; animation: fd-step 6s infinite; }
.fd-tlsteps li:nth-child(2) { animation-delay: .6s; } .fd-tlsteps li:nth-child(3) { animation-delay: 1.2s; } .fd-tlsteps li:nth-child(4) { animation-delay: 1.8s; }
@keyframes fd-step { 0% { opacity: .35; } 8%, 100% { opacity: 1; } }
.fd-tlsteps .fd-t { font-family: var(--mono); font-size: .74rem; color: var(--muted); padding-top: 2px; }
.fd-tlsteps .fd-d { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--line); position: relative; }
.fd-tlsteps li:not(:last-child) .fd-d::after { content: ""; position: absolute; left: 4px; top: 12px; width: 2px; height: calc(100% + 18px); background: var(--line); }
.fd-tlsteps--bad li:last-child .fd-d { background: var(--warn); }
.fd-tlsteps--bad li:last-child { color: var(--warn); }
.fd-tlsteps--ok li .fd-d { background: var(--accent); }
.fd-tlsteps--ok li .fd-d::after { background: var(--accent-soft) !important; }
.fd-tlsteps--ok li:last-child { color: var(--ink); font-weight: 600; }

/* P3 player + job cards */
.fd-player-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .fd-player-grid { grid-template-columns: 1fr; } }
.fd-ctrl { display: flex; align-items: center; gap: 14px; padding: 16px; }
.fd-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.fd-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fd-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 40px; min-width: 0; }
.fd-wave i { flex: 1; background: var(--line); border-radius: 2px; display: block; }
.fd-wave .h8 { height: 8px; }
.fd-wave .h10 { height: 10px; }
.fd-wave .h12 { height: 12px; }
.fd-wave .h14 { height: 14px; }
.fd-wave .h16 { height: 16px; }
.fd-wave .h18 { height: 18px; }
.fd-wave .h20 { height: 20px; }
.fd-wave .h22 { height: 22px; }
.fd-wave .h24 { height: 24px; }
.fd-wave .h26 { height: 26px; }
.fd-wave .h28 { height: 28px; }
.fd-wave .h30 { height: 30px; }
.fd-wave .h32 { height: 32px; }
.fd-wave .h34 { height: 34px; }
.fd-wave .h36 { height: 36px; }
.fd-player.is-playing .fd-wave i { animation: fd-wave 1.1s ease-in-out infinite; background: var(--accent); }
.fd-wave i:nth-child(3n) { animation-delay: .15s; } .fd-wave i:nth-child(3n+1) { animation-delay: .35s; } .fd-wave i:nth-child(4n) { animation-delay: .55s; }
@keyframes fd-wave { 50% { transform: scaleY(.45); } }
.fd-dur { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.fd-audio { display: block; width: calc(100% - 32px); margin: 0 16px 16px; }
.fd-player.fd-bound .fd-audio { display: none; }
.fd-tx { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.fd-tx div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.fd-tx div:last-child { border-bottom: 0; }
.fd-tx b { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fd-tx .ai b { color: var(--accent); }
@media (max-width: 480px) { .fd-tx div { grid-template-columns: 1fr; gap: 2px; } }
.fd-job dl { margin: 0; padding: 6px 16px 4px; display: grid; }
.fd-job dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.fd-job dl div:last-child { border-bottom: 0; }
.fd-job dt { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 3px; }
.fd-job dd { margin: 0; min-width: 0; }
.fd-job dd.fd-hl { color: var(--accent); font-weight: 600; }
.fd-job .fd-foot { padding: 10px 16px 14px; font-family: var(--mono); font-size: .74rem; color: var(--good); border-top: 1px solid var(--line); }
.fd-mini-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .fd-mini-jobs { grid-template-columns: 1fr; } }

/* P4 flow */
.fd-flow { padding: 22px 18px 18px; display: grid; justify-items: center; }
.fd-node { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px 16px; font-family: var(--display); font-weight: 600; font-size: .95rem; text-align: center; }
.fd-node small { display: block; font-family: var(--mono); font-weight: 400; font-size: .66rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.fd-node--core { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); padding: 14px 22px; }
.fd-vline { width: 2px; height: 26px; background: linear-gradient(var(--accent), var(--accent-soft)); }
.fd-outs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; padding-top: 26px; }
.fd-outs::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: var(--accent-soft); }
.fd-out { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; text-align: center; font-size: .82rem; background: rgba(255,255,255,.04); animation: fd-lit 6s infinite; min-width: 0; }
.fd-out::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--accent-soft); }
.fd-out .fd-ok { display: block; font-family: var(--mono); font-size: .64rem; color: var(--good); margin-top: 4px; letter-spacing: .04em; }
.fd-out:nth-child(2) { animation-delay: .9s; } .fd-out:nth-child(3) { animation-delay: 1.8s; } .fd-out:nth-child(4) { animation-delay: 2.7s; }
@keyframes fd-lit { 0% { border-color: var(--line); opacity: .45; } 8%, 100% { border-color: var(--accent); opacity: 1; } }
@media (max-width: 640px) { .fd-outs { grid-template-columns: 1fr 1fr; } .fd-outs::before { left: 25%; right: 25%; } }

/* P5 call log */
.fd-logwrap { overflow-x: auto; }
.fd-log { width: 100%; border-collapse: collapse; font-size: .86rem; }
.fd-log td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fd-log tr:last-child td { border-bottom: 0; }
.fd-log .fd-t { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.fd-log .fd-who { font-weight: 600; white-space: nowrap; }
.fd-log .fd-why { color: var(--muted); }
.fd-chip { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.fd-chip--b { background: var(--accent-soft); color: var(--accent); }
.fd-chip--n { background: var(--warn-soft); color: var(--warn); }
.fd-chip--r { display: block; margin-top: 6px; background: transparent; border: 1px dashed var(--good); color: var(--good); width: max-content; max-width: 100%; white-space: normal; }
.fd-flag td { background: rgba(227,169,91,.05); }
@media (max-width: 560px) { .fd-log .fd-why { display: none; } }

/* ------------------------------------------------------------------ homepage panels (addendum 7, ported from the approved
   homepage-visuals-demo.html; same fd- shell as /frontdesk/) */
.fd-split .checks > div { grid-template-columns: 36px 1fr; }
.fd-split .checks .stat-col { grid-column: 2; justify-items: start; max-width: none; }
.fd-split .checks .stat-sm { white-space: normal; padding-top: 0; }
.fd-split .checks .src { text-align: left; }
.fd-sample { color: var(--warn); }
.fd-pass { color: var(--good); }

/* H1 where the client goes */
.fd-path { display: grid; grid-template-columns: repeat(4, 1fr); }
.fd-pstep { padding: 18px 16px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.fd-pstep:last-child { border-right: 0; }
.fd-pstep .fd-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fd-pstep h3 { font-size: 1rem; }
.fd-lost, .fd-won { border-radius: 8px; padding: 10px 12px; font-size: .86rem; line-height: 1.4; }
.fd-lost { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(227,169,91,.25); }
.fd-lost b, .fd-won b { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin-bottom: 3px; }
.fd-won { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.fd-won b { color: var(--accent); }
.fd-fix { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.fd-fix a { color: var(--accent); text-decoration: none; }
.fd-pstep .fd-lost { animation: fd-lost 10s infinite; }
.fd-pstep .fd-won { animation: fd-won 10s infinite; }
.fd-pstep:nth-child(2) .fd-lost, .fd-pstep:nth-child(2) .fd-won { animation-delay: 1.2s; }
.fd-pstep:nth-child(3) .fd-lost, .fd-pstep:nth-child(3) .fd-won { animation-delay: 2.4s; }
.fd-pstep:nth-child(4) .fd-lost, .fd-pstep:nth-child(4) .fd-won { animation-delay: 3.6s; }
@keyframes fd-lost { 0%, 12% { opacity: 1; } 20%, 100% { opacity: .4; } }
@keyframes fd-won { 0%, 12% { opacity: .35; transform: translateY(4px); } 20%, 100% { opacity: 1; transform: none; } }
.fd-pend { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.035); }
.fd-pend .fd-okline { font-family: var(--display); font-weight: 600; color: var(--good); }
@media (max-width: 860px) { .fd-path { grid-template-columns: 1fr 1fr; } .fd-pstep:nth-child(2) { border-right: 0; } .fd-pstep:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .fd-path { grid-template-columns: 1fr; } .fd-pstep { border-right: 0; border-bottom: 1px solid var(--line); } .fd-pstep:last-child { border-bottom: 0; } }

/* H2 AI answer */
.fd-chat { padding: 16px; display: grid; gap: 12px; }
.fd-q { justify-self: end; max-width: 85%; background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: .9rem; }
.fd-a { max-width: 92%; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .9rem; display: grid; gap: 8px; min-width: 0; }
.fd-a ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fd-src { font-family: var(--mono); font-size: .66rem; color: var(--muted); overflow-wrap: anywhere; }
.fd-src span { color: var(--accent); }
.fd-miss { font-family: var(--mono); font-size: .72rem; color: var(--warn); border-top: 1px dashed var(--line); padding-top: 8px; }
.fd-score { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fd-score > div { padding: 14px 16px; min-width: 0; }
.fd-score > div + div { border-left: 1px solid var(--line); }
.fd-score h3 { font-size: .85rem; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.fd-score h3 span { font-family: var(--mono); font-size: .7rem; white-space: nowrap; }
.fd-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .8rem; color: var(--muted); }
.fd-score li::before { display: inline-block; width: 16px; font-weight: 700; }
.fd-score .fd-f::before { content: "✕"; color: var(--warn); }
.fd-score .fd-p::before { content: "✓"; color: var(--good); }
@media (max-width: 420px) { .fd-score { grid-template-columns: 1fr; } .fd-score > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* H3 small lock screen (the /frontdesk/ P1 component, scaled) */
.fd-phone--sm { width: min(260px, 100%); aspect-ratio: 9 / 17; border-radius: 34px; border-width: 8px; }
.fd-phone--sm .fd-notch { top: 7px; height: 20px; border-radius: 12px; }
.fd-phone--sm .fd-lock { padding: 52px 12px; }
.fd-phone--sm .fd-day { font-size: .8rem; }
.fd-phone--sm .fd-time { font-size: 3.2rem; }
.fd-phone--sm .fd-cards { margin-top: 22px; }
.fd-phone--sm .fd-card { border-radius: 14px; padding: 10px 11px; font-size: .72rem; }
.fd-phone--sm .fd-card .fd-top { font-size: .58rem; letter-spacing: 0; }
.fd-phone--sm .fd-callcard { min-height: 58px; }
.fd-phone--sm .fd-callcard .fd-st { inset: 10px 11px; }

/* H4 results dashboard */
.fd-dash { display: grid; }
.fd-dhead, .fd-drow { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 8px; }
.fd-dhead { padding: 10px 16px; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.fd-drow { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; align-items: center; }
.fd-drow:last-child { border-bottom: 0; }
.fd-drow .fd-q2 { color: var(--muted); min-width: 0; }
.fd-badge { font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; justify-self: start; white-space: nowrap; }
.fd-badge--no { background: var(--warn-soft); color: var(--warn); }
.fd-badge--yes { background: var(--accent-soft); color: var(--accent); animation: fd-flip 8s infinite; }
.fd-badge--base { border: 1px solid var(--line); color: var(--muted); }
.fd-dsec { padding: 10px 16px; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
@keyframes fd-flip { 0%, 25% { opacity: .3; } 35%, 100% { opacity: 1; } }
@media (max-width: 420px) { .fd-dhead, .fd-drow { grid-template-columns: 1.2fr .9fr .9fr; padding-inline: 12px; } }

@media (prefers-reduced-motion: reduce) {
  [class*="fd-"], [class*="fd-"] *, [class*="fd-"]::before, [class*="fd-"]::after, [class*="fd-"] *::before, [class*="fd-"] *::after { animation: none !important; transition: none !important; }
  .fd-ring { opacity: 0; }
  .fd-ans, .fd-notif { opacity: 1; transform: none; }
}
