/* ==========================================================================
   TrueReact waitlist — styles.css
   Source of truth: DESIGN.md + PLAN.md design/eng addenda.
   Scene-based, no dark mode. Five colors, no gradients beyond the hero
   photo legibility scrim. Radius: controls 8px, media 2px.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, weights 100-1000) ---------- */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --nordic-blue: #6987A4;
  --rich-carmine: #9C2438;
  --charcoal: #16263C;
  --off-white: #F7F5F2;
  --light-grey: #E7E8E9;

  --gutter: 20px;
  --scene-pad: 64px; /* mobile vertical scene padding */
}

@media (min-width: 768px) {
  :root {
    --gutter: 64px;
    --scene-pad: 96px;
  }
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* v2: charcoal never carries a large surface — overscroll shows blue. */
  background: var(--nordic-blue);
  color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: off-screen, never focusable, never announced */
.hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Scene surfaces ---------- */

.scene { padding: var(--scene-pad) var(--gutter); }

.scene-dark {
  background: var(--charcoal);
  color: var(--off-white);
  --text: var(--off-white);
  --muted: rgba(247, 245, 242, 0.62);
  --surface: rgba(247, 245, 242, 0.04);
  --line: rgba(105, 135, 164, 0.4); /* dividers in charcoal scenes are nordic */
}

.scene-light {
  background: var(--off-white);
  color: var(--charcoal);
  --text: var(--charcoal);
  --muted: #4E5D72;
  --surface: rgba(22, 38, 60, 0.04);
  --line: rgba(22, 38, 60, 0.14);
}

.scene-blue {
  background: var(--nordic-blue);
  color: var(--off-white);
  --text: var(--off-white);
  --muted: rgba(22, 38, 60, 0.8);
  --surface: var(--off-white);
  --line: rgba(22, 38, 60, 0.25);
}

.inner { max-width: 1080px; margin: 0 auto; }

/* ---------- Voices ---------- */

.hud {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--nordic-blue);
}
.scene-dark .hud { color: var(--muted); }
.scene-blue .hud { color: var(--charcoal); }
.scene-light .hud { color: var(--muted); }

.title-card {
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.035em;
}

.statement {
  font-weight: 500;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.dot { color: var(--rich-carmine); }

/* ---------- Focus (charcoal on blue scenes, nordic elsewhere) ---------- */

:focus-visible {
  outline: 3px solid var(--nordic-blue);
  outline-offset: 2px;
}
.scene-blue :focus-visible { outline-color: var(--charcoal); }
.lie :focus-visible { outline-color: #555; }

/* ---------- Brand top bar (inside hero scene, not sticky) ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding: 16px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}
.brand .mark { color: var(--rich-carmine); flex: none; }
.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.topbar-static { position: static; padding-left: 0; padding-right: 0; }
.scene-light .wordmark, .topbar .wordmark-dark { color: var(--charcoal); }

/* ---------- Buttons and controls ---------- */

.btn {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
.btn-primary { background: var(--rich-carmine); color: var(--off-white); }
.btn-primary:hover { background: #B12A41; }
.btn-ghost {
  background: transparent;
  color: var(--text, var(--off-white));
  border: 1px solid var(--line, rgba(247, 245, 242, 0.25));
}
.btn-ghost:hover { border-color: var(--text, var(--off-white)); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-block { width: 100%; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* never below 16px: iOS zoom */
  font-weight: 400;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(22, 38, 60, 0.35);
  border-radius: 8px;
  padding: 13px 16px;
  min-height: 44px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
input::placeholder { color: #6B7787; }
input[type="email"]:hover,
input[type="text"]:hover,
select:hover { border-color: rgba(22, 38, 60, 0.6); }
/* Unchosen select reads as a placeholder, matching the email field
   (required + disabled empty option: :invalid is exactly that state). */
select:invalid { color: #6B7787; }
select option { color: var(--charcoal); }
/* Enhancement only — the :focus-visible outline above (charcoal on blue
   scenes) stays: never suppress the contract's visible focus ring. */
input[type="email"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(22, 38, 60, 0.25);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316263C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---------- Form block (off-white surface: all small functional text on
   blue scenes lives here — charcoal on off-white, 13.1:1) ---------- */

.form-block {
  background: var(--off-white);
  color: var(--charcoal);
  border-radius: 8px;
  padding: 24px;
  max-width: 460px;
}

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }

.capture { display: flex; gap: 10px; }
.capture input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
}

.microcopy {
  font-size: 13px;
  line-height: 1.5;
  color: #4E5D72;
  margin-top: 16px;
}

/* Inline field errors: charcoal on off-white, never carmine */
.field-error {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 8px;
}

/* Success state: main.js replaces input+button in place with this */
.form-success {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--charcoal);
}

/* Counter slot: pre-reserved height so the line never shifts layout */
.counter-slot {
  min-height: 22px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}

/* ---------- Scene 1 · Hero poster ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh; /* dvh with svh fallback */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
}

/* v2: the full-bleed background face is gone. The face now lives inside the
   "Their reaction · saved" card, so a duplicate bleed behind it made the
   explain cards unreadable. The poster is solid nordic blue. */

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 96px var(--gutter) 40px;
}
@media (min-width: 768px) {
  .hero-content {
    max-width: 1080px;
    margin: 0 auto;
  }
  .hero-content > * { max-width: 680px; }
  /* Higher specificity than the > * cap: the card stays 460px, matching the
     final-frame instance of the same component. */
  .hero-content .form-block { max-width: 460px; }
}

/* Desktop poster: two columns — headline/statement/form on the left,
   the create → send → captured explain stack on the right. The composition
   centers vertically (the topbar is absolutely positioned, so equal padding
   above and below balances the whitespace); flex-end stays below 1024 where
   form-near-thumb matters. */
@media (min-width: 1024px) {
  .hero { justify-content: center; }
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .hero-caption,
  .hero h1,
  .hero-statement,
  .hero-content .form-block { grid-column: 1; }
  .hero-explain {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0 0 0 auto;
  }
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.recdot {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--rich-carmine);
  animation: pulse 1s steps(1) infinite;
}
@keyframes pulse {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.25; }
}

.hero h1 {
  /* Sized so "capture the moment / they find out." holds the contract's
     2-line break at the 390px design width (addendum: "Headline (clamp,
     2 lines)"); measured 2 lines from 360px up. */
  font-size: clamp(2rem, 10vw, 4.25rem);
  margin-bottom: 24px;
}

.hero-statement {
  /* 26px from ~433px up; scales down below so the statement keeps its
     2-line budget in a 390px column (addendum: "max 2 lines"). */
  font-size: clamp(1.25rem, 6vw, 1.625rem);
  max-width: 34ch;
  margin-bottom: 28px;
}

/* Poster scale on desktop only; the 390px two-line budgets stay untouched.
   56px keeps "capture the moment" (~520px) inside the two-column hero's
   left column (~590px at 1280) so the film-cut break holds. */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .hero-statement { font-size: clamp(1.5rem, 2.2vw, 2rem); }
}

/* Create → send → captured: two beats and an arrow. Real assets only. */
.hero-explain {
  max-width: 340px;
  margin-bottom: 28px;
}
.explain-card {
  background: var(--off-white);
  color: var(--charcoal);
  border-radius: 8px;
  padding: 16px;
}
.explain-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.explain-reveal {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.explain-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--charcoal);
  text-align: center;
  padding: 6px 0;
}
.explain-still {
  border-radius: 2px;
  overflow: hidden;
}
.explain-still img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 68% 12%;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.05);
}
/* Same duotone as the story stills: one film, many frames. */
.explain-still {
  position: relative;
}
.explain-still::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--charcoal);
  mix-blend-mode: color;
  pointer-events: none;
}

/* Big displays (1440+): the poster scales up instead of floating undersized
   in a void. Wider content column, wider gap, larger type, bigger explain
   cards. Nothing below 1440 changes. Placed after the explain-card base rules
   so the equal-specificity overrides here actually win in the cascade. */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 1360px;
    grid-template-columns: minmax(0, 1fr) 560px;
    column-gap: 96px;
  }
  .hero h1 { font-size: clamp(4.25rem, 5.8vw, 7rem); }
  .hero-statement {
    font-size: clamp(1.75rem, 2.3vw, 2.75rem);
    max-width: 30ch;
  }
  .hero-explain { max-width: 560px; }
  .explain-card { padding: 24px; }
  .explain-reveal { font-size: 1.9rem; }
  .hero-content .form-block { max-width: 500px; }
  /* Shared content width: the carousel and final frame breathe too. */
  .inner { max-width: 1200px; }
}

/* Lives inside the off-white form block (Decision 22: small functional text
   on blue scenes sits on the form-block surface — charcoal there is 13.1:1). */
.hero-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  text-decoration: none;
}
.hero-anchor:hover { text-decoration: underline; }

/* ---------- Scene 2 · Our story (off-white, swipeable carousel) ---------- */

.story .scene-label { display: block; margin-bottom: 28px; }

.carousel { max-width: 420px; }
.carousel-stage { position: relative; }
.video-chip {
  position: absolute;
  display: none; /* JS-gated: shown only when the active slide is a video */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  cursor: pointer;
}
.video-chip svg { width: 20px; height: 20px; }
.video-chip .on { display: none; }
.video-chip[aria-pressed="true"] .on { display: block; }
.video-chip[aria-pressed="true"] .off { display: none; }
.video-chip-mute { right: 12px; bottom: 12px; }
.video-chip-play { left: 50%; top: 50%; transform: translate(-50%, -50%); }
html.js .stage-video .video-chip-mute { display: inline-flex; }
html.js .stage-video.stage-reduced .video-chip-play { display: inline-flex; }
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto; /* beat the height="900" attribute so aspect-ratio applies */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  min-height: 44px;
}
.carousel-count { min-width: 6ch; }
.carousel-btn {
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  width: 44px;
  height: 44px;
  display: none; /* JS-gated below: arrows only render when they work */
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.carousel-btn:hover { background: rgba(22, 38, 60, 0.06); }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
/* Arrows are a secondary affordance next to touch swipe, on every
   viewport — but only when main.js is there to wire them. */
html.js .carousel-btn { display: inline-flex; }
@media (min-width: 768px) {
  .carousel { max-width: none; }
  .carousel-slide { flex-basis: 360px; width: 360px; }
  /* Active (snapped) slide is the leftmost 360px of the track */
  .video-chip-mute { right: auto; left: 304px; }
  .video-chip-play { left: 180px; }
}

/* ---------- Scene 3 · Demo (grey survey) + standing carmine #moment ------- */

.demo { padding: 0; }

/* Frame 1: the fake survey. Deliberately boring: Arial, grey, beige energy.
   The one scene exempt from the brand font. */
.lie {
  background: var(--light-grey);
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
  padding: 72px var(--gutter);
}
.lie-inner { max-width: 560px; margin: 0 auto; }
.lie-q {
  font-size: 13px;
  color: #767676;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.lie fieldset { border: 0; }
.lie legend,
.lie-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
  font-family: inherit;
}
.lie-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #444;
  cursor: pointer;
}
.lie-opt input[type="radio"] {
  width: 16px; height: 16px;
  min-height: 0;
  accent-color: #555;
  margin: 0;
  flex: none;
}
.lie-submit {
  font-family: inherit;
  font-size: 15px;
  min-height: 44px;
  background: #d8d8d8;
  color: #555;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 11px 22px;
  margin-top: 8px;
  cursor: pointer;
}
.lie-submit:hover { background: #cfcfcf; }
.lie-note { font-size: 12px; color: #8a8a8a; margin-top: 14px; }
/* The one honest line in the camouflage: brand HUD voice, near the question. */
.demo-trust {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  margin-top: 28px;
  color: #5d6b7c;
}
/* Desktop: the survey stage sits on a full-depth band (matches scene pad). */
@media (min-width: 768px) {
  .lie { padding: 96px var(--gutter); }
}

/* Carmine scene surface: "the moment" (v2). Off-white text, 10.2:1. */
.scene-carmine {
  background: var(--rich-carmine);
  color: var(--off-white);
  --text: var(--off-white);
  --muted: rgba(247, 245, 242, 0.78);
  --line: rgba(247, 245, 242, 0.3);
}
.scene-carmine .hud { color: var(--muted); }
/* A carmine period vanishes on carmine: the key-phrase dot flips off-white. */
.scene-carmine .dot { color: var(--off-white); }
.scene-carmine :focus-visible { outline-color: var(--off-white); }
/* The filled CTA inverts on its own surface so it still reads as the button. */
.scene-carmine .btn-primary {
  background: var(--off-white);
  color: var(--rich-carmine);
}
.scene-carmine .btn-primary:hover { background: #fff; }

/* The cut back to the film: the standing #moment scene (permanently visible
   after #demo; padding comes from .scene). */
.cut-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: 20px;
}
.cut-body { color: var(--muted); max-width: 55ch; }
.cut-72 {
  margin-top: 40px;
  max-width: 24ch;
}

.concierge {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 48px;
}
.concierge .statement { max-width: 26ch; margin-bottom: 28px; }
.demo-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Desktop: statement left with room to breathe, CTAs in the right column. */
@media (min-width: 1024px) {
  .concierge {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
    margin-top: 72px;
    padding-top: 56px;
  }
  .concierge .statement { margin-bottom: 0; }
}

/* Hooks for demo.js (progressive upgrade to the two-question flow):
   demo.js may add .is-live to #demo and toggle .is-active per frame
   (grey survey ↔ injected .demo-reveal only — the standing #moment
   scene is not a demo frame and is never hidden). Styled here so
   behavior stays out of this file. Hard cuts: display swap, no
   transitions. */
.demo.is-live .demo-frame { display: none; }
.demo.is-live .demo-frame.is-active { display: block; }
.demo-reveal {
  background: var(--rich-carmine);
  color: var(--off-white);
  --muted: rgba(247, 245, 242, 0.78);
  padding: var(--scene-pad) var(--gutter);
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-reveal .reveal-line {
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.demo-reveal .reveal-line + .reveal-line { margin-top: 18px; }
.demo-reveal .hud { display: block; margin-top: 32px; color: var(--muted); }
/* Restart lives on the reveal frame (injected, shown after the beat lands);
   keep it button-sized inside the flex column. */
.demo-reveal #demo-restart { margin-top: 36px; align-self: flex-start; }

/* ---------- Scene 5 · Final frame (blue, the only centered moment) ------- */

.final {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* The column layout lives on the wrapper (its children are the title and the
   card), so the gap actually separates them and the card centers. */
.final-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.final-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  max-width: 14ch;
}
.final .form-block {
  width: 100%;
  max-width: 460px;
  text-align: left;
}
@media (min-width: 768px) {
  .final-inner { gap: 48px; }
  .final .form-block { max-width: 520px; }
}

/* Pricing: plain statements, never cards */
.pricing {
  border-bottom: 1px solid rgba(22, 38, 60, 0.14);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.pricing-line {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--charcoal);
  cursor: pointer;
  /* Interactive (role=button): guarantee the 44px touch target regardless
     of how the copy wraps. */
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
/* Disclosure affordance: same chevron as the select, flips when open. */
.pricing-line::after {
  content: "";
  width: 12px;
  height: 8px;
  margin-left: auto;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316263C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316263C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 150ms ease-out;
}
.pricing-line[aria-expanded="true"]::after { transform: rotate(180deg); }
.pricing-line:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-detail {
  font-size: 14px;
  color: #4E5D72;
  margin-top: 8px;
}
.founding-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 10px;
}

/* Timing toggles: 8px radius, never pills. Desktop: the fieldset hard-cut
   inserts only when moment is proposal or pregnancy (no dead reserved hole).
   Mobile (select interaction under the thumb): once the select is touched
   (main.js adds .is-reserving on focus/pointerdown) the space stays
   reserved via visibility so nothing shifts under the thumb — but the
   card's first paint has no blank hole. Hard cut, no slide, either way.
   Hiding is JS-gated (html.js): without JS nothing can ever reveal the
   fieldset, so no-JS users see the optional timing chips instead.
   The 12px top margin is load-bearing: the select's .field above is
   last-of-type (margin-bottom 0) in both the final form and the injected
   hero follow-up, so without it the revealed toggles sit flush against the
   select. The mobile reservation (visibility: hidden) renders this same
   box, margins included, so reserved height always equals revealed height. */
.timing { border: 0; margin: 12px 0 16px; }
html.js .timing.is-hidden { display: none; }
@media (max-width: 767px) {
  html.js .timing.is-hidden.is-reserving { display: block; visibility: hidden; }
}
/* Legend kept for AT only: the chips are self-labelling directly under
   "What's your moment?", and hiding it shrinks the mobile reservation
   to one chip row instead of a hole. */
.timing legend {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; margin: 0; }
.toggle input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  background: transparent;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.toggle input:not(:checked) + span:hover { background: rgba(22, 38, 60, 0.06); }
.toggle input:checked + span {
  background: var(--charcoal);
  color: var(--off-white);
}
.toggle input:focus-visible + span {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

/* Follow-up Save (hero post-success): small charcoal button — the carmine
   ration keeps "Save my place" as the page's only carmine CTA. Inherits
   .btn's 8px radius and 44px hit area. */
.btn-charcoal { background: var(--charcoal); color: var(--off-white); }
.btn-charcoal:hover { background: #22385A; }
.followup-save { margin-top: 12px; }

/* Pilot mode banner */
.pilot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.undo-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: none;
  border: 0;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: underline;
  cursor: pointer;
}

#form-final .btn-block { margin-top: 8px; }

/* ---------- Footer (thin nordic-blue band, charcoal HUD text) ---------- */

.site-footer {
  background: var(--nordic-blue);
  color: var(--charcoal);
  padding: 16px var(--gutter);
  border-top: 1px solid rgba(22, 38, 60, 0.25);
}
.site-footer .hud { color: var(--charcoal); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-nav { display: flex; gap: 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease-out;
}
.footer-nav a:hover { color: var(--off-white); }

/* ---------- Subpages (privacy, joined) ---------- */

.page {
  min-height: 100svh;
  min-height: 100dvh;
}
.page-inner { max-width: 680px; margin: 0 auto; }
.page h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  margin: 40px 0 24px;
}
.page h2 {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.page p, .page li { color: var(--muted); max-width: 55ch; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page a { color: var(--charcoal); text-underline-offset: 3px; }
.page .back { margin-top: 48px; }

/* Short charcoal label link on blue (DESIGN: charcoal short labels on blue) */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 8px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link:hover { color: var(--off-white); }

.joined {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: var(--scene-pad) var(--gutter);
}
.joined h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); }
.joined .statement { max-width: 24ch; }
.joined .btn { margin-top: 12px; }

/* ---------- Motion: copy entrance hook (optional, main.js applies).
   Elements are fully visible without JS; main.js may add .rise then
   .is-in when a scene enters the viewport. 12px rise, once. ---------- */

html.js .rise {
  opacity: 0;
  transform: translateY(12px);
}
html.js .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .recdot { animation: none; }
  html.js .rise { opacity: 1; transform: none; transition: none; }
  .toggle span, .btn { transition: none; }
  input[type="email"],
  input[type="text"],
  select,
  .footer-nav a,
  .pricing-line::after { transition: none; }
}

/* Print: no scroll ever fires the observer — headline copy must show. */
@media print {
  html.js .rise { opacity: 1; transform: none; }
}
