/* ============================================================
   Agent Tolls — marketing site
   Apple-grade near-white page: SF system stack, hairlines,
   black pill CTAs, white widgets, one dark proof band, and the
   toll-gate scene as a soft gray stage.
   Perf rules: static composited glow layer, transform/opacity
   animations only, backdrop-filter reserved for the nav.
   ============================================================ */

:root {
  --bg: #fbfbfd;
  --band: #f5f5f7;
  --band-dark: #0b0b0f;
  --ink: #1d1d1f;
  --ink-2: #56565c;
  --ink-3: #6e6e73; /* AA on white even at small sizes */
  --blue: #0a84ff;
  --blue-dark-band: #2997ff;
  --green: #30d158;
  --red: #ff3b30;
  --hairline: rgba(0, 0, 0, 0.07);
  --card-border: rgba(0, 0, 0, 0.06);
  --pill-dark: #101114;
  --radius: 28px;
  --shadow-widget: 0 1px 1px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-float: 0 30px 70px rgba(0, 0, 0, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* aliases consumed by the legal pages' inline styles */
  --ink-soft: #56565c;
  --line: rgba(0, 0, 0, 0.07);
  /* z-scale: content < nav */
  --z-nav: 10;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Soft toll-signal corner glows — one static composited layer, never repainted */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(560px 420px at 6% 0%, rgba(48, 209, 88, 0.12), transparent 70%),
    radial-gradient(640px 480px at 97% 10%, rgba(10, 132, 255, 0.11), transparent 70%),
    radial-gradient(700px 520px at 50% 100%, rgba(255, 159, 10, 0.08), transparent 70%);
}

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; max-width: 68ch; }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
}
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* ---------- Nav (floating light-glass pill) ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: var(--z-nav);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 26px;
  padding: 8px 8px 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 28px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.35s;
  white-space: nowrap;
}
.nav--scrolled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 36px rgba(0, 0, 0, 0.13); }
.nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
/* the mark is white-on-white in the pill: a hazard-tape ring (the barrier's
   own stripes) demarcates the rounded tile */
.nav-mark {
  width: 30px; height: 30px; display: block;
  padding: 2px;
  border-radius: 8px;
  background: repeating-linear-gradient(145deg, #1b1c20 0 3px, #f0ac26 3px 6px);
}
.nav-links { display: flex; gap: 20px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--hairline); }
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: 100px;
  padding: 12px 24px;
  background: var(--pill-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.25s, filter 0.25s, transform 0.12s ease-out;
}
.btn:hover { filter: brightness(1.35); }
.btn:active { transform: scale(0.97); }
.btn-small { padding: 9px 18px; font-size: 13.5px; }
.btn--big { padding: 15px 30px; font-size: 16px; }
.btn--xl { padding: 19px 42px; font-size: 18px; }
.btn--ghost {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  color: var(--ink);
}
.btn--ghost:hover { filter: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09); }
/* the hero CTA is a segment of the barrier itself: a full hazard capsule
   (the H1 ribbon's stripes) around a black inner plate that carries the
   label — text never sits on the stripes */
.btn--hazard { padding: 7px; background: repeating-linear-gradient(145deg, #1b1c20 0 10px, #f0ac26 10px 20px); }
.btn--hazard .btn-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pill-dark);
  color: #fff;
  border-radius: 100px;
  padding: 9px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* the nav wears the same barrier at pill-small scale: a finer band, the
   logo ring's stripe pitch */
.btn-small.btn--hazard { padding: 4px; background: repeating-linear-gradient(145deg, #1b1c20 0 3px, #f0ac26 3px 6px); }
.btn-small.btn--hazard .btn-plate { padding: 5px 14px; }

/* ---------- Sections ---------- */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(96px, 13vh, 160px) clamp(20px, 6vw, 86px);
}
.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.section-title .dim { color: var(--ink-3); }
.section-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
}
.zero { color: var(--red); }
.band { background: var(--band); }
.band-dark { background: var(--band-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(140px, 20vh, 200px) clamp(20px, 6vw, 86px) clamp(72px, 9vh, 120px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-title {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.98;
  margin-bottom: 24px;
}
/* the hero's second voice wears the barrier's tape: black/yellow hazard
   stripes clipped into the glyphs ("$0.02." stays solid ink via #tollWord) */
.hero-title .dim { color: var(--ink-3); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .dim {
    background-image: repeating-linear-gradient(145deg, #1b1c20 0 10px, #f0ac26 10px 20px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  /* the stolen word carries its own tape so the stripes travel with the heist */
  .hero-title #freeWord {
    background-image: repeating-linear-gradient(145deg, #1b1c20 0 10px, #f0ac26 10px 20px);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.hero-sub {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* the left column's own stack; on narrow viewports it reproduces the old
   centered column exactly */
.hero-copy { display: flex; flex-direction: column; align-items: center; }

/* ── the split hero: title on the left, the toll gate playing on the right ── */
@media (min-width: 1020px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(36px, 4.5vw, 72px);
    row-gap: 0;
    align-items: center;
    text-align: left;
    max-width: 1280px;
    padding-top: clamp(130px, 17vh, 180px);
  }
  .hero-copy { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .hero-stage { grid-column: 2; grid-row: 1; width: 100%; }
  .rails {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: clamp(28px, 4vh, 48px) 0 0;
    text-align: center;
  }
  /* the title shares the viewport with the stage now — scaled for the column,
     never for the screen; `pretty` keeps "toll." from stranding alone */
  .hero-title { font-size: clamp(38px, 4vw, 58px); text-wrap: pretty; }
  .hero-sub { font-size: clamp(16px, 1.25vw, 18.5px); max-width: 46ch; }
  .hero-cta { justify-content: flex-start; }
}

/* the word the hand steals, and its replacement. The stolen word is
   inline-block: transforms are ignored on plain inline boxes, and the
   word has to travel with the glove and fall */
.word-slot { display: inline-block; position: relative; white-space: nowrap; }
#freeWord { display: inline-block; }
#tollWord { position: absolute; left: 0; top: 0; opacity: 0; color: var(--ink); -webkit-text-fill-color: var(--ink); }
#heroHand {
  position: absolute;
  width: clamp(72px, 9vw, 118px); height: auto;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { #heroHand { display: none; } }

/* trust rails: a marquee of iOS app tiles — square icon carrying the brand
   color, glyph centered on it, name beneath, the row rides on.
   Two identical sets in one track; -50% of the track is exactly one set,
   so the loop is seamless. Transform-only, paused offscreen by main.js. */
.rails { margin-top: clamp(44px, 6vh, 64px); margin-bottom: 0; text-align: center; }
.rails-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.rails-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.rails-track {
  display: flex;
  width: max-content;
  animation: rails-scroll 36s linear infinite;
  will-change: transform;
}
.rails-set {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 3vw, 38px);
  padding-right: clamp(26px, 3vw, 38px);
}
@keyframes rails-scroll {
  to { transform: translateX(-50%); }
}
.rails--offscreen .rails-track { animation-play-state: paused; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rail-icon {
  width: 60px; height: 60px;
  border-radius: 22.4%; /* the iOS icon curve at any size */
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.rail-icon svg { width: 34px; height: 34px; display: block; }
/* every mark is real artwork: app icons ride full-bleed, bare logos sit padded
   on a white (or ink, for light-on-dark art) tile behind a hairline */
.rail-icon--img { overflow: hidden; border: 1px solid var(--card-border); background: #fff; }
.rail-icon--img img { width: 100%; height: 100%; display: block; }
.rail-icon--logo { background: #fff; border: 1px solid var(--card-border); }
.rail-icon--logo-dark { background: var(--pill-dark); }
.rail-icon--logo img, .rail-icon--logo-dark img { width: 74%; height: 74%; object-fit: contain; display: block; }
.rail-name { font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }

/* Still states (?still=1 via main.js, and reduced motion without JS):
   one set, wrapped and centered, no mask, nothing moves. */
.rails--static .rails-track { animation: none; width: 100%; }
.rails--static .rails-set { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; gap: 28px; }
.rails--static .rails-set[aria-hidden="true"] { display: none; }
.rails--static .rails-marquee { -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) {
  .rails-track { animation: none; width: 100%; }
  .rails-set { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; gap: 28px; }
  .rails-set[aria-hidden="true"] { display: none; }
  .rails-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- The toll-gate stage (3D actors, no card) ----------
   A fixed 920x480 design grid expressed in cqw units (1cqw = 9.2 design px)
   on a transparent container — the actors float straight on the page, no
   ground card, no lane furniture. All motion is transform/opacity on
   absolutely positioned layers; main.js drives it in the same design units.
   The barrier is John's closed render split into post + arm at the pivot
   cap (the real arm swings), and his open render takes over at the top of
   the swing (angle-matched crossfade). Overflow stays visible: actors fade
   in/out at the edges instead of clipping. */
.hero-stage { width: min(920px, 100%); container-type: inline-size; }
.stage { position: relative; aspect-ratio: 920 / 480; }
.stage img { display: block; height: auto; pointer-events: none; user-select: none; }
.st-actor img { width: 100%; }

.st-dot { border-radius: 50%; width: 1.3cqw; height: 1.3cqw; flex: none; }
.st-dot--green { background: var(--green); }
.st-dot--red { background: var(--red); }

/* the cast: anchored left:0, moved by transform only. Both actors live
   behind the barrier (the gate is nearer the camera than the lane), so the
   bot passes behind the arm, never in front; DOM order keeps the bot above
   the farther human. */
.st-actor { position: absolute; left: 0; z-index: 1; }
.st-coin { position: absolute; left: 0; top: 0; width: 6.5cqw; opacity: 0; z-index: 7; }

/* in-game nameplates: a mini Dynamic-Island capsule floating over each
   player's head, riding inside the wrap so every GSAP transform is free */
.st-tag {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1.9cqw;
  padding: 0.55cqw 1.4cqw;
  border-radius: 100px;
  background: rgba(18, 18, 23, 0.95);
  color: #fff;
  font-weight: 600; font-size: 1.6cqw; line-height: 1.5;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
/* the nameplate points at its player */
.st-tag::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 0.62cqw solid transparent;
  border-top-color: rgba(18, 18, 23, 0.95);
  border-bottom-width: 0;
}
/* the destination is a player too: its nameplate hangs over the window
   (a stage-level sibling — the window's overflow:hidden would clip it) */
.st-tag--site {
  bottom: auto; top: 18.6cqw; left: 86cqw;
  transform: translateX(-50%);
  z-index: 5;
}

/* the human's toll verdict: pops over his nameplate as he walks straight
   through — centered and animated by GSAP (xPercent), hidden without JS */
.st-free {
  position: absolute; bottom: 100%; left: 50%;
  margin-bottom: 7cqw;
  padding: 0.55cqw 1.4cqw;
  border-radius: 100px;
  background: #e8f9ee;
  color: #1d7f37;
  font-weight: 700; font-size: 1.6cqw; line-height: 1.5;
  letter-spacing: 0.07em;
  white-space: nowrap;
  opacity: 0;
}

/* the barrier: post + swinging arm around the real pivot, mirrored so the
   arm blocks the incoming lane (no text on any render, the flip is safe).
   The open render is plinth-aligned with the closed post underneath. */
.gate {
  position: absolute; left: 34cqw; top: 24.61cqw;
  width: 36.02cqw; height: 26.48cqw;
  transform: scaleX(-1);
  z-index: 2;
}
.gate-post { position: absolute; left: 0; top: 0.73cqw; width: 16.98cqw; }
.gate-arm {
  position: absolute; left: 11.78cqw; top: -0.09cqw; width: 24.33cqw;
  transform-origin: 2.63% 89.10%;
  will-change: transform;
}
.gate-open { position: absolute; left: 0; top: -19.84cqw; width: 14.46cqw; opacity: 0; }

/* the rate plate bolted to the booth */
.st-plate {
  position: absolute; left: 55.6cqw; top: 38.91cqw; width: 11.96cqw;
  padding: 1cqw 0 1.1cqw;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.8cqw;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  text-align: center; z-index: 3;
}
.st-plate-price {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 2.5cqw; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--ink);
}
.st-plate-unit { display: block; font-size: 1.55cqw; line-height: 1.3; color: var(--ink-3); }

/* status capsules: 402 (Dynamic Island dark) and 200 OK */
.st-chip {
  position: absolute; left: 15.3cqw; top: 16.6cqw;
  display: inline-flex; align-items: center; gap: 1.2cqw;
  height: 5cqw; padding: 0 2.3cqw;
  border-radius: 2.5cqw;
  background: rgba(18, 18, 23, 0.95);
  color: #fff; font-weight: 600; font-size: 1.9cqw; white-space: nowrap;
  opacity: 0; z-index: 6;
}
.st-chip .st-dot, .st-ok .st-dot { width: 1.2cqw; height: 1.2cqw; }
.st-ok {
  position: absolute; left: 80.5cqw; top: 14cqw;
  display: inline-flex; align-items: center; gap: 1cqw;
  height: 4.35cqw; padding: 0 2cqw;
  border-radius: 2.2cqw;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  color: var(--ink); font-weight: 600; font-size: 1.8cqw; white-space: nowrap;
  opacity: 0; z-index: 6;
}

/* the receipt: prints at the foot of the booth, where the toll just settled */
.st-receipt {
  position: absolute; left: 33.5cqw; top: 45.5cqw; width: 28.8cqw;
  display: flex; align-items: center; gap: 1.7cqw;
  padding: 1.6cqw 2cqw;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.9cqw;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  opacity: 0; z-index: 6;
}
.st-check {
  flex: none; width: 2.7cqw; height: 2.7cqw; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
}
.st-check svg { width: 1.7cqw; height: 1.7cqw; display: block; }
.st-receipt-text { min-width: 0; line-height: 1.35; }
.st-receipt-text strong { display: block; font-size: 2cqw; font-weight: 600; color: var(--ink); }
.st-receipt-text .mono { display: block; font-size: 1.65cqw; color: var(--ink-3); }

/* the destination: your website — a light Safari window standing at the end
   of both lanes. Nearer the camera than the actors (z5), so walking behind
   its edge and fading reads as stepping inside. */
.st-window {
  position: absolute; left: 76.5cqw; top: 25cqw;
  width: 19cqw; height: 25.5cqw;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 2.2cqw;
  box-shadow: var(--shadow-widget);
  z-index: 5;
  overflow: hidden;
}
.st-win-bar {
  display: flex; align-items: center; gap: 0.7cqw;
  padding: 1.1cqw 1.3cqw;
  border-bottom: 1px solid var(--hairline);
  background: #f7f7f9;
}
.st-win-dot { width: 1cqw; height: 1cqw; border-radius: 50%; flex: none; }
.st-win-dot--r { background: #ff5f57; }
.st-win-dot--y { background: #febc2e; }
.st-win-dot--g { background: #28c840; }
.st-win-url {
  flex: 1;
  margin-left: 0.6cqw;
  padding: 0.5cqw 1cqw;
  border-radius: 0.9cqw;
  background: rgba(0, 0, 0, 0.05);
  font-size: 1.3cqw; line-height: 1.4;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
}
.st-win-body { padding: 1.7cqw 1.6cqw; display: flex; flex-direction: column; gap: 1.2cqw; }
.st-win-line { height: 1.15cqw; border-radius: 0.6cqw; background: #ececf1; }
.st-win-line--title { height: 1.9cqw; width: 62%; background: #d9d9e0; }
.st-win-hero { height: 6.2cqw; border-radius: 1cqw; background: #f2f2f6; }
.st-win-line--short { width: 74%; }

.scene-caption {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 22px auto 0;
}
.scene-caption em { font-style: italic; }

/* ---------- Split sections: copy left, one 3D mascot right ----------
   Each mascot illustrates its section's point (detective = who's reading,
   payer = the toll, desk = the dashboard, celebration = settled money,
   Solana holder = the rails). One per section, never decorative-only. */
.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.split-full { grid-column: 1 / -1; }
.section--split .mascot {
  width: clamp(120px, 15vw, 200px);
  height: auto;
  justify-self: end;
}
.mascot--celebrate { width: clamp(150px, 19vw, 260px); }
.mascot--sol { width: clamp(110px, 12vw, 160px); }
@media (max-width: 700px) {
  .section--split { grid-template-columns: 1fr; }
  .section--split .mascot { justify-self: center; margin-top: 20px; width: clamp(110px, 34vw, 150px); }
}

/* the payer robot rides beside the four steps */
.flow-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.mascot--flow { width: clamp(150px, 17vw, 235px); height: auto; }
@media (max-width: 900px) { .mascot--flow { display: none; } }

/* CTA vignette: the gate is up, the robot approves */
.cta-vignette {
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  margin-bottom: 30px;
}
.cta-gate { width: auto; height: 150px; }
.cta-bot { width: auto; height: 168px; }

/* ---------- Scroll reveals ---------- */
/* The resting state in this stylesheet is the visible one. The hidden state is
   armed by main.js, one element at a time, only on elements an observer is
   actively watching, so a trigger that never fires or a layout that shifts
   under it can no longer leave a section blank. */
.reveal-armed { opacity: 0; transform: translateY(16px); }
.reveal-armed.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
[data-step].reveal-armed { transform: translateY(14px); }
[data-step].reveal-armed.is-in { transition-duration: .55s; }

/* ---------- The API side, announced ---------- */
/* One product with a new place to stand, so it gets the arrival an Apple
   release note gets: a red badge, a pill that pops, one ripple that does not
   repeat, and a rule that draws itself under the headline. Every one of them is
   decoration over content that is already legible without it. */
.announce {
  text-align: center;
  padding-top: clamp(72px, 10vh, 128px);
  padding-bottom: clamp(20px, 3vh, 36px);
}
.announce-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px 8px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-widget);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
}
.announce-dot {
  position: relative;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
}
.announce-dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
}
.announce-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.05;
  margin: 26px auto 0;
  max-width: 15ch;
}
.announce-rule {
  display: block;
  width: clamp(88px, 12vw, 140px); height: 2px;
  margin: 30px auto 0;
  border-radius: 2px;
  background: var(--red);
}
.announce-sub {
  margin: 26px auto 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}
/* Armed by JS, so a page without it draws the rule at full width instead of
   waiting for a transition that will never come. */
.announce.reveal-armed .announce-rule { transform: scaleX(0); transform-origin: left center; }
.announce.reveal-armed.is-in .announce-rule {
  transform: scaleX(1);
  transition: transform .62s cubic-bezier(.16, 1, .3, 1) .22s;
}
.announce.reveal-armed.is-in .announce-pill { animation: at-pop .62s cubic-bezier(.34, 1.56, .64, 1); }
.announce.reveal-armed.is-in .announce-dot::after { animation: at-ripple .95s cubic-bezier(.16, 1, .3, 1) .52s 1 both; }
@keyframes at-pop {
  0%   { transform: scale(.42); opacity: 0; }
  62%  { transform: scale(1.11); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes at-ripple {
  from { transform: scale(.55); opacity: .85; }
  to   { transform: scale(3.4); opacity: 0; }
}

/* The badge in the nav, where Apple puts its own: it lights once, and the first
   click on the link is what puts it out for good. */
.nav-new { position: relative; }
.new-dot {
  position: absolute; top: -1px; right: -10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  opacity: 0;
}
.new-dot.is-lit {
  transform: scale(1);
  opacity: 1;
  animation: at-pop .52s cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-armed, .reveal-armed.is-in { opacity: 1; transform: none; transition: none; }
  .announce.reveal-armed .announce-rule,
  .announce.reveal-armed.is-in .announce-rule { transform: scaleX(1); transition: none; }
  .announce.reveal-armed.is-in .announce-pill,
  .announce.reveal-armed.is-in .announce-dot::after,
  .new-dot.is-lit { animation: none; }
}

/* ---------- The quoted tweet ---------- */
.quote-section { padding-bottom: clamp(48px, 6vh, 72px); }
.tweet-card {
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: var(--shadow-widget);
}
.tweet-card blockquote { margin: 0; }
.tweet-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.32;
  letter-spacing: -.02em;
  max-width: none;
  margin: 0 0 .7em;
}
.tweet-card .tweet-paren { color: var(--ink-2); font-size: clamp(17px, 1.9vw, 21px); margin-bottom: 0; }
.tweet-card figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.tweet-card figcaption a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tweet-handle { font-weight: 600; }
.tweet-meta { color: var(--ink-3); font-size: 14.5px; }
.tweet-card figcaption a:hover .tweet-meta { color: var(--blue); }
.quote-answer {
  margin: 34px auto 0;
  max-width: 720px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
}
.quote-answer strong { color: var(--ink); }

.lane-dot-blue { background: var(--blue); }
.dead-end a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Problem: the two dead ends ---------- */
.dead-ends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 44px;
}
.dead-end { border-top: 1px solid var(--hairline); padding-top: 20px; }
.dead-lane { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.dead-end p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.lane-dot { width: 10px; height: 10px; border-radius: 50%; }
.lane-dot-red { background: var(--red); }
.lane-dot-idle { background: #c7c7cc; }

/* ---------- How: the flow ---------- */
.flow-steps { list-style: none; margin: 44px 0 0; }
.flow-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.flow-step h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.flow-step p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.step-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px;
  padding: 7px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--hairline);
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  justify-self: start;
  margin-top: 2px;
}

/* ---------- Rate card (also used by the privacy page's cookie card) ---------- */
.rate-card {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-widget);
  overflow: hidden;
  max-width: 760px;
}
.rate-head {
  padding: 16px 26px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hairline);
}
.rate-card table { width: 100%; border-collapse: collapse; }
.rate-card td:first-child { width: 34%; }
.rate-card td { padding: 16px 26px; border-bottom: 1px solid var(--hairline); vertical-align: middle; font-size: 15px; }
.rate-card tr:last-child td { border-bottom: 0; }
.rate-card .price { font-weight: 600; font-size: 17px; white-space: nowrap; font-family: var(--font-display); letter-spacing: -0.01em; }
.rate-foot { padding: 16px 26px 20px; margin: 0; font-size: 14.5px; color: var(--ink-2); border-top: 1px solid var(--hairline); max-width: none; }
/* the table's min-content (the unbreakable /archive/1994/* path plus 26px
   cell pads) outgrows a phone-width card and overflow:hidden was eating
   the third column — tighter cells keep all three columns on screen */
@media (max-width: 560px) {
  .rate-card td { padding: 14px 12px; font-size: 13.5px; }
  .rate-card td:first-child { padding-left: 16px; }
  .rate-card td:last-child { padding-right: 16px; }
  .rate-card .price { font-size: 15px; }
  .rate-head { padding: 14px 16px 12px; }
  .rate-foot { padding: 14px 16px 18px; }
}

/* ---------- Booth widgets (dashboard preview) ---------- */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.widget {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-widget);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
}
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.widget-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  color: #1d7f37;
  background: #e8f9ee;
  border-radius: 100px;
  padding: 3px 9px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.app-dot {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.app-dot svg { width: 15px; height: 15px; }
.app-dot-green { background: linear-gradient(160deg, #4cd964, #1faa46); }
.app-dot-blue { background: linear-gradient(160deg, #38a8ff, #0a6ee0); }
.app-dot-gray { background: linear-gradient(160deg, #8e8e93, #58585d); }

/* live toll ticker */
.toll-feed { height: 176px; overflow: hidden; position: relative; }
.toll-feed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#fff, transparent 18%, transparent 74%, #fff);
  pointer-events: none;
}
.toll-track { display: flex; flex-direction: column; }
.toll-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.toll-path { color: var(--ink-2); }
.toll-amt { color: #1d7f37; font-weight: 600; }

/* earnings */
.earn-num { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.02em; line-height: 1; }
.earn-sub { font-size: 13px; color: var(--ink-3); margin: 8px 0 18px; }
.earn-bars { width: 100%; height: auto; display: block; margin-bottom: 4px; }

/* rates mini-UI */
.rate-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; margin-top: 2px; }
.rate-path { color: var(--ink-2); }
.rate-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.rate-slider {
  position: relative;
  height: 4px; border-radius: 2px;
  background: #e5e5ea;
  margin: 12px 0 18px;
}
.rate-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--blue); }
.rate-knob {
  position: absolute; top: 50%;
  width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.rate-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 500;
  margin: 6px 0 2px;
}
.ios-toggle {
  width: 42px; height: 26px; border-radius: 13px;
  background: var(--green);
  position: relative;
  display: inline-block;
}
.ios-knob {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* widget caption (airtouch style) */
.widget-cap {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--hairline);
  margin-top: auto;
  padding-top: 14px;
}
.cap-icon {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--band);
  display: grid; place-items: center;
}
.cap-icon svg { width: 15px; height: 15px; }
.widget-cap strong { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.widget-cap span { display: block; font-size: 13px; color: var(--ink-3); }

/* ---------- Proof: the dark band ---------- */
.band-dark { color: #f5f5f7; }
.band-dark .section-title { color: #f5f5f7; }
.band-dark .section-sub { color: #a1a1a6; }
.receipts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.receipt-card {
  display: block;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s, transform 0.25s ease-out;
}
.receipt-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.receipt-card:active { transform: scale(0.98); }
.receipt-row { display: flex; align-items: center; gap: 10px; }
.receipt-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.receipt-card-title { font-weight: 600; font-size: 17px; color: #fff; }
.receipt-card-meta { display: block; font-family: var(--font-mono); font-size: 13px; color: #98989d; margin: 10px 0 16px; }
.receipt-card-cta { font-size: 14px; font-weight: 600; color: var(--blue-dark-band); }
.proof-close { margin-top: 44px; color: #a1a1a6; font-size: 16px; max-width: 62ch; }

/* ---------- Try: the code window ---------- */
.codewindow {
  margin: 44px 0 28px;
  max-width: 800px;
  background: #0d0d12;
  border-radius: 20px;
  box-shadow: var(--shadow-widget);
  overflow: hidden;
}
.codewindow-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.codewindow-bar .wdot { width: 12px; height: 12px; border-radius: 50%; }
.wdot-r { background: #ff5f57; } .wdot-y { background: #febc2e; } .wdot-g { background: #28c840; }
.codewindow-name { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: #98989d; }
.codewindow pre { margin: 0; padding: 22px 26px; overflow-x: auto; }
.codewindow code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d8d8de;
  background: none;
  padding: 0;
}
.try-note { color: var(--ink-2); max-width: 62ch; }
.try-quiet { color: var(--ink-3); font-size: 15px; max-width: 62ch; }

/* ---------- Why now ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 44px;
}
.why-item { border-top: 1px solid var(--hairline); padding-top: 20px; }
.why-item h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.why-item p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- CTA ---------- */
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta .section-title { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.cta .section-sub { max-width: 560px; }
.cta .btn--xl { margin: 36px 0 22px; }
.cta-mail { font-size: 14.5px; color: var(--ink-3); }

/* ---------- Footer (index) ---------- */
.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 6vw, 86px) 28px;
}
.footer-row {
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-2);
}
.footer-tag { display: inline-flex; align-items: center; gap: 10px; }
.footer-mark {
  width: 36px; height: 36px; display: block;
  padding: 2px;
  border-radius: 9px;
  background: repeating-linear-gradient(145deg, #1b1c20 0 3.5px, #f0ac26 3.5px 7px);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; font-weight: 500; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-source { padding-top: 20px; font-size: 14px; }
.footer-source-note { display: block; color: var(--ink-3); margin-bottom: 10px; }
/* Google injects an iframe that fills its container. Cap it so it does not sit
   across the whole footer row swallowing clicks either side of the button. */
.footer-source [google-add-preferred-source-btn] { max-width: 340px; }
.footer-meta { padding-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 14.5vw, 156px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #e6e8ef;
  text-align: center;
  user-select: none;
  padding-top: clamp(28px, 5vh, 56px);
  white-space: nowrap;
}

/* ---------- Legal pages (terms, privacy) share this sheet ---------- */
.site-header {
  display: flex; align-items: center; gap: 2rem;
  padding: 18px clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: 22px; margin-left: auto; }
.site-header nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.site-header nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .site-header nav { display: none; } }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }
.site-footer {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.site-footer .mono { margin-left: auto; }
.site-footer a:hover { color: var(--ink); }


@media (max-width: 700px) {
  .hero { padding-top: 120px; }
  .hero-cta { margin-bottom: 48px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .receipt-card { transition: none; }
}
