/* ==========================================================================
   BYP marketing site — design system ("Clear Signal")
   Tokens → base → layout → components → pages → utilities.
   Dark-first with an equally designed light theme. No external requests.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;
  /* surfaces (dark) */
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: #0f1628;
  --surface-2: #152036;
  --line: rgba(232, 238, 246, 0.09);
  --line-strong: rgba(232, 238, 246, 0.18);
  /* text */
  --ink: #edf1f6;
  --ink-2: #c3ccd8;
  --muted: #94a0b0;
  /* brand + signal */
  --signal: #f2c46b;          /* BYP gold (the apps' primary button colour) */
  --signal-ink: #1a1203;
  --signal-soft: rgba(242, 196, 107, 0.13);
  --gold: #86a8ff;            /* royal blue from the BYP mark (lightened for AA on dark); secondary highlight */
  --gold-soft: rgba(91, 140, 255, 0.13);
  --info: #7cb2ff;
  --info-soft: rgba(124, 178, 255, 0.12);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.13);
  --danger: #ff7a7a;
  --focus: #ffd98a;
  /* data-label vocabulary (matches the app) */
  --live: #34d6a0; --delayed: #f2b84b; --updating: #7cb2ff; --demo: #e6c079; --unavailable: #94a0b0;
  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: clamp(0.83rem, 0.8rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.9rem + 2.8vw, 4.25rem);
  --step-5: clamp(3rem, 2.1rem + 4.4vw, 5.75rem);
  /* space (4pt base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  /* shape + depth */
  --r-1: 6px; --r-2: 10px; --r-3: 16px; --r-4: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 24px 60px -24px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.35);
  --shadow-frame: 0 40px 120px -40px rgba(0,0,0,0.8), 0 0 0 1px var(--line-strong);
  --glow: radial-gradient(55% 60% at 50% 0%, rgba(242,196,107,0.14), rgba(59,110,255,0.10) 45%, transparent 75%);
  /* layout */
  --max: 1200px;
  --max-text: 68ch;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f5f1; --bg-2: #efede7; --surface: #ffffff; --surface-2: #f8f7f3;
    --line: rgba(16, 22, 30, 0.1); --line-strong: rgba(16, 22, 30, 0.2);
    --ink: #0f141a; --ink-2: #2b3440; --muted: #556070;
    --signal: #8a5800; --signal-ink: #ffffff; --signal-soft: rgba(138, 88, 0, 0.1);
    --gold: #1f4fc4; --gold-soft: rgba(31, 79, 196, 0.09);
    --info: #1f5fbf; --info-soft: rgba(31, 95, 191, 0.09);
    --warn: #8f5a00; --warn-soft: rgba(143, 90, 0, 0.1); --danger: #b42318; --focus: #8a5800;
    --live: #086b4c; --delayed: #8f5a00; --updating: #1f5fbf; --demo: #8a5800; --unavailable: #556070;
    --shadow-1: 0 1px 2px rgba(16,22,30,0.06);
    --shadow-2: 0 24px 60px -28px rgba(16,22,30,0.28), 0 2px 6px rgba(16,22,30,0.06);
    --shadow-frame: 0 40px 100px -40px rgba(16,22,30,0.35), 0 0 0 1px var(--line-strong);
    --glow: radial-gradient(55% 60% at 50% 0%, rgba(214,160,48,0.14), rgba(31,79,196,0.06) 45%, transparent 75%);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1; --bg-2: #efede7; --surface: #ffffff; --surface-2: #f8f7f3;
  --line: rgba(16, 22, 30, 0.1); --line-strong: rgba(16, 22, 30, 0.2);
  --ink: #0f141a; --ink-2: #2b3440; --muted: #556070;
  --signal: #8a5800; --signal-ink: #ffffff; --signal-soft: rgba(138, 88, 0, 0.1);
  --gold: #1f4fc4; --gold-soft: rgba(31, 79, 196, 0.09);
  --info: #1f5fbf; --info-soft: rgba(31, 95, 191, 0.09);
  --warn: #8f5a00; --warn-soft: rgba(143, 90, 0, 0.1); --danger: #b42318; --focus: #8a5800;
  --live: #086b4c; --delayed: #8f5a00; --updating: #1f5fbf; --demo: #8a5800; --unavailable: #556070;
  --shadow-1: 0 1px 2px rgba(16,22,30,0.06);
  --shadow-2: 0 24px 60px -28px rgba(16,22,30,0.28), 0 2px 6px rgba(16,22,30,0.06);
  --shadow-frame: 0 40px 100px -40px rgba(16,22,30,0.35), 0 0 0 1px var(--line-strong);
  --glow: radial-gradient(55% 60% at 50% 0%, rgba(214,160,48,0.14), rgba(31,79,196,0.06) 45%, transparent 75%);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: var(--step-0);
  line-height: 1.6; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
h1, .display { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h2.serif, .serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.9em; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; background: var(--surface); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--signal); color: var(--signal-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-1); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-block: calc(var(--section) * 0.6); }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.grid { display: grid; gap: var(--s-5); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: var(--s-7); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; } .split.reverse { grid-template-columns: 7fr 5fr; } .split.reverse > :first-child { order: 2; } .split.even { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: var(--s-4); }
.prose { max-width: var(--max-text); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose li + li { margin-top: var(--s-2); }
.center { text-align: center; margin-inline: auto; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }
.center.lede { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---- Section heading ----------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-4); line-height: 1.04; }
.section-head h2 em, h1 em { font-style: italic; color: var(--signal); }

/* ---- Header / navigation ------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand .word { font-size: 1.15rem; }
.brand .sub { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-left: 2px; }
.nav { display: none; margin-left: var(--s-4); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); }
.nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-1); text-decoration: none; color: var(--ink-2); font-size: 0.94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.header-actions .btn { display: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-2); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; } :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; } }
@media (min-width: 1040px) { .nav { display: block; } .menu-toggle { display: none; } .header-actions .btn { display: inline-flex; } }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: var(--s-5) var(--gutter) var(--s-8); overflow-y: auto; border-top: 1px solid var(--line); }
.mobile-nav ul { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.mobile-nav li a { display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: var(--step-1); }
.mobile-nav .btn { width: 100%; justify-content: center; margin-bottom: var(--s-3); }
body.nav-open { overflow: hidden; }

/* ---- Buttons ------------------------------------------------------------- */
.btn { --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0.6rem 1.1rem; border-radius: var(--r-2);
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { --btn-bg: var(--signal); --btn-ink: var(--signal-ink); --btn-line: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { --btn-bg: transparent; --btn-line: transparent; padding-inline: var(--s-3); }
.btn.ghost:hover { --btn-bg: var(--surface); }
.btn.lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: 1rem; }
.btn.sm { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.875rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { color: var(--signal); font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.35em; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* ---- Chips / badges / status -------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.signal { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 40%, transparent); background: var(--signal-soft); }
.chip.gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: var(--gold-soft); }
.chip.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); background: var(--info-soft); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.chip.muted { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.85rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.status.ok { color: var(--signal); } .status.pending { color: var(--warn); } .status.off { color: var(--muted); } .status.info { color: var(--info); }
.dl-live { color: var(--live); } .dl-delayed { color: var(--delayed); } .dl-updating { color: var(--updating); } .dl-demo { color: var(--demo); } .dl-unavailable { color: var(--unavailable); }

/* platform availability */
.avail { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.avail li { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: var(--r-1); border: 1px solid var(--line); color: var(--muted); }
.avail li.yes { color: var(--ink-2); border-color: var(--line-strong); }
.avail li.yes::before { content: "✓"; color: var(--signal); font-weight: 700; }
.avail li.no::before { content: "—"; }
.avail li.partial::before { content: "◐"; color: var(--warn); }

/* ---- Cards --------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); box-shadow: var(--shadow-1); position: relative; }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card .card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-2); background: var(--signal-soft); color: var(--signal); margin-bottom: var(--s-4); }
.card .card-icon svg { width: 20px; height: 20px; }
.card.link-card { transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card.link-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card.link-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .meta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.card.feature { padding: var(--s-5); }
.card.quiet { background: transparent; box-shadow: none; }
.card.accent { border-color: color-mix(in srgb, var(--signal) 35%, var(--line)); background: linear-gradient(180deg, var(--signal-soft), transparent 60%), var(--surface); }

/* Point-of-claim note (D8) and truth boxes (D7) */
.note { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.note.warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); }
.note.warn svg { color: var(--warn); }
.note.info svg { color: var(--info); }
.note p { margin: 0; }
.note strong { color: var(--ink); }
.truth-box { border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
.truth-box header { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.truth-box table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.truth-box th, .truth-box td { text-align: left; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: top; }
.truth-box tr:last-child th, .truth-box tr:last-child td { border-bottom: 0; }
.truth-box th { font-weight: 600; width: 34%; }

/* ---- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
table.data caption { text-align: left; padding: var(--s-4) var(--s-5) 0; color: var(--muted); font-size: 0.85rem; caption-side: top; }
table.data th, table.data td { padding: var(--s-3) var(--s-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data th[scope="row"] { font-weight: 600; }
table.data td.yes { color: var(--signal); font-weight: 600; } table.data td.no { color: var(--muted); } table.data td.partial { color: var(--warn); font-weight: 600; }

/* ---- Product frame / media (D2) ----------------------------------------- */
.frame { position: relative; border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-frame); overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame .bar .title { margin-left: var(--s-3); font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame picture, .frame img { width: 100%; }
.frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--bg-2); }
.capture { margin: 0; }
.capture figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: 0.82rem; color: var(--muted); }
.capture .cap-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.capture .cap-tag b { color: var(--demo); font-weight: 600; }
.phone { width: min(300px, 70vw); margin-inline: auto; border-radius: 36px; padding: 10px; background: #05070a; box-shadow: var(--shadow-frame); }
.phone .screen { border-radius: 28px; overflow: hidden; background: var(--surface); aspect-ratio: 9 / 19.5; display: grid; place-items: center; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); padding-bottom: var(--s-8); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto; height: 760px; background: var(--glow); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%); opacity: 0.55; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.hero h1 { font-size: var(--step-5); margin-bottom: var(--s-5); }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); margin-bottom: var(--s-6); }
.hero .platform-entry { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: 0.9rem; }
.hero .platform-entry a { color: var(--ink-2); }
.hero-media { margin-top: var(--s-8); position: relative; }
.hero-media .frame { transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media .frame { animation: rise 1s var(--ease) both .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
}
.page-hero { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: var(--s-7); position: relative; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: -20% -20% auto; height: 520px; background: var(--glow); pointer-events: none; }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-5); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: 0.5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- Facts strip (D9: operational facts only) ---------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
.facts > div { padding: var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); margin-bottom: var(--s-1); }
.facts dd { margin: 0; font-family: var(--font-serif); font-size: var(--step-3); line-height: 1.1; }
.facts dd small { display: block; font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); margin-top: var(--s-1); }

/* ---- Workflow / How it works -------------------------------------------- */
.flow { counter-reset: step; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); list-style: none; padding: 0; margin: 0; }
.flow li { counter-increment: step; position: relative; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.flow li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); display: block; margin-bottom: var(--s-3); }
.flow h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.flow p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.steps { display: grid; gap: var(--s-9); }
.step { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: start; scroll-margin-top: calc(var(--header-h) + var(--s-6)); }
@media (min-width: 980px) { .step { grid-template-columns: 5fr 7fr; gap: var(--s-8); } .step:nth-child(even) > .step-copy { order: 2; } }
.step-num { font-family: var(--font-mono); color: var(--signal); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.step h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-3); }
.step dl.step-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: var(--s-5) 0; font-size: 0.92rem; }
.step dl.step-facts dt { color: var(--muted); }
.step dl.step-facts dd { margin: 0; }
.step-nav { position: sticky; top: calc(var(--header-h) + var(--s-3)); z-index: 5; display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2); margin-bottom: var(--s-8); border: 1px solid var(--line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; }
.step-nav::-webkit-scrollbar { display: none; }
.step-nav a { flex: none; padding: 0.4rem 0.9rem; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.step-nav a:hover { color: var(--ink); }
.step-nav a.active { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---- Tabs / product tour ------------------------------------------------- */
.tabs [role="tablist"] { display: flex; gap: var(--s-1); overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); width: max-content; max-width: 100%; margin-bottom: var(--s-6); scrollbar-width: none; }
.tabs [role="tablist"]::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--signal); color: var(--signal-ink); }
.tabs [role="tabpanel"]:focus-visible { outline-offset: 6px; }
.tour { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .tour { grid-template-columns: 4fr 8fr; align-items: start; } }
.tour-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.tour-steps button { width: 100%; text-align: left; appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: var(--r-2); padding: var(--s-4); font: inherit; cursor: pointer; display: grid; gap: 2px; transition: border-color .15s var(--ease), background .15s var(--ease); }
.tour-steps button .t { font-weight: 600; color: var(--ink); }
.tour-steps button .d { font-size: 0.88rem; color: var(--muted); }
.tour-steps button[aria-current="step"] { border-color: color-mix(in srgb, var(--signal) 55%, var(--line)); background: linear-gradient(90deg, var(--signal-soft), transparent 70%), var(--surface); }
.tour-stage { position: relative; }
.tour-stage .frame { transition: opacity .25s var(--ease); }
.tour-stage.switching .frame { opacity: 0.35; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--signal-ink); background: var(--signal); color: var(--signal-ink); font-weight: 700; font-size: 0.8rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 28%, transparent); }
@media (prefers-reduced-motion: no-preference) { .hotspot { animation: pulse 2.4s var(--ease) infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 30%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--signal) 8%, transparent); } } }
.hotspot[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.tour-explain { margin-top: var(--s-4); min-height: 3.5em; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.tour-progress { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

/* ---- Data label explorer ------------------------------------------------- */
.labels-demo { display: grid; gap: var(--s-3); }
.labels-demo button { display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left; appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); color: var(--ink); font: inherit; cursor: pointer; }
.labels-demo button[aria-pressed="true"] { border-color: var(--line-strong); background: var(--surface-2); }
.labels-demo .price { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.labels-detail { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.quote-card { display: grid; gap: var(--s-2); }
.quote-card .sym { font-family: var(--font-mono); font-weight: 700; }
.quote-card .px { font-family: var(--font-mono); font-size: var(--step-3); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---- Pricing ------------------------------------------------------------- */
.availability { border: 1px solid var(--line-strong); border-radius: var(--r-4); background: var(--surface); padding: clamp(1.5rem, 1rem + 2vw, 3rem); display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .availability { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.availability h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-3); }
.plan-list { display: grid; gap: var(--s-4); }
.plan { border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); background: var(--surface-2); }
.plan h3 { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; flex-wrap: wrap; }
.plan .amount { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 400; }
.plan .terms { color: var(--muted); font-size: 0.9rem; margin: 0; }
.campaign-slot:empty { display: none; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.check-list li { display: flex; gap: var(--s-3); }
.check-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f2c46b' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.x-list li { display: flex; gap: var(--s-3); color: var(--ink-2); }
.x-list li::before { content: "×"; flex: none; width: 18px; text-align: center; color: var(--muted); font-weight: 700; }

/* ---- FAQ (native details) ------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-4); font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-weight: 400; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--s-5); color: var(--ink-2); max-width: var(--max-text); }

/* ---- Forms --------------------------------------------------------------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.input { width: 100%; min-height: 46px; padding: 0.6rem 0.85rem; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.form-status { min-height: 1.5em; font-size: 0.92rem; }
.form-status.ok { color: var(--signal); } .form-status.err { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-text { color: var(--danger); font-size: 0.85rem; }

/* ---- Dialog -------------------------------------------------------------- */
dialog.modal { width: min(560px, calc(100vw - 2rem)); border: 1px solid var(--line-strong); border-radius: var(--r-3); padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
dialog.modal::backdrop { background: rgba(4, 6, 9, 0.6); backdrop-filter: blur(3px); }
dialog.modal header { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
dialog.modal header h2 { font-size: var(--step-1); margin: 0; font-family: var(--font-sans); font-weight: 600; }
dialog.modal .body { padding: var(--s-5); }

/* ---- Help centre --------------------------------------------------------- */
.search-box { position: relative; max-width: 640px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 42px; min-height: 52px; font-size: 1rem; border-radius: var(--r-pill); background: var(--surface); }
.search-results { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.search-results a { display: block; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { border-color: var(--line-strong); }
.search-results .r-title { font-weight: 600; }
.search-results .r-meta { font-size: 0.82rem; color: var(--muted); }
.search-results mark { background: var(--signal-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.article-layout { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.article-nav { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; font-size: 0.9rem; }
.article-nav h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: var(--font-mono); margin: var(--s-5) 0 var(--s-2); }
.article-nav ul { list-style: none; padding: 0; margin: 0; }
.article-nav a { display: block; padding: 0.3rem 0.6rem; border-radius: var(--r-1); text-decoration: none; color: var(--ink-2); }
.article-nav a:hover { background: var(--surface); }
.article-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--signal); }
@media (max-width: 999px) { .article-nav { position: static; } .article-nav details > ul { margin-top: var(--s-3); } }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.article ol.how-to { counter-reset: s; list-style: none; padding: 0; }
.article ol.how-to > li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: var(--s-4); }
.article ol.how-to > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal); font-weight: 700; font-size: 0.85rem; }
.article-foot { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ---- Changelog ----------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.timeline > li { position: relative; padding: 0 0 var(--s-7) var(--s-6); }
.timeline > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--signal); }
.timeline time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.timeline h3 { margin: var(--s-1) 0 var(--s-3); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-4); padding: clamp(2rem, 1.5rem + 3vw, 4.5rem); overflow: hidden; background: var(--surface); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-4); }
.cta-band .btn-row { justify-content: center; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); background: var(--bg-2); font-size: 0.92rem; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.footer-grid h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: var(--s-3); font-family: var(--font-mono); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: var(--s-3); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; display: grid; gap: var(--s-3); }
.footer-legal p { margin: 0; max-width: 110ch; }
.staging-banner { position: sticky; top: 0; z-index: 60; background: #f2b84b; color: #1a1200; text-align: center; font-size: 0.82rem; font-weight: 600; padding: 4px var(--gutter); }

/* ---- Reveal on scroll (progressive; content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- Misc ---------------------------------------------------------------- */
.kicker-list { display: grid; gap: var(--s-5); }
.kicker-list > div { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); }
.kicker-list .k-icon { width: 36px; height: 36px; border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--signal); }
.kicker-list .k-icon svg { width: 18px; height: 18px; }
.kicker-list h3 { font-size: 1.02rem; margin-bottom: var(--s-1); }
.kicker-list p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.platform-card { display: grid; gap: var(--s-4); }
.platform-card .p-head { display: flex; align-items: center; gap: var(--s-3); }
.platform-card .p-icon { width: 44px; height: 44px; border-radius: var(--r-2); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.platform-card .p-icon svg { width: 22px; height: 22px; }
.platform-card dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0; font-size: 0.9rem; }
.platform-card dt { color: var(--muted); }
.platform-card dd { margin: 0; }
.platform-card.recommended { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); }
.anchor-list { columns: 2 220px; gap: var(--s-6); list-style: none; padding: 0; }
.anchor-list li { break-inside: avoid; margin-bottom: var(--s-2); }
.toc { font-size: 0.92rem; border-left: 2px solid var(--line); padding-left: var(--s-4); }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media print {
  .site-header, .site-footer, .step-nav, .cta-band, .staging-banner { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Inline icons default to text size; components that need a fixed size override below their own selectors. */
svg.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.truth-box header svg.i { width: 20px; height: 20px; color: var(--signal); }
.frame img.natural { aspect-ratio: auto; object-fit: contain; }
.capture.narrow { max-width: 460px; margin-inline: auto; }
.hotspot-wrap { position: relative; }
.hotspot-wrap .frame .bar { height: 36px; box-sizing: border-box; }
.hotspot-wrap .hotspots { top: 36px; }
.no-js .hotspots { display: none; }
.not-found .btn-row { justify-content: center; }
.h3-like { font-size: var(--step-1); font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.015em; }
@media (max-width: 420px) { .brand .sub { display: none; } .site-header .container { gap: var(--s-3); } }
.timeline .chip { white-space: normal; }
.article-layout > *, .step > *, .split > *, .tour > * { min-width: 0; }
.article-nav a { overflow-wrap: anywhere; }
@media (max-width: 520px) { .step dl.step-facts { grid-template-columns: 1fr; } .step dl.step-facts dd { margin-bottom: var(--s-2); } }
@media (max-width: 600px) { .btn { white-space: normal; max-width: 100%; } }
.page-hero + .section.tight { padding-top: 0; }

/* Official BYP lockup (Captain Umro + BYP wordmark) — the same artwork as the released apps. */
.brand img.logo { height: 40px; width: auto; display: block; }
.footer-brand .brand img.logo { height: 56px; }
@media (max-width: 420px) { .brand img.logo { height: 34px; } }

/* ---- CRM campaigns (Epic 37): modal / bottom sheet, banner, card --------------------------------------- */
.camp-kicker { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin: 0 0 var(--s-2); }
.camp-title { font-family: var(--font-serif); font-weight: 400; font-size: var(--step-3); line-height: 1.05; margin: 0 0 var(--s-3); }
.camp-offer { font-weight: 600; color: var(--ink); }
.camp-body { color: var(--ink-2); }
.camp-x { position: absolute; top: 12px; right: 12px; font-size: 1.4rem; line-height: 1; }
dialog.camp-modal { width: min(560px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-4); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden; }
dialog.camp-modal::backdrop { background: rgba(3, 5, 10, 0.66); backdrop-filter: blur(4px); }
.camp-art { height: 120px; background: radial-gradient(70% 120% at 20% 0%, rgba(242,196,107,0.35), transparent 60%), radial-gradient(60% 120% at 90% 10%, rgba(59,110,255,0.35), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.camp-inner { padding: var(--s-6); }
@media (max-width: 600px) {
  dialog.camp-modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-4) var(--r-4) 0 0; border-bottom: 0; }
  .camp-art { height: 72px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.camp-modal[open] { animation: camp-in .45s var(--ease) both; }
  @keyframes camp-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
}
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin: var(--s-4) 0; }
.cd-unit { text-align: center; padding: var(--s-3) var(--s-1); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2); }
.cd-num { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; }
.cd-lab { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.alloc { margin: var(--s-4) 0; }
.alloc-bar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.alloc-fill { height: 100%; background: linear-gradient(90deg, var(--signal), var(--gold)); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) { .alloc-fill { transition: width 1s var(--ease); } }
.alloc-text { font-size: 0.85rem; color: var(--muted); margin: var(--s-2) 0 0; }
.camp-banner { position: relative; z-index: 51; background: linear-gradient(90deg, rgba(242,196,107,0.16), rgba(59,110,255,0.14)), var(--bg-2); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.camp-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding-block: var(--s-2); padding-right: 56px; position: relative; }
.camp-banner .camp-kicker, .camp-banner .camp-title { margin: 0; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; }
.camp-banner .cd { display: flex; margin: 0; gap: var(--s-1); }
.camp-banner .cd-unit { padding: 2px 6px; display: flex; align-items: baseline; gap: 3px; }
.camp-banner .cd-num { font-size: 0.95rem; }
.camp-banner .cd-lab { font-size: 0.65rem; }
.camp-banner .btn-row { margin-left: auto; }
.camp-banner .camp-x { top: 50%; transform: translateY(-50%); right: var(--gutter); width: 34px; height: 34px; }
.camp-card { border: 1px solid color-mix(in srgb, var(--signal) 40%, var(--line)); border-radius: var(--r-4); padding: var(--s-6); background: radial-gradient(60% 120% at 0% 0%, var(--signal-soft), transparent 60%), var(--surface); }

/* ---- Phones, hero composition and Android gallery (Epic 37) --------------------------------------------- */
.phone-shot { margin: 0; }
.phone-shot .phone { width: 100%; max-width: 300px; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2a3242, #0b0f18 40%, #1a2130); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone-shot .screen { aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #0b0f18; display: block; }
.phone-shot .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-shot figcaption { margin-top: var(--s-2); font-size: 0.72rem; color: var(--muted); text-align: center; font-family: var(--font-mono); }
.phone-shot .cap-tag b { color: var(--demo); font-weight: 600; }
.hero-stage { position: relative; margin-top: var(--s-8); }
.hero-stage .hero-phone { position: absolute; right: -2%; bottom: -8%; width: 22%; min-width: 170px; z-index: 2; }
.hero-stage .hero-phone .phone { max-width: none; }
@media (max-width: 959px) { .hero-stage .hero-phone { position: static; width: min(240px, 62vw); margin: calc(-1 * var(--s-8)) auto 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .hero-phone { animation: rise 1s var(--ease) both .45s; }
}
.hero-caption { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); font-size: 0.82rem; color: var(--muted); }
.hero-caption .cap-tag b { color: var(--demo); }
.svg-flip, svg.flip { transform: scaleX(-1); }
.pgal-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: var(--s-6); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) var(--s-1) var(--s-4); scrollbar-width: thin; }
.pgal-slide { scroll-snap-align: start; display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.pgal-text h3 { margin-bottom: var(--s-1); }
.pgal-text p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.pgal-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-3); }
.compare-duo { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .compare-duo { grid-template-columns: 3fr 1fr; } }
@media (min-width: 1100px) {
  .hero > .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: center; }
  .hero > .container { max-width: 1320px; }
  .hero h1 { font-size: clamp(2.8rem, 1.4rem + 2.7vw, 4.7rem); }
  .hero .lede { font-size: 1.15rem; }
  .hero-stage { margin-top: 0; }
  .hero-stage .hero-phone { left: -3%; right: auto; bottom: -20%; width: 24%; }
  .hero-caption { grid-column: 2; margin-top: var(--s-6); padding-left: 26%; }
  .hero { padding-bottom: var(--s-9); }
}

/* ---- How it works (Epic 37) ---------------------------------------------------------------------------- */
.step-nav .sn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.step-nav a.active .sn { background: var(--signal); color: var(--signal-ink); }
.step-media { display: grid; gap: var(--s-5); }
.store-cards { display: grid; gap: var(--s-3); }
.store-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.store-card:hover { border-color: color-mix(in srgb, var(--signal) 50%, var(--line)); transform: translateY(-2px); }
.store-card .p-icon { width: 44px; height: 44px; border-radius: var(--r-2); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.store-card .p-icon svg { width: 22px; height: 22px; }
.store-card strong { display: block; }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: end; }
.duo .capture.narrow { max-width: none; }
@media (max-width: 600px) { .duo { grid-template-columns: 1fr; } .duo .phone-shot .phone { margin-inline: auto; max-width: 240px; } }
.day-flow { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-2); border-left: 2px solid var(--line-strong); }
.day-flow li { position: relative; padding: var(--s-2) 0 var(--s-2) var(--s-5); display: grid; gap: 2px; }
.day-flow li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--signal); }
.day-flow .t { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); }
.day-flow span:last-child { color: var(--muted); font-size: 0.92rem; }
.tour-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.tour-meta .btn { margin-left: auto; }
.tour-stage { touch-action: pan-y; }
dialog.zoom-modal { width: min(1600px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg); overflow: auto; }
dialog.zoom-modal::backdrop { background: rgba(3, 5, 10, 0.8); }
dialog.zoom-modal img { width: 100%; height: auto; }
.tour-explain p { transition: opacity .2s var(--ease); }

/* ---- Page transitions + mobile CTA (Epic 37) ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  .site-header { view-transition-name: header; }
}
.mobile-cta { display: none; }
@media (max-width: 699px) {
  .mobile-cta { display: flex; gap: var(--s-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; justify-content: center; }
  body.has-mobile-cta .site-footer { padding-bottom: calc(var(--s-8) + 64px); }
}
.mcta-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80vh; pointer-events: none; }
/* Skip style/layout/paint for off-screen sections until they approach the viewport (big win on long pages). */
main > .section:not(:first-child), main > section.section ~ section.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.camp-art { display: grid; place-items: center; }
.camp-art img { height: 64px; width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
@media (max-width: 600px) { .camp-art img { height: 44px; } }
.camp-banner .container > * { min-width: 0; }
@media (max-width: 480px) { .camp-banner .cd { display: none; } .camp-banner .camp-kicker { display: none; } }
