/* ════════════════════════════════════════════════════════════════════
   IAPViewer site — design system v1
   Tokens first: 8-step type scale, 8-step spacing scale, 3 shadows,
   light + dark via prefers-color-scheme. Every text pair verified WCAG
   AA minimum (body/headings/links AAA) in BOTH modes; ratios noted.
   Semantics never ride on colour alone: callouts = icon + label + shape,
   prose links = colour + underline, tables = borders + weight.
   ════════════════════════════════════════════════════════════════════ */
:root{
  /* surfaces */
  --page:#ffffff; --surface:#f6f8fb; --surface-2:#fbfcfe;
  --border:#e4e7ec; --border-soft:#eef1f5;
  --border-strong:#808a98;              /* 3.50:1 — interactive outlines only */
  --nav-glass:rgba(255,255,255,.85);
  /* text */
  --ink:#161a1e;                        /* 17.49:1 AAA */
  --body:#3a4048;                       /* 10.46:1 AAA */
  --muted:#697280;                      /*  4.86:1 AA  */
  /* accent */
  --accent:#0066cc;                     /* 5.57:1 AA (links, buttons) */
  --accent-hover:#0052a3;
  --accent-code:#0052a3;                /* 7.21:1 AAA on --surface */
  --accent-wash:#eaf2fc;
  /* callouts — colour is the third channel after icon + label */
  --tip-wash:#ecfdf3;  --tip-edge:#12996a;  --tip-ink:#0f7a54;   /* 5.06:1 */
  --note-wash:#fff8e6; --note-edge:#d99000; --note-ink:#875600;  /* 5.90:1 */
  --warn-wash:#fdeeee; --warn-edge:#d0453f; --warn-ink:#9b2c27;  /* 6.70:1 */
  /* type scale — 8 steps */
  --fs-xs:.76rem;  --fs-sm:.88rem; --fs-base:1rem; --fs-md:1.06rem;
  --fs-lg:1.18rem; --fs-xl:1.5rem; --fs-2xl:2.05rem;
  --fs-3xl:clamp(2.05rem, 5vw, 2.7rem);
  /* spacing scale — 8 steps, 4px base */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
  --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:64px;
  /* radius */
  --r-sm:6px; --r:10px; --r-lg:14px; --r-pill:999px;
  /* elevation — exactly three */
  --shadow-sm:0 1px 2px rgba(16,24,40,.05),0 2px 8px rgba(16,24,40,.06);
  --shadow-md:0 4px 12px rgba(16,24,40,.08),0 12px 28px rgba(16,24,40,.10);
  --shadow-lg:0 10px 30px rgba(16,24,40,.12),0 30px 60px rgba(16,24,40,.10);
  /* motion — one spec */
  --ease:cubic-bezier(.2,.7,.3,1); --t-fast:150ms; --t-med:250ms;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  /* callout icons (inline SVG, no requests) */
  --icon-tip:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2018h6M10%2022h4%27%2F%3E%3Cpath%20d%3D%27M12%202a7%207%200%200%200-4%2012.7c.6.5%201%201.3%201%202.1h6c0-.8.4-1.6%201-2.1A7%207%200%200%200%2012%202z%27%2F%3E%3C%2Fsvg%3E");
  --icon-note:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%208h.01M11%2012h1v4h1%27%2F%3E%3C%2Fsvg%3E");
  --icon-warn:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10.3%203.9%201.8%2018a2%202%200%200%200%201.7%203h17a2%202%200%200%200%201.7-3L13.7%203.9a2%202%200%200%200-3.4%200z%27%2F%3E%3Cpath%20d%3D%27M12%209v4M12%2017h.01%27%2F%3E%3C%2Fsvg%3E");
  --toc-w:190px; --toc-top:76px;
}

/* dark — verified: ink 16.90:1, body 11.52:1, muted 6.78:1, links 7.72:1 */
@media (prefers-color-scheme: dark){
  :root{
    --page:#101317; --surface:#181d24; --surface-2:#1d232b;
    --border:#2b333d; --border-soft:#232a33;
    --border-strong:#66727f;            /* 3.79:1 */
    --nav-glass:rgba(16,19,23,.85);
    --ink:#f2f4f7; --body:#c6ccd4; --muted:#939daa;
    --accent:#5aabff; --accent-hover:#82bfff;
    --accent-code:#8ec2ff;              /* 9.12:1 AAA on --surface */
    --accent-wash:#152438;
    --tip-wash:rgba(18,153,106,.12);  --tip-edge:#1fb583;  --tip-ink:#54d6a5;  /* 8.05:1 */
    --note-wash:rgba(217,144,0,.12);  --note-edge:#e6a23c; --note-ink:#ecb45c; /* 7.56:1 */
    --warn-wash:rgba(208,69,63,.12);  --warn-edge:#e0655f; --warn-ink:#f2938e; /* 6.80:1 */
    --shadow-sm:0 1px 2px rgba(0,0,0,.35),0 2px 8px rgba(0,0,0,.30);
    --shadow-md:0 4px 12px rgba(0,0,0,.40),0 12px 28px rgba(0,0,0,.35);
    --shadow-lg:0 10px 30px rgba(0,0,0,.45),0 30px 60px rgba(0,0,0,.40);
  }
}

/* ── base ─────────────────────────────────────────────────────────── */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{margin:0;font-family:var(--font);color:var(--body);background:var(--page);
  line-height:1.7;font-size:17px}

/* skip-to-content (WCAG 2.4.1) */
.skip-link{position:absolute;left:8px;top:-52px;z-index:40;background:var(--accent);color:#fff;
  padding:8px 14px;border-radius:var(--r-sm);font-weight:600;text-decoration:none;transition:top var(--t-fast)}
.skip-link:focus{top:8px}

/* ── nav ──────────────────────────────────────────────────────────── */
.site-nav{position:sticky;top:0;z-index:20;background:var(--nav-glass);
  backdrop-filter:saturate(180%) blur(8px);-webkit-backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border)}
.nav-inner{max-width:1040px;margin:0 auto;display:flex;align-items:center;gap:var(--sp-5);padding:var(--sp-3) var(--sp-5)}
.brand{display:inline-flex;align-items:center;gap:var(--sp-2);font-weight:700;color:var(--ink);
  font-size:var(--fs-md);letter-spacing:-.01em;text-decoration:none}
.brand-mark{height:22px;width:auto;flex:none}
.brand .dot{color:var(--accent)}
.nav-links{margin-left:auto;display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.nav-links a{color:var(--muted);text-decoration:none;font-size:var(--fs-sm);font-weight:500}
.nav-links a:hover{color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--accent);font-weight:600}

/* ── reading column ───────────────────────────────────────────────── */
.wrap{max-width:720px;margin:0 auto;padding:var(--sp-7) var(--sp-5) var(--sp-5)}
.page-head{margin-bottom:var(--sp-6)}
.pill-row{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);
  color:var(--muted);font-size:var(--fs-xs);font-weight:600;padding:5px 12px;border-radius:var(--r-pill)}
.pill svg{width:14px;height:14px;flex:none}
/* documentation: generated-script examples — the app's terminal blocks */
.scriptset{display:flex;flex-direction:column;gap:8px;margin:12px 0 10px;max-width:560px}

/* API reference: command grid (Option C) — desktop keeps the two-column
   scan with the command column sized to the longest command (a command
   never wraps mid-name); phones collapse each row to
   command-above-description. */
dl.cmdlist{display:grid;grid-template-columns:max-content 1fr;column-gap:22px;margin:var(--sp-4) 0 var(--sp-5)}
dl.cmdlist .cmdrow{display:contents}
dl.cmdlist dt{padding:11px 0;border-bottom:1px solid var(--border)}
dl.cmdlist dt code{white-space:nowrap}
dl.cmdlist dd{margin:0;padding:11px 0;border-bottom:1px solid var(--border);color:var(--body);font-size:.95rem}
dl.cmdlist .cmdrow:last-child dt,dl.cmdlist .cmdrow:last-child dd{border-bottom:0}
/* hybrid: a row whose command would eat the grid (flagged .long at authoring
   time, >40 chars) breaks out to full width and stacks B-style — the grid's
   command column is then sized by the longest UNflagged command only */
dl.cmdlist .cmdrow.long{display:block;grid-column:1 / -1;padding:11px 0;border-bottom:1px solid var(--border)}
dl.cmdlist .cmdrow.long dt{padding:0;border-bottom:0;overflow-x:auto}
dl.cmdlist .cmdrow.long dd{margin:4px 0 0;padding:0;border-bottom:0}
dl.cmdlist .cmdrow.long:last-child{border-bottom:0}
@media (max-width:640px){
  dl.cmdlist{display:block}
  dl.cmdlist dt{padding:11px 0 0;border-bottom:0;overflow-x:auto}
  dl.cmdlist dd{margin:4px 0 0;padding:0 0 11px}
  dl.cmdlist .cmdrow:not(:last-child) dd{border-bottom:1px solid var(--border)}
}

/* severity-ladder glyphs in the status-symbols FAQ answer */
ul.sev-ladder{list-style:none;padding-left:0}
ul.sev-ladder li{margin:12px 0;padding-left:30px;position:relative}
.sev-glyph{position:absolute;left:0;top:1px;width:20px;height:20px;display:inline-block}
.sev-glyph svg{width:100%;height:100%}

/* a pill that links (hero "iPhone · iPad · Mac" → supported devices) */
a.pill{text-decoration:none;transition:border-color var(--t-fast),color var(--t-fast)}
a.pill:hover{text-decoration:none;border-color:var(--accent);color:var(--accent)}
.is-centered{justify-content:center}
.is-centered-text{text-align:center}

/* ── type ─────────────────────────────────────────────────────────── */
h1{font-size:var(--fs-2xl);line-height:1.12;color:var(--ink);font-weight:800;letter-spacing:-.02em;margin:0}
h2{font-size:var(--fs-xl);line-height:1.28;color:var(--ink);font-weight:700;letter-spacing:-.01em;margin:var(--sp-7) 0 var(--sp-3)}
h3{font-size:var(--fs-lg);color:var(--ink);font-weight:650;margin:var(--sp-6) 0 var(--sp-2)}
h4{font-size:var(--fs-md);color:var(--ink);font-weight:650;margin:var(--sp-5) 0 var(--sp-1)}
p{margin:0 0 var(--sp-4)}
em{font-style:italic}
strong{color:var(--ink);font-weight:650}
hr{border:0;border-top:1px solid var(--border);margin:var(--sp-6) 0}
ul,ol{padding-left:1.35em;margin:0 0 var(--sp-4)}
li{margin:4px 0}

/* links: nav/footer/cards rely on context; PROSE links get colour + underline
   (accent vs body is only ~1.9:1 — colour alone is not a sufficient cue) */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.wrap a{text-decoration:underline;
  text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);
  text-underline-offset:3px}
.wrap a:hover{text-decoration-color:var(--accent)}
.wrap .doc-toc a,.wrap a.btn,.wrap a.feature-card,.wrap .pill-row a{text-decoration:none}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}

/* technical strings — mono + slight tracking (I/l/1 structurally distinct) */
.tech{font-family:var(--mono);font-size:.92em;letter-spacing:.02em;color:var(--ink)}

/* ── code ─────────────────────────────────────────────────────────── */
code{font-family:var(--mono);font-size:.88em;background:var(--surface);border:1px solid var(--border-soft);
  color:var(--accent-code);padding:2px 7px;border-radius:var(--r-sm);
  /* One pill = one unit: wraps to the next line whole instead of splitting
     mid-command; a pill wider than the column wraps inside its own box. */
  display:inline-block;max-width:100%;overflow-wrap:break-word}
pre{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:var(--sp-4) 18px;overflow-x:auto;margin:0 0 var(--sp-5)}
pre code{background:none;border:0;padding:0;color:var(--ink);font-size:.9rem;display:inline}

/* ── tables — semantic wrapper scrolls, not the table ─────────────── */
.tablewrap{border:1px solid var(--border);border-radius:var(--r);overflow-x:auto;margin:0 0 var(--sp-5)}
.tablewrap table{border:0;margin:0}
table{width:100%;border-collapse:collapse;margin:0 0 var(--sp-5);font-size:var(--fs-sm);
  font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border-soft);vertical-align:top}
thead th{color:var(--ink);font-weight:700;background:var(--surface);white-space:nowrap;
  letter-spacing:.01em;border-bottom:2px solid var(--border)}
tbody tr:last-child td{border-bottom:0}
tbody td:first-child{color:var(--ink);font-weight:600}

/* ── callouts: colour + ICON + LABEL + SHAPE (never colour alone) ─── */
.notice,.tip,.important{position:relative;padding:15px 18px 15px 52px;margin:var(--sp-5) 0;
  border-radius:var(--r);border:1px solid var(--border-soft);border-left-width:4px}
.notice::before,.tip::before,.important::before{content:"";position:absolute;left:17px;top:15px;width:22px;height:22px}
.tip{background:var(--tip-wash);border-left-color:var(--tip-edge)}
.tip::before{background-color:var(--tip-ink);-webkit-mask:var(--icon-tip) center/contain no-repeat;mask:var(--icon-tip) center/contain no-repeat}
.tip>strong:first-of-type{color:var(--tip-ink)}
.notice{background:var(--note-wash);border-left-color:var(--note-edge)}
.notice::before{background-color:var(--note-ink);-webkit-mask:var(--icon-note) center/contain no-repeat;mask:var(--icon-note) center/contain no-repeat}
.notice>strong:first-of-type{color:var(--note-ink)}
.important{background:var(--warn-wash);border-left-color:var(--warn-edge);border-left-width:5px}
.important::before{background-color:var(--warn-ink);-webkit-mask:var(--icon-warn) center/contain no-repeat;mask:var(--icon-warn) center/contain no-repeat}
.important>strong:first-of-type{color:var(--warn-ink)}

/* ── feature cards — lift, no tilt, no colour-flood ───────────────── */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(258px,1fr));gap:var(--sp-4);margin:var(--sp-4) 0 var(--sp-5)}
.feature-card{display:block;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:var(--sp-4) var(--sp-5);text-decoration:none;box-shadow:var(--shadow-sm);
  transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-med) var(--ease),transform var(--t-fast) var(--ease)}
.feature-card .fc-title{display:block;color:var(--ink);font-weight:700;font-size:var(--fs-md);margin:0 0 var(--sp-1)}
a.feature-card .fc-title::after{content:" →";color:var(--accent);font-weight:400;opacity:0;transition:opacity var(--t-fast)}
.feature-card p{margin:0;color:var(--body);font-size:var(--fs-sm);line-height:1.6}
/* hover feedback ONLY on link-cards — static info cards stay inert
   (hover response signals clickability; divs must not fake it) */
a.feature-card:hover{border-color:var(--accent);box-shadow:var(--shadow-md);
  text-decoration:none;transform:translateY(-2px)}
a.feature-card:hover .fc-title::after{opacity:1}
@media (prefers-reduced-motion: reduce){ a.feature-card:hover{transform:none} }

/* ── checklist: circled check marker (shape) + text ───────────────── */
ul.checklist{list-style:none;padding-left:0;margin:var(--sp-4) 0 var(--sp-5)}
ul.checklist li{position:relative;padding-left:36px;margin:11px 0}
ul.checklist li::before{content:"";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;
  background:var(--tip-wash);border:1px solid var(--tip-edge)}
ul.checklist li::after{content:"";position:absolute;left:8px;top:5px;width:5px;height:9px;
  border:solid var(--tip-ink);border-width:0 2px 2px 0;transform:rotate(45deg)}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq{margin:6px 0}
.faq h3{position:relative;font-size:var(--fs-md);color:var(--ink);font-weight:700;
  margin:0;padding:var(--sp-4) 0 var(--sp-2) 20px;border-top:1px solid var(--border-soft)}
.faq>h3:first-child,
.faq>.reveal:first-child h3{border-top:0;padding-top:var(--sp-1)}
.faq h3::before{content:"";position:absolute;left:0;top:21px;width:9px;height:9px;
  border-radius:2px;background:var(--accent)}
.faq>h3:first-child::before,
.faq>.reveal:first-child h3::before{top:9px}
.faq p{margin:0 0 10px 20px}
.faq ul,.faq ol{margin:0 0 10px 20px}
.faq h4{margin:var(--sp-3) 0 6px 20px;font-size:.98rem}
.faq .tip,.faq .notice,.faq .important{margin:var(--sp-3) 0 14px 20px}

/* ── footnote paragraphs (was inline #666 styles) ─────────────────── */
.page-footnote{color:var(--muted);font-size:var(--fs-sm);margin-top:var(--sp-6)}

/* ── footer ───────────────────────────────────────────────────────── */
.site-footer{border-top:1px solid var(--border);margin-top:var(--sp-8);padding:var(--sp-6) var(--sp-5) var(--sp-7);
  text-align:center;color:var(--muted);font-size:var(--fs-sm)}
.site-footer .footer-links{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin-bottom:14px}
.site-footer .footer-links a{color:var(--muted);text-decoration:none;font-weight:500}
.site-footer .footer-links a:hover{color:var(--ink)}
.site-footer p{margin:4px 0}

/* ── scroll-reveal (unchanged contract: JS-off shows everything) ──── */
.js-reveal .reveal{opacity:0;transform:translateY(10px);
  transition:opacity var(--t-med) ease-out,transform var(--t-med) ease-out}
.js-reveal .reveal.is-revealed{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .js-reveal .reveal{opacity:1 !important;transform:none !important;transition:none !important}
}

/* ── TOC sidebar + scroll-spy ─────────────────────────────────────── */
.wrap h2,.wrap h3{scroll-margin-top:84px}
.doc-toc{margin:0 0 var(--sp-5);border:1px solid var(--border);border-radius:var(--r);background:var(--surface-2)}
.doc-toc>summary{cursor:pointer;list-style:none;padding:11px var(--sp-4);font-weight:650;color:var(--ink);
  display:flex;align-items:center;gap:9px}
.doc-toc>summary::-webkit-details-marker{display:none}
.doc-toc>summary::before{content:"";width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;
  transform:rotate(45deg);transition:transform var(--t-fast)}
.doc-toc[open]>summary::before{transform:rotate(-135deg)}
.doc-toc .toc-title{display:none}
.doc-toc .toc-list{list-style:none;margin:0;padding:var(--sp-1) var(--sp-2) var(--sp-3)}
.doc-toc .toc-list li{margin:0}
.doc-toc .toc-list a{display:block;padding:6px 10px;border-radius:var(--r-sm);color:var(--muted);
  text-decoration:none;font-size:.9rem;line-height:1.35}
.doc-toc .toc-list a:hover{color:var(--ink);background:var(--surface)}
.doc-toc .toc-list a[aria-current]{color:var(--accent);font-weight:700}
@media (min-width:1180px){
  .doc-toc{position:fixed;top:var(--toc-top);left:max(20px,calc((100% - 720px)/2 - var(--toc-w) - 24px));
    width:var(--toc-w);max-height:calc(100vh - var(--toc-top) - 24px);overflow-y:auto;
    margin:0;background:transparent;border:0;border-radius:0}
  .doc-toc>summary{display:none}
  .doc-toc .toc-title{display:block;font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.08em;
    color:var(--muted);font-weight:700;margin:0 0 var(--sp-2) 10px}
  .doc-toc .toc-list{padding:0}
}

/* ── home / marketing ─────────────────────────────────────────────── */
.hero{text-align:center;padding:var(--sp-5) 0 var(--sp-1)}
.hero h1{font-size:var(--fs-3xl);line-height:1.1;margin:14px 0 var(--sp-3);letter-spacing:-.02em}
.lead{font-size:var(--fs-lg);color:var(--body);max-width:660px;margin:0 auto var(--sp-5);line-height:1.55}
.cta-row{display:flex;gap:var(--sp-3);justify-content:center;flex-wrap:wrap;margin:0 0 var(--sp-2)}
.cta-row--spaced{margin-top:var(--sp-5)}
.home-section{margin:var(--sp-7) 0}
.home-section h2{text-align:center}
.home-lead{text-align:center;max-width:680px;margin:0 auto 6px}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:var(--sp-2);font-weight:600;font-size:var(--fs-base);
  padding:12px 22px;border-radius:var(--r-pill);text-decoration:none;cursor:pointer;
  border:1px solid transparent;font-family:var(--font);
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),
             transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);text-decoration:none}
.btn-secondary{background:transparent;color:var(--accent);border-color:var(--border-strong)}
.btn-secondary:hover{border-color:var(--accent);text-decoration:none}
@media (prefers-reduced-motion:no-preference){ .btn:active{transform:translateY(1px)} }

/* status pill — informational, deliberately NOT a button */
.status-pill{display:inline-flex;align-items:center;gap:var(--sp-2);font-weight:600;font-size:var(--fs-sm);
  color:var(--muted);background:var(--surface);border:1px dashed var(--border-strong);
  border-radius:var(--r-pill);padding:10px 18px}
.status-pill svg{width:15px;height:15px;flex:none}

/* hero screenshot — device-framed with a soft accent glow */
.hero-figure{position:relative;max-width:900px;margin:28px auto 6px}
.hero-figure::before{content:"";position:absolute;inset:-8% -12%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--accent) 16%,transparent),transparent 72%)}
/* device shells — pure CSS, no images */
.device{background:#171a1f;border:1px solid rgba(255,255,255,.09);box-shadow:var(--shadow-lg)}
.device img{display:block;width:100%;height:auto}
.device-ipad{padding:14px;border-radius:24px}
.device-ipad img{border-radius:12px}
/* one-time hero entrance — pure CSS: runs without JS, ends at rest, dead under reduced-motion */
@media (prefers-reduced-motion:no-preference){
  @keyframes rise-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  .hero h1{animation:rise-in .55s var(--ease) both}
  .hero .lead{animation:rise-in .55s var(--ease) .08s both}
  .hero .cta-row{animation:rise-in .55s var(--ease) .16s both}
  .hero .hero-figure{animation:rise-in .6s var(--ease) .24s both}
}

/* ── showcase: tabs + frame + dots ────────────────────────────────── */
.showcase{max-width:820px;margin:22px auto 0}
/* desktop: wrap and centre — every tab visible, nothing scrolls */
.showcase-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-2);padding:2px;margin-bottom:var(--sp-4)}
.sc-tab{flex:none;font:inherit;font-size:var(--fs-sm);font-weight:600;color:var(--body);background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-pill);padding:8px 15px;cursor:pointer;
  transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast)}
.sc-tab:hover{border-color:var(--accent);color:var(--accent)}
.sc-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
/* phone shell around the showcase, with its own softer glow */
.device-phone{max-width:274px;margin:0 auto;padding:10px;border-radius:40px;position:relative}
.device-phone::before{content:"";position:absolute;inset:-10% -18%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--accent) 13%,transparent),transparent 72%)}

/* ── auto-walking carousel (Jim's design, 2026-08-13) ─────────────────
   Centre card plays its clip; the two neighbours peek dimmed at the
   sides; cards beyond them fade in place BEHIND the neighbours. */
.sc-stage{position:relative;height:min(70vh,600px);overflow:hidden;padding:14px 0}
.sc-card{position:absolute;left:50%;top:14px;height:calc(100% - 28px);aspect-ratio:640/1390;
  max-width:none;margin:0;
  transform:translateX(-50%);
  transition:transform 1.15s cubic-bezier(.3,.75,.25,1),opacity 1.15s var(--ease),filter 1.15s var(--ease);
  will-change:transform,opacity}
.sc-card::before{transition:opacity 1.15s var(--ease)}
.sc-card:not(.center){cursor:pointer;filter:brightness(.55) saturate(.8)}
.sc-card:not(.center)::before{opacity:0}   /* glow only behind the centre card */
.sc-screen{width:100%;height:100%;border-radius:30px;overflow:hidden;background:var(--surface)}
.sc-screen video,.sc-screen img{width:100%;height:100%;object-fit:cover;display:block}
.sc-progress{width:min(46vw,240px);height:4px;border-radius:2px;background:var(--border);
  margin:14px auto 0;overflow:hidden}
.sc-progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:2px}
.showcase-caption{text-align:center;color:var(--body);max-width:520px;margin:var(--sp-3) auto 0;font-size:var(--fs-md)}
@media (prefers-reduced-motion:reduce){ .sc-card{transition:opacity .5s} }
@media (max-width:640px){ .sc-stage{height:min(62vh,480px)} }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width:640px){
  h2{margin-top:var(--sp-6)}
  .nav-links{gap:14px}
  .nav-links a{font-size:.85rem}
  /* de-crowd: legal pages live in the footer on phones */
  .nav-links a:nth-last-child(-n+2){display:none}
  /* phones: showcase tabs become one scrollable row; bottom padding gives the
     overlay scrollbar a gutter so it never draws over the pills */
  .showcase-tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;
    padding:2px 2px 12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .wrap{padding:var(--sp-6) 18px 18px}
  .brand{font-size:1rem}
}

/* ── price anchor ─────────────────────────────────────────────────── */
.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--sp-4);
  max-width:560px;margin:var(--sp-5) auto} /* default stretch = equal card heights */
/* the subscription card is deliberately the QUIET one: flat surface, no
   shadow, muted figure — the comparison should not read as equals */
.price-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:var(--sp-4);text-align:center}
.price-card .pc-figure{color:var(--body)}
/* the one-time card wins: 2px accent border + accent pill + wash + shadow +
   ink figure — weight, label and elevation carry it, never colour alone */
.price-card--hero{border:2px solid var(--accent);background:var(--accent-wash);
  box-shadow:var(--shadow-md)}
.price-card--hero .pc-figure{color:var(--ink)}
.pc-label{display:inline-block;font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--muted);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-pill);padding:4px 12px;margin-bottom:var(--sp-3)}
.pc-label--accent{color:#fff;background:var(--accent);border-color:var(--accent)}
.pc-name{font-size:var(--fs-sm);font-weight:600;color:var(--body);margin:0 0 var(--sp-2)}
.pc-figure{font-size:var(--fs-2xl);font-weight:800;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;margin:0 0 var(--sp-2);line-height:1.1}
.pc-figure span{display:block;font-size:var(--fs-sm);font-weight:600;color:var(--muted);
  letter-spacing:0;margin-top:var(--sp-1)}
.pc-sub{font-size:var(--fs-sm);color:var(--body);line-height:1.6;margin:0}
.price-note{text-align:center;max-width:560px;margin:var(--sp-4) auto 0;color:var(--body)}
.price-fine{text-align:center;max-width:560px;margin:var(--sp-2) auto 0;color:var(--muted);font-size:var(--fs-xs)}

/* price hero card: breathing glow now; link behaviour dormant until launch.
   The card is an <a> WITHOUT href today (inert, not focusable, not announced);
   adding the App Store href activates hover lift + CTA reveal automatically. */
.price-card--hero{position:relative}
/* glow = a blurred accent copy of the card itself, sitting just behind it —
   the halo hugs the edges and is unmistakably visible (the earlier radial
   version hid its bright centre behind the opaque card) */
.price-card--hero::before{content:"";position:absolute;inset:4px;z-index:-1;pointer-events:none;
  border-radius:inherit;background:var(--accent);filter:blur(24px);opacity:.35}
@media (prefers-reduced-motion:no-preference){
  @keyframes glow-breathe{0%,100%{opacity:.28}50%{opacity:.62}}
  @keyframes glow-in{from{opacity:0}to{opacity:.28}}
  .price-card--hero::before{animation:glow-breathe 4.5s ease-in-out infinite}
  /* while the scroll-reveal is animating the card's own opacity, the solid
     blurred glow shows THROUGH the semi-transparent card face (dark-blue
     blink). Hold the halo at 0 until the card has landed, then fade it in
     and hand over to the breathe. No-JS and reduced-motion are unaffected. */
  .js-reveal .price-card--hero.reveal::before{opacity:0;animation:none}
  .js-reveal .price-card--hero.reveal.is-revealed::before{
    animation:glow-in .6s var(--ease) .35s backwards,
              glow-breathe 4.5s ease-in-out .95s infinite}
}
a.price-card{display:block;color:inherit}
.wrap a.price-card{text-decoration:none}
.pc-cta{display:none;font-size:var(--fs-sm);font-weight:700;color:var(--accent);margin-top:var(--sp-3)}
a[href].price-card--hero .pc-cta{display:block}
a[href].price-card--hero{transition:transform var(--t-fast) var(--ease),box-shadow var(--t-med) var(--ease)}
a[href].price-card--hero:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
@media (prefers-reduced-motion:reduce){ a[href].price-card--hero:hover{transform:none} }

/* ── hero audience line ───────────────────────────────────────────── */
.hero-audience{max-width:640px;margin:0 auto var(--sp-4);color:var(--body)}
/* slots into the existing hero entrance stagger: h1 0s → lead .08s →
   audience .12s → cta-row .16s → figure .24s */
@media (prefers-reduced-motion:no-preference){
  .hero .hero-audience{animation:rise-in .55s var(--ease) .12s both}
}

/* ── beta banner ──────────────────────────────────────────────────── */
/* reuses the .notice callout (icon + bold label + left border — never colour
   alone), constrained to the reading column like .home-lead */
.beta-banner{max-width:680px;margin:var(--sp-6) auto 0}
.beta-banner .notice{margin:0}
.beta-banner .notice a{white-space:nowrap}

/* ── dark-mode contrast fix: text on filled-accent surfaces ───────── */
/* --accent is #0066cc in light (white text = 5.57:1, AA) but #5aabff in dark,
   where white text is only 2.41:1 — an AA failure. Dark ink on the same fill
   is 7.72:1 (AAA). Applies to the primary button and the accent price label:
   both are white-on-accent by default. */
@media (prefers-color-scheme:dark){
  .btn-primary,.btn-primary:hover{color:var(--page)}
  .pc-label--accent{color:var(--page)}
}

/* ══════════════════════════════════════════════════════════════════════
   SCREEN MOCKUPS (documentation.html) — layout D
   Mini iPhone thumbnails inline in prose; tap → full-size phone popup.
   Simulated screens compiled from the app's Swift source, demo data only.
   In-phone tokens mirror iOS semantic colours; severity tokens mirror the
   app's palette (icon + label + shape always accompany colour).
   ══════════════════════════════════════════════════════════════════════ */
:root{
  --ios-bg:#f2f2f7; --ios-card:#ffffff; --ios-ink:#111114; --ios-2nd:#6e6e73;
  --ios-sep:rgba(60,60,67,.14);
  --sev-good:#248a3d; --sev-ok:#c93400; --sev-notice:#0066cc; --sev-poor:#d70015;
  --sev-good-wash:rgba(36,138,61,.10); --sev-ok-wash:rgba(201,52,0,.10);
  --sev-notice-wash:rgba(0,102,204,.10); --sev-poor-wash:rgba(215,0,21,.09);
}
@media (prefers-color-scheme: dark){
  :root{
    --ios-bg:#000000; --ios-card:#1c1c1e; --ios-ink:#f5f5f7; --ios-2nd:#98989f;
    --ios-sep:rgba(84,84,88,.5);
    --sev-good:#30d158; --sev-ok:#ff9f0a; --sev-notice:#64a7ff; --sev-poor:#ff453a;
    --sev-good-wash:rgba(48,209,88,.13); --sev-ok-wash:rgba(255,159,10,.13);
    --sev-notice-wash:rgba(100,167,255,.13); --sev-poor-wash:rgba(255,69,58,.12);
  }
}

/* ── inline thumbnail: a true miniature of the whole screen ─────────── */
.thumb{float:right;margin:4px 0 10px 22px;border:0;padding:0;
  background:none;cursor:pointer;font-family:var(--font);
  display:flex;flex-direction:column;align-items:center;gap:6px;
  -webkit-tap-highlight-color:transparent;
  /* No UA focus rectangle on click — keyboard users get the rounded
     ring on .mini via :focus-visible below. */
  outline:none}
/* The site-wide a11y rule ([tabindex]:focus-visible, line ~129) outranks
   .thumb{outline:none} on specificity and re-draws the big blue box around
   the whole figure after the popup closes — the exact defect Jim rejected
   in the PoC. This higher-specificity rule keeps the figure ring off in
   every focus state; keyboard users still get the ring on .mini below. */
figure.thumb:focus,figure.thumb:focus-visible{outline:none}
/* Real iPhone proportions (390:844). The mini shows the first screenful.
   --miniW is UNITLESS so scale() gets a plain number — px ÷ number is not
   valid CSS inside scale() and silently no-ops (renders full size). */
.thumb{--miniW:132}
.thumb .mini{position:relative;width:calc(var(--miniW) * 1px);
  height:calc(var(--miniW) * 2.164px);overflow:hidden;
  border-radius:22px;background:var(--ios-bg);
  box-shadow:0 0 0 4px #23262b,0 0 0 5px #3a3f46,var(--shadow-md);
  transition:transform var(--t-fast) var(--ease)}
.thumb:hover .mini{transform:translateY(-2px)}
.thumb:focus-visible .mini{outline:3px solid var(--accent);outline-offset:3px}
.thumb .clone{display:block;width:356px;transform-origin:top left;
  transform:scale(calc(var(--miniW) / 356));pointer-events:none}
.thumb .zoom{position:absolute;right:6px;bottom:6px;width:24px;height:24px;
  border-radius:8px;background:var(--accent);color:#fff;display:flex;
  align-items:center;justify-content:center}
.thumb .zoom svg{width:13px;height:13px}
.thumb figcaption{font-size:.72rem;line-height:1.35;color:var(--muted);
  text-align:center;max-width:120px}
@media (max-width:560px){.thumb{--miniW:106}}

/* ── expanded viewer ────────────────────────────────────────────────── */
dialog.viewer{border:0;background:none;padding:0;max-width:none;max-height:none;
  width:100vw;height:100dvh;display:none;align-items:center;justify-content:center;
  overflow:hidden}
dialog.viewer[open]{display:flex}
dialog.viewer::backdrop{background:rgba(10,14,18,.55);backdrop-filter:blur(6px)}
.viewer-inner{display:flex;flex-direction:column;align-items:center;gap:12px;
  max-height:100dvh;padding:18px 0}
.vclose{align-self:flex-end;margin-right:2px;border:0;cursor:pointer;
  width:38px;height:38px;border-radius:50%;background:var(--surface);
  color:var(--ink);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md)}
.vclose svg{width:16px;height:16px}
.vclose:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.vcap{font-size:.8rem;color:#e8edf3;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.phone{width:min(384px,92vw);background:#23262b;border-radius:52px;padding:13px;
  box-shadow:var(--shadow-lg),inset 0 0 0 2px #3a3f46}
.phone .screen{background:var(--ios-bg);border-radius:40px;
  height:min(660px,calc(100dvh - 150px));
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin}
.phone .island{position:sticky;top:10px;z-index:5;width:110px;height:29px;
  border-radius:15px;background:#000;margin:0 auto}

/* ── in-phone components (mirror DesignSystem.swift) ────────────────── */
.sheet{padding:6px 15px 34px;font-family:var(--font);color:var(--ios-ink);
  position:relative;line-height:1.4}
.grabber{width:38px;height:5px;border-radius:3px;background:var(--ios-sep);margin:12px auto 14px}
.slabel{font-size:.7rem;font-weight:700;letter-spacing:.07em;color:var(--ios-2nd);
  margin:22px 4px 8px;font-variant-numeric:tabular-nums}
.sheet > .slabel:first-of-type{margin-top:4px}
.vc-card{background:var(--ios-card);border-radius:13px;
  box-shadow:0 1px 3px rgba(0,0,0,.07),0 4px 14px rgba(0,0,0,.05)}
.tinted{border-radius:13px;padding:14px;display:flex;gap:12px;align-items:flex-start;
  box-shadow:0 1px 3px rgba(0,0,0,.06)}
.tinted.poor{background:var(--sev-poor-wash);outline:1.5px solid var(--sev-poor)}
.tinted.ok{background:var(--sev-ok-wash);outline:1.5px solid var(--sev-ok)}
/* variant is named "advisory", NOT "notice" — the site's own .notice
   callout class (amber wash + amber left border) would bleed in. */
.tinted.advisory{background:var(--sev-notice-wash);outline:1.5px solid var(--sev-notice)}
.tinted .g{width:22px;height:22px;flex:none;margin-top:1px}
.tinted .tt{font-size:.9rem;font-weight:600;line-height:1.35}
.tinted .ts{font-size:.9rem;color:var(--ios-2nd);line-height:1.4}
.g-poor{color:var(--sev-poor)} .g-ok{color:var(--sev-ok)}
.g-notice{color:var(--sev-notice)} .g-good{color:var(--sev-good)}
.tiles{display:flex;gap:12px}
.tile{flex:1;background:var(--ios-card);border-radius:13px;padding:13px 14px;
  box-shadow:0 1px 3px rgba(0,0,0,.07),0 4px 14px rgba(0,0,0,.05);
  display:flex;flex-direction:column;gap:7px;min-width:0}
.tile .lb{font-size:.62rem;font-weight:700;letter-spacing:.06em;color:var(--ios-2nd)}
.tile .big{font-size:1.7rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.tile .big span{font-size:.8rem;font-weight:500;color:var(--ios-2nd)}
.tile .st{display:flex;align-items:center;gap:5px;font-size:.78rem;font-weight:600}
.tile .st svg{width:14px;height:14px}
.segbar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--ios-sep)}
.segbar i{display:block;height:100%}
.brow{display:flex;gap:12px;align-items:flex-start;padding:13px 15px}
.brow .g{width:19px;height:19px;flex:none;margin-top:1px}
.brow .nm{font-size:.9rem}
.brow .meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brow .dt{font-size:.8rem;color:var(--ios-2nd);line-height:1.4;margin-top:3px}
.chip{font-family:var(--mono);font-size:.6rem;font-weight:700;letter-spacing:.05em;
  color:var(--ios-2nd);border:1px solid var(--ios-sep);border-radius:5px;padding:2px 6px}
.brow .count{margin-left:auto;display:flex;align-items:center;gap:6px;
  font-size:.95rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ios-2nd)}
.brow .count svg{width:13px;height:13px;color:var(--ios-2nd);opacity:.55}
.brow.zero .nm,.brow.zero .count{color:var(--ios-2nd)}
.divider{height:1px;background:var(--ios-sep);margin-left:46px}
.crow{display:flex;align-items:center;gap:10px;padding:10px 15px 10px 46px;font-size:.86rem}
.crow svg{width:12px;height:12px;opacity:.5;margin-left:auto}
.crow .who{font-weight:500}
.crow .sub{color:var(--ios-2nd);font-size:.78rem}
.irow{display:flex;align-items:center;gap:12px;padding:11px 15px;font-size:.88rem}
.irow svg{width:17px;height:17px;color:var(--ios-2nd);flex:none}
.irow .k{color:var(--ios-2nd)}
.irow .v{margin-left:auto;text-align:right;font-variant-numeric:tabular-nums}
.irow .v.mono{font-family:var(--mono);font-size:.82rem}
.irow .v.link{color:var(--sev-notice);display:flex;align-items:center;gap:5px}
.irow .v.link svg{width:13px;height:13px;color:var(--sev-notice)}

/* ── mockup: deny list + shared small components ────────────────────── */
.dtiles{display:flex;gap:10px}
.dtile{flex:1;background:var(--ios-card);border-radius:12px;padding:9px 11px;
  box-shadow:0 1px 3px rgba(0,0,0,.07),0 4px 14px rgba(0,0,0,.05);
  display:flex;flex-direction:column;gap:2px;min-width:0}
.dtile .h{font-size:.56rem;font-weight:700;letter-spacing:.05em;color:var(--ios-2nd)}
.dtile .val{display:flex;align-items:center;gap:4px;font-size:1.05rem;font-weight:600;
  font-variant-numeric:tabular-nums}
.dtile .val svg{width:12px;height:12px}
.dtile .lb{font-size:.66rem;color:var(--ios-2nd)}
.t-poor{color:var(--sev-poor)} .t-accent{color:var(--accent)}
.t-notice{color:#5856d6}
@media (prefers-color-scheme: dark){.t-notice{color:#7d7aff}}
.krow{display:flex;align-items:center;gap:10px;padding:12px 15px;font-size:.88rem}
.krow svg{width:17px;height:17px;flex:none}
.krow .spacer{margin-left:auto}
.krow .chevr{width:12px!important;height:12px!important;color:var(--ios-2nd);opacity:.6}
.field{flex:1;border:1px solid var(--ios-sep);border-radius:7px;padding:5px 9px;
  font-family:var(--mono);font-size:.8rem;color:var(--ios-2nd)}
.minibtn{font-size:.8rem;font-weight:600;color:var(--accent);
  border:1px solid var(--ios-sep);border-radius:7px;padding:4px 10px}
.minibtn.dis{opacity:.4}
.shead{display:flex;align-items:baseline;gap:12px;margin:22px 4px 8px}
.shead .slabel{margin:0;flex:1}
.shead .act{font-size:.72rem;font-weight:600;color:var(--accent)}
.shead .act svg{width:13px;height:13px}
.drow{display:flex;align-items:center;gap:7px;padding:10px 12px}
.drow .g{width:20px;height:20px;flex:none}
.drow .g svg{width:16px;height:16px}
.drow .tx{min-width:0;flex:1}
.drow .l1{font-size:.8rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drow .l1.mac{font-family:var(--mono);font-weight:700;font-size:.72rem}
.drow .l2{display:flex;gap:4px;align-items:baseline;font-size:.72rem;color:var(--ios-2nd);
  white-space:nowrap;overflow:hidden}
.drow .l2 .mono{font-family:var(--mono)}
.drow .l2 .unk{font-style:italic;opacity:.75}
.drow .ico{width:19px;flex:none;display:flex;justify-content:center;color:var(--ios-2nd)}
.drow .ico svg{width:14px;height:14px}
.drow.dim .tx,.drow.dim .g{opacity:.55}
.chip.denied{color:var(--sev-poor);background:var(--sev-poor-wash);border:0}
.chip.block{color:#fff;background:var(--accent);border:0;display:inline-flex;align-items:center;gap:3px}
.chip.block svg{width:9px;height:9px}
.chip.unblock{color:#5856d6;border:1px solid #5856d6;display:inline-flex;align-items:center;gap:3px}
.chip.unblock svg{width:9px;height:9px}
@media (prefers-color-scheme: dark){.chip.unblock{color:#7d7aff;border-color:#7d7aff}}
.acc{padding:0 15px 12px 47px;display:flex;flex-direction:column;gap:10px}
.acc .rsn{font-size:.72rem;line-height:1.45}
.acc .rsn .r{color:var(--sev-ok)}
.acc .rsn .ap{color:var(--ios-2nd)}
.acc .rsn .ts{color:var(--ios-2nd);opacity:.7;font-variant-numeric:tabular-nums}
.authlog{background:rgba(120,120,128,.08);border-radius:8px;padding:10px;
  display:flex;flex-direction:column;gap:6px}
.authlog .ev .m{font-size:.66rem;font-variant-numeric:tabular-nums;color:var(--ios-2nd);opacity:.8}
.authlog .ev .t{font-size:.66rem;font-weight:700}
.authlog .ev .d{font-size:.66rem;color:var(--ios-2nd)}
.code{background:rgba(120,120,128,.12);border-radius:8px;padding:10px;
  font-family:var(--mono);font-size:.72rem;line-height:1.55;white-space:pre;
  overflow-x:hidden;position:relative}
.code .cp{position:absolute;right:8px;top:8px;color:var(--ios-2nd)}
.code .cp svg{width:14px;height:14px}
.caution{display:flex;gap:7px;align-items:flex-start;font-size:.72rem;color:#5856d6}
.caution svg{width:13px;height:13px;flex:none;margin-top:1px}
@media (prefers-color-scheme: dark){.caution{color:#7d7aff}}
.cta{display:flex;align-items:center;justify-content:center;gap:7px;background:var(--accent);
  color:#fff;font-size:.86rem;font-weight:600;border-radius:9px;padding:10px}
.cta svg{width:14px;height:14px}
/* secondary (bordered-tint) variant — the deny page's "Copy SSH" button */
.cta--2nd{background:rgba(120,120,128,.16);color:var(--accent)}
.nrow{display:flex;gap:10px;padding:12px 15px;align-items:flex-start}
.nrow .g{width:20px;flex:none;margin-top:1px}
.nrow .g svg{width:15px;height:15px}
.nrow .t{font-size:.72rem;font-weight:700}
.nrow .b{font-size:.72rem;color:var(--ios-2nd);line-height:1.45}

/* ── mockup: clients & APs tree ─────────────────────────────────────── */
:root{--band24:#007aff;--band5:#af52de;--band6:#2f9daf;--ios-fill:rgba(120,120,128,.12)}
@media (prefers-color-scheme: dark){
  :root{--band24:#0a84ff;--band5:#bf5af2;--band6:#40c8e0;--ios-fill:rgba(120,120,128,.24)}
}
.thead{display:flex;gap:8px;align-items:center;padding:8px 0 10px}
.tpill{flex:1;display:flex;align-items:center;gap:6px;padding:10px 12px;white-space:nowrap;
  border-radius:999px;font-size:.84rem;font-weight:500;font-variant-numeric:tabular-nums;
  color:var(--sev-poor);background:var(--sev-poor-wash);border:2px solid var(--sev-poor)}
.tpill svg{width:15px;height:15px}
.tsearch{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;
  background:var(--ios-fill);color:var(--ios-2nd);font-size:.84rem;min-width:74px}
.tsearch svg{width:12px;height:12px}
.tcirc{width:28px;height:28px;border-radius:50%;background:var(--ios-fill);
  display:flex;align-items:center;justify-content:center;color:var(--ios-2nd);flex:none}
.tcirc svg{width:11px;height:11px}
.trow{display:flex;align-items:center;gap:6px;padding:5px 4px 5px 0;min-height:28px;font-size:.84rem}
.trow .mk{flex:none;display:flex;justify-content:center}
.trow.r-ap{padding:10px 4px 10px 0;min-height:44px;margin-left:4px}
.trow.r-ap .mk{width:24px}.trow.r-ap .mk svg{width:21px;height:21px}
.trow.r-ap .nm{font-size:.92rem;font-weight:600}
.trow.r-node{padding:7px 4px 7px 0;min-height:32px;margin-left:16px}
.trow.r-node .mk{width:18px}.trow.r-node .mk svg{width:13px;height:13px}
.trow.r-leaf{margin-left:40px}
.trow.r-leaf .mk{width:14px}.trow.r-leaf .mk svg{width:11px;height:11px}
.trow .sev{width:12px;height:12px;flex:none}
.trow .end{margin-left:auto;display:flex;align-items:center;gap:6px}
.trow .ghost-t{font-size:.66rem;color:var(--ios-2nd);opacity:.6}
.trow.ghost .nm{font-style:italic;color:var(--ios-2nd);opacity:.8}
.trow.ghost .mk{opacity:.4}
.trow.off .nm{font-style:italic;color:var(--ios-2nd);opacity:.75;font-weight:400}
.trow.off .mk{opacity:.35}
.trow .b24{color:var(--band24)}.trow .b5{color:var(--band5)}.trow .b6{color:var(--band6)}
.trow .med{font-weight:500}
.trow .sec{color:var(--ios-2nd)}
.trow .mon{font-family:var(--mono);font-size:.58rem;font-weight:700;color:var(--sev-ok);
  border:1px solid var(--sev-ok);border-radius:4px;padding:1px 4px;opacity:.85}
.trow .it{font-style:italic;color:var(--ios-2nd)}

/* ── mockup: client detail health bars ──────────────────────────────── */
.hrow{padding:2px 0;display:flex;flex-direction:column;gap:4px}
.hrow .top{display:flex;align-items:baseline;gap:6px;font-size:.84rem}
.hrow .top .k{color:var(--ios-2nd)}
.hrow .top .val{margin-left:auto;font-variant-numeric:tabular-nums}
.hrow .top .ql{font-size:.72rem;font-weight:700}
.hbar{height:6px;border-radius:3px;background:rgba(120,120,128,.15);overflow:hidden;position:relative}
.hbar i{position:absolute;top:0;bottom:0;border-radius:3px}
.hrow .ends{display:flex;justify-content:space-between;font-size:.6rem;color:var(--ios-2nd);
  opacity:.7;font-variant-numeric:tabular-nums}
.impact .irow2{display:flex;gap:9px;padding:12px 15px;align-items:flex-start}
.impact .irow2 .g{width:20px;flex:none}
.impact .irow2 .g svg{width:16px;height:16px}
.impact .tt2{font-size:.84rem;font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.impact .dt2{font-size:.74rem;color:var(--ios-2nd);line-height:1.45;margin-top:3px}
.impact .doc{margin-left:auto;flex:none;opacity:.7}
.impact .doc svg{width:14px;height:14px}
.impact .peers{padding:12px 15px;font-size:.72rem}
.impact .peers .hd{display:flex;gap:6px;align-items:center;font-weight:500;color:var(--sev-notice)}
.impact .peers .hd svg{width:11px;height:11px}
.impact .peers .pr{padding-left:12px;color:var(--sev-notice);margin-top:3px}
.impact .peers .pr span{opacity:.7}
.drow2{display:flex;align-items:flex-start;gap:10px;padding:12px 15px;font-size:.84rem}
.drow2 .k{color:var(--ios-2nd);min-width:90px;flex:none}
.drow2 .v{margin-left:auto;text-align:right;font-variant-numeric:tabular-nums;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drow2 .v.mono{font-family:var(--mono);font-size:.78rem}

/* ── mockup: channel view ───────────────────────────────────────────── */
:root{--chart-hl:#a08600}
@media (prefers-color-scheme: dark){:root{--chart-hl:#ffd60a}}
.seg{display:flex;background:var(--ios-fill);border-radius:9px;padding:2px;margin:4px 0 2px}
.seg span{flex:1;text-align:center;font-size:.8rem;padding:5px 0;border-radius:7px;color:var(--ios-ink)}
.seg .on{background:var(--ios-card);font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.chartwrap{overflow-x:auto;margin:6px -15px 0;padding:0 4px}
.chartwrap svg{display:block}
.fchips{display:flex;align-items:center;gap:8px;padding:8px 0 4px;font-size:.72rem}
.fchip{padding:3px 8px;border-radius:6px;border:1px solid rgba(120,120,128,.35);
  color:var(--ios-2nd);display:inline-flex;align-items:center;gap:4px}
.fchip .dot{width:8px;height:8px;border-radius:50%;background:var(--sev-poor)}

/* ── mockup: firmware compatibility ─────────────────────────────────── */
.fwhead{display:flex;align-items:center;gap:6px;font-size:.84rem;font-weight:600}
.fwhead svg{width:18px;height:18px;flex:none}
.fwhead .win{font-variant-numeric:tabular-nums}
.fwattr{font-size:.72rem;color:var(--ios-2nd);line-height:1.45}
.fwadd{display:flex;gap:7px;align-items:flex-start;font-size:.72rem;color:var(--ios-2nd)}
.fwadd svg{width:12px;height:12px;flex:none;margin-top:2px}
.fwrow{display:flex;gap:12px;align-items:flex-start;padding:13px 15px}
.fwrow .g{width:20px;flex:none}
.fwrow .g svg{width:17px;height:17px}
.fwrow .bd{min-width:0;flex:1}
.fwrow .t{display:flex;align-items:center;gap:8px;font-size:.86rem;font-weight:600}
.curtag{font-family:var(--mono);font-size:.58rem;font-weight:700;color:var(--ios-2nd);
  border:1px solid rgba(120,120,128,.35);border-radius:5px;padding:2px 6px}
.fwcounts{display:flex;gap:14px;margin-top:5px;font-size:.76rem;align-items:center}
.fwcounts .c{display:flex;align-items:center;gap:4px}
.fwcounts .c svg{width:11px;height:11px}
.fwcounts .n{font-weight:600;font-variant-numeric:tabular-nums}
.fwcounts .w{color:var(--ios-2nd);font-size:.72rem}
.fwrow .cap{font-size:.7rem;color:var(--ios-2nd);line-height:1.45;margin-top:5px}
.fwrow .chevr{width:12px;height:12px;flex:none;color:var(--ios-2nd);opacity:.6;margin-top:2px}
.fwmore{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:.78rem;
  font-weight:600;padding:12px 4px 0}
.fwmore svg{width:13px;height:13px}
