/* Nexora public site (NX-DEC-515; redesign NX-DEC-1061; taste pass NX-DEC-1229; premium pass 2026-11).
   Self-hosted fonts only (SIL OFL, see fonts/); no third-party resources. The masthead, site bar, footer and the
   home's night bands are always "night"; everything else follows the visitor's light or dark setting. One action
   colour (violet) for primary buttons; gold only for Nexora Pro. Focus is a two-part ring (outline + halo).
   Motion: one moment (the phone rises in front of the TV), off with reduced motion. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Atkinson's slashed zero reads oddly in dates and prices: body digits come from Bricolage. */
@font-face {
  font-family: "Nexora Digits";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2-variations");
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/atkinson-hyperlegible-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/atkinson-hyperlegible-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/atkinson-hyperlegible-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/atkinson-hyperlegible-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


:root {
  /* Brand constants (from the app icon, NX-DEC-1061): the night bands look the same in both themes. */
  --night: #0B0D24;
  --night-panel: #14173D;
  --night-raised: #1C2050;
  --night-line: #282C5E;
  --night-line-strong: #5D62A0;
  --night-text: #EEF0FF;
  --night-muted: #A9AEDB;
  --violet: #6B4EF2;
  --violet-hover: #5A3EE0;
  --violet-deep: #4A33C9;
  --lilac: #BBA9FF;
  --on-air: #FF5D73;
  /* Premium pass (2026-11): gold is Nexora Pro's colour and only Pro's, always a fill with dark text. */
  --gold: #E7C66A;
  --gold-hover: #F0D488;
  --on-gold: #271A00;
  --bezel: #05061A;
  --code-bg: #0A0C1F;
  --glow: rgba(107, 78, 242, .5);
  --shadow-deep: rgba(2, 3, 14, .85);
  --pending: #F2B54A;
  --pending-soft: rgba(242, 181, 74, .16);
  --lilac-halo: rgba(187, 169, 255, .2);
  --lilac-soft: rgba(187, 169, 255, .14);
  --on-air-halo: rgba(255, 93, 115, .2);
  --notch-ring: rgba(255, 255, 255, .06);
  --on-gold-halo: rgba(39, 26, 0, .3);

  /* One action colour: every primary button on every page. */
  --action: var(--violet);
  --action-hover: var(--violet-hover);
  --on-action: #FFFFFF;

  /* Page tokens: light. */
  --background: #F6F5FC;
  --surface: #FFFFFF;
  --surface-raised: #EEECF9;
  --surface-pressed: #E2DFF4;
  --text-primary: #17163A;
  --text-secondary: #575A7A;
  --border: #E1DFF0;
  --border-strong: #7E7C9C;
  --link: #5537E0;
  --accent-soft: #ECE7FF;
  --warning-bg: #FFF4DE;
  --warning-line: #C77D00;
  --focus: #5537E0;
  --focus-halo: rgba(85, 55, 224, .26);
  --shadow: rgba(23, 22, 58, .14);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Nexora Digits", "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --measure: 68ch;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #10122E;
    --surface: #171A41;
    --surface-raised: #1F2356;
    --surface-pressed: #282D66;
    --text-primary: #EEF0FF;
    --text-secondary: #A9AEDB;
    --border: #282C5E;
    --border-strong: #6A6FA6;
    --link: #C3B4FF;
    --accent-soft: #262062;
    --warning-bg: #2F2614;
    --warning-line: #F2B54A;
    --focus: #C3B4FF;
    --focus-halo: rgba(195, 180, 255, .28);
    --shadow: rgba(2, 3, 14, .5);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 1.0625rem/1.62 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
/* Focus: a two-part ring — a solid outline and a soft halo — on every control, never hover-only. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 8px var(--focus-halo); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); color: var(--text-primary); padding: 8px 14px; border-radius: var(--r-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--display); color: inherit; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.015em; margin: 48px 0 12px; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; margin: 28px 0 6px; }
p, li { max-width: var(--measure); }
p { margin: 0 0 14px; text-wrap: pretty; }
.lead { font-size: 1.15rem; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
code, .mono { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
strong { font-weight: 700; }

/* Site bar */
.site-bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--night) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--night-line) 70%, transparent);
  color: var(--night-text);
}
.site-bar .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--night-text); text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-muted); text-decoration: none; font: 600 .95rem/1 var(--display); padding: 0 14px; border-radius: 999px; transition: color .15s, background-color .15s; }
.site-nav a:hover { color: var(--night-text); background: color-mix(in srgb, var(--night-text) 7%, transparent); }
.site-nav a[aria-current="page"] { color: var(--night-text); background: color-mix(in srgb, var(--lilac) 16%, transparent); }

/* Night bands (masthead, home bands, footer) */
.night, .masthead, .site-foot, .site-bar {
  --focus: var(--lilac);
  --focus-halo: rgba(187, 169, 255, .3);
}
.night, .masthead, .site-foot {
  background: var(--night);
  color: var(--night-text);
  --text-primary: var(--night-text);
  --text-secondary: var(--night-muted);
  --surface: var(--night-panel);
  --surface-raised: var(--night-raised);
  --surface-pressed: #262B63;
  --border: var(--night-line);
  --border-strong: var(--night-line-strong);
  --accent-soft: rgba(187, 169, 255, .14);
  --link: var(--lilac);
}
.masthead { position: relative; overflow: hidden; padding: 56px 0 52px; }
.masthead::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 520px;
  background: radial-gradient(closest-side, rgba(107, 78, 242, .42), transparent 70%);
  pointer-events: none;
}
.masthead .wrap { position: relative; }
.masthead h1 { max-width: 20ch; }
.masthead .lead { color: var(--night-muted); max-width: 60ch; margin-bottom: 0; }
.masthead .crumbs { margin: 0 0 14px; font-size: .92rem; color: var(--night-muted); }
.masthead .crumbs a { color: var(--night-muted); }
.masthead .meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.masthead .row { margin-top: 24px; margin-bottom: 0; }

.content { padding-top: 40px; padding-bottom: 72px; }
.content > :first-child { margin-top: 0; }

/* Buttons (premium pass 2026-11): one family — primary, secondary, outline, text, Pro gold; normal 48 px and
   small 36 px; wide. Pill shape, bold display labels, the same pressed and focus states everywhere. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font: 700 .9375rem/1.2 var(--display); letter-spacing: -0.005em; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.button:hover { background: var(--action-hover); text-decoration: none; }
.button:active { transform: scale(.97); }
.button:focus-visible { border-radius: 999px; outline-width: 2px; }
.button.secondary { background: var(--surface-raised); color: var(--text-primary); }
.button.secondary:hover { background: var(--surface-pressed); }
.button.outline { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.button.outline:hover { background: color-mix(in srgb, var(--text-primary) 7%, transparent); border-color: var(--text-primary); }
.button.text { background: transparent; color: var(--link); padding-left: 14px; padding-right: 14px; }
.button.text:hover { background: var(--accent-soft); }
.button.gold { background: var(--gold); color: var(--on-gold); }
.button.gold:hover { background: var(--gold-hover); }
.button.small { min-height: 36px; padding: 6px 16px; font-size: .8125rem; }
.button.wide { display: flex; width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--link); }
.masthead .chip, .night .chip { background: rgba(187, 169, 255, .14); color: var(--lilac); }
.chip.neutral { background: var(--surface-raised); color: var(--text-secondary); }
.chip.pending { background: var(--pending-soft); color: var(--pending); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); vertical-align: middle; }

/* Notes */
.draft { background: var(--warning-bg); border-left: 4px solid var(--warning-line); border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 28px; font-size: .95rem; max-width: var(--measure); }
.note { background: var(--surface-raised); border-radius: var(--r-md); padding: 16px 20px; margin: 24px 0; max-width: var(--measure); }

/* Panels and grids */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; }
.panel h2, .panel h3 { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.tile { position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; color: inherit; text-decoration: none; }
.tile:hover { border-color: var(--violet); }
.tile h2, .tile h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.tile p { margin: 0; color: var(--text-secondary); }
.tile .go { display: inline-block; margin-top: 14px; color: var(--link); font-weight: 700; }
.icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--link); }
.icon svg { width: 22px; height: 22px; }

/* Lists of entries (add-ons) */
ul.entries { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
ul.entries li { max-width: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; }
.entry-name { font: 650 1.08rem/1.3 var(--display); }
.entry-meta { color: var(--text-secondary); font-size: .92rem; margin: 2px 0 0; }
.label { font-size: .86rem; color: var(--text-secondary); }
ul.entries .row { gap: 8px; }

/* Forms */
.copy-field { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-raised); color: var(--text-primary); font: .88rem var(--mono); }
.search { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.search input, .search select { flex: 1 1 220px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); font: inherit; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; }
.pager span[aria-current] { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 28px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 650; background: var(--surface-raised); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }

/* Support questions */
details.qa { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); margin: 10px 0; max-width: 820px; }
details.qa summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font: 650 1.05rem/1.35 var(--display); position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.qa > div { padding: 0 20px 16px; }

/* Legal documents: contents + reading column */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc h2 { font-size: .95rem; margin: 0 0 10px; color: var(--text-secondary); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2.1em 1fr; padding: 5px 8px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.toc a::before { content: counter(toc) "."; color: var(--link); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-raised); color: var(--text-primary); }
.doc-body { min-width: 0; }
.in-short { background: linear-gradient(135deg, var(--accent-soft), transparent 80%), var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; margin: 0 0 36px; max-width: var(--measure); }
.in-short h2 { margin: 0 0 8px; font-size: 1.25rem; }
.in-short ul { margin: 0 0 8px; padding-left: 1.2em; }
.in-short li { margin: 4px 0; }
.in-short p { margin: 0; font-size: .9rem; color: var(--text-secondary); }
.doc-section { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 30px; }
.doc-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc-section h2 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 12px; font-size: 1.45rem; }
.doc-section h2 .num { flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; color: var(--link); font-weight: 600; }
.doc-section h2 a.anchor { color: inherit; text-decoration: none; }
.doc-contact { margin-top: 40px; }

/* Footer */
.site-foot { padding: 56px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font: 700 .95rem/1.3 var(--body); color: var(--night-text); margin: 0 0 10px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: var(--night-muted); text-decoration: none; }
.foot-grid a:hover { color: var(--night-text); text-decoration: underline; }
.foot-brand p { color: var(--night-muted); font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.foot-note { border-top: 1px solid var(--night-line); margin-top: 40px; padding-top: 20px; color: var(--night-muted); font-size: .88rem; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }

.foot-brand .play-link { color: var(--night-text); font-weight: 700; }
.foot-note { max-width: none; }

/* Home leads with the library promise and one full, readable app screen. */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -35%; width: 1300px; height: 1000px; transform: translateX(-28%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem); font-weight: 750; line-height: .98; letter-spacing: -0.04em; max-width: 13ch; margin-bottom: 20px; font-variation-settings: "opsz" 96; }
.hero .lead { color: var(--night-muted); font-size: 1.2rem; max-width: 40ch; margin-bottom: 24px; }
.hero-actions { margin: 0; }
.hero-status { margin: 22px 0 0; }
.soon { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem/1.3 var(--display); padding: 0 4px; color: var(--text-primary); }
.soon::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 4px var(--lilac-halo); }
/* The TV frame holds a real capture with its full 16:9 screen visible. */
.stage { position: relative; margin: 0; padding: 0 0 22px; width: 100%; }
.tv-frame { position: relative; background: var(--bezel); border-radius: 20px; padding: 10px; box-shadow: 0 0 0 1px var(--night-line), 0 60px 120px -48px var(--shadow-deep), 0 0 140px -40px var(--glow); }
.tv-frame::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 30%; height: 12px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: linear-gradient(var(--night-raised), var(--night-panel)); }
.tv-screen { overflow: hidden; border-radius: 11px; aspect-ratio: 16 / 9; background: var(--bezel); }
.tv-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.phone-frame { position: relative; background: var(--bezel); border-radius: 34px; padding: 9px; box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -30px var(--shadow-deep); }
.phone-frame::before { content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bezel); z-index: 2; box-shadow: 0 0 0 1.5px var(--notch-ring); }
.phone-screen { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 540 / 1077; background: var(--code-bg); }
.phone-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.band { padding: 112px 0; }
.band:not(.night) + .band:not(.night) { padding-top: 8px; }
.band h2 { margin: 0 0 18px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; max-width: 16ch; }
.band .lead { max-width: 54ch; margin-bottom: 0; }
.step { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 650 .95rem/1.2 var(--display); color: var(--text-secondary); }
.step-num { padding-right: 12px; border-right: 1px solid var(--border-strong); color: var(--link); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 01 · The library slider */
.library { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 72px; align-items: center; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.sources li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 600 .9rem/1.3 var(--display); }
.compare { margin: 0; width: 100%; max-width: 360px; justify-self: center; }
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; box-shadow: 0 0 0 1px var(--night-line), 0 0 0 10px var(--focus-halo); }
.compare-stage { --pos: 50%; container-type: inline-size; touch-action: pan-y; user-select: none; }
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-after img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-before { background: var(--code-bg); clip-path: inset(0 calc(100% - var(--pos)) 0 0); padding: 18cqw 6cqw 6cqw; overflow: hidden; }
.compare-before pre { margin: 0; font: 400 3.6cqw/1.9 var(--mono); color: var(--night-muted); white-space: pre; }
.compare-before .m3u-tag { color: var(--lilac); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--night-text); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--night-text); box-shadow: 0 6px 20px -4px var(--shadow-deep); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--night); border-width: 0 0 2px 2px; }
.compare-handle span::before { left: 12px; transform: rotate(45deg); }
.compare-handle span::after { right: 12px; transform: rotate(-135deg); }
.compare-tag { position: absolute; bottom: 24cqw; padding: 5px 11px; border-radius: 999px; font: 700 .75rem/1.2 var(--display); background: color-mix(in srgb, var(--night) 82%, transparent); color: var(--night-text); pointer-events: none; }
.compare-tag-before { left: 5cqw; }
.compare-tag-after { right: 5cqw; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; z-index: 3; }
.compare-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.compare-range::-moz-range-track { height: 100%; background: transparent; }
.compare-range::-moz-range-thumb { width: 2px; height: 100%; border: 0; border-radius: 0; background: transparent; cursor: ew-resize; }
.compare figcaption { margin-top: 18px; color: var(--text-secondary); font-size: .9rem; text-align: center; }


/* 02 · Bento: cell size follows importance — live TV is the big cell, Pro is the only gold one. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.cell { grid-column: span 4; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; }
.cell h3 { margin: 20px 0 8px; font-size: 1.3rem; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--text-secondary); }
.cell-live { grid-column: span 7; background: var(--night); border-color: var(--night-line); color: var(--night-text); --text-secondary: var(--night-muted); --link: var(--lilac); --accent-soft: var(--lilac-soft); position: relative; overflow: hidden; }
.cell-live h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 16ch; }
.cell-live p { max-width: 46ch; }
.cell-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px !important; font: 650 .9rem/1.2 var(--display); color: var(--night-text) !important; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); box-shadow: 0 0 0 4px var(--on-air-halo); }
.cell-card, .cell-player { grid-column: span 5; }
.cell-addons { grid-column: span 7; }
.cell-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px !important; }
.cell-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.cell-pro { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; padding: 32px; background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cell-pro .icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--on-gold); color: var(--gold); }
.cell-pro .icon svg { width: 26px; height: 26px; }
.cell-pro-text { flex: 1; min-width: 0; }
.cell-pro h3 { margin: 0 0 4px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.cell-pro p { color: var(--on-gold); }
.button.pro-go { flex: none; background: var(--on-gold); color: var(--gold); --focus: var(--on-gold); --focus-halo: var(--on-gold-halo); }
.button.pro-go:hover { background: var(--night); }

/* 03 · Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.privacy .row { margin-top: 32px; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.privacy-points li { max-width: none; padding: 24px 0; border-top: 1px solid var(--night-line); }
.privacy-points li:last-child { border-bottom: 1px solid var(--night-line); }
.privacy-points h3 { margin: 0 0 6px; font-size: 1.2rem; }
.privacy-points p { margin: 0; color: var(--night-muted); }

/* 04 · Free or Pro */
.compare-plans { margin-top: 48px; overflow-x: auto; }
.plans-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; table-layout: fixed; }
.plans-table th, .plans-table td { padding: 18px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; background: transparent; }
.plans-table thead th, .plans-table thead td { border-bottom: 1px solid var(--border-strong); font: 700 1.25rem/1.2 var(--display); padding-top: 22px; padding-bottom: 18px; }
.plans-table thead td { width: 38%; }
.plans-table tbody th { font: 650 1rem/1.35 var(--display); color: var(--text-primary); }
.plans-table td { color: var(--text-secondary); }
.plans-table td span { display: block; padding-left: 32px; }
.plans-table .mark { float: left; width: 20px; height: 20px; margin-top: 2px; color: var(--link); }
.plans-table td.mark-limit .mark, .plans-table td.mark-off .mark { color: var(--text-secondary); }
.plans-table td.plan-pro { color: var(--text-primary); }
.plans-table th:last-child, .plans-table td.plan-pro { background: var(--accent-soft); }
.plans-table thead th:last-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.plans-table tbody tr:last-child td.plan-pro { border-radius: 0 0 var(--r-md) var(--r-md); }
.plans-table tbody tr:last-child th, .plans-table tbody tr:last-child td { border-bottom: 0; }
.pro-badge { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 700 1.05rem/1.2 var(--display); }
.pro-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: 32px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pro-strip h3 { margin: 0 0 6px; font-size: 1.3rem; }
.pro-strip p { margin: 0; color: var(--text-secondary); }
.pro-strip .row { justify-content: flex-end; }

/* 05 · Questions */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details.qa { max-width: none; margin: 0 0 12px; border-radius: var(--r-md); }
.faq details.qa summary { min-height: 44px; }
.faq-more { margin-top: 20px; }
@media (min-width: 961px) { .faq > :first-child { position: sticky; top: 104px; } }

/* Closing */
.closing { text-align: center; padding: 120px 0; border-top: 1px solid var(--night-line); }
.closing h2 { margin: 0 auto 16px; max-width: 18ch; }
.closing .lead { margin: 0 auto 32px; }
.closing .row { justify-content: center; max-width: none; }

/* Narrow screens */
@media (max-width: 960px) {
  .hero .wrap, .library, .privacy, .faq, .split { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 88px; }
  .library, .privacy, .faq { gap: 48px; }
  .stage { max-width: 680px; margin: 0; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cell { grid-column: span 3; }
  .cell-live, .cell-addons, .cell-pro { grid-column: span 6; }
  .cell-card, .cell-player { grid-column: span 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; background: var(--surface); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .site-bar .wrap { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  html { scroll-padding-top: 112px; }
  .site-bar .wrap { gap: 4px 12px; }
  .site-nav { margin: 0; flex: 1 0 100%; flex-wrap: wrap; }
  .site-nav a { padding-inline: clamp(5px, 2vw, 12px); white-space: nowrap; font-size: .875rem; }
  .masthead { padding: 40px 0 36px; }
  .hero { padding: 32px 0 48px; }
  .hero .wrap { gap: 24px; }
  .hero .lead { font-size: 1.08rem; }
  .band { padding: 80px 0; }
  .band:not(.night) + .band:not(.night) { padding-top: 0; }
  .tv-frame { padding: 6px; border-radius: 14px; }
  .tv-screen { border-radius: 8px; }
  .compare { max-width: 300px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .cell, .cell-live, .cell-card, .cell-player, .cell-addons, .cell-pro { grid-column: auto; }
  .cell { padding: 24px; }
  .cell-pro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cell:not(.cell-live):not(.cell-pro) { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .cell:not(.cell-live):not(.cell-pro) h3 { margin: 0; font-size: 1.15rem; }
  .cell:not(.cell-live):not(.cell-pro) p { grid-column: 1 / -1; margin-top: 12px; }
  .plans-table, .plans-table thead, .plans-table tbody { display: block; font-size: .95rem; }
  .plans-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--border); }
  .plans-table tbody tr:last-child { border-bottom: 0; }
  .plans-table thead td { display: none; }
  .plans-table th, .plans-table td { padding: 12px 12px; border-bottom: 0; }
  .plans-table thead tr { border-bottom-color: var(--border-strong); }
  .plans-table thead th, .plans-table thead td { border-bottom: 0; font-size: 1.1rem; padding: 14px 12px; }
  .plans-table tbody th { grid-column: 1 / -1; padding: 16px 12px 0; }
  .plans-table td span { padding-left: 28px; }
  .plans-table .mark { width: 18px; height: 18px; }
  .plans-table thead th:last-child, .plans-table tbody tr:last-child td.plan-pro { border-radius: 0; }
  .plans-table th:last-child, .plans-table td.plan-pro { background: transparent; }
  .plans-table td.plan-pro { color: var(--text-primary); font-weight: 700; }
  .pro-strip { grid-template-columns: 1fr; padding: 24px; }
  .pro-strip .row { justify-content: flex-start; }
  .closing { padding: 88px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-section h2 { font-size: 1.25rem; }
  /* Tables become stacked rows with their column names. */
  table.stack thead { position: absolute; left: -9999px; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 10px 14px; }
  table.stack th, table.stack td { border: 0; padding: 4px 0; overflow-wrap: anywhere; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--text-secondary); }
}

/* The one orchestrated moment: the phone rises in front of the TV. */
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) {
  .button, .site-nav a, .cell-pro { transition: none; }
  .button:active { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Windows contrast themes: buttons, cells and the slider keep a visible edge and focus. */
@media (forced-colors: active) {
  .button, .button.secondary, .button.text { border: 1px solid ButtonText; }
  .soon::before, .now-dot { background: CanvasText; box-shadow: none; }
  .cell, .pro-strip { border: 1px solid CanvasText; }
  .compare-handle, .compare-handle span { background: CanvasText; }
  .compare-frame:has(.compare-range:focus-visible) { outline: 3px solid Highlight; }
}
