/* Briefing Board marketing site — tokens mirror the product's reading theme */
:root {
  --paper: #fbfaf7;
  --paper-raised: #ffffff;
  --paper-sunk: #f2f0ea;
  --ink: #16171a;
  --ink-muted: #55585f;
  --rule: #e4e1da;
  --accent: #3546d6;
  --accent-ink: #ffffff;
  --cover-from: #1f2a7a;
  --cover-to: #6b3fa0;
  --code-bg: #0f1117;
  --code-ink: #e6e6ea;
  --ok: #1f8a5b;
  --bad: #b4412f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 18, 30, 0.06), 0 12px 32px -12px rgba(16, 18, 30, 0.18);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Palatino, Charter, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1013;
    --paper-raised: #17181c;
    --paper-sunk: #131418;
    --ink: #ecebe8;
    --ink-muted: #a4a6ad;
    --rule: #2a2c31;
    --accent: #8f9bff;
    --accent-ink: #0b0c10;
    --cover-from: #151b52;
    --cover-to: #3e2563;
    --code-bg: #0a0b0f;
    --ok: #4cc28d;
    --bad: #f0846f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1013;
  --paper-raised: #17181c;
  --paper-sunk: #131418;
  --ink: #ecebe8;
  --ink-muted: #a4a6ad;
  --rule: #2a2c31;
  --accent: #8f9bff;
  --accent-ink: #0b0c10;
  --cover-from: #151b52;
  --cover-to: #3e2563;
  --code-bg: #0a0b0f;
  --ok: #4cc28d;
  --bad: #f0846f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper-raised); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.brand small { font-weight: 500; color: var(--ink-muted); font-size: 12px; display: none; }
@media (min-width: 900px) { .brand small { display: inline; } }
.nav-links { display: none; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn-ghost { display: none; }
@media (min-width: 560px) { .nav-cta .btn-ghost { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -8px var(--accent); }
.btn-ghost { color: var(--ink); border-color: var(--rule); background: var(--paper-raised); }
.btn-light { background: #fff; color: #1f2a7a; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 72px; } }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--cover-to) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 80% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); font-weight: 800; margin-top: 20px; letter-spacing: -0.035em; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent), var(--cover-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-muted); margin-top: 22px; max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--ink-muted); }
.hero-meta span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* Hero visual: code → phone */
.stage { position: relative; min-height: 520px; }
.code-card {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06);
  overflow: hidden; font-size: 12.5px; line-height: 1.7;
}
.code-card .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); color: #8b8fa3; font-size: 12px; font-family: var(--font-sans); }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d4a; display: block; }
.code-card .bar b { margin-left: 8px; font-weight: 500; }
.code-card pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.tk-k { color: #c792ea; } .tk-s { color: #c3e88d; } .tk-p { color: #82aaff; } .tk-c { color: #8c91a8; } .tk-n { color: #f78c6c; }
.stage .code-card { position: relative; width: min(100%, 470px); }
.stage .phone { position: absolute; right: 0; bottom: 0; }
@media (max-width: 979px) {
  .stage { min-height: 0; display: grid; gap: 20px; justify-items: center; }
  .stage .phone { position: relative; }
}

.phone {
  width: 248px; aspect-ratio: 9 / 19.2; border-radius: 38px; padding: 9px;
  background: #0b0c10; box-shadow: 0 30px 60px -20px rgba(20, 16, 60, .55), inset 0 0 0 2px #2a2c35;
}
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fbfaf7; color: #16171a; display: flex; flex-direction: column; position: relative; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: #0b0c10; border-radius: 12px; z-index: 2; }
.phone .cover {
  flex: 0 0 62%; padding: 44px 18px 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(10,12,30,0) 20%, rgba(10,12,30,.85) 100%),
    radial-gradient(120% 80% at 70% 0%, #f2a65a 0%, transparent 55%),
    linear-gradient(160deg, #1f2a7a, #6b3fa0);
}
.phone .cover .kicker { color: #fff; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.phone .cover h4 { font-size: 21px; line-height: 1.05; margin: 6px 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.phone .cover p { font-size: 10.5px; opacity: .9; line-height: 1.35; }
.phone .body { padding: 14px 18px; font-family: var(--font-serif); font-size: 10.5px; line-height: 1.5; color: #2a2b30; }
.phone .body h5 { font-family: var(--font-sans); font-size: 11.5px; margin: 0 0 6px; font-weight: 750; }
.phone .body ul { margin: 0; padding-left: 14px; }
.phone .mini-chart { margin-top: 10px; height: 46px; border-radius: 8px; background: #f2f0ea; display: flex; align-items: flex-end; gap: 5px; padding: 8px; }
.phone .mini-chart span { flex: 1; background: #3546d6; border-radius: 3px 3px 0 0; opacity: .85; }

.share-chip {
  position: absolute; left: -28px; bottom: 70px; z-index: 3;
  background: var(--paper-raised); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow);
  border-radius: 14px; padding: 10px 12px; font-size: 12px; display: flex; gap: 10px; align-items: center; max-width: 230px;
}
.share-chip .ic { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; font-weight: 800; flex: none; }
.share-chip code { font-size: 10.5px; color: var(--ink-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 979px) { .share-chip { left: auto; right: -12px; bottom: 40px; } }
@media (max-width: 420px) { .share-chip { display: none; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; margin-top: 12px; letter-spacing: -0.03em; }
.section-head p { color: var(--ink-muted); font-size: 1.12rem; margin-top: 16px; }
.alt { background: var(--paper-sunk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Logo/use strip */
.strip { padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }
.strip-inner .label { font-size: 13px; color: var(--ink-muted); margin-right: 6px; }
.pill { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper-raised); border: 1px solid var(--rule); color: var(--ink); }

/* Problem / before-after */
.compare { display: grid; gap: 20px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.panel li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-muted); }
.panel li b { color: var(--ink); font-weight: 650; }
.panel.before li::before { content: "✕"; color: var(--bad); font-weight: 800; }
.panel.after { border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
.panel.after li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.tag { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }
.tag.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.tag.good { background: color-mix(in srgb, var(--ok) 14%, transparent); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper-raised); border: 1px solid var(--rule); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent);
  display: inline-block; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.step h3 { font-size: 1.25rem; margin-top: 16px; }
.step p { color: var(--ink-muted); margin-top: 8px; }
.step code { font-size: 13px; background: var(--paper-sunk); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--rule); }

.api-split { display: grid; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 980px) { .api-split { grid-template-columns: 1fr 1fr; } }
.api-split .code-card { font-size: 12.5px; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tabs button { font: inherit; font-family: var(--font-sans); font-size: 12.5px; color: #8b8fa3; background: none; border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }
.tabpanel[hidden] { display: none; }

/* Feature grid */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--paper-raised); border: 1px solid var(--rule); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); transform: translateY(-2px); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--cover-to) 18%, transparent)); color: var(--accent); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-top: 16px; }
.feature p { color: var(--ink-muted); margin-top: 8px; font-size: 15.5px; }

/* Devices */
.devices { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .devices { grid-template-columns: 1fr 1.1fr; } }
.device-row { display: flex; gap: 18px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.dev { background: #0b0c10; padding: 7px; border-radius: 18px; box-shadow: var(--shadow); }
.dev .scr { border-radius: 12px; overflow: hidden; background: #fbfaf7; height: 100%; display: flex; flex-direction: column; }
.dev .cv { background: linear-gradient(160deg, #1f2a7a, #6b3fa0); flex: 0 0 48%; position: relative; }
.dev .cv::after { content: ""; position: absolute; left: 12%; right: 30%; bottom: 14%; height: 14%; background: rgba(255,255,255,.9); border-radius: 4px; }
.dev .ln { height: 6px; margin: 8px 12% 0; border-radius: 3px; background: #dcd9d1; }
.dev .ln.s { margin-right: 40%; }
.dev.fold .scr { flex-direction: row; }
.dev.fold .cv { flex: 0 0 50%; }
.dev.fold .rt { flex: 1; padding-top: 10px; }
.dev.p { width: 92px; height: 190px; }
.dev.f { width: 210px; height: 190px; }
.dev.t { width: 250px; height: 180px; }
.dev-caption { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: 10px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checklist li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.checklist b { display: block; }
.checklist span { color: var(--ink-muted); font-size: 15.5px; }

/* Use cases */
.uses { display: grid; gap: 16px; }
@media (min-width: 720px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .uses { grid-template-columns: repeat(4, 1fr); } }
.use { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--paper-raised); display: flex; flex-direction: column; }
.use .hd { padding: 22px 20px 18px; color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; }
.use .hd small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.use .hd strong { font-size: 1.15rem; line-height: 1.15; margin-top: 4px; }
.use .bd { padding: 16px 20px 20px; color: var(--ink-muted); font-size: 15px; }
.use .bd b { color: var(--ink); }
.g1 { background: linear-gradient(150deg, #1f2a7a, #6b3fa0); }
.g2 { background: linear-gradient(150deg, #0f5c4d, #1f8a5b); }
.g3 { background: linear-gradient(150deg, #7a2a1f, #c4602d); }
.g4 { background: linear-gradient(150deg, #23262f, #4a5163); }

/* Security */
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
.sec { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper-raised); }
.sec .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); min-width: 72px; }
.sec h3 { font-size: 1.05rem; }
.sec p { color: var(--ink-muted); font-size: 15px; margin-top: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--ink-muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); padding: 0 0 20px; }

/* Final CTA */
.cta-band { padding: 0 0 104px; }
.cta-card {
  border-radius: 28px; padding: 56px 28px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 85% 0%, rgba(242,166,90,.35), transparent 60%), linear-gradient(140deg, var(--cover-from), var(--cover-to));
}
@media (min-width: 720px) { .cta-card { padding: 80px 48px; } }
.cta-card h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-card p { margin: 18px auto 0; max-width: 38em; opacity: .9; font-size: 1.12rem; }
.cta-card .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper-sunk); padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--ink-muted); margin-top: 14px; max-width: 30em; font-size: 14.5px; }
.foot-brand .by { margin-top: 18px; font-size: 13.5px; }
.foot-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; color: var(--ink-muted); font-size: 13.5px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-bottom a { color: var(--ink-muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.theme-toggle { font: inherit; font-size: 13px; background: var(--paper-raised); border: 1px solid var(--rule); color: var(--ink-muted); border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* ---------- Legal / prose pages ---------- */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { color: var(--ink-muted); margin-top: 12px; }
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose .note { background: var(--paper-sunk); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; color: var(--ink-muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- API-key form (hero + closing card) ---------- */
.key-form { margin-top: 32px; max-width: 34rem; }
.key-form__label { display: block; font-weight: 700; font-size: 15px; }
.key-form__row { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 520px) { .key-form__row { grid-template-columns: 1fr auto; } }
.key-form__input { min-height: 52px; width: 100%; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 16px; }
.key-form__input::placeholder { color: var(--ink-muted); opacity: 1; }
.key-form__input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-color: var(--accent); }
.key-form__input[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.key-form__button { justify-content: center; }
.key-form__button:disabled { opacity: .7; cursor: progress; transform: none; }
.key-form__error { margin-top: 8px; color: var(--bad); font-weight: 600; font-size: 14.5px; }
.key-form__hint { margin-top: 10px; color: var(--ink-muted); font-size: 14px; }
.key-form__status:empty { display: none; }
.key-form__status { margin-top: 10px; font-size: 15px; color: var(--ink-muted); }
.key-form__status[data-state="error"] { color: var(--bad); font-weight: 600; }
.key-form__status[data-state="sent"] { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); color: var(--ink); }
.key-form.is-sent > :not(.key-form__status) { display: none; }
.status__title { font-size: 1.1rem; font-weight: 700; }
.status__body { margin-top: 6px; color: var(--ink-muted); overflow-wrap: anywhere; }
.status__body strong { color: var(--ink); }
.status__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.status__actions a { color: var(--accent); font-weight: 700; }
.status__reset { padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.hero-secondary { margin-top: 18px; font-weight: 600; }
.hero-secondary a { color: var(--accent); }

/* On the gradient closing card */
.key-form--on-dark { margin-left: auto; margin-right: auto; text-align: left; }
.key-form--on-dark .key-form__label { color: #fff; }
.key-form--on-dark .key-form__input { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; }
.key-form--on-dark .key-form__input::placeholder { color: rgba(255,255,255,.9); }
.key-form--on-dark .key-form__input:focus-visible { outline-color: #fff; border-color: #fff; }
.key-form--on-dark .key-form__input[aria-invalid="true"] { border-color: #ffe0e0; }
.key-form--on-dark .key-form__error,
.key-form--on-dark .key-form__status[data-state="error"] { color: #ffe0e0; }
.key-form--on-dark .key-form__hint,
.key-form--on-dark .key-form__status { color: rgba(255,255,255,.92); }
.key-form--on-dark .key-form__status[data-state="sent"] { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }
.key-form--on-dark .status__body { color: rgba(255,255,255,.92); }
.key-form--on-dark .status__body strong,
.key-form--on-dark .status__actions a,
.key-form--on-dark .status__reset { color: #fff; }
.hero-secondary--on-dark a { color: #fff; }

/* ---------- Swipe-to-read section ---------- */
.gestures { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .gestures { grid-template-columns: repeat(3, 1fr); } }
.gestures li { padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); }
.gestures b { display: block; }
.gestures span { display: block; margin-top: 6px; color: var(--ink-muted); font-size: 15.5px; }
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 20px; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 760px) { .screens { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 900px; margin-left: auto; margin-right: auto; } }
.screens figure { margin: 0; scroll-snap-align: start; }
.screen-frame { padding: 10px; border-radius: 40px; background: #0d0e12; box-shadow: var(--shadow); }
.screen-frame img { display: block; width: 100%; height: auto; border-radius: 30px; }
.screens figcaption { margin-top: 14px; color: var(--ink-muted); font-size: 15px; text-align: center; }
.screens figcaption b { color: var(--ink); }
