/* Fontan landing page. One family (Bricolage Grotesque), one accent (the logo blue), one
   phone frame, one shadow system. Light and dark are two token sets on :root. */

:root {
  --bg: oklch(1 0 0);
  --bg-tint: oklch(0.972 0.01 240);
  --paper: oklch(1 0 0);
  --ink: oklch(0.24 0.044 243);
  --ink-2: oklch(0.45 0.03 243);
  --ink-3: oklch(0.55 0.025 243);
  --hair: oklch(0.24 0.044 243 / 0.1);
  --hair-2: oklch(0.24 0.044 243 / 0.16);
  --accent: oklch(0.464 0.141 253);
  --accent-hover: oklch(0.42 0.14 253);
  --accent-bright: oklch(0.638 0.136 239);
  --accent-tint: oklch(0.95 0.025 245);
  --on-accent: oklch(1 0 0);
  --on-mark: oklch(1 0 0);
  --panel: oklch(0.4 0.135 253);
  --panel-2: oklch(0.47 0.14 250);
  --on-panel: oklch(0.985 0.005 240);
  --on-panel-2: oklch(0.985 0.005 240 / 0.74);
  --amber: oklch(0.5 0.13 49);
  --amber-tint: oklch(0.96 0.04 80);
  --red: oklch(0.5 0.18 25);
  --red-tint: oklch(0.96 0.03 20);
  --green: oklch(0.48 0.11 163);
  --green-tint: oklch(0.955 0.045 160);
  --rim: oklch(1 0 0 / 0.9);
  --image-outline: oklch(0 0 0 / 0.1);
  --shadow-card:
    0 1px 2px oklch(0.24 0.044 243 / 0.06),
    0 8px 24px -8px oklch(0.24 0.044 243 / 0.16);
  --shadow-float:
    0 1px 2px oklch(0.24 0.044 243 / 0.08),
    0 16px 40px -12px oklch(0.24 0.044 243 / 0.26);
  --shadow-phone:
    0 2px 4px oklch(0.24 0.044 243 / 0.14),
    0 24px 48px -16px oklch(0.24 0.044 243 / 0.36),
    0 60px 120px -40px oklch(0.464 0.141 253 / 0.32);
  --frame: linear-gradient(160deg, oklch(0.36 0.02 250), oklch(0.2 0.02 250));
  --frame-edge: oklch(1 0 0 / 0.16);
  --frame-inner: oklch(0.12 0.015 250);
  --screen-dim: none;
  --focus: oklch(0.638 0.136 239);
  --phone-w: 300px;
  --bezel: 11px;
  --radius-phone: 46px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: oklch(0.165 0.018 250);
  --bg-tint: oklch(0.2 0.024 250);
  --paper: oklch(0.215 0.022 250);
  --ink: oklch(0.95 0.01 240);
  --ink-2: oklch(0.77 0.02 240);
  --ink-3: oklch(0.66 0.02 240);
  --hair: oklch(0.95 0.01 240 / 0.1);
  --hair-2: oklch(0.95 0.01 240 / 0.16);
  --accent: oklch(0.78 0.11 235);
  --accent-hover: oklch(0.83 0.1 235);
  --accent-bright: oklch(0.72 0.13 238);
  --accent-tint: oklch(0.3 0.06 245);
  --on-accent: oklch(0.16 0.02 250);
  --on-mark: oklch(0.16 0.02 250);
  --panel: oklch(0.3 0.09 253);
  --panel-2: oklch(0.36 0.1 250);
  --on-panel: oklch(0.97 0.008 240);
  --on-panel-2: oklch(0.97 0.008 240 / 0.72);
  --amber: oklch(0.84 0.12 75);
  --amber-tint: oklch(0.36 0.06 60);
  --red: oklch(0.8 0.12 20);
  --red-tint: oklch(0.34 0.07 20);
  --green: oklch(0.82 0.13 160);
  --green-tint: oklch(0.3 0.06 160);
  --rim: oklch(1 0 0 / 0.12);
  --image-outline: oklch(1 0 0 / 0.1);
  --shadow-card:
    0 1px 2px oklch(0 0 0 / 0.3),
    0 8px 24px -8px oklch(0 0 0 / 0.5);
  --shadow-float:
    0 1px 2px oklch(0 0 0 / 0.4),
    0 16px 40px -12px oklch(0 0 0 / 0.6);
  --shadow-phone:
    0 2px 4px oklch(0 0 0 / 0.4),
    0 24px 48px -16px oklch(0 0 0 / 0.7),
    0 60px 120px -40px oklch(0.638 0.136 239 / 0.3);
  --frame: linear-gradient(160deg, oklch(0.5 0.02 250), oklch(0.26 0.02 250));
  --frame-edge: oklch(1 0 0 / 0.28);
  --frame-inner: oklch(0.1 0.015 250);
  --screen-dim: brightness(0.86) saturate(0.95);
  --focus: oklch(0.78 0.11 235);
  color-scheme: dark;
}

/* Base */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

/* Theme swap: one root-level cross-fade, no element animates its own colours. */
html.theme-swapping *,
html.theme-swapping *::before,
html.theme-swapping *::after { transition: none !important; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
  mix-blend-mode: normal;
}

::selection { background: var(--accent-tint); color: var(--ink); }

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

a { color: var(--accent); text-underline-position: from-font; text-decoration-thickness: from-font; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.icon {
  width: 1.25em; height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Type scale: 17 body, 20 lead, 24 h3, 40 to 52 h2, 44 to 72 h1 */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.5rem + 4vw, 4.25rem); }
h2 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

.section-head { max-width: 40rem; }
.section-sub {
  margin-top: 1.1rem;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34rem;
}

main > section {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition-property: background-color, transform;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.96); }
.button-small { min-height: 40px; padding: 0 1rem; border-radius: 11px; font-size: 0.9375rem; }
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.button-quiet:hover { background: var(--bg-tint); }
.button-wide { width: 100%; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hair);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.top-nav { display: flex; gap: 0.25rem; margin-inline-start: auto; }
.top-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.top-nav a:hover { color: var(--ink); background: var(--bg-tint); }

.top-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  position: relative;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-toggle:hover { background: var(--bg-tint); color: var(--ink); }
.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; }
.theme-toggle .icon-moon { opacity: 0; transform: scale(0.25); filter: blur(4px); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; filter: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: scale(0.25); filter: blur(4px); }

/* Phone frame, drawn in CSS. The screen shows 90% of a 9:20 capture: the status bar is
   hidden above and the gesture bar below, so every shot reads as the app itself. */

.phone {
  position: relative;
  width: var(--phone-w);
  padding: var(--bezel);
  border-radius: var(--radius-phone);
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame-edge),
    inset 0 0 0 calc(var(--bezel) - 3px) transparent,
    var(--shadow-phone);
}
.phone::after {
  /* the dark inner lip between frame and glass */
  content: "";
  position: absolute;
  inset: calc(var(--bezel) - 3px);
  border-radius: calc(var(--radius-phone) - var(--bezel) + 3px);
  box-shadow: inset 0 0 0 3px var(--frame-inner);
  pointer-events: none;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1080 / 2160;
  border-radius: calc(var(--radius-phone) - var(--bezel));
  background: oklch(0.971 0.006 240);
  box-shadow: inset 0 0 0 1px var(--image-outline);
}
.phone-screen img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  transform: translateY(calc(-1 * var(--shift, 0%)));
  filter: var(--screen-dim);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(3rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.hero-sub { margin-top: 1.5rem; font-size: 1.375rem; line-height: 1.4; color: var(--ink-2); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-proof { margin-top: 2rem; font-size: 0.9375rem; color: var(--ink-2); max-width: 30rem; }

/* The board phone rises from a tinted stage at a slight angle; two notes float in front. */

.hero-stage {
  --stage-h: 580px;
  position: relative;
  margin: 0;
  height: var(--stage-h);
  justify-self: stretch;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 72px 0 0 0;
  border-radius: 36px;
  background:
    radial-gradient(70% 60% at 40% 45%, color-mix(in oklab, var(--accent-bright) 14%, transparent), transparent 70%),
    var(--bg-tint);
}
.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 36px;
  perspective: 1800px;
}
.phone-hero {
  position: absolute;
  left: 28px;
  top: 36px;
  transform: rotateY(-13deg) rotateX(5deg) rotateZ(-1.5deg);
  transform-origin: 50% 60%;
}
/* The ticket: one post card floating in front of the phone. Its status chip walks through the
   six statuses a post really shows, and the dots below mirror the app's stage timeline. */
.ticket {
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 12.5rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-float);
}
.ticket-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.ticket-sub { margin-top: 0.15rem; font-size: 0.8125rem; color: var(--ink-3); }
.ticket-chip {
  margin-top: 0.75rem;
  transition: opacity 0.18s cubic-bezier(0.2, 0, 0, 1), transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.ticket-chip.is-out { opacity: 0; transform: translateY(4px); }
.ticket-dots {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.ticket-dots li {
  position: relative;
  flex: 1 1 0;
  height: 10px;
}
.ticket-dots li::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--hair-2);
  transition: background-color 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.ticket-dots li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 5px); right: calc(-50% + 5px); top: 4px;
  height: 2px;
  background: var(--hair-2);
}
.ticket-dots li.is-done::before { background: var(--accent-bright); box-shadow: inset 0 0 0 2px var(--accent-bright); }
.ticket-dots li.is-current::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }

/* Hero entrance: one staged sequence on load, then only the ticket's status keeps moving. */
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0, 0, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.phone-hero { animation: rise-phone 1s cubic-bezier(0.2, 0, 0, 1) 0.15s both; }
.ticket { animation: rise 0.6s cubic-bezier(0.2, 0, 0, 1) 0.7s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-phone {
  from { opacity: 0; transform: translateY(60px) rotateY(-13deg) rotateX(5deg) rotateZ(-1.5deg); }
  to { opacity: 1; transform: rotateY(-13deg) rotateX(5deg) rotateZ(-1.5deg); }
}

/* How it works */

.flow-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.flow-phone {
  position: sticky;
  top: 96px;
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 3rem;
  border-radius: 36px;
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in oklab, var(--accent-bright) 12%, transparent), transparent 70%),
    var(--bg-tint);
}
.flow-phone .phone-screen img { transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1), transform 0.7s cubic-bezier(0.2, 0, 0, 1); }
.flow-phone .shot { opacity: 0; }
.flow-phone .shot.is-on { opacity: 1; }

.steps {
  --mark: 30px;
  --line-x: calc(var(--mark) / 2 - 1px);
  --progress: 0px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: var(--line-x);
  top: 14px;
  width: 2px;
  border-radius: 1px;
}
.steps::before { bottom: 14px; background: var(--hair-2); }
.steps::after { height: var(--progress); background: var(--accent-bright); transition: height 0.2s linear; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.step:last-child { padding-bottom: 0; }

/* Markers mirror the app's stage timeline: a filled blue circle once a stage is done, a filled
   navy one with a halo for the current stage, and a hollow outline for what is still ahead. */
.step-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--mark); height: var(--mark);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 2px var(--hair-2);
  transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.step-mark .icon { width: 15px; height: 15px; stroke-width: 2; }
.step.is-done .step-mark { background: var(--accent-bright); color: var(--on-mark); box-shadow: inset 0 0 0 2px var(--accent-bright); }
.step.is-current .step-mark { background: var(--accent); color: var(--on-mark); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent); }

.step h3 { display: flex; align-items: baseline; gap: 0.7rem; min-height: var(--mark); align-content: center; color: var(--ink-2); transition: color 0.3s; }
.step-num {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  transition: color 0.3s;
}
.step p { margin-top: 0.6rem; max-width: 26rem; color: var(--ink-3); transition: color 0.3s; }
.step.is-current h3, .step.is-done h3 { color: var(--ink); }
.step.is-current .step-num, .step.is-done .step-num { color: var(--accent); }
.step.is-current p { color: var(--ink-2); }
.step .chip { margin-top: 0.85rem; opacity: 0.7; transition: opacity 0.3s; }
.step.is-current .chip { opacity: 1; }

/* Branches: where the real product stops or loops back. Each one is a tinted card hanging off
   the main line on a curved connector, in its own colour. Colour is a property of the branch,
   not of scroll state: once a branch is reached its marker fills and stays filled. */
.branch {
  --indent: 2.25rem;
  --pad: 0.9rem;
  --tone: var(--red);
  margin-left: var(--indent);
  padding: var(--pad);
  padding-right: 1.1rem;
  border-radius: 20px;
  background: color-mix(in oklab, var(--tone) 9%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 22%, transparent);
  column-gap: 0.9rem;
}
.branch + .step { margin-top: clamp(2.25rem, 5vh, 3.5rem); }
.branch-amber { --tone: var(--amber); }
:root[data-theme="dark"] .branch { background: color-mix(in oklab, var(--tone) 13%, var(--bg)); }
.branch::before {
  content: "";
  position: absolute;
  left: calc(var(--line-x) - var(--indent));
  top: -1.75rem;
  width: calc(var(--indent) + var(--pad) + var(--mark) / 2);
  height: calc(1.75rem + var(--pad) + var(--mark) / 2);
  border-left: 2px solid var(--tone);
  border-bottom: 2px solid var(--tone);
  border-bottom-left-radius: 18px;
  opacity: 0.55;
  pointer-events: none;
}
.branch .step-mark { background: var(--bg); color: var(--tone); box-shadow: inset 0 0 0 2px var(--tone); }
.branch.is-current .step-mark,
.branch.is-done .step-mark { background: var(--tone); color: var(--on-mark); box-shadow: inset 0 0 0 2px var(--tone); }
.branch.is-current .step-mark { box-shadow: 0 0 0 5px color-mix(in oklab, var(--tone) 24%, transparent); }
.branch h3 { font-size: 1.25rem; color: var(--ink); }
.branch p { color: var(--ink-2); }
.branch.is-current p, .branch.is-done p { color: var(--ink-2); }
.branch .chip { opacity: 1; background: var(--bg); color: var(--tone); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 35%, transparent); }
.loop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  min-height: 26px;
  padding: 0 0.7rem 0 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--tone);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 35%, transparent);
}
.loop .icon { width: 14px; height: 14px; stroke-width: 2.25; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip-amber { background: var(--amber-tint); color: var(--amber); }
.chip-red { background: var(--red-tint); color: var(--red); }
.chip-green { background: var(--green-tint); color: var(--green); }

.flow-caption {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 34rem;
}

/* Where you stay in control: the one dark panel on the page */

.control { padding-block: 0 !important; }
.control-panel {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  color: var(--on-panel);
}
.section-head-light .section-sub { color: var(--on-panel-2); }
.points {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}
.points li { padding-top: 1.5rem; border-top: 1px solid oklch(1 0 0 / 0.28); }
.point-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: oklch(1 0 0 / 0.14);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22);
  color: var(--on-panel);
}
.point-icon .icon { width: 24px; height: 24px; stroke-width: 1.75; }
.points h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); }
.points p { margin-top: 0.75rem; color: var(--on-panel-2); max-width: 20rem; }

/* Safety */

.safety-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

/* The gate card reads like the checks panel on a merge request: one row per rule, a verdict
   on the right, and the last row shows what a block looks like. */
.gate {
  width: 23rem;
  max-width: 100%;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-card);
  overflow: hidden;
}
.gate-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}
.gate-head .icon { width: 20px; height: 20px; color: var(--accent); }
.gate-title { font-size: 0.9375rem; font-weight: 600; }
.gate-rows { list-style: none; margin: 0; padding: 0.35rem 0; }
.gate-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
}
.gate-fail { margin-top: 0.35rem; border-top: 1px dashed var(--hair-2); padding-top: 0.95rem !important; }
.gate-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 26px;
  padding: 0 0.65rem 0 0.45rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.gate-state .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.gate-state.is-pass { background: var(--green-tint); color: var(--green); }
.gate-state.is-fail { background: var(--red-tint); color: var(--red); }
.gate-foot {
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid var(--hair);
  background: var(--bg-tint);
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* The rules: a ledger. Term on the left, explanation on the right, one hairline per row. */
.rules {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}
.rules > div {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hair);
}
.rules > div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--hair); }
.rules dt { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--accent); }
.rules dd { margin: 0.35rem 0 0; color: var(--ink-2); max-width: 30rem; }

/* Who it is for: three cards, each with its own icon and one scenario line. */

.who-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.who-list li {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 22px;
  background: var(--bg-tint);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.who-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-card);
}
.who-icon .icon { width: 22px; height: 22px; }
.who-list h3 { font-size: 1.375rem; }
.who-list p { margin-top: 0.6rem; color: var(--ink-2); max-width: 20rem; }

/* Early access: full-width tinted band, centred */

.access {
  width: 100% !important;
  background: var(--bg-tint);
}
.access-inner {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.access-mark { margin-bottom: 1.5rem; }
.access .section-sub { max-width: 32rem; }
.waitlist {
  width: min(100%, 32rem);
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: start;
}
.waitlist .button-wide, .form-note, .form-status { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.form-note { font-size: 0.875rem; color: var(--ink-3); text-align: center; }
.form-status { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }
.form-status:empty { display: none; }

/* FAQ */

.faq-list { max-width: 44rem; margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  margin-inline-start: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 0 1.5rem; color: var(--ink-2); max-width: 38rem; }
.planned {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Footer */

.foot {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.foot-small { color: var(--ink-3); }

/* Responsive */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: 36rem; }
  .hero-stage { --stage-h: 560px; max-width: 36rem; justify-self: start; width: 100%; }
  .safety-lead { grid-template-columns: 1fr; align-items: start; }
  .rules { grid-template-columns: 1fr; }
  .rules > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .rules > div:last-child { border-bottom: 1px solid var(--hair); }
  .points, .who-list { grid-template-columns: 1fr; gap: 1.25rem; }
  /* Control panel rows: icon on the left, title and line on the right. */
  .points li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding-top: 1.25rem;
  }
  .point-icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0.15rem 0 0; border-radius: 12px; }
  .points h3 { font-size: 1.5rem; }
  .points p { margin-top: 0.4rem; max-width: none; }
}

@media (max-width: 760px) {
  :root { --phone-w: 250px; --bezel: 9px; --radius-phone: 38px; }

  body { font-size: 1rem; }
  main > section { width: min(1120px, 100% - 2.5rem); padding-block: 3.5rem; }
  .top-inner { width: min(1120px, 100% - 2.5rem); min-height: 60px; gap: 0.75rem; }
  .top-nav { display: none; }
  .top-actions { margin-inline-start: auto; }

  .hero { padding-top: 2.5rem !important; gap: 2.5rem; }
  .hero-sub { font-size: 1.1875rem; }
  .hero-proof { margin-top: 1.5rem; }
  .hero-stage { --stage-h: 440px; justify-self: stretch; max-width: none; }
  .hero-stage::before { inset: 56px 0 0 0; border-radius: 28px; }
  .hero-scene { border-radius: 28px; }
  .phone-hero { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1deg); }
  @keyframes rise-phone {
    from { opacity: 0; transform: translateY(60px) rotateY(-10deg) rotateX(4deg) rotateZ(-1deg); }
    to { opacity: 1; transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1deg); }
  }
  .phone-hero { left: 6px; top: 28px; }
  .hero-actions .button { flex: 1 1 auto; }
  .ticket { right: 0; bottom: 28px; width: 11.25rem; padding: 0.8rem 0.9rem 0.9rem; border-radius: 16px; }
  .ticket-title { font-size: 1rem; }

  .section-sub { font-size: 1.125rem; }

  .flow-body { grid-template-columns: 1fr; gap: 0; margin-top: 2.5rem; }
  .flow-phone { display: none; }
  .steps { --mark: 28px; }
  .step { column-gap: 1rem; padding-bottom: 2.5rem; }
  .step h3 { font-size: 1.375rem; }
  .step-mark .icon { width: 14px; height: 14px; }
  .step p { max-width: none; }
  .branch { --indent: 1.5rem; --pad: 0.8rem; padding-right: 0.9rem; border-radius: 18px; column-gap: 0.75rem; }
  .branch h3 { font-size: 1.1875rem; }
  .branch p { font-size: 0.9375rem; }
  .branch + .step { margin-top: 2.25rem; }
  .step h3, .step p { color: var(--ink); }
  .step p { color: var(--ink-2); }
  .step .chip { opacity: 1; }
  .step-num { color: var(--accent); }
  .step:not(.branch) .step-mark {
    color: var(--ink-2);
    box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink-3) 55%, transparent);
  }
  .step:not(.branch).is-done .step-mark { color: var(--on-mark); box-shadow: inset 0 0 0 2px var(--accent-bright); }
  .step:not(.branch).is-current .step-mark { color: var(--on-mark); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent); }
  .flow-caption { font-size: 1.125rem; }
  .gate { width: 100%; }
  .gate-rows li { padding-inline: 1rem; }
  .gate-head, .gate-foot { padding-inline: 1rem; }
  .who-list li { padding: 1.25rem 1.25rem 1.5rem; }
  .who-icon { margin-bottom: 1rem; }

  .control-panel { border-radius: 24px; }
  .access-inner { width: min(1120px, 100% - 2.5rem); }
  .waitlist { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 1.0625rem; }
  .foot { flex-direction: column; }
}

@media (max-width: 400px) {
  :root { --phone-w: 230px; }
  .button-small { padding: 0 0.8rem; font-size: 0.875rem; }
  .ticket { width: 10.5rem; }
  .branch { --indent: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  .hero-copy > *, .phone-hero, .ticket { animation: none; }
  .button, .step-mark, .step h3, .step p, .step-num, .step .chip, .steps::after, .ticket-chip,
  .ticket-dots li::before, .flow-phone .phone-screen img, .faq-list summary::after { transition: none !important; }
}
