/* ==========================================================================
   Waypoint site v2 (immersive concept)
   Sits on top of scrollcraft.css. Brand tokens mirror the app's
   WaypointCanvas: teal spine, paper, sun for every primary action.
   Plus Jakarta Sans 800 carries the brand.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/PlusJakartaSans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/PlusJakartaSans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/PlusJakartaSans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/PlusJakartaSans-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DB;
  --card: #FFFFFF;
  --ink: #1C2A28;
  --ink-soft: #55635E;
  --line: rgba(28, 42, 40, .12);

  --teal-950: #062722;
  --teal-900: #0B3F37;
  --teal-800: #0F5A4E;
  --teal-700: #157A6B;
  --teal-400: #36C7AC;
  --on-dark: #F4F1EA;
  --on-dark-soft: #B7D0C9;
  --line-dark: rgba(244, 241, 234, .16);

  --sun: #FFC44D;
  --sun-deep: #E0A02A;
  --sun-ink: #3A2A00;
  --coral: #FF6B5C;
  --coral-deep: #D9483A;
  --sky: #5CB8E4;
  --sky-deep: #3A8DB9;
  --green: #2FA876;
  --green-deep: #1E8A5E;

  --focus: var(--teal-800);
  --radius: 22px;
  --radius-sm: 14px;

  /* scrollcraft roles */
  --sc-canvas: var(--paper);
  --sc-surface: var(--card);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--sun);
  --sc-accent-ink: var(--sun-ink);
  --sc-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sc-font-text: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sc-font-mono: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sc-shadow-color: 168 40% 10%;
  --bar-h: 60px;
}

/* ------------------------------------------------------------------- base */
body { background: var(--paper); color: var(--ink); font-weight: 500; }
main { background: var(--paper); }   /* site.js recolours body to match Safari's bottom bar; main keeps the paper */
::selection { background: var(--sun); color: var(--sun-ink); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[data-theme="dark"] { --focus: var(--sun); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--sun-ink); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }

.h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: var(--sc-t-lg); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-soft); text-wrap: pretty; max-width: 36ch; }
.small { font-size: var(--sc-t-sm); color: var(--ink-soft); line-height: 1.55; }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-color: var(--sun-deep); }

.pd { margin-left: -0.09em; }

/* Failsafe: if the engine never mounts, nothing stays hidden. */
html:not(.sc-ready) [data-sc-cue],
html:not(.sc-ready) [data-sc-in],
html:not(.sc-ready) [data-sc-stagger] > * { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4rem; border-radius: 16px; border: 0;
  font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -8px rgba(224,160,42,.9); }
.btn--glass { background: rgba(244,241,234,.12); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(244,241,234,.38); }
.btn--teal { background: var(--teal-800); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { background: #FFCF6E; }
  .btn--glass:hover { background: rgba(244,241,234,.2); }
  .btn--teal:hover { background: var(--teal-700); }
}

/* ------------------------------------------------------------- header bar */
.bar {
  position: fixed; z-index: 60; top: 12px; left: 50%; translate: -50% 0;
  width: min(1180px, calc(100% - 24px)); height: var(--bar-h);
  display: flex; align-items: center; gap: 1rem; padding: 0 8px 0 14px;
  border-radius: 18px;
  background: rgba(250, 248, 242, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 30px -14px rgba(11,63,55,.35);
  color: var(--ink);
  transition: background-color 280ms var(--sc-ease-out), color 280ms var(--sc-ease-out), box-shadow 280ms var(--sc-ease-out);
}
.bar.is-dark {
  background: rgba(6, 39, 34, .5);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -14px rgba(0,0,0,.5);
  --focus: var(--sun);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand__tile { width: 32px; height: 32px; border-radius: 10px; background: var(--teal-800); display: grid; place-items: center; }
.bar__nav { display: flex; gap: .25rem; margin-left: auto; }
.bar__nav a { padding: .5rem .8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; opacity: .86; transition: opacity 150ms, background-color 150ms; }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { opacity: 1; background: rgba(28,42,40,.07); }
.bar.is-dark .bar__nav a:hover, .bar.is-dark .bar__nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
/* "Free tools" menu: the road signs quiz and the audiobook. Opens on hover and on
   keyboard focus, so it needs no script; phones use the drawer instead. */
.bar__drop { position: relative; }
.bar__drop-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-weight: 600; font-size: .95rem; opacity: .86; cursor: pointer; transition: opacity 150ms, background-color 150ms; }
.bar__drop-btn svg { transition: rotate 150ms; }
.bar__drop:hover .bar__drop-btn, .bar__drop:focus-within .bar__drop-btn, .bar__drop-btn.is-current { opacity: 1; background: rgba(28,42,40,.07); }
.bar.is-dark .bar__drop:hover .bar__drop-btn, .bar.is-dark .bar__drop:focus-within .bar__drop-btn, .bar.is-dark .bar__drop-btn.is-current { background: rgba(255,255,255,.1); }
.bar__drop:hover .bar__drop-btn svg, .bar__drop:focus-within .bar__drop-btn svg { rotate: 180deg; }
.bar__drop-menu { position: absolute; top: 100%; left: 0; padding-top: 8px; display: none; }
.bar__drop:hover .bar__drop-menu, .bar__drop:focus-within .bar__drop-menu { display: block; }
.bar__drop-panel { display: grid; gap: 2px; min-width: 15rem; padding: 6px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px rgba(28,42,40,.06), 0 18px 40px -18px rgba(11,63,55,.5); }
.bar__nav .bar__drop-panel a { opacity: 1; padding: .6rem .75rem; white-space: nowrap; }
.bar__nav .bar__drop-panel a:hover, .bar__nav .bar__drop-panel a[aria-current="page"],
.bar.is-dark .bar__nav .bar__drop-panel a:hover, .bar.is-dark .bar__nav .bar__drop-panel a[aria-current="page"] { background: rgba(28,42,40,.07); }
.bar__drop-panel a:focus-visible { outline-color: var(--teal-800); }
@media (prefers-reduced-motion: reduce) { .bar__drop-btn svg { transition: none; } }
.bar .btn { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; border-radius: 12px; }
.bar__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; place-items: center; }

.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--teal-950); color: var(--on-dark);
  padding: 18px var(--sc-gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 220ms var(--sc-ease-out), visibility 0s 220ms;
  --focus: var(--sun);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transition: opacity 220ms var(--sc-ease-out); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.drawer__close { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); color: inherit; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.drawer nav { display: grid; gap: .25rem; }
.drawer nav a { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; padding: .35rem 0; }
.drawer .btn { margin-top: auto; }

@media (max-width: 920px) {
  .bar__nav, .bar > .btn { display: none; }
  .bar__burger { display: grid; }
}

/* =================================================================== HERO */
.hero__stage { background: var(--teal-950); color: var(--on-dark); --focus: var(--sun); }
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 44% at 84% 60%, rgba(255,196,77,.36), rgba(255,196,77,0) 70%),
    linear-gradient(180deg, #05221E 0%, #0A3B33 36%, #156B5B 58%, #2A8B76 70%);
}
.hero__sun {
  --svgh: max(100svh, 56.25vw);
  position: absolute; left: 84%; z-index: 1;
  top: calc(100% - var(--svgh) * 0.47);
  width: calc(var(--svgh) / 5.6); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFE6AA 0%, #FFC44D 62%, #F5B43A 100%);
  box-shadow: 0 0 90px 30px rgba(255,196,77,.28);
  translate: -50% -50%;
  transform: translate3d(0, calc(var(--sc-p, 0) * -4vh), 0);
}
.hero__plane { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.hero__far    { z-index: 3; transform-origin: 50% 66%; transform: scale(calc(1 + var(--sc-p, 0) * .06)); }
.hero__ground { z-index: 4; transform-origin: 50% 67%; transform: scale(calc(1 + var(--sc-p, 0) * .85)); }
.hero__near   { z-index: 5; transform-origin: 50% 78%; transform: translate3d(0, calc(var(--sc-p, 0) * 6vh), 0) scale(calc(1 + var(--sc-p, 0) * 1.1)); }
.hero__fore   { z-index: 6; transform-origin: 50% 100%; transform: translate3d(0, calc(var(--sc-p, 0) * 10vh), 0) scale(calc(1 + var(--sc-p, 0) * 1.6)); }
.hero__base {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(to top, rgba(5,34,30,.92) 0%, rgba(5,34,30,.62) 20%, rgba(5,34,30,0) 42%);
}
.hero__head {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: calc(var(--bar-h) + 12px + clamp(1.5rem, 6vh, 4.5rem));
  padding-inline: var(--sc-gutter); text-align: center;
}
.hero__title {
  margin-inline: auto; max-width: 13.5ch;
  font-size: clamp(2.5rem, min(7.4vw, 10.5vh), 7rem);
  font-weight: 800; line-height: .98; letter-spacing: -0.045em; text-wrap: balance;
  transform: translate3d(0, calc(var(--sc-p, 0) * 34vh), 0);
}
.hero__title em, .hero__beat em, .close__title em, .wedge__line em { font-style: normal; }
.hero__title em { color: var(--sun); }
.hero__foot {
  position: absolute; z-index: 8;
  left: var(--sc-gutter); bottom: calc(env(safe-area-inset-bottom) + clamp(1.5rem, 6vh, 3.5rem));
  max-width: 30rem;
}
.hero__sub { font-size: var(--sc-t-lg); line-height: 1.42; letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero__beat {
  position: absolute; z-index: 9; left: 0; right: 0; top: 21%;
  padding-inline: var(--sc-gutter); text-align: center;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: #fff; text-shadow: 0 2px 30px rgba(5,34,30,.45);
}
.hero__beat em { color: var(--sun); }

@media (max-width: 860px) {
  .hero__sun { left: 80%; }
  .hero__pins { display: none; }
  .hero__head { top: calc(var(--bar-h) + 12px + 3vh); }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.6rem); max-width: 12ch; transform: none; }
  .hero__foot { right: var(--sc-gutter); max-width: none; }
  .hero__sub { font-size: 1.06rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__near { transform: translate3d(0, calc(var(--sc-p, 0) * 4vh), 0) scale(calc(1 + var(--sc-p, 0) * .5)); }
  .hero__fore { transform: translate3d(0, calc(var(--sc-p, 0) * 6vh), 0) scale(calc(1 + var(--sc-p, 0) * .8)); }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero__title { font-size: clamp(2rem, 9vh, 3rem); }
  .hero__sub { display: none; }
  .hero__actions { margin-top: 0; }
}

/* ================================================================== WEDGE */
.wedge__stage { background: var(--paper); }
.wedge__road { position: absolute; top: 0; bottom: 0; left: calc(var(--sc-gutter) * .45 - 20px); width: 40px; height: 100%; }
.wedge__track, .wedge__draw { stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wedge__track { stroke: var(--paper-2); }
.wedge__draw { stroke: var(--teal-700); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sc-p, 0)); }
.wedge__wrap { position: relative; height: 100%; }
.wedge__line {
  position: absolute; top: 50%; translate: 0 -50%;
  left: calc(var(--sc-gutter) + 1.5rem); right: var(--sc-gutter); max-width: 16ch;
  font-size: clamp(2.3rem, 1.1rem + 5vw, 6.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.wedge__line--turn { max-width: 18ch; }
.wedge__line--turn em { color: var(--teal-700); }

/* =================================================================== LOOP */
.loop__stage { background: var(--paper-2); }
.loop__grid {
  height: 100%; display: grid; grid-template-columns: minmax(0, 36rem) auto; justify-content: center; align-items: center;
  gap: clamp(2rem, 8vw, 10rem); padding-top: calc(var(--bar-h) + 12px);
}
.loop__copy { position: relative; min-height: 22rem; }
.loop__kicker { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1.5rem; }
.loop__steps { position: relative; min-height: 18rem; }
.loop__step { position: absolute; inset: 0 0 auto 0; max-width: 30rem; }
.loop__n { display: block; font-size: 1rem; font-weight: 800; color: var(--teal-700); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.loop__step h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.loop__step p { margin-top: 1rem; font-size: var(--sc-t-lg); line-height: 1.45; color: var(--ink-soft); max-width: 32ch; text-wrap: pretty; }
.loop__note { position: absolute; left: var(--sc-gutter); bottom: 1.25rem; font-size: .82rem; color: var(--ink-soft); max-width: 60ch; }

.phone {
  height: min(640px, calc(100svh - var(--bar-h) - 7rem)); aspect-ratio: 9 / 19.3;
  border-radius: 13% / 6.2%; padding: 3.2%;
  background: linear-gradient(160deg, #23302D, #0E1513);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgba(255,255,255,.12);
}
.phone__screen { position: relative; height: 100%; border-radius: 10.5% / 5%; overflow: hidden; background: var(--paper); container-type: size; }
.phone__screen::before { /* dynamic island */
  content: ""; position: absolute; z-index: 5; top: 1.6%; left: 50%; translate: -50% 0;
  width: 32%; height: 3.6%; border-radius: 99px; background: #0E1513;
}
.scr { position: absolute; inset: 0; padding: 18cqh 7cqw 6cqh; font-size: 2.15cqh; display: flex; flex-direction: column; gap: 1.2em; }
.scr__title { font-size: 1.5em; font-weight: 800; letter-spacing: -0.03em; }
.pick { display: grid; gap: .55em; }
.pick li { display: flex; align-items: center; gap: .8em; background: var(--card); border-radius: 1em; padding: .6em .8em; box-shadow: 0 1px 2px rgba(28,42,40,.08); font-weight: 700; }
.pick img { width: 2.2em; height: 2.2em; border-radius: .6em; }
.pick span { flex: 1; }
.tog { width: 2.5em; height: 1.5em; border-radius: 99px; background: #D5D2CA; position: relative; }
.tog::after { content: ""; position: absolute; top: .15em; left: .15em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tog.is-on { background: var(--green); }
.tog.is-on::after { left: auto; right: .15em; }
.scr__chips { display: flex; flex-wrap: wrap; gap: .5em; margin-top: auto; }
.scr__chips span { background: var(--teal-800); color: #fff; font-weight: 700; font-size: .85em; padding: .45em .8em; border-radius: 99px; }

.scr--shield { background: linear-gradient(180deg, #DCE7E3, #EEF1EC); justify-content: center; }
.notif { position: absolute; top: 9cqh; left: 5cqw; right: 5cqw; display: flex; gap: .7em; align-items: center; background: rgba(255,255,255,.92); border-radius: 1.1em; padding: .7em .9em; font-size: .9em; line-height: 1.3; box-shadow: 0 6px 18px -8px rgba(11,63,55,.4); }
.notif__tile { width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--teal-800); flex: none; }
.shield { background: var(--card); border-radius: 1.4em; padding: 1.6em 1.2em; text-align: center; display: grid; justify-items: center; gap: .55em; box-shadow: 0 18px 40px -18px rgba(11,63,55,.45); }
.shield img { width: 3.4em; height: 3.4em; border-radius: .9em; }
.shield__t { font-weight: 800; font-size: 1.2em; letter-spacing: -0.02em; }
.shield__s { color: var(--ink-soft); font-size: .92em; }
.shield__btn { margin-top: .4em; background: var(--sun); color: var(--sun-ink); font-weight: 800; padding: .7em 1.2em; border-radius: .9em; width: 100%; }

.scr--quiz { background: linear-gradient(180deg, var(--teal-800) 0 34%, var(--paper) 34%); color: var(--ink); }
.quiz__top { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800; }
.dots { display: flex; gap: .35em; }
.dots i { width: 1.6em; height: .4em; border-radius: 99px; background: rgba(255,255,255,.3); }
.dots i.on { background: var(--sun); }
.quiz__card { background: var(--card); border-radius: 1.3em; padding: 1.2em 1em; display: grid; gap: .6em; box-shadow: 0 14px 30px -18px rgba(11,63,55,.5); }
.quiz__tag { font-size: .78em; font-weight: 800; color: var(--teal-700); text-transform: uppercase; letter-spacing: .08em; }
.quiz__q { font-weight: 800; font-size: 1.12em; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: .3em; }
.quiz__o { display: block; border: 1.5px solid var(--line); border-radius: .9em; padding: .65em .8em; font-weight: 600; font-size: .92em; }
.quiz__o.is-right { border-color: var(--green); background: #E3F4EC; }

.scr--done { justify-content: center; align-items: center; text-align: center; gap: .6em; }
.done__ring { width: 5.2em; height: 5.2em; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 .6em #D6EFE3; margin-bottom: .8em; }
.done__ring svg { width: 2.4em; height: 2.4em; }
.done__t { font-size: 2em; font-weight: 800; letter-spacing: -0.04em; }
.done__s { color: var(--ink-soft); }
.done__chip { margin-top: .6em; background: var(--card); border-radius: 99px; padding: .5em 1em; font-weight: 700; font-size: .85em; box-shadow: 0 1px 2px rgba(28,42,40,.1); }

@media (max-width: 860px) {
  .loop__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 1.25rem; padding-top: calc(var(--bar-h) + 24px); }
  .loop__phone { order: -1; justify-self: center; }
  .phone { height: min(46svh, 440px); }
  .loop__kicker { display: none; }
  .loop__copy { min-height: 0; }
  .loop__step h3 { font-size: clamp(1.55rem, 6.6vw, 2.2rem); }
  .loop__step p { font-size: 1rem; margin-top: .6rem; }
  .loop__n { margin-bottom: .4rem; }
  .loop__note { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .phone { height: 40svh; }
  .loop__step p { font-size: .95rem; }
}

/* ============================================================= PIT (peak) */
.pit {
  background: radial-gradient(80% 60% at 50% 30%, #11544A 0%, var(--teal-900) 55%, var(--teal-950) 100%);
  color: var(--on-dark); --focus: var(--sun);
  padding-block: clamp(7rem, 20vh, 12rem) clamp(4rem, 10vh, 7rem);
  overflow: clip;
}
.pit__wrap { display: grid; justify-items: center; text-align: center; gap: 2.5rem; }
.pit__title { font-size: clamp(3rem, 2rem + 6vw, 7.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
.pit__lead { margin-top: 1rem; font-size: var(--sc-t-lg); color: var(--on-dark-soft); }
.pit__device {
  width: min(100%, 34rem); text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-radius: 30px; padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.6);
  min-height: 31rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.22); }
.seg button { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--on-dark-soft); font-weight: 800; cursor: pointer; transition: background-color 160ms, color 160ms; }
.seg button[aria-checked="true"] { background: var(--on-dark); color: var(--teal-900); }
.pit__stage { display: none; flex: 1; flex-direction: column; }
.pit__stage.is-on { display: flex; animation: stageIn 320ms var(--sc-ease-out) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.pit__eyebrow { font-size: .85rem; font-weight: 700; color: var(--on-dark-soft); text-align: center; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem .5rem; margin: 1.6rem 0 1.2rem; }
.app { display: grid; justify-items: center; gap: .45rem; border: 0; background: none; color: var(--on-dark); font-size: .85rem; font-weight: 600; padding: .3rem; border-radius: 16px; position: relative; }
.app img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.app.is-locked { cursor: pointer; }
.app.is-locked::after {
  content: ""; position: absolute; top: -2px; left: calc(50% + 20px); width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 3px var(--teal-900);
}
span.app { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .app.is-locked:hover img { transform: translateY(-3px); } .app img { transition: transform 160ms var(--sc-ease-out); } }
.app.is-locked:active img { transform: scale(.94); }
.pit__hint { text-align: center; font-size: .9rem; color: var(--on-dark-soft); margin-top: auto; }

.pshield { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: .7rem; padding: 1rem; }
.pshield__logo { width: 64px; height: 64px; border-radius: 18px; background: var(--teal-700); display: grid; place-items: center; margin-bottom: .5rem; box-shadow: 0 0 0 8px rgba(54,199,172,.12); }
.pshield__t { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.pshield__s { color: var(--on-dark-soft); margin-bottom: .75rem; }

.qcard, .scard { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); --focus: var(--teal-800); }
.qcard { display: grid; gap: .8rem; }
.qcard__meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.tag { background: #E3F1ED; color: var(--teal-800); padding: .3rem .65rem; border-radius: 99px; font-weight: 800; }
.qcard__q { font-size: 1.22rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; text-wrap: pretty; }
.qcard__opts { display: grid; gap: .55rem; }
.opt {
  display: flex; gap: .75rem; align-items: center; text-align: left; width: 100%;
  min-height: 52px; padding: .7rem .85rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: .98rem; line-height: 1.3; cursor: pointer;
  transition: border-color 150ms, background-color 150ms, transform 120ms var(--sc-ease-out);
}
.opt:active { transform: scale(.985); }
.opt__l { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .opt:not(:disabled):hover { border-color: var(--teal-700); } }
.opt:disabled { cursor: default; }
.opt.is-right { border-color: var(--green); background: #E3F4EC; }
.opt.is-right .opt__l { background: var(--green); color: #fff; }
.opt.is-wrong { border-color: var(--coral); background: #FDE9E6; }
.opt.is-wrong .opt__l { background: var(--coral-deep); color: #fff; }
.qcard__why, .swipe__why { border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .95rem; line-height: 1.45; display: grid; gap: .25rem; animation: whyIn 360ms var(--sc-ease-out) both; }
@keyframes whyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qcard__why { background: var(--paper); }
.qcard__why.is-right strong { color: var(--green-deep); }
.qcard__why.is-wrong strong { color: var(--coral-deep); }

.swipe__how { text-align: center; font-size: .92rem; color: var(--on-dark-soft); margin-bottom: 1rem; }
.swipe__deck { position: relative; min-height: 15.5rem; display: grid; }
.swipe__deck::before, .swipe__deck::after { content: ""; position: absolute; inset: 10px 14px -10px; border-radius: var(--radius); background: rgba(255,255,255,.12); z-index: 0; }
.swipe__deck::after { inset: 20px 28px -20px; background: rgba(255,255,255,.06); z-index: -1; }
.scard { position: relative; z-index: 1; display: grid; gap: .6rem; align-content: start; touch-action: pan-y; user-select: none; cursor: grab; will-change: transform; }
.scard.is-dragging { cursor: grabbing; }
.scard.is-flying { transition: transform 300ms var(--sc-ease-out), opacity 300ms var(--sc-ease-out); }
.scard.is-back { transition: transform 260ms var(--sc-ease-out); }
.scard__q { font-size: 1.08rem; font-weight: 700; line-height: 1.32; color: var(--ink-soft); }
.scard__label { margin-top: .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.scard__a { font-size: 1.45rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.scard__stamp { position: absolute; top: 1rem; padding: .3rem .7rem; border-radius: 10px; font-weight: 800; font-size: .95rem; border: 2.5px solid; opacity: 0; pointer-events: none; }
.scard__stamp--yes { right: 1rem; color: var(--green-deep); rotate: 8deg; opacity: var(--yes, 0); }
.scard__stamp--no { left: 1rem; color: var(--coral-deep); rotate: -8deg; opacity: var(--no, 0); }
.swipe__btns { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2.6rem; }
.sbtn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--card); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); transition: transform 120ms var(--sc-ease-out); }
.sbtn:active { transform: scale(.92); }
.sbtn--no { color: var(--coral-deep); }
.sbtn--yes { color: var(--green-deep); }
.swipe__why { margin-top: 1rem; background: rgba(0,0,0,.22); color: var(--on-dark); }
.swipe__why strong { color: var(--sun); }
.swipe__why .btn { justify-self: start; margin-top: .5rem; }

.unlock { margin: auto 0; display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 1rem .5rem; }
.unlock__ring { width: 92px; height: 92px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(47,168,118,.2), 0 0 0 22px rgba(47,168,118,.08); margin-bottom: 1rem; animation: pop 520ms var(--sc-ease-out) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.unlock__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-400); }
.unlock__t { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.unlock__s { color: var(--on-dark); max-width: 26ch; }
.unlock__note { color: var(--on-dark-soft); font-size: .9rem; max-width: 30ch; margin-bottom: .75rem; }
.pit__foot { max-width: 40rem; font-size: .92rem; color: var(--on-dark-soft); }
.pit__noscript { color: var(--on-dark); }

/* ================================================================== ROUTE */
.route__stage { background: var(--paper); overflow: clip; }
.route__rail { position: absolute; left: 0; top: 0; bottom: 0; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(9rem, 26vh, 15rem) var(--sc-gutter) 0; width: max-content; }
.route__intro { position: absolute; z-index: 2; top: calc(var(--bar-h) + 12px + clamp(1.5rem, 6vh, 4rem)); left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.route__title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.route__intro p { font-size: var(--sc-t-lg); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; max-width: 34ch; }
.route__stops { display: flex; position: relative; flex: none; padding-inline: 1rem; }
.route__stops::before {
  content: ""; position: absolute; left: 0; right: -6rem; top: 50%; height: 58px; translate: 0 -50%;
  border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 26px, transparent 26px 52px) center / 100% 4px no-repeat,
    #353F45;
}
.stop { position: relative; width: clamp(130px, 11vw, 168px); height: min(46svh, 400px); display: grid; justify-items: center; align-items: center; }
.stop__badge {
  --fill: clamp(0, calc((var(--sc-p, 0) * 19 - var(--i)) / 2.5), 1);
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--fill) * var(--t) * 360deg), rgba(28,42,40,.14) 0);
  box-shadow: 0 8px 16px -8px rgba(11,63,55,.5);
}
.stop__badge::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper); }
.stop__badge b { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--c); color: var(--ci, #fff); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stop__name { position: absolute; left: 50%; translate: -50% 0; width: 100%; text-align: center; font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.stop:nth-child(odd) .stop__name { bottom: calc(50% + 58px); }
.stop:nth-child(even) .stop__name { top: calc(50% + 58px); }
.route__check { flex: none; width: 17rem; background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--sc-e2); position: relative; z-index: 1; }
.route__flag { width: 52px; height: 52px; border-radius: 16px; background: var(--coral-deep); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.route__check-t { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .4rem; }
.route__check p:last-child { color: var(--ink-soft); }
.route__end { flex: none; width: max-content; max-width: 70vw; padding-right: var(--sc-gutter); }
.route__end-t { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .95; color: var(--teal-800); }
.route__end p:last-child { font-size: var(--sc-t-lg); color: var(--ink-soft); margin-top: .5rem; }
.route__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(to top, var(--paper-2), transparent); pointer-events: none; }
@media (max-width: 860px) {
  .route__intro { grid-template-columns: minmax(0, 1fr); gap: .75rem; top: calc(var(--bar-h) + 24px); }
  .route__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .route__intro p { font-size: 1rem; }
  .route__rail { padding-top: clamp(13rem, 34svh, 18rem); }
  .stop { width: 124px; height: min(40svh, 340px); }
  .stop__badge { width: 64px; height: 64px; }
  .stop__badge b { width: 46px; height: 46px; font-size: 1rem; }
  .stop:nth-child(odd) .stop__name { bottom: calc(50% + 50px); }
  .stop:nth-child(even) .stop__name { top: calc(50% + 50px); }
  .stop__name { font-size: .92rem; }
  .route__stops::before { height: 48px; }
}

/* ================================================================= INSIDE */
.inside { padding-block: var(--sc-section); background: var(--paper); }
.inside__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.inside__head { position: sticky; top: calc(var(--bar-h) + 48px); display: grid; gap: 1.25rem; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-top: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.nums div { display: flex; flex-direction: column-reverse; gap: .2rem; }
.nums dt { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.nums dd { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--teal-800); font-variant-numeric: tabular-nums; }
.nums small { font-size: .5em; letter-spacing: 0; }
.index { border-top: 1px solid var(--line); }
.index li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.index h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.index p { color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }
.new { display: inline-block; vertical-align: .2em; margin-left: .35rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: var(--sun); color: var(--sun-ink); padding: .2rem .45rem; border-radius: 6px; }
@media (max-width: 860px) {
  .inside__grid { grid-template-columns: minmax(0, 1fr); }
  .inside__head { position: static; }
  .index li { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================== TRUST */
.trust { background: var(--teal-950); color: var(--on-dark); padding-block: var(--sc-section); --focus: var(--sun); }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.trust__title { font-size: clamp(3rem, 2rem + 5vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
.trust__list li { padding: 1.25rem 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-soft); line-height: 1.55; }
.trust__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.trust__list b { display: block; color: var(--on-dark); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: .2rem; }
@media (max-width: 860px) { .trust__grid { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ PRICING */
.pricing { background: var(--paper-2); padding-block: var(--sc-section); }
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.pricing__head { display: grid; gap: 1.25rem; }
.price { background: var(--card); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--sc-e3); display: grid; gap: 1.1rem; }
.price__switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper); }
.price__switch button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.price__switch button[aria-selected="true"] { background: var(--teal-800); color: #fff; }
.price__badge { display: inline-block; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: .8rem; padding: .3rem .65rem; border-radius: 8px; }
.price__badge--alt { background: #DDEFF8; color: #1D5E80; }
.price__amt { margin: .5rem 0 .25rem; }
.price__amt b { font-size: clamp(2.8rem, 2rem + 3vw, 3.8rem); font-weight: 800; letter-spacing: -0.05em; }
.price__amt span { color: var(--ink-soft); font-weight: 600; }
.price__list { display: grid; gap: .65rem; padding: 1.1rem 0; border-block: 1px solid var(--line); }
.price__list li { position: relative; padding-left: 1.9rem; font-weight: 600; line-height: 1.4; }
.price__list li::before { content: ""; position: absolute; left: .3rem; top: .2em; width: .45rem; height: .8rem; border: solid var(--green-deep); border-width: 0 3px 3px 0; rotate: 40deg; }
.price__legal a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .pricing__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==================================================================== FAQ */
.faq { padding-block: var(--sc-section); background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.faq__head { display: grid; gap: 1rem; position: sticky; top: calc(var(--bar-h) + 48px); }
.qa details, .wp-faq details { border-bottom: 1px solid var(--line); }
.qa details:first-child, .wp-faq details:first-child { border-top: 1px solid var(--line); }
.qa summary, .wp-faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-size: 1.12rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.35;
}
.qa summary::-webkit-details-marker, .wp-faq summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after, .wp-faq summary::before, .wp-faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: var(--teal-800);
  transition: rotate 220ms var(--sc-ease-out);
}
.qa summary::after, .wp-faq summary::after { rotate: 90deg; }
.qa details[open] summary::after, .wp-faq details[open] summary::after { rotate: 0deg; }
.qa__a, .wp-faq .answer { padding: 0 0 1.4rem; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; display: grid; gap: .8rem; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }

/* ================================================================= NOTICE */
.notice { padding-block: 0 var(--sc-section); background: var(--paper); }
.notice__box { border-radius: var(--radius); background: var(--paper-2); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: .9rem; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); max-width: 62rem; }
.notice__box h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.notice__ogl { font-size: .85rem; }

/* ================================================================== CLOSE */
.close {
  position: relative; overflow: clip; text-align: center;
  background: linear-gradient(180deg, var(--teal-950) 0%, var(--teal-900) 60%, #15705F 100%);
  color: var(--on-dark); --focus: var(--sun);
  padding-block: var(--sc-section) clamp(9rem, 22vw, 18rem);
}
.close__road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(9rem, 22vw, 18rem); max-width: none; }
.close__wrap { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.close__title { font-size: clamp(2.3rem, 1.4rem + 4vw, 5.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; max-width: 16ch; text-wrap: balance; }
.close__title em { color: var(--sun); }
.close__lead { color: var(--on-dark-soft); font-size: var(--sc-t-lg); max-width: 34ch; text-wrap: pretty; }
.field { display: flex; gap: .5rem; width: min(100%, 30rem); padding: 6px; border-radius: 20px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); margin-top: .5rem; }
.field input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; color: #fff; padding: 0 1rem; font-size: 1rem; border-radius: 14px; }
.field input::placeholder { color: rgba(244,241,234,.6); }
.field input:focus-visible { outline: 2px solid var(--sun); outline-offset: 0; }
.field__status { min-height: 1.5em; font-weight: 700; }
.field__status.is-success { color: var(--teal-400); }
.field__status.is-error { color: #FFB4A8; }
.close__small { font-size: .88rem; color: var(--on-dark-soft); }
@media (max-width: 520px) {
  .field { flex-direction: column; background: none; box-shadow: none; padding: 0; }
  .field input { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
}

/* ================================================================= FOOTER */
.foot { background: var(--teal-950); color: var(--on-dark-soft); padding: clamp(3rem, 6vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); --focus: var(--sun); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.foot .brand { color: var(--on-dark); }
.foot__blurb { margin-top: 1rem; max-width: 34ch; line-height: 1.55; }
.foot h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: .9rem; }
.foot nav { display: grid; gap: .5rem; }
.foot nav a { text-decoration: none; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: .2em; }
.foot__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: grid; gap: .5rem; font-size: .85rem; line-height: 1.55; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* ========================================== DOC PAGES (legal + support) */
.wp-doc { padding: calc(var(--bar-h) + 12px + clamp(3rem, 8vw, 6rem)) 0 var(--sc-section); }
.wp-container { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.wp-container--narrow { max-width: 48rem; }
.wp-doc__head { margin-bottom: clamp(2rem, 5vw, 4rem); display: grid; gap: .75rem; }
.wp-h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: .98; text-wrap: balance; }
.wp-h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.wp-h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.025em; }
.wp-h4 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.wp-lead { font-size: var(--sc-t-lg); line-height: 1.45; }
.wp-body-muted, .wp-small, .wp-doc__stamp { color: var(--ink-soft); }
.wp-small { font-size: .9rem; line-height: 1.55; }
.wp-mt-sm { margin-top: .75rem; } .wp-mt-md { margin-top: 1.5rem; }
.wp-link { font-weight: 700; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.wp-doc__layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.wp-toc { position: sticky; top: calc(var(--bar-h) + 40px); font-size: .92rem; }
.wp-toc summary { font-weight: 800; cursor: pointer; margin-bottom: .75rem; list-style: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-800); }
.wp-toc summary::-webkit-details-marker { display: none; }
.wp-toc ol { display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.wp-toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.wp-toc a:hover { color: var(--ink); border-left-color: var(--teal-700); }
.wp-prose { max-width: 70ch; line-height: 1.68; }
.wp-prose > * + * { margin-top: 1rem; }
.wp-prose h2 { margin-top: 3rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; scroll-margin-top: calc(var(--bar-h) + 40px); }
.wp-prose h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; scroll-margin-top: calc(var(--bar-h) + 40px); }
.wp-prose .lead { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--ink); max-width: none; }
.wp-prose ul, .wp-prose ol { padding-left: 1.3rem; display: grid; gap: .4rem; }
.wp-prose ul { list-style: disc; } .wp-prose ol { list-style: decimal; }
.wp-prose li::marker { color: var(--teal-700); }
.wp-prose a { font-weight: 700; text-underline-offset: .2em; }
.wp-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wp-prose th, .wp-prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-contact { background: var(--paper-2); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; }
.wp-contact address { font-style: normal; }
.wp-card { background: var(--card); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--sc-e2); display: grid; gap: .75rem; justify-items: start; }
.wp-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-800); color: #fff; display: grid; place-items: center; }
.wp-cta { display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 1.3rem; border-radius: 16px; font-weight: 800; text-decoration: none; }
.wp-cta svg { width: 20px; height: 20px; }
.wp-cta--sun { background: var(--sun); color: var(--sun-ink); }
.wp-cta--teal { background: var(--teal-800); color: #fff; }
@media (max-width: 860px) {
  .wp-doc__layout { grid-template-columns: minmax(0, 1fr); }
  .wp-toc { position: static; background: var(--paper-2); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
  .wp-toc summary { margin-bottom: 0; }
  .wp-toc[open] summary { margin-bottom: .75rem; }
}

/* ===================================================================== 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--teal-950); color: var(--on-dark); padding: calc(var(--bar-h) + 40px) var(--sc-gutter) 3rem; --focus: var(--sun); }
.lost__inner { display: grid; justify-items: center; gap: 1.25rem; max-width: 34rem; }
.lost h1 { font-size: clamp(2.6rem, 2rem + 4vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.lost p { color: var(--on-dark-soft); font-size: var(--sc-t-lg); }
.lost__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ==================================================================== BLOG */
.blog { padding: calc(var(--bar-h) + 12px + clamp(3rem, 8vw, 6rem)) 0 var(--sc-section); }
.blog__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 46rem; }
.blog__list { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.post__topic { font-size: .85rem; font-weight: 800; color: var(--teal-700); }
.post h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.post__topic { grid-column: 1; grid-row: 1; }
.post h2 { grid-column: 2; grid-row: 1; }
.post__state { grid-column: 3; grid-row: 1; }
.post__desc { grid-column: 2; grid-row: 2; color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.post__state { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-soft); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
@media (max-width: 760px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .post__topic, .post h2, .post__state, .post__desc { grid-column: 1; grid-row: auto; }
  .post__state { justify-self: start; }
}

/* ========================================================= reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__plane, .hero__title, .hero__sun { transform: none !important; }
  .wedge__draw { stroke-dashoffset: 0; }
  .pit__stage.is-on, .unlock__ring, .qcard__why, .swipe__why { animation: none; }
  .scard.is-flying, .scard.is-back { transition-duration: 1ms; }
  .stop__badge { --fill: 1; }
}
