/* VHS Fitness — marketing page.
   Layout: a tape-deck hero (the channel-split headline, layered screens, the
   REC / REW / PR deck), then one chapter per deck key — REW, PLAY, EJECT,
   TRACKING — each a heavy line, two sentences and one picture; tiles, pricing,
   a closing line. On the app's own ink, never light.
   Tokens mirror packages/shared/src/lib/design-tokens.ts. One neon per element:
   pink = the CTA + section stickers, teal = deck glyphs + numerals. The ONE
   exception is `.split` (the headline + the closing line): pink + teal channel
   split, a brand mark like the icon. */
/* Fonts are self-hosted (assets/fonts): no request to Google, so the privacy
   policy's "no third-party tracking" holds for the site too. Inter and Space
   Grotesk are variable — one file covers every weight we use. */
@font-face {
  font-family: 'Archivo Black';
  src: url('assets/fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
/* The app's handwritten-label face — only on the tape label. */
@font-face {
  font-family: 'Permanent Marker';
  src: url('assets/fonts/permanent-marker.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #121317;
  --surface: #1c1f26;
  --plum: #24152e;
  --plum-edge: #3a2e44;
  --border: #2a2e34;
  --cream: #fff4e8;
  --steel: #7d8696;
  --faint: #4e5560;
  --pink: #ff4fa3;
  --teal: #35e0d0;
  /* Pink on cream (the tape label): the light scheme's deep magenta. */
  --magenta: #b8125f;

  --font-heavy: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-marker: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;

  --tracking-label: 0.16em;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --col: 62rem;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* The VHS sticker: uppercase, letter-spaced Space Grotesk. */
.sticker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

.sticker--pink {
  color: var(--pink);
}

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

/* Heavy display type: Archivo Black caps, the app's screen-title face. */
.heavy {
  font-family: var(--font-heavy);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  margin: 0;
}

/* The channel split — teal to the left, pink to the right, cream on top. Sized
   in em so it holds its proportion from a phone to a wide screen. */
.split {
  text-shadow:
    -0.045em 0 0 var(--teal),
    0.045em 0 0 var(--pink);
}

/* ----------------------------------------------------------------- tape */
/* The tape background: CRT scan lines over the ink, and tracking streaks. */

.tape {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tape::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.24) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.tape__streak {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  background: var(--cream);
  opacity: 0.07;
  pointer-events: none;
}

/* Two fixed streaks run through a headline (`.streaked`), window edge to window
   edge, BEHIND its letters. Tied to the headline, not to a % of the block: at
   phone widths a % landed them on the price line. */
.streaked {
  position: relative;
  isolation: isolate;
}

.streaked::before,
.streaked::after {
  content: '';
  position: absolute;
  left: -100vw;
  width: 300vw;
  top: 58%;
  height: 3px;
  z-index: -1;
  background: var(--cream);
  opacity: 0.07;
  pointer-events: none;
}

.streaked::after {
  top: calc(58% + 13px);
  height: 1px;
}

/* One streak rolling down the picture every so often — the boot loader's
   "finding tracking". Off under reduced motion. */
.tape__streak--roll {
  top: 0;
  height: 5px;
  opacity: 0;
  animation: roll 11s linear 2s infinite;
}

@keyframes roll {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  3% {
    opacity: 0.1;
  }
  30% {
    transform: translateY(60rem);
    opacity: 0.1;
  }
  33%,
  100% {
    transform: translateY(62rem);
    opacity: 0;
  }
}

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

.hero {
  border-bottom: 1px solid var(--border);
}

/* Top bar: the wordmark as the logo, one link. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem 0;
}

.topbar__nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  padding: 0.75rem 0.25rem;
}

.topbar__nav a:hover {
  color: var(--cream);
}

.wordmark {
  position: relative;
  display: block;
  width: clamp(5.5rem, 14vw, 7rem);
  overflow: hidden;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Copy and the screens side by side; stacked on phones with the action first. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 2.75rem);
}

.hero__copy {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(3.4rem, 15vw, 6.25rem);
  line-height: 0.92;
}

.hero__lede {
  margin: 0;
  max-width: 33rem;
  color: var(--steel);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
}

.hero__action {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  margin-top: 0.25rem;
}

.hero__price {
  margin: 0;
  color: var(--steel);
  font-size: 0.9375rem;
}

.hero__price strong {
  color: var(--cream);
  font-weight: 500;
}

.hero__price a {
  color: var(--cream);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hero__shot {
  justify-self: end;
  width: 100%;
}

/* Two screens, layered: the live session in front, the recap behind it. */
.stack {
  position: relative;
}

.stack__back {
  position: absolute;
  left: 0;
  top: 13%;
  width: 62%;
  opacity: 0.5;
}

.stack__front {
  position: relative;
  width: 76%;
  margin-left: 24%;
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.6);
}

/* The one primary CTA. While there's no store link it's an outlined "coming
   soon" sticker, not a pink pill that goes nowhere. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
}

.cta--live {
  background: var(--pink);
  color: var(--ink);
}

.cta--live:hover {
  background: #e63f8e;
}

.cta--soon {
  border: 1px solid var(--pink);
  color: var(--pink);
}

.cta__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* The deck: REC / REW / PR, one line each, along the bottom of the hero. */
.deck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.deck li {
  padding: 1.1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-width: 0;
}

.deck li:first-child {
  padding-left: 0;
}

.deck li + li {
  border-left: 1px solid var(--border);
}

.deck p {
  margin: 0;
  color: var(--steel);
}

/* A deck key: glyph + label, like the buttons on the machine. */
p.deck__key {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--cream);
}

.glyph {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}

.glyph--wide {
  width: 1.375rem;
}

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

.section > .wrap {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.75rem;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__head {
  display: grid;
  gap: 0.7rem;
  max-width: 44rem;
}

.section h2 {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  text-wrap: balance;
}

.section__lede {
  margin: 0.25rem 0 0;
  max-width: 36rem;
  color: var(--steel);
}

/* ------------------------------------------------------------- chapters */
/* Copy on one side, one picture on the other; every second one flips. */

.section > .feature__grid {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 17.5rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section.feature--flip > .feature__grid {
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
}

/* A chapter whose picture is a close-up gets a wider picture column. */
.section.feature--wide > .feature__grid {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
}

.section.feature--wide.feature--flip > .feature__grid {
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
}

.feature--wide .feature__art {
  max-width: 25rem;
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 34rem;
}

.feature__lede {
  margin: 0;
  color: var(--steel);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
}

.feature__art {
  width: 100%;
  max-width: 17.5rem;
  justify-self: center;
}

/* Phone frame around a real screenshot (804 x 1748, a 2x capture). The plum
   shows only until the image has loaded. */
.screen {
  aspect-ratio: 804 / 1748;
  max-width: 100%;
  border-radius: 1.6rem;
  border: 1px solid var(--plum-edge);
  background: var(--plum);
  overflow: hidden;
}

.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* In a chapter the screen is cut to its top four fifths and fades out at the
   bottom — the picture makes its point up there, and the chapter stays short. */
.feature__art .screen {
  aspect-ratio: 804 / 1400;
  border-bottom: 0;
  border-radius: 1.6rem 1.6rem 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

/* A close-up: one band cut from a capture (the open exercise), in a plain
   rounded frame — big enough to read the numbers. */
.closeup {
  border-radius: 1.1rem;
  border: 1px solid var(--plum-edge);
  background: var(--surface);
  overflow: hidden;
}

.closeup img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* The knobs: a plain list of what an exercise can carry, as small tags. */
.knobs {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.knobs li {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--plum-edge);
  border-radius: 999px;
  background: var(--plum);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--cream);
}

/* A reel: real captures stacked in one frame, one showing at a time; the page
   script turns them over and writes the counter + caption underneath. Without
   the script the first frame simply stays. */
.reel .screen,
.reel .closeup,
.reel .extra__frame {
  position: relative;
}

/* The frame coming in fades up ON TOP of the one going out, which stays solid
   underneath (`was-on`) until it's covered: no dip through the background. */
.reel__frame {
  position: relative;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reel__frame.is-on {
  z-index: 2;
  opacity: 1;
}

.reel__frame.was-on {
  z-index: 1;
  opacity: 1;
  transition: none;
}

.reel .reel__frame + .reel__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* A frame of a different shape (the setup sheet): shown whole, centred. */
.reel .reel__frame--fit {
  object-fit: contain;
  background: var(--ink);
}

.reel.is-live {
  cursor: pointer;
}

/* The tape's OSD under a reel: 01 / 02 and what this frame shows. */
.reel__osd {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 2.9em;
  margin: 0.7rem 0 0;
  color: var(--steel);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: opacity 0.22s ease;
}

.reel__osd.is-changing {
  opacity: 0;
}

.reel__count {
  flex: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

/* The cream tape label — a physical object: cream stock, ink type, the marker
   in the hand that wrote it. Tilted like it was stuck on by hand. */
.tapelabel {
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  padding: 1.25rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.85rem;
  transform: rotate(-3deg);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.55);
}

.tapelabel p {
  margin: 0;
}

/* In a chapter's copy, under the sentence: small, as the proof of the claim. */
.feature__copy .tapelabel {
  width: min(16rem, 100%);
  margin: 0.6rem 0 0.4rem 0.35rem;
  padding: 0.9rem 1rem 1rem;
  gap: 0.6rem;
}

.feature__copy .tapelabel__row b {
  font-size: 1.55rem;
}

.feature__copy .tapelabel__title {
  padding-bottom: 0.6rem;
}

.tapelabel__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.tapelabel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
}

.tapelabel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.tapelabel__row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #4a4f5a;
}

.tapelabel__row b {
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  line-height: 1;
  white-space: nowrap;
}

.tapelabel__row--today b {
  color: var(--magenta);
}

/* --------------------------------------------------------------- extras */
/* Feature cards: a real capture on top (cut to its top part), then a deck
   key, a small heavy line and a sentence. Two or three across. */

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.extra {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  min-width: 0;
}

.extra__art {
  padding: 1.1rem 1.1rem 0;
}

.extra__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.9rem 0.9rem 0 0;
  border: 1px solid var(--plum-edge);
  border-bottom: 0;
  background: var(--ink);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, #000 86%, transparent);
}

.extra__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.extra__art .reel__osd {
  min-height: 2.9em;
  margin-top: 0.45rem;
}

.extra__copy {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 0.9rem 1.25rem 1.35rem;
}

.extra__copy h3 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
}

.extra__copy p:not(.deck__key) {
  margin: 0;
  color: var(--steel);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- tiles */

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}


.tiles li {
  background: var(--plum);
  border: 1px solid var(--plum-edge);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.25rem;
  line-height: 1.4;
  min-width: 0;
}

.tiles .sticker {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.6875rem;
}

/* ------------------------------------------------------- level meter */
/* A band of VU columns (drawn on the canvas by the page script) under a small
   OSD line: the transport mode on the left, the tape counter on the right. */

.vu {
  border-top: 1px solid var(--border);
  padding-block: 0.8rem 1.1rem;
}

.vu__osd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.vu__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
}

/* The transport glyph: ▶ playing, ◀◀ rewinding. */
.vu__mode::before {
  content: '';
  width: 0.6rem;
  height: 0.7rem;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.vu__mode--rew::before {
  width: 1.2rem;
  clip-path: polygon(50% 0, 0 50%, 50% 100%, 50% 50%, 100% 100%, 100% 0, 50% 50%);
}

.vu__time {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.vu__bars {
  display: block;
  width: 100%;
  height: 3.5rem;
}

/* The same meter, pinned: one compact row fixed to the top of the window. It
   waits above the edge and slides down once the band under the hero is gone. */
.vubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-block: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.5rem;
  background: rgba(18, 19, 23, 0.94);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transform: translateY(-101%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.vubar.is-on {
  transform: none;
}

/* Its row sits on the page column, like everything under it. */
.vubar__in {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vubar .vu__bars {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 1.6rem;
}

.vubar .vu__mode {
  min-width: 4.1rem;
}

/* Anchors land below the pinned bar. */
[id] {
  scroll-margin-top: 1.5rem;
}

/* -------------------------------------------------------------- closing */
/* The last word, on a deeper plum: the line, three sentences, the dial. */

.closing {
  border-top: 1px solid var(--border);
  background: #1a1520;
}

.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
}

.closing__copy {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.closing h2 {
  font-size: clamp(2.6rem, 10.5vw, 4.75rem);
  line-height: 0.92;
}

.closing__lede {
  margin: 0;
  max-width: 32rem;
  color: var(--steel);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
}

/* The Training Score dial — the app's 12-segment arc, teal fill. */
.dial {
  position: relative;
  width: 100%;
  max-width: 17rem;
  justify-self: center;
}

.dial svg {
  display: block;
  width: 100%;
  height: auto;
}

.dial circle {
  fill: none;
}

.dial__ring {
  stroke: var(--plum-edge);
  stroke-width: 1;
}

.dial__track {
  stroke: var(--plum-edge);
  stroke-width: 16;
}

.dial__fill {
  stroke: var(--teal);
  stroke-width: 16;
}

.dial__read {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
}

.dial__read b {
  font-family: var(--font-heavy);
  font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: start;
}

.plan {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Premium on the plum accent panel; its numerals stay teal (stats are teal). */
.plan--premium {
  background: var(--plum);
  border-color: var(--plum-edge);
}

.plan__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sticker--cream {
  color: var(--cream);
}

.plan__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.plan__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.plan__per {
  color: var(--steel);
}

.plan__alt {
  margin: -0.5rem 0 0;
  color: var(--cream);
}

/* The trial, in the body voice — a fact about the plan, not a second CTA. */
.plan__trial {
  margin: 0;
  color: var(--steel);
  font-size: 0.9375rem;
}

.plan__list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.plan__list li {
  position: relative;
  padding-left: 1.35rem;
}

.plan__list li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.7em;
  width: 0.55rem;
  height: 1px;
  background: var(--steel);
}

.plan__note {
  margin: 0.15rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--plum-edge);
  color: var(--steel);
  font-size: 0.875rem;
}

.fineprint {
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------- not found */
/* 404.html: one screen, the headline's treatment, one way back. */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.lost .wrap {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding-block: 3rem;
}

.lost h1 {
  font-size: clamp(3.2rem, 14vw, 6.25rem);
  line-height: 0.92;
}

.lost__lede {
  margin: 0;
  color: var(--steel);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
}

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

.footer {
  border-top: 1px solid var(--border);
}

.footer .wrap {
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer a {
  text-decoration: none;
  color: var(--cream);
}

.footer a:hover {
  color: var(--pink);
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__mark img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

/* ------------------------------------------------------------ legal pages */
/* privacy.html + terms.html — GENERATED from the server's legal text
   (apps/server/src/lib/legal-content.ts); style them here, edit the words there. */

.legal .wrap {
  max-width: 46rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
}

.legal .updated {
  margin: 0.75rem 0 2rem;
  color: var(--steel);
  font-size: 0.875rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}

.legal p,
.legal li {
  color: #d9d2ca;
  font-size: 1rem;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 1rem;
}

/* The eyebrow is a sticker, not body copy. */
.legal p.sticker {
  margin: 0;
  color: var(--pink);
}

.legal .lead {
  color: var(--cream);
  font-size: 1.125rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin: 0.4rem 0;
}

.legal li::marker {
  color: var(--faint);
}

.legal b {
  color: var(--cream);
  font-weight: 500;
}

.legal a {
  color: var(--cream);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  /* On a phone the action comes first; the screens follow, cropped so the
     deck still shows up soon after. */
  .hero__shot {
    justify-self: center;
    max-width: 19rem;
    max-height: 21rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .section > .feature__grid,
  .section.feature--flip > .feature__grid,
  .section.feature--wide > .feature__grid,
  .section.feature--wide.feature--flip > .feature__grid {
    grid-template-columns: 1fr;
  }
  .feature--flip .feature__copy {
    order: 0;
  }
  .feature__art {
    max-width: 15rem;
  }
  .feature--wide .feature__art {
    max-width: 26rem;
  }
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .extra:last-child {
    grid-column: 1 / -1;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles li:last-child {
    grid-column: 1 / -1;
  }
  .closing__grid {
    grid-template-columns: 1fr;
  }
  .dial {
    max-width: 14rem;
  }
  .vu__bars {
    height: 2.75rem;
  }
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .deck {
    grid-template-columns: 1fr;
  }
  .deck li,
  .deck li:first-child {
    padding: 1.1rem 0;
  }
  .deck li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .extras {
    grid-template-columns: 1fr;
  }
  .extra:last-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  .tiles li:last-child {
    grid-column: auto;
  }
  .screen {
    border-radius: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tape__streak--roll {
    animation: none;
  }
  .reel__frame,
  .reel__osd,
  .vubar {
    transition: none;
  }
}
