:root {
  /* Deep-water palette — mirrors the app's Theme.Palette */
  --canvas: #0a142f;       /* app canvas — deep ink water */
  --card: #14224a;         /* raised navy rows/tiles */
  --hairline: rgba(255,255,255,.12);
  --foam-text: #eaf2fc;    /* primary text on dark */
  --muted-foam: #8fa6d1;   /* secondary text on dark */
  --ink: #0a1f57;          /* navy text on light wells */
  --blue: #0d2973;
  --orange: #ee4418;       /* the eel's hot orange — single loud accent */
  --sky: #6baee8;          /* interactive / quiet accent */
  --well: #e7eff9;         /* light foam well behind board photos */
  --paper: #f4f7fb;
  --muted: #7787ad;
  --display: "Anton", Impact, sans-serif;
  --body: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  /* `clip` (not just hidden-on-body) is what actually stops iOS Safari from
     letting you pan sideways when animated boards fly in from off-screen */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--foam-text);
  background: var(--canvas);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: white; background: var(--orange); }

.loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: var(--orange);
}

.loader img {
  width: clamp(110px, 15vw, 190px);
  filter: drop-shadow(0 18px 18px rgba(10, 31, 87, .24));
}

.loader span {
  position: absolute;
  bottom: 8vh;
  font: 500 .67rem/1 var(--mono);
  letter-spacing: .25em;
}

.nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr minmax(100px, 26vw) 1fr;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 0 3vw;
  color: var(--foam-text);
  border-bottom: 1px solid var(--hairline);
  transition: background .3s, border-color .3s;
}

.nav.scrolled {
  background: rgba(10,20,47,.85);
  border-color: var(--hairline);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: .04em;
}

.brand img {
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.nav-progress {
  height: 1px;
  overflow: hidden;
  background: currentColor;
  opacity: .28;
}

.nav-progress span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  justify-self: end;
}

.nav-contact {
  padding: .72rem 1.05rem;
  color: var(--foam-text);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font: 700 .66rem/1 var(--body);
  letter-spacing: .12em;
  transition: border-color .2s, color .2s;
}

.nav-contact:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-cta {
  padding: .72rem 1.05rem;
  color: white;
  background: var(--orange);
  border-radius: 6px;
  font: 700 .66rem/1 var(--body);
  letter-spacing: .12em;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
  padding: 8rem 6vw 5rem;
  color: var(--foam-text);
  background: var(--canvas);
  isolation: isolate;
}

/* Fixed to the viewport so the same deep-water lines run behind every
   navy section — no cutoff where the hero ends. */
.ocean, .grain {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  z-index: -1;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--orange);
  font: 700 .68rem/1 var(--body);
  letter-spacing: .22em;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font: 400 clamp(5.8rem, 10.4vw, 11.5rem)/.8 var(--display);
  letter-spacing: -.035em;
}

/* Feature ticker under the headline — replaces the old eyebrow. */
.hero-tagline {
  margin: 0 0 2rem;
  color: var(--sky);
  font: 700 .68rem/1.6 var(--body);
  letter-spacing: .22em;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line > span {
  display: block;
  will-change: transform;
}

.title-line.outline > span {
  color: transparent;
  -webkit-text-stroke: 2px var(--foam-text);
}

.primary-button {
  display: inline-grid;
  min-height: 52px;
  padding: 0 1.9rem;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(238,68,24,.28);
  font: 700 .74rem/1 var(--body);
  letter-spacing: .1em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
}

/* Inline signup that the hero CTA expands into — same .beta-form plumbing
   as the final CTA, restyled for the navy canvas. */
.hero-beta-form { width: min(100%, 460px); }
/* display rules on these classes beat the UA [hidden] default */
.hero-beta-form[hidden],
.hero-signup-cta[hidden] { display: none; }
.hero-beta-form input { min-height: 52px; }
.hero-beta-form input:focus { border-color: var(--orange); }
.hero-beta-status { min-height: 0; margin: 0; }
.hero-beta-status:empty { display: none; }

/* Quieter companion to the primary CTA: translucent foam fill, like the
   app's SoftButtonStyle. */
.ghost-button {
  display: inline-grid;
  min-height: 48px;
  padding: 0 1.6rem;
  place-items: center;
  color: var(--foam-text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font: 700 .7rem/1 var(--body);
  letter-spacing: .1em;
  transition: border-color .2s, background .2s;
}

.ghost-button:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
}

.hero-product {
  position: relative;
  justify-self: center;
  width: min(34vw, 460px);
}

.board-photo {
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(10px 14px 10px rgba(0,0,0,.2));
}

/* Hero board card: one raised app-style tile — board photo on a foam
   well, wave/performance swells, a Quivr insight, and the top review. */
.hero-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.45rem 1.3rem;
  color: var(--foam-text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 26px 64px rgba(0,0,0,.42);
  transform-style: preserve-3d;
  will-change: transform;
}

.hc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hc-head > div:first-child {
  display: grid;
  gap: .3rem;
}

.hc-brand {
  color: var(--muted-foam);
  font: 700 .58rem/1 var(--body);
  letter-spacing: .16em;
}

.hc-model {
  font: 400 2.1rem/1 var(--display);
  letter-spacing: .02em;
}

.hc-dims {
  color: var(--orange);
  font: 500 .6rem/1 var(--mono);
  letter-spacing: .06em;
}

.hc-score {
  display: grid;
  justify-items: end;
  gap: .25rem;
  text-align: right;
}

.hc-score strong {
  font: 400 1.9rem/1 var(--display);
  letter-spacing: .01em;
}

.hc-score .stars {
  color: var(--orange);
  font-size: .8rem;
  letter-spacing: .14em;
}

.hc-score em {
  color: var(--muted-foam);
  font: 500 .52rem/1 var(--mono);
  font-style: normal;
  letter-spacing: .12em;
}

.hc-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.hc-well {
  display: grid;
  place-items: center;
  padding: .8rem 1.1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

.hero-board {
  width: 84px;
  height: 218px;
  filter: drop-shadow(12px 14px 14px rgba(0,0,0,.3));
}

.hc-metrics {
  display: grid;
  gap: .7rem;
  align-content: center;
}

.hc-metrics > .hc-label { color: var(--sky); }

.hc-metric { display: grid; gap: .35rem; }

.hc-label {
  color: var(--muted-foam);
  font: 700 .56rem/1 var(--body);
  letter-spacing: .16em;
}

.hc-metric .swell { height: 30px; }
.hc-metric .axis { font-size: .5rem; }

.hc-insight {
  margin: 0;
  padding: .8rem .95rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: .84rem;
  line-height: 1.5;
}

.hc-insight span {
  margin-right: .4rem;
  color: var(--orange);
}

.hc-review {
  display: grid;
  gap: .4rem;
}

.hc-review p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
}

.avatar-row {
  display: flex;
}

.face {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  font: 700 .66rem/1 var(--body);
  font-style: normal;
  letter-spacing: .04em;
}

.face + .face { margin-left: -12px; }
.face-a { background: var(--orange); }
.face-b { background: var(--sky); }
.face-c { background: var(--blue); }
.face-more {
  color: white;
  background: rgba(255,255,255,.18);
  font-size: .6rem;
}

.swell {
  display: block;
  width: 100%;
  height: 48px;
}

/* Spectrum bars are eel orange on a foam track, like the app's charts. */
.swell-fill { fill: rgba(238,68,24,.8); }
.swell-base { fill: rgba(255,255,255,.22); }

.axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted-foam);
  font: 500 .5rem/1 var(--mono);
  letter-spacing: .08em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .6rem;
  transform: translateX(-50%);
  color: var(--muted-foam);
  font: 700 .55rem/1 var(--body);
  letter-spacing: .18em;
}

.scroll-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--orange), transparent);
}

/* ============ SCROLL STORY ============ */

.story {
  position: relative;
  height: 100svh;
  overflow: hidden;
  color: var(--foam-text);
  /* transparent so the fixed ocean canvas shows through */
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(58% 50% at 50% 42%, rgba(107,174,232,.14), transparent 72%);
}

.story-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-rail {
  position: absolute;
  z-index: 5;
  /* Sits below the scene copy's tallest variant so the two left-column
     layers never overlap, even on tall narrow viewports (iPad portrait). */
  top: 62%;
  left: 3vw;
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.story-rail li {
  position: relative;
  padding-left: 2.35rem;
  color: rgba(234,242,252,.38);
  font: 700 .95rem/1 var(--body);
  letter-spacing: .16em;
  transition: color .35s;
}

.story-rail button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1rem .6rem 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.story-rail li:hover { color: rgba(234,242,252,.85); }

.story-rail li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: width .35s;
}

.story-rail li.active { color: var(--orange); }
.story-rail li.active::before { width: 1.8rem; }

/* Persistent boards — svh so mobile toolbar collapse can't oversize them
   past the pinned 100svh stage; z above the floating UI per design. */
.story-board {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: auto;
  height: min(64svh, 640px);
  opacity: 0;
  filter: drop-shadow(22px 26px 26px rgba(0,0,0,.42));
}

/* Floating scene elements */
.fx {
  position: absolute;
  z-index: 4;
  opacity: 0;
}

@keyframes blink { 50% { opacity: 0; } }

/* Per-scene feature copy */
.scene-copy {
  top: max(12%, 96px);
  left: 3vw;
  display: grid;
  gap: 1.1rem;
  width: min(27vw, 440px);
}

.copy-eyebrow {
  margin: 0;
  color: var(--orange);
  font: 700 .64rem/1 var(--body);
  letter-spacing: .22em;
}

.scene-copy h3 {
  margin: 0;
  color: var(--foam-text);
  font: 400 clamp(2.6rem, 3.8vw, 4.6rem)/.88 var(--display);
  letter-spacing: -.02em;
}

.scene-copy p:last-child {
  max-width: 380px;
  margin: 0;
  color: rgba(234,242,252,.66);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Raised navy card + hairline — the single container treatment used
   app-wide, floated over the stage. */
.card {
  padding: 1.25rem 1.4rem;
  color: var(--foam-text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 22px 55px rgba(0,0,0,.4);
}

.chip {
  display: grid;
  gap: .35rem;
  padding: .95rem 1.15rem;
  color: var(--foam-text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
}

.chip-label, .card-label {
  color: var(--muted-foam);
  font: 700 .58rem/1 var(--body);
  letter-spacing: .16em;
}

.chip-title strong { font: 400 2.2rem/1 var(--display); letter-spacing: .02em; }
.chip strong { font-size: 1.05rem; font-family: var(--mono); }
.chip-title strong { font-family: var(--display); }
.chip-sub { color: var(--muted-foam); font: 500 .58rem/1.35 var(--mono); letter-spacing: .05em; }

/* Scene 0 · search */
.story-search {
  top: 22%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: min(80vw, 520px);
  padding: 1.15rem 1.3rem;
  color: var(--muted-foam);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(0,0,0,.36);
  font-size: 1.05rem;
}
.story-search svg { flex: none; width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.results-row {
  top: 36%;
  left: 50%;
  display: flex;
  gap: 1.4rem;
}

.result-card {
  display: grid;
  gap: .32rem;
  width: 215px;
  padding: 1.1rem 1.2rem;
  justify-items: center;
  text-align: center;
  color: var(--foam-text);
  background: var(--card);
  border: 2px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
}

/* Translucent foam well behind each catalog shot — keeps white boards
   legible without reading as a solid color block behind the PNG. */
.board-well {
  display: grid;
  place-items: center;
  margin-bottom: .5rem;
  padding: .55rem .9rem;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.result-board { width: 62px; height: 156px; }
.result-card small { color: var(--muted-foam); font: 700 .52rem/1 var(--body); letter-spacing: .12em; }
.result-card strong { font-size: 1rem; font-family: var(--display); font-weight: 400; letter-spacing: .04em; }
.result-card em { color: var(--orange); font: 500 .56rem/1 var(--mono); font-style: normal; }
.story-search .typed { color: var(--foam-text); font-weight: 600; }
.story-search .caret {
  width: 2px;
  height: 1.1em;
  background: var(--orange);
  animation: blink 1s steps(1) infinite;
}

/* Scene 1 · board page — top offsets clear the fixed 76px nav on short
   viewports; the dims chip starts right of the rail column. */
.chip-title { top: max(9%, 96px); left: 31%; transform: rotate(-2deg); }
.chip-dims { top: 64%; left: max(12%, 240px); transform: rotate(2deg); }
.card-summary { top: 81%; left: 50%; }
.card-spectrum {
  top: max(13%, 100px);
  right: 6%;
  display: grid;
  gap: .95rem;
  width: min(26vw, 340px);
}
.card-summary, .card-cmp-insight {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  width: min(86vw, 560px);
}
.card-summary span, .card-cmp-insight span { color: var(--orange); font-size: 1.15rem; line-height: 1; }
.card-summary p, .card-cmp-insight p { margin: 0; font-size: .95rem; line-height: 1.5; }

.metric { display: grid; gap: .35rem; }
.metric-title { color: var(--foam-text); font: 700 .58rem/1 var(--body); letter-spacing: .14em; }
.card-spectrum .swell { height: 44px; }
.card-spectrum .axis { font-size: .5rem; }

/* Riders proof lives on the board page now. */
.card-riders {
  top: 58%;
  right: 6%;
  display: grid;
  gap: .8rem;
  width: min(26vw, 340px);
}
.card-riders .face { width: 40px; height: 40px; font-size: .58rem; }
.riders-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.riders-rating { display: grid; gap: .3rem; justify-items: end; }
.riders-rating strong { color: var(--orange); font: 400 1.7rem/1 var(--display); }
.riders-rating span { color: var(--muted-foam); font: 700 .52rem/1 var(--body); letter-spacing: .14em; }

/* Scene 2 · compare — boards center stage, one shared overlapping chart
   below them, insight card on the right. */
.cmp-name {
  top: max(13%, 104px);
  font: 400 2.1rem/1 var(--display);
  letter-spacing: .02em;
  white-space: nowrap;
}
.cmp-name-a { left: calc(50% - 9.5vw); color: var(--orange); }
.cmp-name-b { left: calc(50% + 9.5vw); color: var(--sky); }

.cmp-overlay {
  top: 64%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
  width: min(66vw, 880px);
}
.cmp-overlay .metric-title { color: rgba(234,242,252,.72); font-size: .66rem; }
.cmp-overlay .swell { height: 72px; }
.cmp-overlay .swell-base { fill: rgba(255,255,255,.35); }
.cmp-overlay .axis { color: rgba(234,242,252,.5); }
.duo-coral {
  fill: rgba(238,68,24,.5);
  stroke: var(--orange);
  stroke-width: 1.5;
}
.duo-sky {
  fill: rgba(107,174,232,.5);
  stroke: var(--sky);
  stroke-width: 1.5;
}

.card-cmp-insight { top: 40%; right: 4%; width: min(24vw, 320px); }

/* Big action stamp — the "you did a thing" moment slams across center
   stage so the add action is impossible to miss. */
.action-stamp {
  top: 40%;
  left: 50%;
  z-index: 9;
  padding: 1.2rem 2.4rem 1.05rem;
  color: white;
  background: var(--orange);
  border-radius: 14px;
  box-shadow: 0 34px 90px rgba(238,68,24,.5), inset 0 0 0 3px rgba(255,255,255,.4);
  font: 400 clamp(2.2rem, 4.6vw, 4.2rem)/1 var(--display);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* Quiver stamp lies level across the middle of the board (which shifts
   10vw left) — prominent but calm, no tilt. */
.stamp-quiver {
  top: 38%;
  left: calc(50% - 10vw);
  transform: none;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

/* Scene 3 · quiver — board stays center stage, entry details pop up on
   the right as bare text rows (no card). */
.quiver-details {
  top: 33%;
  right: 7%;
  display: grid;
  gap: 1.35rem;
  width: min(26vw, 340px);
}
.q-detail {
  display: grid;
  gap: .4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sky);
}
.q-detail span {
  color: var(--muted-foam);
  font: 700 .54rem/1 var(--body);
  letter-spacing: .16em;
}
.q-detail strong {
  color: var(--foam-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}
.q-detail:last-child strong {
  color: rgba(234,242,252,.82);
  font-style: italic;
  font-weight: 500;
}

/* Scene 4 · feed */
.feed-post {
  top: 35%;
  left: 50%;
  width: min(88vw, 520px);
  padding: 1.2rem 1.35rem;
  color: var(--foam-text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 24px 58px rgba(0,0,0,.4);
}
.feed-main { z-index: 8; }
.feed-post .post-user { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.feed-post .post-user i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font: 700 .56rem/1 var(--body);
  font-style: normal;
}
.feed-post .post-user i.pfp { overflow: hidden; }
.feed-post .post-user i.pfp img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.feed-post .post-user > div { display: flex; flex-direction: column; gap: .16rem; }
.feed-post .post-user b { font-size: .76rem; letter-spacing: .04em; }
.feed-post .post-user span { color: var(--muted-foam); font: 500 .54rem/1 var(--mono); }
.feed-post .stars { margin-left: auto; color: var(--orange); font-size: .95rem; }
.feed-post p { margin: .2rem 0 .6rem; font-size: .92rem; line-height: 1.5; }
.post-foot { display: flex; justify-content: space-between; color: var(--muted-foam); font: 500 .56rem/1 var(--mono); letter-spacing: .06em; }
.post-likes, .post-comments { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; }

/* Review composer — the review gets typed, then posted */
.feed-composer { z-index: 9; }
.composer-stars { display: inline-flex; gap: .12rem; }
.composer-stars span { color: rgba(255,255,255,.25); }
.composer-text {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-height: 4.4em;
  margin: .3rem 0 .75rem;
  padding: .65rem .75rem;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.5;
}
.composer-text .caret {
  flex: none;
  width: 2px;
  height: 1.2em;
  background: var(--orange);
  animation: blink 1s steps(1) infinite;
}
.post-btn {
  display: block;
  width: max-content;
  margin-left: auto;
  padding: .68rem 1.15rem;
  color: white;
  background: var(--orange);
  border-radius: 14px;
  font: 700 .6rem/1 var(--body);
  letter-spacing: .14em;
}

/* Reactions raining onto the posted review */
.comment-bubble {
  z-index: 9;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem .65rem .7rem;
  color: var(--foam-text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
}
.comment-bubble i {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--sky);
  border-radius: 50%;
  font: 700 .5rem/1 var(--body);
  font-style: normal;
}
.comment-bubble p { margin: 0; font-size: .82rem; white-space: nowrap; }
.comment-a { top: 30%; left: 13%; transform: rotate(-3deg); }
.comment-b { top: 60%; right: 11%; transform: rotate(2deg); }
.story-disclaimer {
  top: 88%;
  left: 50%;
  width: min(88vw, 460px);
  color: rgba(234,242,252,.5);
  font: 500 .5rem/1.55 var(--mono);
  letter-spacing: .03em;
  text-align: center;
}

.final-cta h2 { font-family: var(--display); letter-spacing: -.035em; }

/* Reduced-motion / no-JS fallback: stacked scenes */
.story.is-static { height: auto; padding: 6rem 1.4rem; }
.story.is-static::before,
.story.is-static .story-rail,
.story.is-static .story-board { display: none; }
.story.is-static .story-stage {
  position: relative;
  inset: auto;
  display: grid;
  gap: 1.4rem;
  max-width: 460px;
  margin: 0 auto;
}
.story.is-static .fx {
  position: relative;
  top: auto; right: auto; bottom: auto; left: auto;
  width: auto;
  opacity: 1;
  transform: none !important;
}

.story.is-static .scene-copy { display: grid; }
.story.is-static .results-row { flex-wrap: wrap; justify-content: center; }

.final-cta {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  align-content: center;
  overflow: hidden;
  padding: 7rem 2rem 2rem;
  text-align: center;
  color: white;
  background: var(--orange);
}

.final-cta > img {
  width: clamp(120px, 15vw, 210px);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 24px 20px rgba(10,31,87,.25));
}

.final-cta .eyebrow { color: var(--ink); }
.final-cta h2 {
  margin-bottom: 2.4rem;
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: .78;
}
.final-cta h2 span {
  color: transparent;
  -webkit-text-stroke: 2px white;
}
.final-cta .primary-button {
  color: var(--orange);
  background: white;
  box-shadow: 0 12px 30px rgba(10,31,87,.16);
}

.beta-sub {
  max-width: 420px;
  margin: -1.2rem 0 1.6rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.beta-form {
  display: flex;
  gap: .6rem;
  /* never wider than the final CTA's padded box (2rem sides) — a wider
     form overflows the centered grid column and shifts everything
     off-center on phones */
  width: min(100vw - 4rem, 460px);
}

.beta-form input {
  flex: 1;
  min-width: 0;
  padding: 0 1.1rem;
  color: var(--ink);
  background: white;
  border: 2px solid transparent;
  border-radius: 14px;
  font: 500 .82rem/1 var(--body);
  outline: none;
}

.beta-form input:focus { border-color: var(--ink); }
.beta-form input::placeholder { color: var(--muted); }

.beta-form .primary-button { border: 0; cursor: pointer; }

.beta-status {
  min-height: 1.2em;
  margin: 1rem 0 0;
  font: 500 .68rem/1.4 var(--mono);
  letter-spacing: .08em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.final-cta footer {
  position: absolute;
  right: 3vw;
  bottom: 1.5rem;
  left: 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 .58rem/1 var(--mono);
  letter-spacing: .12em;
}
.final-cta footer .footer-links {
  display: flex;
  gap: 1.2rem;
}
.final-cta footer a {
  color: inherit;
  text-decoration: none;
}
.final-cta footer a:hover { color: white; }

/* Mid-width screens (small laptops, iPad Pro portrait): tighten the scene
   copy so it ends well above the rail. */
@media (max-width: 1280px) and (min-width: 901px) {
  .scene-copy { width: min(30vw, 340px); gap: .8rem; }
  .scene-copy h3 { font-size: 2.5rem; }
  .scene-copy p:last-child { max-width: 300px; font-size: .88rem; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr 1fr; height: 64px; padding: 0 1rem; }
  .nav-progress { display: none; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 29px; height: 36px; }
  .nav-actions { gap: .45rem; }
  .nav-cta { font-size: .58rem; padding: .66rem .7rem; white-space: nowrap; }
  .nav-contact { font-size: .58rem; padding: .66rem .7rem; white-space: nowrap; }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 8rem 1.2rem 5rem;
  }
  .hero-copy { position: relative; z-index: 3; }
  /* Sized so "NEXT MAGIC" stays on one line — wrapped lines collide at
     the .8 leading. */
  .hero h1 { font-size: clamp(4rem, 17vw, 9rem); }
  /* Tablet: card drops into the flow below the copy, centered. */
  .hero-product {
    width: min(84vw, 440px);
    margin: 2.4rem auto 0;
  }
  .scroll-cue { left: 1.2rem; align-items: flex-start; transform: none; }

  /* Scene copy is hidden at this width, so the rail can recenter. */
  .story-rail { top: 50%; left: 1.2rem; gap: .3rem; }
  .story-rail li { padding-left: 1.8rem; font-size: .74rem; }
  .story-board { height: 46svh; }
  .scene-copy { display: none; }
  .story-search { top: 20%; width: min(88vw, 320px); }
  .results-row { top: 32%; gap: .6rem; }
  .result-card { width: 29vw; padding: .7rem .5rem; }
  .board-well { padding: .35rem .55rem; }
  .result-board { width: 38px; height: 96px; }
  .result-card strong { font-size: .7rem; }
  .result-card em { font-size: .46rem; }
  .chip-title { top: 19%; left: 5%; }
  .chip-dims { top: 68%; left: 5%; }
  .card-spectrum { top: 14%; right: 4%; width: min(56vw, 230px); }
  .card-riders { top: 56%; right: 4%; width: min(56vw, 230px); }
  .card-summary { top: 84%; width: min(90vw, 380px); }
  /* Name offsets track the boards' JS x-offsets (±16vw at this width). */
  .cmp-name { top: 10%; font-size: 1.5rem; }
  .cmp-name-a { left: calc(50% - 16vw); }
  .cmp-name-b { left: calc(50% + 16vw); }
  .cmp-overlay { top: 60%; width: 92vw; gap: 1.2rem; }
  .card-cmp-insight { top: auto; right: 4%; bottom: 4%; left: 4%; width: auto; }
  .quiver-details { right: 4%; width: 38vw; }
  .feed-post { width: min(92vw, 400px); }
  .comment-a { left: 4%; }
  .comment-b { right: 4%; }
}

@media (max-width: 520px) {
  /* Phones: hero card lives in the flow below the copy, full width. */
  .hero { padding: 7rem 1.2rem 9rem; }
  .scroll-cue {
    left: 50%;
    align-items: center;
    transform: translateX(-50%);
  }
  .hero-product { width: 100%; margin: 2rem auto 0; }
  .hero-tagline { font-size: .58rem; letter-spacing: .16em; }
  .hero-card { padding: 1.1rem 1.1rem 1rem; gap: .85rem; }
  .hc-model { font-size: 1.7rem; }
  .hc-score strong { font-size: 1.5rem; }
  .hero-board { width: 64px; height: 168px; }
  .hc-metric .swell { height: 24px; }
  .hc-metric .axis { font-size: .44rem; }
  .hc-insight { font-size: .76rem; }
  .hc-review p { font-size: .8rem; }

  /* Phones: fewer simultaneous chips, full-width vertical bands so
     nothing overlaps. Board sits behind as the constant centerpiece. */
  .story-rail { display: none; }
  .story-board { height: 34svh; }
  .chip-title strong { font-size: 1.3rem; }
  .card-summary p, .card-cmp-insight p { font-size: .74rem; }

  /* Compact scene explainers pinned to the top of the stage — every
     scene's furniture below is pushed down to clear them. */
  .scene-copy {
    display: grid;
    top: 8%;
    left: 4%;
    right: 4%;
    gap: .55rem;
    width: auto;
  }
  .copy-eyebrow { font-size: .56rem; }
  .scene-copy h3 { font-size: 1.75rem; }
  .scene-copy p:last-child { max-width: none; font-size: .8rem; }

  .story-search { top: 27%; width: min(90vw, 340px); }
  .results-row { top: 42%; }

  .chip-dims { display: none; }
  .chip-title { top: 47%; left: 4%; right: 4%; }
  .card-spectrum {
    top: 60%;
    left: 4%;
    right: 4%;
    gap: .6rem;
    width: auto;
    padding: 1rem 1.1rem;
  }
  .card-spectrum .swell { height: 30px; }
  .card-riders { display: none; }
  .card-summary { display: none; }

  /* Name offsets track the boards' JS x-offsets (±22vw on phones). */
  .cmp-name { top: 25%; font-size: 1.15rem; }
  .cmp-name-a { left: calc(50% - 22vw); }
  .cmp-name-b { left: calc(50% + 22vw); }
  .cmp-overlay {
    top: 52%;
    grid-template-columns: 1fr;
    gap: .9rem;
    width: 92vw;
  }
  .cmp-overlay .swell { height: 40px; }
  .card-cmp-insight { bottom: 2%; width: 92vw; }

  /* Board shrinks toward the top (via JS) so the entry rows below stay clear. */
  .quiver-details { top: 48%; left: 4%; right: 4%; width: auto; gap: .9rem; }
  .stamp-quiver {
    top: 34%;
    left: 50%;
    padding: .95rem 1.5rem .85rem;
    font-size: 1.55rem;
  }
  .feed-post { top: 30%; width: 92vw; }
  .comment-bubble p { font-size: .7rem; }
  .comment-a { top: 28%; }
  .comment-b { top: 66%; }
  /* Sized so "BUILD YOUR" holds one line; roomier leading than desktop so
     the outlined "QUIVER." doesn't ride up into the line above. */
  .final-cta h2 {
    font-size: clamp(3rem, 14.5vw, 5.5rem);
    line-height: .98;
  }
  .final-cta footer { align-items: center; flex-direction: column; gap: .7rem; }
  .beta-form { flex-direction: column; }
  .beta-form input { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
