/* Systune — the Safelight Bay, on the web.
   Tokens come from /DESIGN.md; the app's ramp and accent are reproduced exactly so the site
   and the product read as one thing. */

:root {
  /* ramp */
  --bay-black: #0B0805;
  --bay-ground: #16100A;
  --bay: #211A12;
  --tray: #2D251B;
  --raised-tray: #3A3226;
  --wash: #4A4133;
  --dry-print: #5E5546;
  --fixer-thin: #7A7062;
  --wet-print: #9C927F;
  --fixer-silver: #C2B8A6;
  --developed-silver: #E9E2D6;
  --enamel: #F4EFE6;

  /* accents */
  --amber: #F2A33A;
  --deep-amber: #C97A1A;
  --amber-glow: rgba(242, 163, 58, 0.16);
  --fixed-print: #9FC3B5;
  --pulled-print: #E4573D;
  --careful-chalk: #F0C27A;

  --line: rgba(233, 226, 214, 0.10);
  --line-strong: rgba(233, 226, 214, 0.18);

  --sans: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --r: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bay-ground);
  color: var(--developed-silver);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--amber); color: var(--bay-black); padding: 10px 16px; border-radius: 8px;
  font-weight: 700;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ── type ─────────────────────────────────────────────────────────── */

h1 {
  font: 700 clamp(40px, 7.2vw, 78px)/1.03 var(--sans);
  letter-spacing: -0.033em;
  margin: 0 0 22px;
}
h2 {
  font: 700 clamp(28px, 4.2vw, 44px)/1.12 var(--sans);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
h3 { font: 700 18px/1.3 var(--sans); letter-spacing: -0.01em; margin: 0 0 8px; }

.amber { color: var(--amber); }

.eyebrow {
  font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fixer-thin); margin: 0 0 22px;
}
.kicker {
  font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.lede {
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; color: var(--fixer-silver);
  max-width: 62ch; margin: 0 0 32px;
}
.lede strong { color: var(--developed-silver); font-weight: 700; }
.section-lede {
  font-size: 18px; line-height: 1.6; color: var(--fixer-silver); max-width: 66ch; margin: 0 0 44px;
}
.center.section-lede { margin-inline: auto; }

/* ── prose pages ──────────────────────────────────────────────────── */

/* The privacy page and anything else that is mostly text. These were inline `style=`
   attributes until CSP `style-src 'self'` started blocking them, which left the page
   rendering at hero sizes. Rules belong in the stylesheet; the CSP stays tight. */

.prose { max-width: 720px; padding: 72px 0 96px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); }
.prose h2 { font-size: 24px; line-height: 1.3; margin: 44px 0 14px; }
.prose p { color: var(--fixer-silver); margin: 0 0 16px; }
.prose strong { color: var(--developed-silver); }
.prose code {
  font: 400 0.9em/1 var(--mono); color: var(--careful-chalk);
  background: rgba(255, 255, 255, 0.05); padding: 2px 6px; border-radius: 5px;
}

code {
  font: 400 0.88em/1 var(--mono);
  background: var(--tray); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; color: var(--careful-chalk);
}

.link { color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }

/* ── nav ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 16, 10, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(11, 8, 5, 0.86); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { border-radius: 7px; }
.brand-name { font: 700 16px/1 var(--sans); letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--fixer-silver); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--developed-silver); }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; background: var(--btn-bg); color: var(--developed-silver);
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(170deg, #FFBC5A, var(--amber) 42%, var(--deep-amber));
  color: #23150A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 26px -10px rgba(242, 163, 58, 0.8);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 14px 34px -10px rgba(242,163,58,.95); }
.btn-ghost { border-color: var(--wash); background: rgba(233, 226, 214, 0.03); }
.btn-ghost:hover { border-color: var(--dry-print); background: rgba(233, 226, 214, 0.07); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn-block { display: flex; width: 100%; margin-top: 6px; }
.btn-sub { font-weight: 500; font-size: 0.82em; opacity: 0.72; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { font-size: 13.5px; color: var(--fixer-thin); margin: 14px 0 0; }

/* ── hero ─────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero-in { position: relative; z-index: 2; }

/* the safelight itself: a warm bloom behind the fold */
.safelight {
  position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 42% at 50% 22%, rgba(242, 163, 58, 0.20), transparent 70%),
    radial-gradient(38% 30% at 74% 8%, rgba(226, 88, 40, 0.13), transparent 72%);
  animation: breathe 11s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translate3d(0, 0, 0) scale(1); }
  50%      { opacity: 1;    transform: translate3d(0, 14px, 0) scale(1.04); }
}

/* very fine film grain, so the flat dark never looks like a dead PNG */
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 40px 0 0;
}
.trust li {
  font-size: 12.5px; color: var(--wet-print);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  background: rgba(233, 226, 214, 0.02);
}

/* ── window chrome around every screenshot ────────────────────────── */

.shot { position: relative; }
.win {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bay);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.win-bar {
  display: flex; align-items: center; gap: 7px; padding: 0 13px; height: 34px;
  background: linear-gradient(180deg, var(--tray), var(--bay));
  border-bottom: 1px solid var(--line);
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--raised-tray); }
.win-bar i:nth-child(1) { background: #E4573D; }
.win-bar i:nth-child(2) { background: #E8B14A; }
.win-bar i:nth-child(3) { background: #9FC3B5; }
.win-title {
  font: 600 12px/1 var(--sans); color: var(--fixer-thin);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.win { position: relative; }

.hero-shot { margin-top: 54px; perspective: 1400px; }
.hero-shot .win { transition: transform 0.5s var(--ease); transform-style: preserve-3d; }
/* Parallax (--px), pointer tilt (--tx/--ty) and the hero's sink (--gone) each write their own
   property; this is the single place they are combined. Writing `transform` from more than one
   of them meant the last one to run silently cancelled the others — and cancelled the .reveal
   entrance on the same element too. */
.win {
  --px: 0px; --tx: 0deg; --ty: 0deg; --gone: 0;
  transform: translate3d(0, calc(var(--px) + var(--gone) * 26px), 0)
             scale(calc(1 - var(--gone) * 0.04))
             rotateY(var(--ty)) rotateX(var(--tx));
}

/* floating figures over the hero shot */
/* The figures float in the page margin beside the window, never over the product UI. */
.chip {
  position: absolute; z-index: 3; white-space: nowrap;
  background: rgba(33, 26, 18, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 11px 15px; text-align: left;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.95);
  animation: bob 7s ease-in-out infinite;
}
/* The number and its unit are one line. `b` is a block, so a bare "GB" after it dropped to a
   line of its own and chip 1 read "10.0 / GB" while the other two looked fine. */
.chip b {
  display: flex; align-items: baseline; gap: 5px;
  font: 500 23px/1 var(--mono); color: var(--amber); font-variant-numeric: tabular-nums;
}
.chip b i { font-style: normal; font-size: 14px; color: var(--careful-chalk); }
.chip em { display: block; font-style: normal; font-size: 11px; color: var(--fixer-thin); margin-top: 5px; letter-spacing: 0.04em; }
.chip-2 b { color: var(--fixed-print); }

/* Below the shot by default: a row that always fits, never covers the product UI, and needs
   no guesswork about where the window's own content happens to be. */
.chips {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px;
}
.chips .chip { position: static; animation: none; flex: 1 1 0; min-width: 150px; }

/* Only float them beside the window once there is genuinely room in the margin for one:
   the wrap is 1120, so a 150px chip plus a gap needs about 1440 of viewport. */
@media (min-width: 1440px) {
  .chips {
    position: absolute; inset: 0; margin: 0; display: block; pointer-events: none;
  }
  .chips .chip {
    position: absolute; width: max-content; min-width: 0;
    animation: bob 7s ease-in-out infinite;
  }
  .chip-1 { left: -150px; top: 8%; }
  .chip-2 { right: -150px; top: 38%; animation-delay: -2.3s; }
  .chip-3 { left: -150px; bottom: 12%; animation-delay: -4.6s; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── bands & cards ────────────────────────────────────────────────── */

.band { padding: 96px 0; background: var(--bay-black); border-block: 1px solid var(--line); }
section { padding: 96px 0; }
section.wrap { padding-inline: 0; }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v-col { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; background: var(--bay-ground); }
.v-col h3 { margin-bottom: 14px; }
.v-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.v-col li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--fixer-silver); }
.v-col li::before {
  position: absolute; left: 0; top: -1px; font: 700 15px/1.5 var(--sans);
}
.v-bad li::before { content: "✕"; color: var(--dry-print); }
.v-bad { opacity: 0.82; }
.v-good { border-color: rgba(242, 163, 58, 0.3); background: linear-gradient(180deg, rgba(242,163,58,.05), transparent 60%), var(--bay-ground); }
.v-good li::before { content: "✓"; color: var(--fixed-print); }

.numbers { padding: 76px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.num b {
  display: block; font: 500 clamp(40px, 5.4vw, 60px)/1 var(--mono);
  color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.num span { display: block; margin: 10px 0 6px; font-weight: 700; font-size: 15px; }
.num em { font-style: normal; font-size: 13.5px; color: var(--fixer-thin); line-height: 1.45; display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px;
  background: var(--bay-ground); transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--wash); transform: translateY(-3px); }
.card p { margin: 0; font-size: 15px; color: var(--fixer-silver); line-height: 1.55; }
.safety-grid { margin-top: 8px; }
.audit-link { margin-top: 40px; }

/* ── feature rows ─────────────────────────────────────────────────── */

.feature {
  display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 64px; align-items: center;
  padding: 72px 0;
}
.feature.flip .feat-copy { order: 2; }
.feature p { color: var(--fixer-silver); font-size: 16.5px; }
.feature p strong { color: var(--developed-silver); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--fixer-silver); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--fixed-print); font-weight: 700;
}
.ticks li.muted-li { color: var(--fixer-thin); }
.ticks li.muted-li::before { content: "–"; color: var(--dry-print); }

.feat-stat {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--fixer-thin);
}
.feat-stat b { color: var(--amber); font: 500 19px/1 var(--mono); }

.feat-shot { perspective: 1400px; }
.feat-shot .win { transition: transform 0.5s var(--ease); }

/* the swap control under the disk / tune shots */
[data-swap] .win { position: relative; }
[data-swap] img { transition: opacity 0.45s var(--ease); }
[data-swap] img[data-swap-b] { position: absolute; inset: 34px 0 0; opacity: 0; }
[data-swap].on-b img[data-swap-a] { opacity: 0; }
[data-swap].on-b img[data-swap-b] { opacity: 1; }

.swap-tabs {
  display: inline-flex; gap: 2px; margin-top: 14px; padding: 3px;
  background: var(--bay); border: 1px solid var(--line); border-radius: 10px;
}
.swap-tabs button {
  border: 0; background: transparent; color: var(--fixer-thin); cursor: pointer;
  font: 600 13px/1 var(--sans); padding: 8px 15px; border-radius: 7px; transition: all 0.2s;
}
.swap-tabs button.on { background: var(--raised-tray); color: var(--developed-silver); }

/* the audit score dial */
.dial { position: relative; width: 112px; height: 112px; margin-top: 34px; }
.dial svg { transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.dial-track { stroke: var(--tray); }
.dial-arc {
  stroke: url(#none); stroke: var(--amber);
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.dial-num {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dial-num b { font: 500 30px/1 var(--mono); color: var(--developed-silver); font-variant-numeric: tabular-nums; }
.dial-num span { font-size: 12px; color: var(--fixer-thin); }

/* ── surfaces + terminal ──────────────────────────────────────────── */

.surfaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 52px; }
.surface { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bay-ground); }
.surface h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.surface p { margin: 0; font-size: 14.5px; color: var(--fixer-thin); line-height: 1.5; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.term {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-strong);
  background: #100B07; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 0 13px; height: 32px;
  background: var(--bay); border-bottom: 1px solid var(--line);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised-tray); }
.term-bar span { margin-left: 8px; font: 600 11.5px/1 var(--sans); color: var(--fixer-thin); }
.term-body {
  margin: 0; padding: 20px 22px; min-height: 290px;
  font: 400 13.5px/1.62 var(--mono); color: var(--fixer-silver);
  white-space: pre-wrap; word-break: break-word;
}
.term-body .p { color: var(--amber); }
.term-body .ok { color: var(--fixed-print); }
.term-body .wn { color: var(--careful-chalk); }
.term-body .dm { color: var(--fixer-thin); }
.term-body .hi { color: var(--developed-silver); }
.caret {
  display: inline-block; width: 8px; height: 15px; vertical-align: -2px;
  background: var(--amber); animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── pricing ──────────────────────────────────────────────────────── */

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 840px; margin: 0 auto; }
.price {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 30px 26px;
  background: var(--bay-ground); display: flex; flex-direction: column;
}
.price.featured {
  border-color: rgba(242, 163, 58, 0.36);
  background: linear-gradient(180deg, rgba(242, 163, 58, 0.07), transparent 44%), var(--bay-ground);
  box-shadow: 0 30px 70px -40px rgba(242, 163, 58, 0.5);
}
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-head h3 { margin: 0; }
.tag {
  font: 700 10px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: #23150A; background: var(--amber); padding: 5px 9px; border-radius: 999px;
}
.amount { margin: 16px 0 20px; font: 500 46px/1 var(--mono); color: var(--developed-silver); letter-spacing: -0.02em; }
.amount em { font: 400 14px/1 var(--sans); font-style: normal; color: var(--fixer-thin); margin-left: 9px; }
.founding {
  margin: -8px 0 20px; padding: 9px 13px; border-radius: 10px;
  background: rgba(242, 163, 58, 0.11); border: 1px solid rgba(242, 163, 58, 0.28);
  font-size: 13.5px; color: var(--careful-chalk);
}
.founding b { font: 500 16px/1 var(--mono); color: var(--amber); margin-right: 4px; }
.price .ticks { margin-bottom: 24px; flex: 1; }
.price-note { font-size: 12.5px; color: var(--fixer-thin); margin: 12px 0 0; text-align: center; }

.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 840px; margin: 22px auto 0; padding: 24px 30px;
  border: 1px dashed var(--wash); border-radius: 16px;
}
.trial h3 { margin-bottom: 4px; }
.trial p { margin: 0; font-size: 14.5px; color: var(--fixer-thin); }

/* ── faq ──────────────────────────────────────────────────────────── */

.faq h2 { margin-bottom: 36px; }
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bay-ground);
  transition: border-color 0.2s;
}
details[open] { border-color: var(--wash); }
summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--amber); font: 400 22px/1 var(--mono); transition: transform 0.25s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--fixer-silver); font-size: 15.5px; line-height: 1.6; }

/* ── closer + footer ──────────────────────────────────────────────── */

.closer { position: relative; overflow: hidden; padding: 110px 0 120px; text-align: center; }
.closer-light { inset: auto -10% -60% -10%; height: 620px; }
.closer .cta { justify-content: center; margin-top: 30px; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; background: var(--bay-black); }
.footer-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 6px; }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand span { font-size: 13.5px; color: var(--fixer-thin); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--fixer-silver); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--amber); }
.foot-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--dry-print);
}

/* ── reveal on scroll ─────────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .grid-4, .surfaces { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .feature.flip .feat-copy { order: 0; }
  .nav-links { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  section, .band { padding: 64px 0; }
  .hero { padding: 52px 0 70px; }
  .grid-3, .grid-4, .surfaces, .versus, .prices { grid-template-columns: 1fr; }
  .chip { display: none; }
  .hero-shot { margin-top: 34px; }
  .btn-lg { width: 100%; }
  .cta { flex-direction: column; }
  .trial { flex-direction: column; align-items: stretch; text-align: left; }
  .term-body { font-size: 12px; padding: 16px; }
}

/* ── motion off ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dial-arc { stroke-dashoffset: 46; }
}

/* ── waitlist ─────────────────────────────────────────────────────── */

.waitlist-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(242, 163, 58, 0.09), transparent 70%),
    var(--bay-black);
}
.wl { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }
.wl-copy h2 { margin-bottom: 16px; }
.wl-copy .section-lede { margin-bottom: 24px; }

.wl-form {
  border: 1px solid rgba(242, 163, 58, 0.3); border-radius: 16px; padding: 28px;
  background: linear-gradient(180deg, rgba(242, 163, 58, 0.07), transparent 52%), var(--bay-ground);
  box-shadow: 0 34px 80px -46px rgba(242, 163, 58, 0.55);
}
.wl-label {
  display: block; font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fixer-thin); margin-bottom: 10px;
}
.wl-row { display: flex; gap: 10px; }
.wl-row input {
  flex: 1; min-width: 0;
  background: var(--bay); border: 1px solid var(--wash); border-radius: 11px;
  padding: 13px 15px; color: var(--developed-silver);
  font: 400 16px/1.2 var(--sans);
  transition: border-color 0.2s, background 0.2s;
}
.wl-row input::placeholder { color: var(--dry-print); }
.wl-row input:hover { border-color: var(--dry-print); }
.wl-row input:focus { outline: none; border-color: var(--amber); background: var(--tray); }
.wl-row input[aria-invalid="true"] { border-color: var(--pulled-print); }
.wl-row .btn { flex: 0 0 auto; }

.wl-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--fixer-silver); }
.wl-msg.ok { color: var(--fixed-print); }
.wl-msg.bad { color: var(--pulled-print); }
.wl-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--fixer-thin); line-height: 1.5; }

/* The form is replaced by this once someone has joined. */
.wl-done { text-align: center; padding: 8px 0 4px; }
.wl-done .tick {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(159, 195, 181, 0.14); color: var(--fixed-print);
  font-size: 22px; font-weight: 700;
  animation: pop 0.45s var(--ease);
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.wl-done h3 { margin-bottom: 6px; }
.wl-done p { margin: 0; font-size: 14.5px; color: var(--fixer-thin); }

@media (max-width: 960px) { .wl { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 560px) {
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
}

/* ── scroll-driven ────────────────────────────────────────────────── */

/* Reading progress, along the bottom edge of the sticky header. */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  overflow: hidden; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--deep-amber), var(--amber) 55%, var(--careful-chalk));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* The screenshots drift a little against their copy as they pass. `transform` is set by the
   scroll handler; the tilt on hover writes to `.win` inside, so the two never fight. */
[data-parallax] { will-change: transform; }

/* The hero shot dims as it leaves, so the fold has some depth. The movement that goes with it
   is folded into .win's single transform above; only the fade lives here, because opacity is
   nobody else's. */
.hero-shot .win { transform-origin: 50% 0; opacity: calc(1 - var(--gone) * 0.4); }

@media (prefers-reduced-motion: reduce) {
  /* No drift, no sink, no dim — but keep the progress bar, which is information. */
  .win { --px: 0px !important; --tx: 0deg !important; --ty: 0deg !important; --gone: 0 !important; }
}
