/* ---------------------------------------------------------------------------
   Routeur — shared tokens. Every section reads its gutter, column, rhythm and
   heading scale from here so the page reads as one document.
--------------------------------------------------------------------------- */
:root {
  --ground: #08090a;
  --panel: #0f1011;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #8a8f98;
  --text-soft: #d0d6e0;
  --head: #f7f8f8;
  --faint: #62666d;
  --accent: #f0a640;
  --accent-hi: #ffd07a;
  --accent-lo: #c97a22;

  --gutter: clamp(20px, 5vw, 48px);
  --col: clamp(1120px, 78vw, 1560px);
  --section-y: clamp(44px, 4.6vw, 88px);

  --h2: clamp(28px, 1.2vw + 20.8px, 46px);
  --lead: clamp(16px, 0.42vw + 10px, 19px);

  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grain: url("../img/grain.png");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
/* native smooth anchors only as a fallback; Lenis drives scrolling when it runs */
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--head);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid rgba(240, 166, 64, 0.7); outline-offset: 4px; border-radius: 4px; }

/* Shared section scale ------------------------------------------------------ */
.sec-h2 {
  font-size: var(--h2) !important;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--head);
}
.sec-lead { font-size: var(--lead); line-height: 1.6; color: var(--text); }
.sec { scroll-margin-top: 24px; }

/* Link colours the sections carried in their own <style> blocks */
.sec-routing a, .sec-co a { color: var(--accent); }
.sec-routing a:hover, .sec-co a:hover { color: var(--head); }
.sec-lat a, .sec-uth a, .sec-dev a, .sec-who a { color: var(--head); }
.sec-lat a:hover, .sec-uth a:hover, .sec-dev a:hover, .sec-who a:hover { color: var(--accent); }
.sec-faq a { color: var(--text-soft); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
.sec-faq a:hover { color: var(--head); text-decoration-color: rgba(255,255,255,0.6); }

/* Section animations, lifted from each component */
@keyframes ratchet { 0% { clip-path: inset(0 100% 0 0); opacity: 1 } 72% { clip-path: inset(0 0 0 0) } 94% { clip-path: inset(0 0 0 0); opacity: 1 } 100% { clip-path: inset(0 0 0 0); opacity: 0 } }
@keyframes draw { from { clip-path: inset(-8px 100% -8px -4px) } to { clip-path: inset(-8px -480px -8px -4px) } }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(240,166,64,0.14), 0 0 12px rgba(240,166,64,0.55) } 50% { opacity: 0.45; box-shadow: 0 0 0 1px rgba(240,166,64,0.06), 0 0 4px rgba(240,166,64,0.2) } }
@keyframes scrub { from { left: 8% } to { left: 92% } }
@keyframes fieldDrift { from { transform: translateY(-6px) } to { transform: translateY(6px) } }
@media (prefers-reduced-motion: reduce) {
  [data-ratchet], [data-draw], [data-blink], [data-scrub], [data-drift] { animation: none !important; }
}
/* the latency bars draw in when they reach the viewport, not on page load */
.sec-lat:not(.is-in) [data-draw] { animation-play-state: paused; }

/* Latency: the diamond marker and label floor depend on the section width */
.sec-lat { container-name: lat; }
.lat-diamond { display: block; }
.lat-through { min-width: 0; }
@container lat (max-width: 719px) {
  .lat-diamond { display: none; }
  .lat-through { min-width: 112px; }
}

/* Under the hood: desktop / phone geometry */
.sec-uth { container-name: uth; }
.uth-stage {
  --u-mask: none; --u-shift: none; --u-gap: 20px; --u-card-w: 280px; --u-edge-w: 200px;
  --u-card-h: 168px; --u-card-pad: 14px 16px; --u-meta-w: 54px; --u-desk: inline; --u-phone: none;
  --u-node-gap: 118px; --u-node-label: 12px; --u-panel-gap: 96px; --u-panel-pad: 26px 40px 40px;
  --u-panel-cols: minmax(120px,150px) minmax(0,1fr); --u-panel-row-gap: 16px; --u-label-mt: 0px;
}
/* Desktop: each source row fades out beyond its own central cards, so the
   peeking cards at the ends dissolve into the page instead of stopping hard.
   Row 1's middle pair spans ±290px from centre, its peeking cards 310–670px;
   row 2's middle three span ±440px, its edge cards 460–660px. */
.uth-stage [data-screen-label="Sources row 1"] {
  -webkit-mask-image: linear-gradient(to right, transparent calc(50% - 670px),rgba(0,0,0,0.22) calc(50% - 570px),rgba(0,0,0,0.5) calc(50% - 480px),rgba(0,0,0,0.8) calc(50% - 390px),#000 calc(50% - 310px), #000 calc(50% + 310px),rgba(0,0,0,0.8) calc(50% + 390px),rgba(0,0,0,0.5) calc(50% + 480px),rgba(0,0,0,0.22) calc(50% + 570px),transparent calc(50% + 670px));
  mask-image: linear-gradient(to right, transparent calc(50% - 670px),rgba(0,0,0,0.22) calc(50% - 570px),rgba(0,0,0,0.5) calc(50% - 480px),rgba(0,0,0,0.8) calc(50% - 390px),#000 calc(50% - 310px), #000 calc(50% + 310px),rgba(0,0,0,0.8) calc(50% + 390px),rgba(0,0,0,0.5) calc(50% + 480px),rgba(0,0,0,0.22) calc(50% + 570px),transparent calc(50% + 670px));
}
.uth-stage [data-screen-label="Sources row 2"] {
  -webkit-mask-image: linear-gradient(to right, transparent calc(50% - 660px),rgba(0,0,0,0.25) calc(50% - 580px),rgba(0,0,0,0.6) calc(50% - 500px),#000 calc(50% - 442px), #000 calc(50% + 442px),rgba(0,0,0,0.6) calc(50% + 500px),rgba(0,0,0,0.25) calc(50% + 580px),transparent calc(50% + 660px));
  mask-image: linear-gradient(to right, transparent calc(50% - 660px),rgba(0,0,0,0.25) calc(50% - 580px),rgba(0,0,0,0.6) calc(50% - 500px),#000 calc(50% - 442px), #000 calc(50% + 442px),rgba(0,0,0,0.6) calc(50% + 500px),rgba(0,0,0,0.25) calc(50% + 580px),transparent calc(50% + 660px));
}
@container uth (max-width: 719px) {
  /* phone keeps the component's own single fade on the rows wrapper */
  .uth-stage [data-screen-label="Sources row 1"],
  .uth-stage [data-screen-label="Sources row 2"] { -webkit-mask-image: none; mask-image: none; }
}
@container uth (max-width: 719px) {
  .uth-stage {
    --u-mask: linear-gradient(to right,transparent 0%,#000 22%,#000 78%,transparent 100%);
    --u-shift: translateX(-108px); --u-gap: 16px; --u-card-w: 200px; --u-card-h: auto;
    --u-card-pad: 14px 14px 16px; --u-desk: none; --u-phone: inline; --u-node-gap: 104px;
    --u-node-label: 10px; --u-panel-gap: 64px; --u-panel-pad: 22px 24px 32px;
    --u-panel-cols: minmax(0,1fr); --u-panel-row-gap: 4px; --u-label-mt: 12px;
  }
}

/* FAQ */
.sec-faq { container-name: faq; }
.sec-faq section { --f-pos: sticky; --f-shift: -8px; --f-h-tr: height 200ms cubic-bezier(0.2,0.7,0.2,1); --f-i-tr: transform 200ms cubic-bezier(0.2,0.7,0.2,1); }
@container faq (max-width: 719px) { .sec-faq section { --f-pos: static; --f-shift: 0px; } }
@media (prefers-reduced-motion: reduce) { .sec-faq section { --f-h-tr: none; --f-i-tr: none; } }
.faq-q:hover { color: #fff !important; }
.faq-q:focus-visible { outline: 1px solid rgba(240,166,64,0.7); outline-offset: 6px; }

/* ---------------------------------------------------------------------------
   Nav
--------------------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: clamp(56px, 3.9vw, 72px);
  padding: 0 clamp(20px, 3.75vw, 65px);
}
.nav-brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; color: var(--head); height: 24px; }
.nav-mark { width: 25px; height: 19px; fill: currentColor; }
.nav-word { width: 72px; height: 17px; fill: currentColor; }
.nav-links { display: flex; gap: clamp(20px, 1.9vw, 32px); font-size: 14px; font-weight: 500; letter-spacing: 0.005em; }
.nav-links a { color: rgba(247, 248, 248, 0.68); transition: color 160ms ease; }
.nav-links a:hover { color: var(--head); }
.nav-cta { justify-self: end; height: 34px; padding: 0 16px; font-size: 13px; }

/* Pills -------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.pill-warm {
  color: var(--head);
  background: rgba(240, 166, 64, 0.1);
  box-shadow: inset 0 0 0 1px rgba(240, 166, 64, 0.16);
}
.pill-warm:hover { background: rgba(240, 166, 64, 0.16); box-shadow: inset 0 0 0 1px rgba(240, 166, 64, 0.3); }
.pill-pale { color: var(--ground); background: rgba(253, 253, 253, 0.82); }
.pill-pale:hover { background: var(--head); }
.pill-lg { height: clamp(44px, 3.2vw, 56px); padding: 0 clamp(22px, 1.8vw, 32px); font-size: clamp(15px, 1.1vw, 19px); font-weight: 400; }

/* ---------------------------------------------------------------------------
   Hero — inset video panel
--------------------------------------------------------------------------- */
.hero { padding: 0 clamp(12px, 1.1vw, 20px); }
.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(620px, 57vw, 1000px);
  border-radius: 24px;
  /* Safari (iOS especially) lets a playing <video> escape its parent's rounded
     corners; a mask on the clipping parent forces the clip back on. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  /* poster colour: warm light from the upper left falling to near-black, so the
     panel reads correctly before the poster or video arrive */
  background:
    radial-gradient(ellipse 70% 80% at 14% 8%, rgba(240,166,64,0.26), rgba(201,122,34,0.1) 45%, transparent 72%),
    #0b0a09;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: inherit;
  /* warm the footage toward the brand gold before the light layers go on */
  filter: brightness(0.5) contrast(1.06) sepia(0.55) saturate(1.2) hue-rotate(-10deg);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* warm light bleeding in from the upper left */
    radial-gradient(ellipse 65% 72% at 10% 2%, rgba(255,208,122,0.46), rgba(240,166,64,0.22) 38%, transparent 72%),
    /* golden bloom, low in the frame */
    radial-gradient(ellipse 42% 50% at 90% 102%, rgba(240,166,64,0.6), rgba(201,122,34,0.26) 45%, transparent 78%),
    /* seat the headline: a firm scrim where the copy sits */
    radial-gradient(ellipse 62% 58% at 18% 82%, rgba(8,9,10,0.86), rgba(8,9,10,0.5) 50%, transparent 82%),
    /* overall drop so the footage reads as texture, not picture */
    linear-gradient(rgba(8,9,10,0.42), rgba(8,9,10,0.42)),
    linear-gradient(to bottom, rgba(8,9,10,0) 50%, rgba(8,9,10,0.45) 100%);
  mix-blend-mode: normal;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 192px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  left: clamp(24px, 4.3vw, 74px);
  right: clamp(24px, 4.3vw, 74px);
  bottom: clamp(48px, 6.25vw, 108px);
}
.hero-title {
  margin: 0;
  /* Figma: Inter 65.74 / 67, -5% tracking, on the 1728 frame */
  font-family: 'Inter', var(--sans);
  font-size: clamp(34px, 3.804vw, 96px);
  line-height: 1.019;
  letter-spacing: -0.05em;
}
.hero-title > span { display: block; text-wrap: balance; }
/* stacked two-line headline: shorter lines, so it can run a size up */
.hero-title--stack { font-size: clamp(38px, 4.5vw, 112px); line-height: 1.0; }
/* desktop breaks after the category; phone also breaks before it, so
   "prediction markets" is never split across lines */
.br-phone { display: none; }
@media (max-width: 720px) {
  .br-phone { display: inline; }
  .hero-title.hero-title--stack { font-size: clamp(30px, 8.2vw, 40px); }
}
.nowrap { white-space: nowrap; }
.hero-title-quiet { font-weight: 300; color: rgba(236, 232, 224, 0.8); }
.hero-title-loud { font-weight: 600; color: #fff; }
.hero-lead {
  margin: clamp(10px, 0.8vw, 16px) 0 0;
  max-width: 31em;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: rgba(247, 248, 248, 0.74);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 1.5vw, 28px); }

/* ---------------------------------------------------------------------------
   Footer — closing call to action
--------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(460px, 38vw, 720px);
  padding: var(--section-y) var(--gutter) 0;
  background: var(--ground);
}
.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 60% at 90% 102%, rgba(255,208,122,0.8), rgba(240,166,64,0.5) 36%, rgba(201,122,34,0.16) 66%, transparent 84%),
    radial-gradient(ellipse 85% 55% at 35% 108%, rgba(240,166,64,0.62), rgba(201,122,34,0.3) 46%, transparent 80%),
    radial-gradient(ellipse 130% 78% at 55% 120%, rgba(201,122,34,0.7), rgba(201,122,34,0.18) 55%, transparent 80%),
    linear-gradient(to bottom, var(--ground) 0%, var(--ground) 28%, rgba(8,9,10,0.88) 55%, rgba(8,9,10,0.2) 100%);
}
/* dither: fine noise over the glow keeps the gradient from banding */
.cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 192px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
}
.cta-watermark {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: clamp(170px, 14vw, 260px);
  width: clamp(280px, 26vw, 420px);
  height: calc(clamp(280px, 26vw, 420px) * 0.736);
  transform: translateX(-50%);
  fill: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.cta-inner {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px 64px;
  padding-bottom: clamp(120px, 11vw, 200px);
}
.cta-title {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: #fff;
}
.cta-title-loud, .cta-title-quiet { display: block; }
.cta-title-quiet { color: rgba(236, 232, 224, 0.74); }
.cta-side { flex: 0 1 380px; padding-bottom: 6px; }
.cta-lead {
  margin: 0;
  max-width: 380px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(247, 248, 248, 0.74);
}
.cta-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.cta-link { padding: 0 14px 0 0; font-size: 15px; font-weight: 400; color: var(--head); }
.cta-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.5); }
.cta-legal {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.cta-legal p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(8, 9, 10, 0.62); }
.cta-social { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #111; font-size: 14px; font-weight: 600; text-decoration: none; }
.cta-social svg { width: 16px; height: 16px; fill: currentColor; }
.cta-social:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-social:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* ---------------------------------------------------------------------------
   Phone
--------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 var(--gutter); }
  .nav-links { display: none; }
  .nav-cta { height: 32px; padding: 0 14px; font-size: 13px; }

  .hero { padding: 0 10px; }
  .hero-panel { border-radius: 20px; height: auto; min-height: min(760px, 100svh - 64px); display: flex; align-items: flex-end; }
  .hero-media { object-position: 30% 0; }
  .hero-content { position: relative; left: auto; right: auto; bottom: auto; padding: 240px var(--gutter) 48px; }
  .hero-title { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-lead { font-size: 17px; line-height: 1.4; }
  .pill-lg { height: 44px; padding: 0 22px; font-size: 15px; }

  .cta { min-height: 0; padding-top: calc(var(--section-y) * 2); }
  .cta-legal { padding-bottom: 24px; flex-wrap: wrap; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 96px; }
  .cta-side { flex: none; }
  .cta-watermark { bottom: auto; top: calc(var(--section-y) * 0.6); width: 240px; height: 177px; }
}

/* ---------------------------------------------------------------------------
   Motion
   One easing and one duration family for the whole page. Entrances use the
   individual `translate`/`scale` properties so they never fight the
   components' own inline transforms. Everything here is opt-out under
   prefers-reduced-motion.
--------------------------------------------------------------------------- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.6, 0.3, 1);
  --dur-reveal: 1100ms;
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance — the panel settles, the footage eases out of a slow push-in,
     and the copy rises line by line. `backwards` fill hands control back to
     the scroll-linked styles once each entrance finishes. */
  @keyframes navIn   { from { opacity: 0; translate: 0 -10px; } }
  @keyframes panelIn { from { opacity: 0; scale: 0.985; } }
  @keyframes mediaIn { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: none; } }
  @keyframes riseIn  { from { opacity: 0; translate: 0 0.45em; filter: blur(10px); } }
  @keyframes fadeUp  { from { opacity: 0; translate: 0 18px; } }

  .nav { animation: navIn 900ms var(--ease-out) 100ms backwards; }
  .hero-panel { animation: panelIn 1200ms var(--ease-out) backwards; }
  .hero-media { animation: mediaIn 2600ms var(--ease-soft) backwards; }
  .hero-title-quiet { animation: riseIn 1200ms var(--ease-out) 350ms backwards; }
  .hero-title-loud  { animation: riseIn 1200ms var(--ease-out) 500ms backwards; }
  .hero-lead        { animation: fadeUp 1000ms var(--ease-out) 700ms backwards; }
  .hero-actions     { animation: fadeUp 1000ms var(--ease-out) 820ms backwards; }

  /* Scroll-linked hero: the footage drifts and pushes in slightly, the copy
     lifts away as the panel leaves. --hp runs 0 → 1 (set in site.js). */
  .hero-media   { scale: calc(1 + var(--hp, 0) * 0.08); translate: 0 calc(var(--hp, 0) * 7%); }
  .hero-content { translate: 0 calc(var(--hp, 0) * -64px); opacity: calc(1 - var(--hp, 0) * 1.4); }

  /* Scroll reveals — marked up by site.js */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity var(--dur-reveal) var(--ease-out) var(--d, 0ms),
      translate var(--dur-reveal) var(--ease-out) var(--d, 0ms),
      filter var(--dur-reveal) var(--ease-out) var(--d, 0ms);
  }
  .js [data-reveal="text"] { translate: 0 18px; filter: blur(8px); }
  .js [data-reveal="fade"] { translate: none; }
  .js [data-reveal].is-in { opacity: 1; translate: none; filter: none; }

  /* Hover: small, quick, physical */
  .pill { transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease, translate 300ms var(--ease-out); }
  .pill:hover { translate: 0 -1px; }
  .pill:active { translate: 0 0; transition-duration: 80ms; }
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform 450ms var(--ease-out);
  }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .sec-dev article[data-reveal].is-in { transition: opacity var(--dur-reveal) var(--ease-out) var(--d, 0ms), translate 500ms var(--ease-out); }
  .sec-dev article[data-reveal].is-in:hover { translate: 0 -4px; }

  /* Under the hood: connector traces draw from the sources down to the record */
  .uth-trace-path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .uth-drawn .uth-trace-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease-soft) 300ms; }
  .uth-trace-node { opacity: 0; scale: 0.4; transform-box: fill-box; transform-origin: center; }
  .uth-drawn .uth-trace-node { opacity: 1; scale: 1; transition: opacity 500ms ease var(--d, 0ms), scale 600ms var(--ease-out) var(--d, 0ms); }

  /* Footer: the glow breathes, the mark drifts */
  @keyframes breathe { from { opacity: 0.86; } to { opacity: 1; } }
  @keyframes drift   { from { translate: -50% -6px; } to { translate: -50% 6px; } }
  .cta-glow { animation: breathe 9s ease-in-out infinite alternate; }
  .cta-watermark { transform: none; translate: -50% 0; animation: drift 11s ease-in-out infinite alternate; }
}

/* ---------------------------------------------------------------------------
   Ambient light below the hero
   One page-level layer instead of per-section glows, so nothing seams at a
   section boundary. The glows repeat on a 1800px tile, alternating right and
   left, each fading to nothing well inside its tile. A fine paper grain sits
   over the top and lifts the blacks a touch.
--------------------------------------------------------------------------- */
main { position: relative; isolation: isolate; }
.sec { background: transparent !important; }
main::before,
body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
main::before {
  background:
    radial-gradient(960px 600px at 88% 420px, rgba(240,166,64,0.13), rgba(201,122,34,0.055) 40%, transparent 70%),
    radial-gradient(880px 560px at 8% 1250px, rgba(255,208,122,0.095), rgba(240,166,64,0.04) 42%, transparent 70%);
  background-size: 100% 1800px;
  background-repeat: repeat-y;
  /* hold the glow back until the hero has passed */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent min(900px, 60vw), #000 calc(min(900px, 60vw) + 400px));
  mask-image: linear-gradient(to bottom, transparent 0, transparent min(900px, 60vw), #000 calc(min(900px, 60vw) + 400px));
}
/* the paper covers the whole page, nav included, so there is no seam where
   the header meets the content (most visible on phones) */
body { position: relative; isolation: isolate; }
body::before {
  /* fine grain for tooth, a softer mottle for the uneven fibre of paper */
  background-image: var(--grain), url("../img/paper.png");
  background-size: 192px, 384px;
  opacity: 0.11;
  mix-blend-mode: screen;
  /* the page opens on pure black and the paper rises in behind the nav */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.25) 70px, rgba(0,0,0,0.7) 160px, #000 260px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.25) 70px, rgba(0,0,0,0.7) 160px, #000 260px);
}

/* Venue marks are shown unbranded until the partnerships are signed: blurred
   and desaturated so they read as placeholders, not endorsements. */
.sec-routing img[src*="/logos/"] {
  filter: blur(2.5px) saturate(0.55) contrast(0.9);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Private beta signup — one pill holding the field and its button. There is
   no backend yet; see submitSignup() in site.js.
--------------------------------------------------------------------------- */
.pill-ghost { color: var(--head); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }

.signup { width: 100%; max-width: 460px; margin: 0; }
.signup-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(247, 248, 248, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.signup-field:focus-within {
  background: rgba(247, 248, 248, 0.11);
  box-shadow: inset 0 0 0 1px rgba(240, 166, 64, 0.75), 0 0 0 4px rgba(240, 166, 64, 0.14);
}
.signup-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--head);
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.005em;
  outline: none;
}
.signup-input::placeholder { color: rgba(247, 248, 248, 0.55); }
.signup-btn {
  flex: none;
  height: 100%;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 253, 253, 0.9);
  color: var(--ground);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.signup-btn:hover { background: var(--head); }
.signup-btn:focus-visible { outline: 1px solid rgba(240, 166, 64, 0.8); outline-offset: 3px; }
.signup-btn:disabled { opacity: 0.7; cursor: default; }
.signup-msg { margin: 8px 0 0 18px; min-height: 18px; font-size: 13px; line-height: 1.4; color: rgba(247, 248, 248, 0.74); }
.signup-msg:focus { outline: none; }
.signup.is-error .signup-field { box-shadow: inset 0 0 0 1px rgba(255, 208, 122, 0.9), 0 0 0 4px rgba(240, 166, 64, 0.14); }
.signup.is-error .signup-msg { color: var(--accent-hi); }
.signup.is-done .signup-field { display: none; }
.signup.is-done .signup-msg { margin: 0; min-height: 0; font-size: 16px; line-height: 1.45; color: var(--head); }
.signup.is-done .signup-msg::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 2px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-hi), var(--accent) 55%, var(--accent-lo));
}
.signup-lg .signup-field { height: clamp(48px, 3.2vw, 56px); }
.signup-lg .signup-input { font-size: clamp(15px, 1vw, 17px); padding-left: clamp(18px, 1.4vw, 24px); }
.signup-lg .signup-btn { padding: 0 clamp(18px, 1.5vw, 26px); font-size: clamp(14px, 0.95vw, 16px); }

.hero-actions { align-items: flex-start; gap: 12px; }
.hero-actions .signup { flex: 0 1 clamp(420px, 32vw, 560px); max-width: none; }
.cta-signup { margin-top: 22px; max-width: 420px; }
.cta-signup .signup-field { background: rgba(8, 9, 10, 0.34); }
.cta-signup .signup-msg { color: rgba(247, 248, 248, 0.82); }

@media (max-width: 720px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .signup { flex: none; }
}
@media (max-width: 440px) {
  .signup-field { flex-wrap: wrap; height: auto !important; padding: 5px; border-radius: 26px; }
  .signup-input { flex-basis: 100%; height: 44px; }
  .signup-btn { flex: 1 1 100%; height: 44px; }
}

/* Shared order-state chip: WAITING → TRIGGERED → FILLED */
.co-state {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 24px; padding: 0 9px; border-radius: 6px;
  border: 1px solid rgba(240, 166, 64, 0.4);
  color: var(--accent);
  font-size: 10.5px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap;
}
.co-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.co-state[data-state="trig"] { background: rgba(240, 166, 64, 0.16); border-color: rgba(240, 166, 64, 0.75); color: var(--accent-hi); }
.co-state[data-state="fill"] { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); border-color: transparent; color: #0a0804; }
.co-state[data-state="fill"]::before { background: #0a0804; }

/* ---------------------------------------------------------------------------
   Conditional orders: the stop-loss demo
--------------------------------------------------------------------------- */
.sec-co { container-name: co; margin-top: var(--section-y); }
.co-demo { max-width: var(--col); margin: 0 auto; scroll-margin-top: 24px; }
.co-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); font-variant-numeric: tabular-nums; }
.co-demo-cell { min-width: 0; padding: clamp(24px, 2.6cqw, 44px) clamp(18px, 2.6cqw, 44px); border-top: 1px solid var(--line); }
@container co (min-width: 860px) {
  .co-demo-grid { grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); }
  .co-demo-chart { border-left: 1px solid var(--line); }
}

.co-card {
  max-width: 440px;
  box-sizing: border-box;
  padding: 16px 18px 8px;
  border-radius: 10px;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}
.co-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-card-label { font-size: 11px; color: var(--text); }
.co-market { margin-top: 14px; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--head); }
.co-pos { margin-top: 4px; font-size: 12px; color: var(--text); }
.co-rules { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-kw { width: 40px; flex: none; font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.co-tok {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #131416;
  font-size: 12px; color: var(--text-soft); white-space: nowrap;
}
.co-tok-hot { border-color: rgba(240, 166, 64, 0.55); background: rgba(240, 166, 64, 0.08); color: var(--accent); font-weight: 500; }
.co-log { list-style: none; margin: 14px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); }
.co-log li {
  display: flex; align-items: center; gap: 12px; height: 32px;
  font-size: 12.5px; color: var(--text-soft); white-space: nowrap; overflow: hidden;
}
.co-log li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.co-log time { flex: none; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.co-log span { overflow: hidden; text-overflow: ellipsis; }
.co-log li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.co-log li.is-warn { color: var(--text); }
.co-log li.is-warn::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

.co-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.co-chart-label { font-size: 11px; color: var(--text); }
.co-chart-price { margin-top: 4px; font-size: clamp(28px, 2.4cqw, 36px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; color: var(--head); }
.co-chart-clock { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text); white-space: nowrap; }
.co-moon { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset -3px -1px 0 0 var(--text); transform: rotate(-20deg); }
.co-plot { position: relative; height: clamp(190px, 21cqw, 290px); margin-top: 22px; }
.co-svg, .sbx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.co-level, .sbx-level { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.16); pointer-events: none; }
.co-level span, .sbx-level span { position: absolute; right: 0; bottom: 6px; font-size: 10.5px; line-height: 1; color: var(--faint); white-space: nowrap; }
.co-level-stop, .sbx-level { border-top-color: rgba(240, 166, 64, 0.6); }
.co-level-stop span, .sbx-level span { color: var(--accent); }
.co-head {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--head); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.co-head.is-out { background: var(--faint); box-shadow: none; }
.co-fire, .sbx-fire {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; border: 1.5px solid var(--accent); background: var(--ground);
  box-shadow: 0 0 0 4px rgba(240, 166, 64, 0.14), 0 0 18px rgba(240, 166, 64, 0.5);
  opacity: 0; scale: 0.4; pointer-events: none;
}
.co-fire.is-on, .sbx-fire.is-on { opacity: 1; scale: 1; }
.co-outcome { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.co-outcome > div.is-off { opacity: 0; }
.co-outcome-k { display: block; font-size: 11px; color: var(--text); }
.co-outcome-v { display: block; margin-top: 5px; font-size: 17px; line-height: 1.2; font-weight: 500; color: var(--head); }
.co-hot { color: var(--accent); }
.co-dim { color: var(--text); }

/* ---------------------------------------------------------------------------
   Replay sandbox
--------------------------------------------------------------------------- */
.sec-sbx { position: relative; container: sbx / inline-size; color: var(--head); font-family: var(--sans); letter-spacing: -0.01em; text-wrap: pretty; }
.sec-sbx a { color: var(--accent); }
.sbx-wrap { position: relative; padding: var(--section-y) var(--gutter); }
.sbx-col { max-width: var(--col); margin: 0 auto; }
.sbx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 780px; }
.sbx-eyebrow {
  font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); background-image: linear-gradient(90deg, var(--accent-hi), var(--accent) 60%, #d98a2b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.sbx-player {
  position: relative;
  margin-top: clamp(36px, 4.4cqw, 64px);
  border-radius: 20px;
  background: linear-gradient(180deg, #121316 0%, #0e0f11 40%, #0b0c0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.sbx-player::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 180px; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(240, 166, 64, 0.07), transparent 70%);
}
.sbx-bar { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sbx-chip {
  display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 9px; border-radius: 7px;
  border: 1px solid rgba(240, 166, 64, 0.5); background: linear-gradient(180deg, rgba(240, 166, 64, 0.18), rgba(240, 166, 64, 0.05));
  color: var(--accent); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase;
}
.sbx-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--head); }
.sbx-sub { margin-left: 10px; font-weight: 400; color: var(--text); }

.sbx-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.sbx-chart { min-width: 0; padding: 20px clamp(16px, 2.2cqw, 28px) 18px; }
.sbx-chart-head { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; }
.sbx-k { color: var(--text); }
.sbx-v { margin-left: 4px; font-size: 15px; font-weight: 500; color: var(--head); }
.sbx-plot { position: relative; height: clamp(200px, 24cqw, 330px); margin-top: 18px; }
.sbx-level span { left: 0; right: auto; }
.sbx-playhead { position: absolute; top: -6px; bottom: 0; left: var(--x, 0); width: 1px; background: rgba(255, 255, 255, 0.32); pointer-events: none; }
.sbx-playhead::before { content: ''; position: absolute; left: -3px; top: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--head); }
.sbx-book { min-width: 0; padding: 16px clamp(16px, 2cqw, 22px) 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; }
.sbx-book-head { display: flex; justify-content: space-between; padding: 0 8px 8px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sbx-row { position: relative; display: flex; justify-content: space-between; height: 24px; padding: 0 8px; line-height: 24px; border-radius: 4px; }
.sbx-row > i { position: absolute; right: 0; top: 3px; bottom: 3px; width: var(--w, 0%); border-radius: 3px; background: rgba(255, 255, 255, 0.06); }
.sbx-row > span { position: relative; }
.sbx-row.ask { color: var(--text); }
.sbx-row.bid { color: var(--text-soft); }
.sbx-row.bid > i { background: rgba(240, 166, 64, 0.1); }
.sbx-row.is-best { color: var(--head); }
.sbx-row.is-hit { background: rgba(240, 166, 64, 0.14); box-shadow: inset 0 0 0 1px rgba(240, 166, 64, 0.5); color: var(--accent-hi); }
.sbx-spread { display: flex; justify-content: center; height: 24px; margin: 4px 0; line-height: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--faint); }
@container sbx (min-width: 860px) {
  .sbx-body { grid-template-columns: minmax(0, 1fr) clamp(260px, 22cqw, 320px); }
  .sbx-book { border-top: 0; border-left: 1px solid var(--line); padding-top: 20px; }
}
@container sbx (max-width: 859px) {
  .sbx-row.far { display: none; }
}

.sbx-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 16px clamp(16px, 2.2cqw, 28px); border-top: 1px solid var(--line); }
.sbx-order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--text-soft); }
.sbx-kw { margin: 0 3px; font-size: 10.5px; letter-spacing: 0.08em; font-weight: 600; color: var(--accent); }
.sbx-kw:first-child { margin-left: 0; }
.sbx-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.sbx-stats dt { font-size: 11px; color: var(--text); }
.sbx-stats dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--head); white-space: nowrap; }
.sbx-stats dd.is-loss { color: var(--accent); }
.sbx-stats dd small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text); }

.sbx-controls { display: flex; align-items: center; gap: 12px 14px; padding: 12px clamp(14px, 2cqw, 22px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.sbx-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0 10px;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: var(--text-soft);
  font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.sbx-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--head); }
.sbx-btn[aria-pressed="true"] { border-color: rgba(240, 166, 64, 0.55); background: rgba(240, 166, 64, 0.1); color: var(--accent); }
.sbx-btn:focus-visible { outline: 1px solid rgba(240, 166, 64, 0.8); outline-offset: 2px; }
.sbx-play { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(253, 253, 253, 0.9); color: var(--ground); }
.sbx-play:hover { background: var(--head); color: var(--ground); }
.sbx-play .i-pause, .sbx-play.is-playing .i-play { display: none; }
.sbx-play.is-playing .i-pause { display: block; }
.sbx-time { flex: none; font-family: var(--mono); font-size: 12px; color: var(--head); white-space: nowrap; }
.sbx-time-end { color: var(--faint); }
.sbx-scrub { --p: 0%; flex: 1; min-width: 80px; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sbx-scrub::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(240, 166, 64, 0.35), var(--accent) var(--p), rgba(255, 255, 255, 0.14) var(--p)); }
.sbx-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--text-soft)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.sbx-scrub::-moz-range-track { height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.14); }
.sbx-scrub::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--accent); }
.sbx-scrub::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--text-soft)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.sbx-scrub:focus-visible { outline: 1px solid rgba(240, 166, 64, 0.8); outline-offset: 4px; border-radius: 4px; }
.sbx-speed { display: flex; flex: none; gap: 4px; }
@container sbx (max-width: 620px) {
  .sbx-controls { flex-wrap: wrap; }
  .sbx-scrub { order: 5; flex: 1 1 100%; }
  .sbx-speed { margin-left: auto; }
  .sbx-sub, .sbx-time-end { display: none; }
}

.sbx-steps { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(36px, 4cqw, 56px); }
.sbx-step { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.sbx-step-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.sbx-step h3 { margin: 12px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--head); }
.sbx-step p { margin: 8px 0 0; max-width: 320px; font-size: 14px; line-height: 1.55; color: var(--text); }
@container sbx (min-width: 720px) {
  .sbx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .sbx-step { border-top: 0; padding: 26px 28px 8px; }
  .sbx-step:first-child { padding-left: 0; }
  .sbx-step + .sbx-step { border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------------------------
   Features page header
--------------------------------------------------------------------------- */
.sec-fhead { position: relative; container: fhead / inline-size; font-family: var(--sans); letter-spacing: -0.01em; text-wrap: pretty; }
.sec-fhead a { color: var(--head); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.sec-fhead a:hover { color: var(--accent); }
.fhead-wrap { padding: calc(var(--section-y) * 1.4) var(--gutter) 0; }
.fhead-col { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: var(--section-y); border-bottom: 1px solid var(--line); }
.fhead-eyebrow {
  font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); background-image: linear-gradient(90deg, var(--accent-hi), var(--accent) 60%, #d98a2b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fhead-title { margin: 0; max-width: 760px; }
.fhead-lead { margin: 0; max-width: 600px; }

/* Demo motion: only the small transitions live in CSS; the timelines are
   driven from site.js and never start under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes coPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  .co-state[data-state="wait"]::before { animation: coPulse 2s ease-in-out infinite; }
  .co-state { transition: background-color 400ms var(--ease-soft), border-color 400ms var(--ease-soft), color 400ms var(--ease-soft); }
  .co-log li { transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out); }
  .co-log li.is-off { opacity: 0; translate: 0 6px; }
  .co-outcome > div { transition: opacity 600ms var(--ease-out); }
  .co-fire, .sbx-fire { transition: opacity 400ms var(--ease-soft), scale 700ms var(--ease-out); }
  .sbx-row > i { transition: width 180ms var(--ease-soft); }
  .sbx-row { transition: background-color 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft), color 300ms var(--ease-soft); }
}

/* Venue names are blurred like their logos until partnerships are signed:
   the layout keeps its shape, but no venue is named. */
.venue-name {
  filter: blur(4px);
  -webkit-user-select: none;
  user-select: none;
}

/* Conditional orders: the full menu of order types, as quiet chips */
.co-types {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 980px;
}
.co-types li {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.co-types li:nth-child(-n+3) {
  border-color: rgba(240, 166, 64, 0.45);
  background: rgba(240, 166, 64, 0.07);
  color: var(--accent);
}
.co-types-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--faint); }

/* Signup: honeypot stays out of sight and out of the tab order */
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { margin: 2px 0 0 18px; font-size: 11.5px; line-height: 1.4; color: var(--faint); }
.signup.is-done .signup-note { display: none; }
.signup-suggest {
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 208, 122, 0.5);
}
.signup-suggest:hover { color: var(--head); }

/* ---------------------------------------------------------------------------
   Legal pages — one narrow reading column, quiet chrome
--------------------------------------------------------------------------- */
.legal-main { padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(64px, 8vw, 120px); }
.legal { max-width: 720px; margin: 0 auto; color: var(--text-soft); font-size: 16px; line-height: 1.65; }
.legal-eyebrow { font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); font-weight: 500; }
.legal-title { margin: 16px 0 0; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; color: var(--head); }
.legal-updated { margin: 12px 0 0; font-size: 14px; color: var(--text); }
.legal-toc { margin: 40px 0 48px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.legal-toc-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; line-height: 1.8; }
.legal-toc a { color: var(--text-soft); }
.legal-toc a:hover { color: var(--head); text-decoration: underline; text-underline-offset: 3px; }
.legal section { margin-top: 44px; scroll-margin-top: 24px; }
.legal h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; color: var(--head); }
.legal h3 { margin: 26px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--head); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 10px; }
.legal strong { color: var(--head); font-weight: 500; }
.legal a { color: var(--head); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: rgba(255,255,255,0.7); }
.legal-address { color: var(--head); }
.legal-foot { padding: 0 var(--gutter) 8px; }
.legal-foot-inner { border-top-color: var(--line); }
.legal-foot p, .cta-legal p a { color: inherit; }
.legal-foot p { color: var(--text); }
.cta-legal p a { text-decoration: underline; text-underline-offset: 3px; }
.cta-legal .pill { text-decoration: none; }
@media (max-width: 720px) { .legal-toc ol { columns: 1; } }

/* Footer legal row: disclaimer left, legal links right */
.cta-legal { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.cta-legal p { flex: 1 1 420px; }
.cta-legal-links { display: flex; gap: 8px; flex: none; }
.pill-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.cta .pill-ghost { color: rgba(8, 9, 10, 0.78); box-shadow: inset 0 0 0 1px rgba(8, 9, 10, 0.35); background: rgba(8, 9, 10, 0.06); }
.cta .pill-ghost:hover { background: rgba(8, 9, 10, 0.14); color: var(--ground); }
.legal-foot .pill-ghost { color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(255,255,255,0.03); }
.legal-foot .pill-ghost:hover { color: var(--head); background: rgba(255,255,255,0.07); }
.legal-foot .cta-legal { padding-top: 20px; }
@media (max-width: 720px) { .cta-legal { flex-direction: column; align-items: flex-start; } }
.legal-summary { margin: 28px 0 0; padding: 18px 22px; border-left: 2px solid var(--accent); background: rgba(240,166,64,0.05); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
