/* KAIROS website. Layout after claude.com (split hero with signup card and a loop, numbered points, horizontal
   tab row with a stage, centred sentence picker, centred FAQ, closing input bar, column footer), dressed in the
   panel's look: After Effects grey, one muted lilac, Inter for text, Anton headlines printed as halftone dots,
   lilac halftone clouds, film grain. No neon, no glow, square corners. Apple rules: respond on press, short
   symmetric motion, translucent header with a scroll-edge fade, reduced motion/transparency/contrast. */
@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --accent: #A79CDB;
  --accent-hover: #B9B0E5;
  --accent-active: #968AD0;
  --on-accent: #1B1730;
  --bg: #232323;
  --band: #2A2A2A;
  --raise: #303030;
  --foot: #1A1A1A;
  --ink: #FFFFFF;
  --muted: rgba(255,255,255,.64);
  --faint: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.3);
  --warn: #E0857E;
  --display: "Anton", Impact, sans-serif;
  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(88px, 10vw, 144px);
  --header-h: 72px;
}
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--on-accent); }
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1312px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

#grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay; }
#halftoneBg { position: fixed; left: 0; bottom: 0; z-index: 0; pointer-events: none; }
main, .footer, .header { position: relative; z-index: 1; }

/* ---------- type ---------- */
.lede { color: var(--muted); font-size: clamp(17px, .5vw + 14px, 19px); line-height: 1.55; max-width: 36em; }
.center .lede, .lede.center { margin-inline: auto; }
h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.01em; }
.ht { font: 400 clamp(52px, 8vw, 104px)/.92 var(--display); text-transform: uppercase; position: relative; z-index: 1; }
.js .ht.drawn { font-size: 0; line-height: 0; }
.ht canvas { position: relative; pointer-events: none; }
.ht .sr { position: absolute; }
.cloud { position: absolute; z-index: 0; pointer-events: none; }

/* ---------- buttons: respond on press ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:active { background: var(--accent-active); border-color: var(--accent-active); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
@media (hover: hover) {
  .btn:hover { border-color: var(--ink); }
  .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
}

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(35,35,35,.74); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(rgba(35,35,35,.5), rgba(35,35,35,0)); pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease-out); }
.header.scrolled::after { opacity: 1; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand b { font: 600 21px/1 var(--sans); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav .link { color: var(--muted); font-size: 15px; text-decoration: none; transition: color 160ms var(--ease-out); }
.nav .link:hover, .nav .link:active { color: var(--ink); }
.nav .btn.ghost { margin-left: 6px; }
.nav .btn + .btn { margin-left: -18px; }
.menu-btn { display: none; }

/* ---------- hero: split, copy centred in the left half, loop on the right ---------- */
.hero { padding: 24px 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy > *:not(.cloud) { position: relative; z-index: 1; }
.hero-copy .cloud { left: 10%; top: -60px; width: 90%; height: 360px; }
.hero-copy .ht { margin-bottom: 22px; }
.sub { color: var(--muted); font-size: clamp(17px, .6vw + 14px, 20px); margin-bottom: 40px; }

.signup.card { width: 100%; max-width: 440px; display: grid; gap: 12px; padding: 28px; background: var(--raise); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }
.signup input[type="email"] { width: 100%; min-height: 50px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 0; font-size: 16px; text-align: center; transition: border-color 160ms var(--ease-out); }
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--accent); }
.signup .btn { width: 100%; min-height: 50px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { color: var(--faint); font-size: 13px; line-height: 1.45; }
.msg { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.msg:empty { display: none; }
.msg[data-state="error"] { color: var(--warn); }
.msg[data-state="ok"] { color: var(--accent); }
.chip { margin-top: 22px; }
.ae { display: inline-grid; place-items: center; width: 22px; height: 22px; background: #00005B; color: #9999FF; font: 700 11px/1 var(--sans); letter-spacing: 0; }

.hero-media { position: relative; justify-self: end; aspect-ratio: 4 / 5; width: min(100%, calc(min(100svh - var(--header-h) - 48px, 860px) * .8)); min-width: min(100%, 420px); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vid-btn { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(35,35,35,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: transform 120ms var(--ease-out); }
.vid-btn:active { transform: scale(.94); }
.vid-btn span { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.vid-btn.paused span { width: 0; height: 0; border: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* ---------- sections ---------- */
.sec { padding: 0 0 var(--section); }
.band { background: var(--band); padding-top: var(--section); margin-bottom: var(--section); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .ht { margin-bottom: 22px; }

/* numbered points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.points li { border-top: 1px solid var(--line); padding-top: 18px; }
.num { display: block; color: var(--faint); font: 500 12px/1 var(--sans); letter-spacing: .08em; margin-bottom: 28px; }
.points h3 { font-size: 20px; margin-bottom: 12px; }
.points p { color: var(--muted); font-size: 16px; max-width: 30em; }

/* docked in After Effects */
.ae-shot img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); background: var(--bg); }
.ae-shot figcaption { margin-top: 14px; color: var(--faint); font: 500 13px/1.3 var(--sans); text-align: center; }

/* panel: horizontal tab row + showcase */
.tabrow { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: clamp(40px, 6vw, 80px); }
.tab { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; border: 1px solid transparent; background: none; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out); }
.tab:active { transform: scale(.97); }
.tab b { font: 600 14px/1.25 var(--sans); color: var(--muted); transition: color 160ms var(--ease-out); }
.tab span { color: var(--faint); font-size: 13px; line-height: 1.4; }
.tab[aria-selected="true"] { background: var(--raise); border-color: var(--line); }
.tab[aria-selected="true"] b { color: var(--ink); }
.tab[aria-selected="true"] span { color: var(--muted); }
@media (hover: hover) { .tab:hover b { color: var(--ink); } }

.showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); color: var(--muted); font: 500 13px/1 var(--sans); margin-bottom: 20px; }
.show-title { font: 600 clamp(28px, 2.4vw + 12px, 40px)/1.12 var(--sans); letter-spacing: -.025em; margin-bottom: 18px; }
.show-text { color: var(--muted); font-size: 17px; max-width: 30em; }
.show-copy > * { transition: opacity 180ms var(--ease-out); }
.show-copy.swap > * { opacity: 0; }

.stage { position: relative; display: grid; place-items: center; height: clamp(440px, 46vw, 620px); padding: 40px 24px 0; overflow: hidden; background: var(--raise); border: 1px solid var(--line); }
.stage .cloud { inset: 0; width: 100%; height: 100%; opacity: .9; }
.stage .shot-stack, .stage > img { position: relative; z-index: 1; align-self: start; width: min(380px, 80%); }
.shot-stack { display: grid; }
.shot-stack img, .stage > img { width: 100%; height: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line); background: var(--bg); }
.shot-stack img { grid-area: 1 / 1; opacity: 0; transition: opacity 200ms var(--ease-out); }
.shot-stack img.on { opacity: 1; }
.stage figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(rgba(48,48,48,0), var(--raise) 60%); color: var(--faint); font: 500 12px/1.3 var(--sans); text-align: center; }

/* captions */
.cap-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); grid-column: span 2; }
.cap:nth-child(n+4) { grid-column: span 3; }
.cap img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.cap figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 16px; font: 600 14px/1.2 var(--sans); }
.cap figcaption i { font-style: normal; font-weight: 400; color: var(--faint); }

/* auto-edit: sentence picker */
.sentence { text-align: center; font: 500 clamp(24px, 2.2vw + 10px, 38px)/1.3 var(--sans); letter-spacing: -.02em; max-width: 22em; margin: 0 auto clamp(48px, 6vw, 80px); }
.pick { border: 0; padding: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.picker { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.col-head { font: 600 18px/1.2 var(--sans); margin-bottom: 18px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 15px; }
.steps li::before { content: "0" counter(s); color: var(--faint); font-size: 12px; line-height: 23px; }
.col-note { margin-top: 20px; color: var(--faint); font-size: 14px; line-height: 1.5; }
.grades li { position: relative; padding: 7px 0 7px 22px; color: var(--faint); font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 160ms var(--ease-out); }
.grades li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--line-strong); transition: background-color 160ms var(--ease-out), width 200ms var(--ease-out); }
.grades li[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.grades li[aria-selected="true"]::before { background: var(--accent); width: 14px; }
@media (hover: hover) { .grades li:hover { color: var(--ink); } }
.stage.tall { height: clamp(440px, 40vw, 560px); }
.stage.tall figcaption { color: var(--muted); font-size: 14px; }
.grade-stage { height: auto; padding: 36px 24px 60px; }
.grade-stage figcaption { background: none; padding: 0 20px 20px; }
.grades li.orig { margin-bottom: 8px; }
/* Before/after: the chosen CC is clipped to the right of the bar; corners stay square like the rest of the site. */
.compare { position: relative; z-index: 1; width: min(340px, 78%); aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare.plain { cursor: default; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* One layer per CC, decoded once. The layer is shifted right by x and its image back left by x, so only the part right
   of the bar shows; both are transforms, so the sweep runs on the compositor without repainting the photo. */
.cmp-clip { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: transform; }
.cmp-clip.on { visibility: visible; }
.cmp-clip img { will-change: transform; }
.cmp-track { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.92); outline: none; transition: opacity 200ms var(--ease-out); }
.cmp-bar span { position: absolute; top: 50%; left: 50%; width: 12px; height: 36px; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: transform 160ms var(--ease-out); }
.compare.dragging .cmp-bar span { transform: translate(-50%, -50%) scale(.9); }
.cmp-bar:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp-tag { position: absolute; left: 12px; top: 12px; color: #fff; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); transition: opacity 200ms var(--ease-out); }
.compare.plain .cmp-bar { opacity: 0; }

/* pricing: two plan cards in the layout of a classic pricing page (icon, name, price, button, checklist) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 32px; background: var(--raise); border: 1px solid var(--line); border-radius: 24px; }
.plan-icon { display: block; margin-bottom: 40px; color: var(--ink); }
.plan-name { font: 600 clamp(28px, 1.4vw + 18px, 36px)/1.1 var(--sans); letter-spacing: -.025em; }
.plan-tag { margin-top: 8px; color: var(--muted); font-size: 16px; }
.plan-price { display: flex; flex-direction: column; gap: 8px; margin: 44px 0 36px; min-height: 66px; }
.plan-price b { font: 600 28px/1.1 var(--sans); letter-spacing: -.02em; }
.plan-price span { color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.btn.plan-cta { width: 100%; min-height: 48px; border-radius: 10px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.plan-cta:active { background: var(--accent-active); border-color: var(--accent-active); }
@media (hover: hover) { .btn.plan-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }
.btn.plan-cta.is-soon, .btn.plan-cta.is-soon:hover, .btn.plan-cta.is-soon:active { background: rgba(255,255,255,.08); border-color: var(--line); color: var(--faint); cursor: not-allowed; pointer-events: none; transform: none; }
.plan-sub { margin-top: 12px; text-align: center; color: var(--faint); font-size: 12px; }
.plan-incl { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font: 600 14px/1.3 var(--sans); }
.checks { display: grid; gap: 14px; margin-top: 20px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 10px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.notes { display: grid; gap: 10px; max-width: 920px; margin: 32px auto 0; color: var(--faint); font-size: 13px; line-height: 1.55; }
.notes a { color: var(--muted); }

/* pages: first block under the header, and the link list on the home page */
.page-top { padding-top: clamp(40px, 5vw, 72px); }
.band.page-top { margin-top: 24px; padding-top: var(--section); }
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.more a { display: block; height: 100%; padding-top: 18px; border-top: 1px solid var(--line); text-decoration: none; transition: border-color 160ms var(--ease-out); }
.more h3 { font-size: 20px; margin-bottom: 12px; }
.more p { color: var(--muted); max-width: 30em; margin-bottom: 22px; }
.more .go { color: var(--accent); font: 600 14px/1 var(--sans); }
.more .go::after { content: " \2192"; }
@media (hover: hover) { .more a:hover { border-top-color: var(--accent); } }
.nav .link[aria-current="page"] { color: var(--ink); }
.plug-note { margin-top: 20px; text-align: center; }

/* real page loads, softened: a short cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
.header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* requirements: hairline rows, label left, value right */
.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 16px/1.5 var(--sans); }
.specs dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* faq */
#faq .ht { margin-bottom: clamp(36px, 5vw, 56px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 17px/1.4 var(--sans); letter-spacing: -.01em; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 22px; font-weight: 300; transition: transform 200ms var(--ease-out), color 160ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 38em; }

/* closing input bar */
.access { margin-bottom: 0; }
.access .ht { margin-bottom: 22px; }
.signup.bar { position: relative; max-width: 520px; margin: 36px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; background: var(--raise); border: 1px solid var(--line-strong); transition: border-color 160ms var(--ease-out); }
.signup.bar:focus-within { border-color: var(--accent); }
.signup.bar input[type="email"] { min-height: 44px; border: 0; background: transparent; text-align: left; padding: 0 12px; }
.signup.bar .btn { width: auto; min-height: 44px; }
.signup.bar .msg { grid-column: 1 / -1; padding: 4px 12px 6px; text-align: left; }

/* footer */
.footer { background: var(--foot); padding: clamp(56px, 7vw, 88px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--faint); font-size: 14px; }
.foot-brand .brand img { width: 32px; height: 32px; border-radius: 7px; }
.foot-brand .brand b { font-size: 18px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col p { color: var(--faint); font-size: 13px; margin-bottom: 4px; }
.foot-col a { color: var(--ink); font-size: 14px; text-decoration: none; opacity: .86; }
.foot-col a:hover { opacity: 1; text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* gentle entrance below the fold: opacity + a few px, never blurred; visible without JS */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .tabrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-self: center; width: min(100%, calc(78svh * .8)); min-width: 0; }
  .points, .more { grid-template-columns: minmax(0, 1fr); }
  .num { margin-bottom: 14px; }
  .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .picker .stage { grid-column: 1 / -1; grid-row: 1; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: none; font: 600 14px/1 var(--sans); cursor: pointer; }
  .menu-btn:active { transform: scale(.97); }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav .link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn, .nav .btn.ghost, .nav .btn + .btn { margin: 12px 0 0; min-height: 48px; }
  .tabrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabrow::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-width: 140px; scroll-snap-align: start; }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .cap, .cap:nth-child(n+4) { grid-column: auto; }
  .signup.card { padding: 20px; }
  .plans, .more { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .signup.bar { grid-template-columns: minmax(0, 1fr); }
  .signup.bar .btn { width: 100%; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .nav, .vid-btn { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: rgba(255,255,255,.85); --faint: rgba(255,255,255,.7); --line: rgba(255,255,255,.4); }
}
