/* GridTV website. Dark only, like the app. Tokens: website/DESIGN.md section 3; cell fills: the app's design-system.md section 4. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --bg: #08080B;
  --surface: #101015;
  --surface-2: #17171D;
  --border: #26262E;
  --border-strong: #3A3A46;
  --text: #F4F4F7;
  --text-2: #A1A1AA;
  --link: #9DA5FA;
  --accent: #4F46E5;
  --accent-brand: #6366F1;
  --accent-glow: rgba(99, 102, 241, .25);
  --live: #FF453A;
  --catchup: #30D158;
  --soon: #FF9F0A;
  --cell-now: #512224;
  --cell-next: #513918;
  --panel-top: #161928;
  --panel-bottom: #090B14;
  --hairline: rgba(255, 255, 255, .08);
  --bloom: radial-gradient(60% 50% at 85% 0%, var(--accent-glow), transparent 70%);

  --font-display: "Bricolage Grotesque", "Bricolage Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", "Instrument Fallback", ui-sans-serif, system-ui, sans-serif;
  --step--1: clamp(0.82rem, 0.80rem + 0.1vw, 0.875rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.17vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-2: clamp(1.56rem, 1.4rem + 0.8vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --r-1: 6px; --r-2: 16px;
  --gutter: 16px;
  --wrap: 1180px;
  --label-w: 220px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-drop: cubic-bezier(.3, 1.2, .4, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-color: var(--border-strong) var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--link);
}
::selection { background: rgba(99, 102, 241, .45); color: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; scroll-margin-top: 5rem; }
p, li { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 120ms ease, text-underline-offset 120ms ease; }
a:hover { text-underline-offset: 6px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: 1px 4px; border-radius: var(--r-1); }
strong { font-weight: 650; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: var(--r-1); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */

.hero-title, .section-title, .doc h1, .download h2, .not-found h1 { font-family: var(--font-display); }
.hero-title { font-size: var(--step-4); line-height: .98; font-weight: 750; font-stretch: 78%; letter-spacing: -0.025em; }
.section-title { font-size: var(--step-3); line-height: 1.08; font-weight: 700; font-stretch: 85%; letter-spacing: -0.015em; max-width: 22ch; }
h3 { font-size: var(--step-1); line-height: 1.35; font-weight: 600; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--text); }
.fine { font-size: var(--step--1); line-height: 1.5; color: var(--text-2); }
.meta { font-size: var(--step--1); color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  background: var(--accent); color: #fff; border-radius: var(--r-1);
  font-weight: 650; text-decoration: none;
  transition: background-color 120ms ease, transform 80ms ease;
}
.button:hover { background: color-mix(in srgb, var(--accent), white 8%); }
.button:active { transform: translateY(1px); }
.badge { display: inline-block; flex: none; border-radius: var(--r-1); }
.badge img { height: 40px; width: auto; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.links a { padding-block: 4px; }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 20; background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); min-height: 64px; padding-block: var(--s-3); }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 22%; }
.wordmark { font-family: var(--font-display); font-weight: 750; font-stretch: 80%; letter-spacing: -0.02em; font-size: 1.375rem; line-height: 1; }
.nav { flex-basis: 100%; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 2px; }
.header-badge { display: none; }
.menu-button {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-1);
  background: var(--surface); color: var(--text); font: 600 var(--step--1)/1 var(--font-body); cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--surface-2); }

@media (max-width: 999.98px) {
  .js .nav:not(.is-open) { display: none; }
  .js .nav ul { flex-direction: column; padding-bottom: var(--s-3); }
  .js .nav a { min-height: 48px; width: 100%; border-bottom: 1px solid var(--border); font-size: var(--step-0); color: var(--text); }
  .nav.is-open { animation: menu-in 180ms var(--ease-out); }
  .js .header-inner { column-gap: var(--s-3); }
  .menu-button { order: 2; }
  .nav { order: 3; }
  /* The header leaves on the way down and comes back on the way up, carrying the App Store badge. */
  .js .site-header { position: sticky; top: 0; transition: translate 250ms var(--ease-out), box-shadow 120ms ease; }
  .js .site-header.is-away { box-shadow: 0 1px 0 var(--border); }
  .js .site-header.is-hidden { translate: 0 -100%; }
  .js .is-away .header-badge { display: inline-block; order: 1; }
  .js .nav a[aria-current="location"] { box-shadow: inset 2px 0 0 var(--live); padding-left: 12px; }
}
@media (max-width: 379.98px) { .js .is-away .wordmark { display: none; } }
@media (min-width: 1000px) {
  .site-header { position: sticky; top: 0; }
  .site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--border); }
  .header-inner { flex-wrap: nowrap; min-height: 72px; padding-block: 0; }
  .nav { flex-basis: auto; }
  .nav ul { gap: 0 4px; }
  .nav a { min-height: 40px; padding-inline: 12px; border-radius: var(--r-1); transition: color 120ms ease, background-color 200ms ease, box-shadow 200ms ease; }
  .nav a:hover { background-color: var(--surface-2); }
  .nav a[aria-current="location"] { background-color: var(--cell-now); box-shadow: inset 1px 0 0 var(--live); }
  .menu-button { display: none; }
  .header-badge { display: inline-block; }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 1000px) {
    .site-header::after { animation: hairline linear both; animation-timeline: scroll(root); animation-range: 0 24px; }
  }
}
@keyframes hairline { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Back to top: added by script after one screen of scrolling. */
.to-top {
  position: fixed; right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: var(--r-1); cursor: pointer; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong), 0 12px 32px -12px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), visibility 0s 200ms, box-shadow 120ms ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; translate: 0; transition-delay: 0s; }
.to-top:hover { box-shadow: inset 0 0 0 1px var(--link), 0 12px 32px -12px rgba(0, 0, 0, .8); }
.to-top .icon { rotate: -90deg; }

/* ---------- sections ---------- */

.section { padding-block: var(--s-8); }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } }
.section + .section { border-top: 1px solid var(--border); }
.section-title + * { margin-top: var(--s-6); }
.section-title + .lead { margin-top: var(--s-4); max-width: 60ch; color: var(--text-2); }

/* ---------- hero ---------- */

.hero { position: relative; padding-block: var(--s-6) var(--s-8); background: var(--bloom); }
.hero-grid { display: grid; gap: var(--s-5); }
.hero-copy, .hero-act { display: grid; gap: var(--s-4); max-width: 40rem; }
.boundary { color: var(--text-2); }
.hero-act .cta-row { margin-top: var(--s-1); }
.hero-visual { container-type: inline-size; margin-top: var(--s-5); }
@media (min-width: 1000px) {
  .hero { padding-block: var(--s-6) var(--s-8); }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s-5) var(--s-8); align-items: end; }
  .hero-title { grid-column: 1 / -1; }
  .hero-act { padding-bottom: 4px; }
  .hero-visual { grid-column: 1 / -1; margin-top: var(--s-2); }
}

/* ---------- the guide (signature component) ---------- */

.guide {
  --label-w: 120px; --row-h: 56px; --slot: 96px; --pad: 12px;
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  background: radial-gradient(130% 120% at 100% 0%, var(--panel-top), var(--panel-bottom) 72%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
@media (min-width: 1000px) {
  .ruler-day, .ch-name { background: none; box-shadow: none; }
  .guide { --label-w: 176px; --row-h: 68px; --pad: 20px; --slot: calc((100cqw - var(--label-w) - 2 * var(--pad) - 2px) / 6); overflow: hidden; }
}
.guide-inner { position: relative; width: max-content; padding: 0 var(--pad) var(--s-2); }
.ruler { display: flex; height: 52px; border-bottom: 1px solid var(--hairline); }
.ruler-day {
  position: sticky; left: 0; z-index: 3; width: var(--label-w); flex: none; padding-top: 12px;
  font-size: var(--step--1); font-weight: 600; color: var(--text);
  background: var(--panel-bottom); box-shadow: 1px 0 0 var(--hairline);
}
.times { display: flex; list-style: none; }
.times li {
  width: var(--slot); flex: none; padding: 12px 0 0 7px; border-left: 1px solid var(--hairline);
  font: 600 var(--step--1)/1.2 var(--font-display); font-stretch: 75%; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ch { display: flex; align-items: center; height: var(--row-h); border-bottom: 1px solid var(--hairline); }
.ch:last-of-type { border-bottom: 0; }
.ch-name {
  position: sticky; left: 0; z-index: 3; align-self: stretch;
  display: flex; align-items: center; gap: 10px; width: var(--label-w); flex: none; padding-right: 10px;
  font-size: var(--step--1); font-weight: 600; line-height: 1.2;
  background: var(--panel-bottom); box-shadow: 1px 0 0 var(--hairline);
}
.logo {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: var(--r-1);
  font: 750 .6875rem/1 var(--font-display); font-stretch: 85%; letter-spacing: .02em; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.cells { display: flex; width: calc(var(--slot) * 6); overflow: hidden; }
.cell {
  position: relative; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  height: calc(var(--row-h) - 12px); margin-right: 4px; padding: 0 10px;
  border-radius: var(--r-1); overflow: hidden;
  background: var(--surface);
}
.w-1 { width: calc(var(--slot) * 1 - 4px); } .w-2 { width: calc(var(--slot) * 2 - 4px); } .w-3 { width: calc(var(--slot) * 3 - 4px); }
.w-4 { width: calc(var(--slot) * 4 - 4px); } .w-5 { width: calc(var(--slot) * 5 - 4px); } .w-6 { width: calc(var(--slot) * 6 - 4px); }
.cell b { font-size: var(--step--1); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell i { font-style: normal; font-size: .75rem; line-height: 1.2; color: var(--text-2); white-space: nowrap; }
.cell.past { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.cell.past b { color: var(--text-2); }
.cell.now { background: var(--cell-now); box-shadow: inset 1px 0 0 var(--live); }
.cell.next { background: var(--cell-next); }
.cell.now i { color: #FFB0AA; }
.cell.next i { color: #FFD08A; }
.cell.catchup i { color: #8BE3A3; }
.catchup::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--catchup); }

.nowline { position: absolute; z-index: 2; width: 2px; margin-left: -1px; background: var(--live); transform-origin: top; }
.now-time {
  position: absolute; z-index: 2; translate: -50% 0; padding: 2px 7px; border-radius: var(--r-1);
  background: var(--live); color: var(--bg);
  font: 700 .8125rem/1.2 var(--font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.now-time:empty { display: none; }
.guide .nowline, .guide .now-time { left: calc(var(--pad) + var(--label-w) + var(--slot) * var(--now, 75) / 30); transition: left 600ms var(--ease-out); }
.guide .nowline { top: 34px; bottom: var(--s-2); }
.guide .now-time { top: 30px; }

/* Guide cell, large: the same fills as the hero cells, packed 4px apart. The fill lives on ::before so it can wipe in alone. */
.slot { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); border-radius: var(--r-1); }
.slot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface-2); }
.slot.now::before { background: var(--cell-now); box-shadow: inset 1px 0 0 var(--live); }
.slot.next::before { background: var(--cell-next); }
.slot.past::before { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.slot :is(h3, h4) { font-size: var(--step-0); font-weight: 650; line-height: 1.3; }
.slot p { font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.slot.now p { color: #DDBDBA; }
.slot.next p { color: #DBC7A8; }
.slot .slot-tag { margin-top: calc(-1 * var(--s-2)); font-size: .75rem; font-weight: 650; line-height: 1.3; }
.slot.now .slot-tag { color: #FFB0AA; }
.slot.next .slot-tag { color: #FFD08A; }
.slot.catchup .slot-tag { color: #8BE3A3; }
.slot.catchup::after { top: 14px; right: 14px; }

/* ---------- what it is ---------- */

.tenets { list-style: none; border-top: 1px solid var(--border); }
.tenets li { display: grid; gap: var(--s-2) var(--s-6); padding-block: var(--s-5); border-bottom: 1px solid var(--border); }
.tenets h3 { font: 700 var(--step-2)/1.1 var(--font-display); font-stretch: 80%; letter-spacing: -0.01em; }
.tenets p { color: var(--text-2); max-width: 56ch; }
@media (min-width: 900px) { .tenets li { grid-template-columns: 5fr 7fr; align-items: baseline; padding-block: var(--s-6); } }
.trust-list .icon { color: var(--link); margin-bottom: var(--s-3); }
.trust-list h3 { margin-bottom: var(--s-2); }
.trust-list p { color: var(--text-2); }

/* ---------- how it works ---------- */

.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-6); }
.steps li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; }
.steps li::before {
  content: counter(step);
  font: 750 var(--step-4)/.9 var(--font-display); font-stretch: 75%; font-variant-numeric: tabular-nums;
  color: var(--text); margin-bottom: var(--s-3);
}
.steps p { color: var(--text-2); }
.steps li { padding: var(--s-4) 0 0 var(--s-4); border-left: 1px solid var(--border); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
  .steps li { padding: var(--s-5) var(--s-6) 0 var(--s-5); }
}

/* ---------- note ---------- */

.note {
  margin-top: var(--s-7); padding: var(--s-5); max-width: 64ch;
  border: 1px solid var(--border); border-radius: var(--r-1); background: var(--surface);
}
.note-label { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2); font-weight: 650; color: var(--soon); }
.note-label::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 3px; background: rgba(255, 159, 10, .35); box-shadow: inset 0 0 0 1px var(--soon); }
.note p:not(.note-label) { color: var(--text); }
.prose .note { margin-block: var(--s-5) var(--s-6); }

/* ---------- features: four channels of guide cells ---------- */

.lineup {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--hairline); border-radius: var(--r-2);
  background: radial-gradient(130% 120% at 100% 0%, var(--panel-top), var(--panel-bottom) 72%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.channel { display: grid; gap: var(--s-3); padding-block: var(--s-4); }
.channel + .channel { border-top: 1px solid var(--hairline); }
.channel-name { display: flex; align-items: center; gap: 12px; align-self: start; font: 700 var(--step-1)/1.2 var(--font-display); font-stretch: 80%; }
.channel-name .logo { width: 36px; height: 36px; color: var(--link); }
.channel-name .icon { width: 20px; height: 20px; }
.slots { list-style: none; display: grid; gap: 4px; }
.slot-more a { font-weight: 600; font-size: var(--step--1); }
@media (min-width: 760px) {
  .slots { grid-template-columns: repeat(12, 1fr); }
  .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .lineup { padding: var(--s-1) var(--s-5); }
  .channel { grid-template-columns: 176px 1fr; column-gap: 0; padding-block: var(--s-5); }
  .channel-name { position: sticky; top: 96px; padding-top: var(--s-3); }
  .slot-mv { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--s-6); align-items: start; }
  .slot-mv > div { display: grid; gap: var(--s-2); }
}
.swatches { list-style: none; display: flex; gap: 8px; margin-top: var(--s-1); }
.swatches li { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sw-indigo { background: radial-gradient(circle at 30% 25%, #818CF8, #4F46E5 70%); }
.sw-emerald { background: radial-gradient(circle at 30% 25%, #34D399, #059669 70%); }
.sw-burgundy { background: radial-gradient(circle at 30% 25%, #BE123C, #881337 70%); }
.sw-neon { background: radial-gradient(circle at 30% 25%, #FF6482, #FF2D55 70%); }
.sw-none { background: #000; }

/* Multiview: tap a tile to move the sound (the app's 2.5pt accent ring on the audible tile) */
.mv { margin: var(--s-3) 0 0; padding: 0; border: 0; min-width: 0; }
.mv legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--step--1); font-weight: 600; color: var(--text); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 12px; background: #000; max-width: 460px; }
.mv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; cursor: pointer; overflow: hidden;
  box-shadow: 0 0 0 0 transparent; transition: box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out);
  filter: brightness(.62) saturate(.8);
}
.tile:hover { filter: brightness(.78) saturate(.9); }
.mv input:checked + .tile { box-shadow: 0 0 0 2.5px var(--accent-brand); filter: none; }
.mv input:focus-visible + .tile { outline: 3px solid var(--link); outline-offset: 4px; }
.tile-name {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: var(--r-1);
  background: rgba(0, 0, 0, .72); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3;
}
.tile .icon { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; stroke-width: 2; }
.tile .on, .mv input:checked + .tile .off { display: none; }
.mv input:checked + .tile .on { display: block; }
.t-bars { background: linear-gradient(90deg, #BFBFBF 0 14.3%, #BFBF00 0 28.6%, #00BFBF 0 42.9%, #00BF00 0 57.1%, #BF00BF 0 71.4%, #BF0000 0 85.7%, #0000BF 0); }
.t-ramp { background: linear-gradient(90deg, #111 0 12.5%, #2a2a2a 0 25%, #444 0 37.5%, #5f5f5f 0 50%, #7a7a7a 0 62.5%, #959595 0 75%, #b0b0b0 0 87.5%, #cbcbcb 0); }
.t-hatch { background: repeating-linear-gradient(0deg, transparent 0 15px, #d9d9d9 15px 16px), repeating-linear-gradient(90deg, #1b1b1b 0 15px, #d9d9d9 15px 16px); }
.t-pluge { background: linear-gradient(180deg, transparent 0 70%, #0C0C0C 70%), linear-gradient(90deg, #00BFBF 0 25%, #1B1B6B 0 50%, #BF00BF 0 75%, #E8E8E8 0); }
.slot .mv-note { margin-top: var(--s-3); font-size: var(--step--1); max-width: 460px; }

/* ---------- screens ---------- */

.gallery {
  display: flex; gap: var(--s-5); margin-top: var(--s-6);
  padding: 4px max(var(--gutter), calc((100% - var(--wrap)) / 2)) var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.shot { flex: none; width: min(64vw, 248px); margin: 0; scroll-snap-align: start; }
.shot-wide { width: min(86vw, 620px); }
.shot figcaption { margin-top: var(--s-3); font-size: var(--step--1); color: var(--text-2); }
.device { padding: 8px; border-radius: 34px; background: #1A1A20; box-shadow: inset 0 0 0 1px var(--border-strong), 0 24px 60px -24px rgba(0, 0, 0, .6); }
.tablet { border-radius: 26px; padding: 12px; }
.screen {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px;
  aspect-ratio: 1206 / 2622; border-radius: 26px;
  background: radial-gradient(120% 60% at 100% 0%, var(--panel-top), #000 70%);
}
.tablet .screen { aspect-ratio: 4 / 3; border-radius: 16px; }
.ph-id { font: 750 var(--step-2)/1 var(--font-display); font-stretch: 80%; color: var(--text-2); }
.ph-name { font-weight: 650; }
.ph-state { font-size: var(--step--1); color: var(--text-2); line-height: 1.4; }
.ph-flag { align-self: flex-start; margin-top: 8px; padding: 2px 8px; border-radius: var(--r-1); font-size: .75rem; font-weight: 650; color: var(--soon); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .5); }

/* ---------- pricing: the 72 hours as a guide row, then three plan cells ---------- */

.trial { position: relative; margin-top: var(--s-6); }
.trial-ruler { list-style: none; display: flex; padding-bottom: var(--s-2); }
@media (max-width: 759.98px) { .trial-ruler li:not(:first-child) { display: none; } }
.trial-ruler .now-time { position: relative; z-index: 3; translate: none; display: inline-block; }
.trial-row { list-style: none; display: grid; gap: 4px; }
.trial .slot.now::before { box-shadow: inset 2px 0 0 var(--live); }
.trial .nowline { display: none; }
@media (min-width: 760px) {
  .trial-ruler { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 0; border-bottom: 1px solid var(--hairline); }
  .trial-ruler li { padding: 0 0 10px 8px; border-left: 1px solid var(--hairline); font: 600 var(--step--1)/1.2 var(--font-display); font-stretch: 75%; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .trial-ruler li:first-child { padding-left: 0; border-left: 0; }
  .trial-row { grid-template-columns: 3fr 1fr; padding-top: 6px; }
  .trial-row .next::before { mask-image: linear-gradient(90deg, #000 55%, transparent); }
  .trial .nowline { display: block; left: 1px; top: 0; bottom: 0; }
}

.plans { list-style: none; display: grid; gap: 4px; margin-top: var(--s-6); font-variant-numeric: tabular-nums; }
.plan { display: flex; flex-direction: column; padding: var(--s-5); border-radius: var(--r-1); background: var(--surface-2); }
.plan h3 { font: 700 var(--step-1)/1.2 var(--font-display); font-stretch: 80%; }
.price { margin-top: var(--s-4); font: 700 var(--step-4)/.95 var(--font-display); font-stretch: 75%; letter-spacing: -0.02em; color: var(--text); }
.per { margin-top: var(--s-2); }
.renews { margin-top: auto; padding-top: var(--s-5); font-size: var(--step--1); color: var(--text-2); }
.plans-all { margin-top: var(--s-4); }
.pricing .cta-row { margin-top: var(--s-5); }
.pricing .fine { margin-top: var(--s-6); max-width: 72ch; }
.pricing .links { margin-top: var(--s-4); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- trust ---------- */

.trust-list { list-style: none; display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .trust-list { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-8); } }
.trust .links { margin-top: var(--s-7); }

/* ---------- FAQ ---------- */

.faq-group { display: grid; gap: var(--s-3); }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group-title { font-size: var(--step--1); font-weight: 650; color: var(--text-2); }
.faq-items { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding-block: var(--s-3); cursor: pointer; list-style: none;
  font-size: var(--step-1); line-height: 1.35; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .chev { color: var(--text); }
.chev { color: var(--text-2); transition: transform 150ms ease-out, color 120ms ease; }
.faq details[open] .chev { transform: rotate(90deg); color: var(--text); }
.answer { padding-bottom: var(--s-5); max-width: 56ch; color: var(--text-2); }
.faq-more { margin-top: var(--s-5); font-weight: 600; }
.answer p + p { margin-top: var(--s-3); }
@media (min-width: 900px) {
  .faq-group { grid-template-columns: var(--label-w) 1fr; column-gap: var(--s-5); }
  .faq-group-title { padding-top: 18px; font-size: var(--step-0); color: var(--text); }
}
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size 200ms ease, content-visibility 200ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- the last guide row: Up next ---------- */

.download { padding-block: var(--s-8) var(--s-9); border-top: 1px solid var(--border); }
.upnext {
  position: relative; display: grid; gap: var(--s-3); padding: var(--s-4);
  border: 1px solid var(--hairline); border-radius: var(--r-2);
  background: radial-gradient(130% 120% at 100% 0%, var(--panel-top), var(--panel-bottom) 72%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.upnext-ch { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 600; }
.upnext-ch img { border-radius: 22%; }
.upnext-cell { align-items: start; gap: var(--s-4); padding: var(--s-6) var(--s-5); }
.upnext-cell h2 { font: 700 var(--step-3)/1.04 var(--font-display); font-stretch: 78%; letter-spacing: -0.02em; color: var(--text); max-width: 16ch; }
.upnext-cell .slot-tag { margin-top: 0; }
.upnext-cell::before { mask-image: linear-gradient(90deg, #000 35%, transparent 95%); }
.upnext-cell .badge { margin-top: var(--s-2); }
.upnext-cell p + p { margin-top: calc(-1 * var(--s-3)); }
.upnext .nowline { left: calc(var(--s-4) + 1px); top: calc(var(--s-4) + 44px); bottom: var(--s-4); }
.upnext .now-time { left: calc(var(--s-4) + 1px); top: calc(var(--s-4) + 44px - 10px); translate: 0; }
@media (min-width: 1000px) {
  .upnext { grid-template-columns: 176px 1fr; gap: 0; padding: var(--s-5); }
  .upnext-ch { align-self: center; }
  .upnext-cell { padding: var(--s-7) var(--s-7) var(--s-7) var(--s-6); }
  .upnext .nowline { left: calc(var(--s-5) + 176px + 1px); top: var(--s-2); bottom: var(--s-2); }
  .upnext .now-time { left: calc(var(--s-5) + 176px + 1px); top: var(--s-2); translate: -50% -50%; }
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding-block: var(--s-8) var(--s-7); font-size: var(--step--1); color: var(--text-2); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand p { margin-top: var(--s-2); }
.footer-h { font-size: var(--step--1); font-weight: 650; color: var(--text); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; }
.site-footer nav a { display: inline-flex; min-height: 36px; align-items: center; color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { display: grid; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.footer-legal p { max-width: 70ch; }
.footer-legal .badge { margin-top: var(--s-2); justify-self: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- documents: support, legal, articles ---------- */

.doc { padding-block: var(--s-7) var(--s-8); }
.doc-head { padding-bottom: var(--s-6); }
.doc h1 { font-size: var(--step-3); line-height: 1.08; font-weight: 700; font-stretch: 85%; letter-spacing: -0.015em; }
.doc-head .lead, .doc-head .meta { margin-top: var(--s-4); }
.doc-head .lead { color: var(--text-2); max-width: 60ch; }
.doc-head .meta a { color: var(--text-2); }
.toc { margin-bottom: var(--s-7); padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-1); background: var(--surface); }
.toc-h { font-size: var(--step--1); font-weight: 650; color: var(--text-2); margin-bottom: var(--s-2); }
.toc ol { padding-left: 1.25em; display: grid; gap: 2px; }
.toc li::marker { color: var(--text-2); font-variant-numeric: tabular-nums; }
.toc li { padding-block: 3px; }

.prose { max-width: 66ch; line-height: 1.65; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font: 650 var(--step-2)/1.2 var(--font-display); font-stretch: 90%; }
.prose h3 { margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-2); }
.prose em { font-style: italic; }
.prose pre { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-1); background: var(--surface-2); overflow-x: auto; font-size: .875rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.address { line-height: 1.7; }
.after-policy { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); color: var(--text-2); }
.policy h1 { font: 700 var(--step-3)/1.08 var(--font-display); font-stretch: 85%; letter-spacing: -0.015em; margin-bottom: var(--s-5); }

.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--border); }
.prose thead th { color: var(--text-2); font-weight: 650; border-bottom-color: var(--border-strong); }
.prose td:first-child { color: var(--text); }
.prose td em { color: var(--text); }
@media (max-width: 599.98px) {
  .stack-tables table, .stack-tables tbody, .stack-tables tr, .stack-tables td { display: block; }
  .stack-tables thead { display: none; }
  .stack-tables tr { padding-block: var(--s-3); border-bottom: 1px solid var(--border); }
  .stack-tables td { padding: 4px 0; border: 0; }
  .stack-tables td::before { content: attr(data-label); display: block; font-weight: 650; color: var(--text-2); font-size: .75rem; }
}

.cta-row .button { margin-top: var(--s-2); }
.prose .cta-row { margin-top: var(--s-6); }

.cta-panel {
  margin-top: var(--s-8); padding: var(--s-6);
  border: 1px solid var(--hairline); border-radius: var(--r-2);
  background: radial-gradient(130% 120% at 100% 0%, var(--panel-top), var(--panel-bottom) 72%);
}
.cta-panel h2 { font: 700 var(--step-2)/1.15 var(--font-display); font-stretch: 85%; }
.cta-panel p { margin-top: var(--s-3); color: var(--text-2); max-width: 56ch; }
.cta-panel .cta-row { margin-top: var(--s-5); }

.keep-reading { margin-top: var(--s-8); }
.keep-reading > h2 { font-size: var(--step--1); font-weight: 650; color: var(--text-2); margin-bottom: var(--s-3); }
.guide-list { list-style: none; border-top: 1px solid var(--border); }
.guide-list li { padding-block: var(--s-4); border-bottom: 1px solid var(--border); }
.guide-list h3 a { color: var(--text); text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--link); }
.guide-list p { margin-top: 4px; color: var(--text-2); }
.guide-list .meta { margin-top: 6px; }
.guide-group { margin-top: var(--s-7); }
.guide-group-title { font-size: var(--step-0); font-weight: 650; margin-bottom: var(--s-3); }
.narrow-head { max-width: 720px; }
@media (min-width: 900px) {
  .guide-group { display: grid; grid-template-columns: var(--label-w) 1fr; column-gap: var(--s-5); }
  .guide-group-title { padding-top: var(--s-4); }
}

.not-found { min-height: 60vh; display: grid; place-content: center; padding-block: var(--s-9); text-align: center; background: var(--bloom); }
.not-found .wrap { display: grid; justify-items: center; gap: var(--s-4); }
.not-found h1 { font-size: var(--step-3); font-weight: 700; font-stretch: 85%; }

/* ---------- motion: one orchestrated hero moment, then guide-native reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
  .guide .times { animation: fade 200ms linear both; }
  .guide .cells { animation: wipe 450ms var(--ease-out) both; }
  .guide .r-1 .cells { animation-delay: 150ms; }
  .guide .r-2 .cells { animation-delay: 220ms; }
  .guide .r-3 .cells { animation-delay: 290ms; }
  .guide .r-4 .cells { animation-delay: 360ms; }
  .guide .nowline { animation: drop 350ms var(--ease-drop) 800ms both; }
  .guide .now-time { animation: fade 200ms var(--ease-out) 1050ms both; }

  @supports (animation-timeline: view()) {
    .lineup .slot { view-timeline: --cell-in block; }
    .lineup .slot::before { animation: wipe linear both; animation-timeline: --cell-in; animation-range: entry 0% entry 60%; }
    .lineup .slot > * { animation: fade linear both; animation-timeline: --cell-in; animation-range: entry 25% entry 85%; }
  }
}
@keyframes fade { from { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

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

/* ---------- forced colours and print ---------- */

@media (forced-colors: active) {
  .cell, .slot, .plan, .guide, .lineup, .upnext, .note, .toc, .cta-panel, .tile, .to-top { border: 1px solid CanvasText; }
  .nowline, .now-time { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .mv input:checked + .tile { outline: 3px solid Highlight; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer nav, .badge, .hero-visual, .gallery, .mv, .skip, .cta-panel .cta-row, .download, .to-top { display: none !important; }
  a { color: #000; }
  .doc a[href^="http"]::after, .doc a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .slot, .plan, .lineup, .note, .toc, .cta-panel { background: none; border: 1px solid #999; }
  .slot::before { display: none; }
  .lead, .fine, .boundary, .answer, .prose td, .meta { color: #000; }
}
