/* latticetv.com. System fonts only: nothing is fetched from a third party. */

:root {
  --navy-950: #070A13;
  --navy-900: #0B0F20;
  --navy-850: #10152B;
  --navy-800: #161C38;
  --navy-700: #222A4F;
  --jelly: #B07DFF;
  --jelly-strong: #9A5CFF;
  --jelly-deep: #6B3FD1;

  /* Light theme (system light). The mark never sits on these surfaces. */
  --bg: #F5F4FA;
  --surface: #FFFFFF;
  --surface-2: #EEEBF7;
  --line: #DAD6E8;
  --text: #15172B;
  --muted: #545873;
  --link: #5B2FC4;
  --win: #4A23B0;
  --focus: #6B3FD1;
  --btn-bg: #6B3FD1;
  --btn-text: #FFFFFF;
  --btn-hover: #5A2FC0;
  --error: #B3261E;
  --shadow: 0 1px 2px rgb(21 23 43 / 6%), 0 8px 24px rgb(21 23 43 / 6%);

  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark theme, and the "dark island" bands that always stay navy (they carry the mark). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --surface: var(--navy-850);
    --surface-2: var(--navy-800);
    --line: #262D52;
    --text: #E9EAF6;
    --muted: #A4A8C8;
    --link: #C7A4FF;
    --win: #D2B6FF;
    --focus: #C7A4FF;
    --btn-bg: var(--jelly);
    --btn-text: #14092B;
    --btn-hover: #C29BFF;
    --error: #FFB4AB;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
.dark-island {
  --surface: rgb(16 21 43 / 88%);
  --surface-2: var(--navy-800);
  --line: #2A3259;
  --text: #E9EAF6;
  --muted: #A4A8C8;
  --link: #C7A4FF;
  --focus: #C7A4FF;
  --btn-bg: var(--jelly);
  --btn-text: #14092B;
  --btn-hover: #C29BFF;
  --error: #FFB4AB;
  color-scheme: dark;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgb(176 125 255 / 16%), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgb(60 80 200 / 14%), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 0.08em 0.35em; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.on-dark-muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.xsmall { font-size: 0.8rem; margin: 0.75rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--btn-bg); color: var(--btn-text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 650; color: var(--link); margin-bottom: 0.9rem; }
.dark-island .eyebrow { color: #C7A4FF; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.2rem); color: var(--text); opacity: 0.92; max-width: 62ch; }

/* Header: always navy so the brand tile reads correctly. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgb(7 10 19 / 88%);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  --btn-bg: var(--jelly); --btn-text: #14092B; --btn-hover: #C29BFF; --focus: #C7A4FF;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.site-header .brand, .site-header .site-nav a:not(.btn) { color: #E9EAF6; }
.brand-tile { border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%); }
.brand-word { font-weight: 750; font-size: 1.15rem; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--jelly); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
@media (max-width: 420px) { .site-nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text);
  font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, var(--link) 12%, transparent); }

/* Hero */
.hero { padding: 36px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.04; max-width: 13ch; letter-spacing: -0.03em; }
.hero h1, .signup-copy h2 { background: linear-gradient(100deg, #FFFFFF 0%, #E9DDFF 55%, #C7A4FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-bottom: 1.4em; }
.hero sup { font-size: 0.55em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 0.8rem; color: var(--muted); max-width: 62ch; }
.hero-mark { display: block; order: -1; width: 200px; filter: drop-shadow(0 20px 34px rgb(0 0 0 / 50%)); }
@media (min-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero-mark { order: 0; width: 100%; max-width: 460px; justify-self: end; }
}

/* Cards and the form */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.dark-island .card { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgb(0 0 0 / 35%), inset 0 1px 0 rgb(255 255 255 / 5%); }
@media (min-width: 560px) { .card { padding: 28px; } }
.waitlist-card { scroll-margin-top: 76px; }
.card-title { font-size: 1.45rem; margin-bottom: 0.35em; }

.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: 1rem/1.4 var(--font); color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px;
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.75; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.88rem; margin: 6px 0 0; }
.field.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 4px; }
.field.check label { font-weight: 450; font-size: 0.9rem; margin: 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--jelly); }

.profile { border-top: 1px solid var(--line); margin: 14px 0 4px; padding-top: 12px; }
.profile summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; padding: 6px 0; list-style-position: outside; }
.profile summary .muted { font-weight: 450; }
.profile[open] summary { margin-bottom: 12px; }
.profile-grid { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .profile-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-2);
  font-size: 0.9rem; cursor: pointer;
}
.chip input { margin: 0; width: 18px; height: 18px; }
.chip:has(input:checked) { border-color: var(--jelly); background: color-mix(in srgb, var(--jelly) 16%, var(--surface-2)); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .chip { justify-content: center; padding: 6px 4px; }
.scale-legend { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 0.8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:not(:empty) { margin: 10px 0 12px; min-height: 0; }
.form-status { min-height: 1.4em; margin: 6px 0 10px; font-size: 0.92rem; color: var(--error); }
.form-status:empty { margin: 0; min-height: 0; }
.thanks:focus { outline: none; }
.thanks h2 { color: var(--text); }
.thanks h2::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 6px; background: var(--jelly); margin-bottom: 16px; }

/* Section rhythm: open space, separated by soft background bands, not boxes. */
.section-h, .row-copy h2, .smart-head h2, .requirements h2, .signup-copy h2 {
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 760; max-width: 16ch;
}
.band {
  background:
    radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--jelly) 9%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 75%, transparent) 18%, color-mix(in srgb, var(--surface-2) 75%, transparent) 82%, transparent);
}

/* Benefits */
.benefits { padding: 64px 0 40px; }
.benefit-grid { display: grid; gap: 40px 48px; }
@media (min-width: 680px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 10px; }
.benefit p { margin: 0 0 10px; color: var(--muted); }
.benefit .proof { color: var(--win); font-weight: 600; font-size: 0.93rem; margin: 0; }
.b-icon { width: 30px; height: 30px; color: var(--link); }
.benefits-cta { margin: 48px 0 0; }

/* "The smart stuff" lead-in */
.smart-head { padding: 72px 0 8px; text-align: left; }
.smart-head .lede { color: var(--muted); }

/* Feature rows: copy + visual, alternating sides on desktop, stacked on phone. */
.row { padding: 64px 0; scroll-margin-top: 60px; }
.row-grid { display: grid; gap: 40px; align-items: center; }
.row-copy > p:not(.eyebrow) { font-size: 1.08rem; max-width: 54ch; }
.row-visual { min-width: 0; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 900px) {
  .row { padding: 104px 0; }
  .row-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .row-grid.flip .row-copy { order: 2; }
}
.facts { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); }
.facts li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--link); }
.facts strong { color: var(--text); font-weight: 650; }
.visual-cap { margin: 14px 0 0; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.huge { display: block; font-size: clamp(2.8rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--win); font-variant-numeric: tabular-nums; }

/* Distiller: typographic, no box */
.distill { width: 100%; max-width: 440px; }
.distill-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distill-line .big { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 760; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.distill-line .muted-num { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.distill-line .win { color: var(--win); }
.distill-saved { padding: 26px 0 8px; }
.distill-saved .label { margin-top: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.92rem; }
.distill-rules { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.distill-rules span { display: inline-flex; align-items: center; gap: 6px; }
.distill-rules svg { width: 16px; height: 16px; color: var(--link); }

/* History: three big ratios */
.ratios { display: grid; gap: 18px; width: 100%; max-width: 440px; }
.ratio { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ratio > span:last-child { color: var(--muted); font-weight: 600; }

/* Speed: the one dense table */
.stat-table { margin: 0; width: 100%; max-width: 540px; }
.stat-table figcaption { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.stat-table table { font-size: 0.9rem; }
.stat-table thead th { background: transparent; border-bottom: 1.5px solid var(--line); }
.stat-table th, .stat-table td { padding: 10px 10px; }
.stat-table th:first-child { padding-left: 0; }
.stat-table td:last-child, .stat-table th:last-child { padding-right: 0; }
.stat-table td.num { white-space: nowrap; }
.stat-foot { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 420px) { .stat-table th, .stat-table td { padding: 8px 6px; font-size: 0.8rem; } }

/* Initial load: two dense tables under the speed row */
.initial-load { margin-top: 64px; scroll-margin-top: 60px; }
.il-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 760; margin: 0 0 8px; }
.il-sub { color: var(--muted); margin: 0 0 24px; }
.il-grid { display: grid; gap: 40px; }
.il-grid .stat-table { max-width: none; }
@media (min-width: 1000px) { .il-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.il-dressed > * { border-top: 1.5px solid var(--line); }
.il-dressed th .muted { font-weight: 450; }
.il-grid .stat-table { overflow-x: auto; }
.reports table { font-size: 0.86rem; }
.reports td, .reports th { white-space: normal; }
.reports td:nth-child(3) { color: var(--muted); }
@media (max-width: 640px) {
  .reports thead { display: none; }
  .reports table, .reports tbody, .reports tr { display: block; }
  .reports tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .reports tr > * { display: inline; border: 0; padding: 0; }
  .reports tr > th { display: block; margin-bottom: 2px; }
  .reports td:nth-child(2) { color: var(--text); }
  .reports td:nth-child(3)::before, .reports td:nth-child(4)::before { content: " · "; color: var(--muted); }
  .il-dressed th .muted { display: block; }
}

/* Security + quality lanes */
.callout { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 650; line-height: 1.4; color: var(--text); border-left: 3px solid var(--jelly); padding-left: 16px; margin: 1.2em 0 0.4em; max-width: 52ch; }
.callout-note { font-size: 0.85rem; color: var(--muted); padding-left: 19px; margin-bottom: 1.2em; max-width: 60ch; }
.requires { margin-top: 1.2em; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.sheet { background: #151A35; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.sheet.quiet { opacity: 0.7; }
.sheet-row { display: flex; gap: 10px; align-items: center; }
.sheet-row b { display: block; font-size: 13px; }
.sheet-row small { display: block; color: var(--muted); font-size: 11px; }
.dev-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #222A4F; color: #C7A4FF; font: 700 10px var(--font); text-transform: uppercase; }
.sheet-btn { margin-top: 10px; padding: 9px; border-radius: 999px; text-align: center; font-weight: 650; background: #B07DFF; color: #14092B; }
.sheet-btn.ghost { background: transparent; color: #C7A4FF; box-shadow: inset 0 0 0 1.5px #3A3F6A; margin-top: 8px; }
.lanes { max-width: 460px; }
.lanes td, .lanes th { white-space: normal; }
.lanes code { font-size: 1rem; font-weight: 700; background: transparent; padding: 0; color: var(--text); }

/* Device mockups. Always dark: they're screens. */
.phone, .tv { --text: #E9EAF6; --muted: #A4A8C8; color: var(--text); font-size: 13px; line-height: 1.35; }
.phone { width: 270px; max-width: 78vw; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 44px; background: linear-gradient(145deg, #3A3F5C, #12152A); box-shadow: 0 40px 80px rgb(7 10 19 / 40%), inset 0 0 0 1.5px rgb(255 255 255 / 10%); }
.phone-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 20% 0%, rgb(176 125 255 / 18%), transparent 60%), linear-gradient(180deg, #0E1228, #070A13); padding: 0 14px; }
.phone-top { height: 34px; display: grid; place-items: center; }
.phone-island { width: 84px; height: 22px; border-radius: 999px; background: #000; }
.phone-title { font-size: 24px; font-weight: 760; letter-spacing: -0.02em; margin: 6px 2px 8px; }
.phone-sub { margin: 0 2px 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.chat { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bubble { margin: 0; padding: 8px 11px; border-radius: 16px; max-width: 84%; }
.bubble.me { align-self: flex-end; background: #7C4DEB; color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: #1C2244; border-bottom-left-radius: 5px; }
.bubble b { color: #E3D2FF; }
.chat-input { margin: 8px 0; padding: 9px 12px; border-radius: 999px; background: #151A35; color: var(--muted); }
.tabbar { display: flex; justify-content: space-around; margin: auto -14px 0; padding: 10px 6px 18px; background: rgb(14 18 40 / 92%); border-top: 1px solid #232A4E; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: currentColor; opacity: 0.35; }
.tabbar .on { color: #C7A4FF; }
.tabbar .on::before { opacity: 1; }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.poster { position: relative; isolation: isolate; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px; }
.poster span { font-weight: 700; font-size: 10.5px; line-height: 1.15; text-shadow: 0 1px 4px rgb(0 0 0 / 60%); }
.poster small { font-size: 9px; color: rgb(233 234 246 / 75%); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.p1::before { background: radial-gradient(70% 50% at 50% 30%, #4B3F73, transparent), linear-gradient(180deg, #1B1530, #07060E); }
.p2::before { background: radial-gradient(80% 40% at 30% 40%, #6E6A88, transparent), linear-gradient(180deg, #2C2E45, #10111C); }
.p3::before { background: linear-gradient(160deg, #5B3FA8, #241B4D 60%, #120D26); }
.p4::before { background: radial-gradient(60% 40% at 70% 30%, #B07DFF, transparent 70%), linear-gradient(180deg, #3D2A75, #140E2B); }
.p5::before { background: radial-gradient(60% 50% at 50% 20%, #8F8FA8, transparent), linear-gradient(180deg, #2A2A33, #0A0A0E); }

.tv { width: 100%; max-width: 560px; }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 14px; padding: 4% 4.5%; border: 8px solid #15182B; box-shadow: 0 40px 80px rgb(7 10 19 / 40%); background: radial-gradient(90% 70% at 10% 0%, rgb(176 125 255 / 20%), transparent 60%), linear-gradient(180deg, #0E1228, #070A13); display: flex; flex-direction: column; gap: 6%; overflow: hidden; }
.tv-stand { width: 26%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #15182B; }
.tv-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(12px, 2.6vw, 15px); }
.sync-chip { font-size: clamp(9px, 1.9vw, 11px); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgb(176 125 255 / 18%); color: #D7C2FF; white-space: nowrap; }
.sync-chip.ok { background: rgb(120 220 170 / 15%); color: #A8F0CB; }
.np-grid { display: grid; gap: 4%; grid-template-columns: 1fr 1fr; }
.np { display: flex; gap: 8%; align-items: center; background: rgb(255 255 255 / 4%); border-radius: 10px; padding: 5%; }
.np .poster { width: 34%; flex: none; padding: 3px; }
.np .poster span { font-size: clamp(5px, 1.1vw, 8px); }
.np-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: clamp(8px, 1.8vw, 12px); }
.np-meta span { color: var(--muted); font-size: 0.85em; }
.meter { display: block; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 10%); margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: #B07DFF; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: auto; }
.gauges div { background: rgb(255 255 255 / 4%); border-radius: 8px; padding: 3% 6%; display: flex; justify-content: space-between; font-size: clamp(8px, 1.8vw, 12px); color: var(--muted); }
.gauges b { color: var(--text); }

/* Requirements: support matrix with status chips */
.requirements { padding: 72px 0 88px; scroll-margin-top: 60px; }
.requirements .lede { color: var(--muted); margin-bottom: 1.6em; }
.table-wrap.matrix { border: 0; background: transparent; border-radius: 0; }
.matrix thead th { background: transparent; border-bottom: 1.5px solid var(--line); }
.matrix th, .matrix td { padding: 11px 12px 11px 0; }
.matrix tbody th { white-space: normal; min-width: 9em; }
.matrix tr.group th { padding-top: 26px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--line); }
.matrix td:last-child { color: var(--muted); min-width: 12em; }
@media (max-width: 600px) {
  .matrix thead { display: none; }
  .matrix table, .matrix tbody { display: block; }
  .matrix tbody tr:not(.group) { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; border-bottom: 1px solid var(--line); }
  .matrix tbody tr.group, .matrix tbody tr.group th { display: block; }
  .matrix tbody tr:not(.group) > * { border-bottom: 0; }
  .matrix tbody td:nth-child(2) { padding-right: 0; }
  .matrix tbody td:last-child { grid-column: 1 / -1; padding-top: 0; min-width: 0; font-size: 0.9rem; }
  .matrix tbody td:last-child:empty { display: none; }
}
.chip-s { display: inline-block; white-space: nowrap; font-size: 0.76rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.chip-s.ok { color: #0E6B45; background: #D5F5E6; }
.chip-s.req { color: #4A23B0; background: #E8DDFF; }
.chip-s.rec { color: #4A23B0; background: #E8DDFF; }
.chip-s.soon { color: #7A4A00; background: #FCEBCB; }
.chip-s.opt { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.chip-s.plan { color: #2C4A9A; background: #DCE6FF; }
@media (prefers-color-scheme: dark) {
  .chip-s.ok { color: #A8F0CB; background: rgb(120 220 170 / 14%); }
  .chip-s.req, .chip-s.rec { color: #D7C2FF; background: rgb(176 125 255 / 18%); }
  .chip-s.soon { color: #FFD79A; background: rgb(255 190 90 / 13%); }
  .chip-s.plan { color: #B9CBFF; background: rgb(120 150 255 / 15%); }
}

/* Pricing + waitlist */
.signup { padding: 64px 0 80px; }
.signup-grid { display: grid; gap: 36px; align-items: start; }
.signup .card { border-color: rgb(255 255 255 / 6%); }
@media (min-width: 960px) {
  .signup { padding: 112px 0; }
  .signup-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .signup-copy { position: sticky; top: 100px; }
}

/* Inner pages */
.page-head { padding: 48px 0 40px; }
.page-head.tall { padding: 72px 0 96px; min-height: 52vh; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 22ch; }
.page-head p:last-child { margin-bottom: 0; }
.prose { padding-top: 36px; padding-bottom: 72px; }
.prose h2 { margin-top: 2em; scroll-margin-top: 76px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--jelly); border-radius: 10px; padding: 16px 18px; }

/* Dense tables: they scroll inside their own box, never the page. */
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
td.num.long { min-width: 11em; white-space: normal; }
td.win { color: var(--win); font-weight: 650; }
.cta-band { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 2.5em; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cta-band p { margin: 0; }

/* Footer: always navy, carries the brand tile. */
.site-footer {
  background: var(--navy-950); color: #C9CBE0; border-top: 1px solid rgb(255 255 255 / 7%); padding: 36px 0 44px;
  --link: #C7A4FF; --focus: #C7A4FF; --muted: #9A9EBE;
}
.site-footer .brand { color: #E9EAF6; margin-bottom: 8px; }
.footer-grid { display: grid; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: #E1E2F0; text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin: 0; max-width: 80ch; }
.footer-brand p { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 2fr; } .footer-legal { grid-column: 1 / -1; } }
