/* ============================================================================
   Anchor — public site shell. Shared by every page:
   the harbor ground, liquid glass, the floating dock (the app's tab bar),
   the sounding line, reveals, odometers, placeholders, the phone frame,
   the next-sounding doorway, the seabed footer, and page transitions.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--t-15);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg3);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; transform: translateY(-160%);
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

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

/* ===========================================================================
   The ground: a CSS harbor (always painted) + the WebGL caustic sea on top
   of it once it is ready. Fixed layers use z-index 0 (never negative: a
   negative z on a fixed layer paints under the body when scrolled).
   =========================================================================== */
.sea {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% -10%, color-mix(in srgb, var(--m-bright) 18%, transparent), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, color-mix(in srgb, var(--m-primary) 34%, transparent), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg1) 46%, var(--bg3));
}
.sea canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease-soft);
}
.sea.is-live canvas { opacity: 1; }
.sea::after {           /* vignette + grain-free depth */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.42));
}

.page { position: relative; z-index: 1; }
main { display: block; }

/* ===========================================================================
   Layout + type
   =========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-11); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.02; margin: 0; text-wrap: balance; color: var(--ink);
  font-optical-sizing: auto;
}
.display em { font-style: italic; color: var(--accent); font-weight: 400; }
.d-96 { font-size: var(--t-96); }
.d-68 { font-size: var(--t-68); }
.d-48 { font-size: var(--t-48); line-height: 1.06; }
.d-34 { font-size: var(--t-34); line-height: 1.12; }
.d-26 { font-size: var(--t-26); line-height: 1.2; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2);
  max-width: 60ch; margin: 0; text-wrap: pretty;
}
.body { color: var(--ink-2); max-width: 62ch; margin: 0; text-wrap: pretty; }
.body strong, .lede strong { color: var(--ink); font-weight: 600; }
.small { font-size: var(--t-13); color: var(--ink-3); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.serif { font-family: var(--font-serif); }
.money {
  font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums; line-height: 1;
}
.accent { color: var(--accent); }
.gold { color: var(--sand); }

.stack { display: grid; gap: var(--gap); }
.stack-lg { display: grid; gap: clamp(20px, 3vw, 32px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===========================================================================
   Liquid glass (the app's blur(20px) saturate(1.4) recipe + a pointer glint)
   =========================================================================== */
.glass {
  position: relative; isolation: isolate;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--glass-fill), var(--glass-fill-2));
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 40px 80px -40px rgba(0,0,0,.65);
}
.glass::before {          /* scheme scrim for text contrast across hues (app's GlassCard scrim) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--scrim); pointer-events: none;
}
.glass::after {           /* light catching the rim where the pointer is */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, -40%),
    color-mix(in srgb, var(--accent) 70%, #fff) , transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--glint, 0); transition: opacity .5s var(--ease-soft);
}
.glass.is-lit { --glint: 1; }
.glass--pad { padding: clamp(20px, 2.4vw, 30px); }
.glass--tint {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 5%, transparent)),
    linear-gradient(180deg, var(--glass-fill), var(--glass-fill-2));
}
.glass--sheen { overflow: hidden; }
.glass--sheen > .sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.07), transparent 50%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .dock__glass, .topbar__cap, .chip--glass { background: color-mix(in srgb, var(--bg2) 92%, #fff 3%); }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: var(--t-12); font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 11px; border-radius: 999px;
}
.chip--glass {
  color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.chip--gold { color: var(--sand); background: color-mix(in srgb, var(--sand) 14%, transparent); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.btn {
  --b-bg: var(--accent); --b-ink: var(--on-accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-bg); color: var(--b-ink); text-decoration: none;
  font-size: var(--t-15); font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-soft), filter .3s;
  transform: translate(var(--mx, 0px), var(--my, 0px));
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--accent) 100%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.965); transition-duration: .12s; }
.btn--ghost {
  --b-bg: rgba(255,255,255,.07); --b-ink: var(--ink);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--ghost:hover { border-color: var(--accent-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .45s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  color: var(--accent); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }

/* ===========================================================================
   Top bar
   =========================================================================== */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__cap {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; text-decoration: none; color: var(--ink);
  background: rgba(10, 14, 16, .32); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px -14px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-spring), background .4s;
}
.topbar__cap:hover { background: rgba(10,14,16,.44); }
.brand__glyph {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 60%, #fff), var(--m-primary) 70%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
}
.brand__glyph svg { width: 16px; height: 16px; }
.brand__word { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--hair); }
.topbar__right { display: flex; gap: 8px; align-items: center; }
.topbar__right .btn { min-height: 44px; padding: 0 18px; font-size: var(--t-13); }
@media (max-width: 640px) {
  .brand__tag, .topbar__stage, .topbar__room { display: none; }
}
@media (max-width: 380px) { .topbar__right .btn { padding: 0 14px; } .topbar__cap { padding: 0 12px 0 10px; } }

/* ===========================================================================
   The dock — the app's floating Liquid Glass tab bar, as site navigation.
   The pill's resting place is pure CSS (per page) so it is right on first
   paint; a named view-transition glides it between pages.
   =========================================================================== */
.dock {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 50; transform: translateX(-50%);
  width: min(640px, calc(100% - 20px));
}
.dock__glass {
  --n: 6;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  padding: 6px; border-radius: 999px;
  background: rgba(12, 16, 18, .46);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.04),
    0 24px 50px -18px rgba(0,0,0,.75), 0 0 0 .5px rgba(0,0,0,.4);
}
.dock__pill {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / var(--n));
  transform: translateX(calc(var(--i, 0) * 100%)) translateX(var(--lean, 0px)) scaleX(var(--stretch, 1));
  border-radius: 999px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.22), transparent 60%),
    color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255,255,255,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .7s var(--ease-spring);
  pointer-events: none;
}
.dock a {
  position: relative; z-index: 1;
  display: grid; justify-items: center; align-content: center; gap: 3px;
  height: 54px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  transition: color .35s, transform .5s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.dock a svg { width: 21px; height: 21px; transition: transform .5s var(--ease-spring); }
.dock a:hover { color: var(--ink); }
.dock a:hover svg { transform: translateY(-1px) scale(1.06); }
.dock a:active svg { transform: scale(.88); transition-duration: .1s; }
.dock a[aria-current="page"] { color: var(--accent); }
.dock a:focus-visible { outline-offset: -4px; border-radius: 999px; }

body[data-page="home"]    .dock { --i: 0; }
body[data-page="app"]     .dock { --i: 1; }
body[data-page="modes"]   .dock { --i: 2; }
body[data-page="privacy"] .dock { --i: 3; }
body[data-page="faq"]     .dock { --i: 4; }
body[data-page="get"]     .dock { --i: 5; }
body[data-page="doc"]     .dock { --i: 3; }

@media (max-width: 420px) {
  .dock a { font-size: 9.5px; height: 50px; }
  .dock a svg { width: 19px; height: 19px; }
}

/* ===========================================================================
   The sounding line — scroll depth, read in fathoms (desktop)
   =========================================================================== */
.sounding {
  position: fixed; right: 18px; top: 50%; z-index: 30; height: min(58vh, 520px);
  transform: translateY(-50%); width: 64px; pointer-events: none;
  display: none;
}
@media (min-width: 1180px) and (min-height: 620px) { .sounding { display: block; } }
.sounding__line {
  position: absolute; right: 12px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--ink-4) 6%, var(--ink-4) 94%, transparent);
}
.sounding__tick { position: absolute; right: 12px; width: 5px; height: 1px; background: var(--ink-4); }
.sounding__tick.is-major { width: 10px; background: var(--ink-3); }
.sounding__mark {
  position: absolute; right: 4px; width: 17px; height: 17px; margin-top: -8px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0;
}
.sounding__mark::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3);
  transition: transform .4s var(--ease-spring), background .3s;
}
.sounding__mark:hover::before, .sounding__mark.is-here::before { background: var(--accent); transform: scale(1.5); }
.sounding__mark span {
  position: absolute; right: 24px; white-space: nowrap; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.sounding__mark:hover span, .sounding__mark:focus-visible span { opacity: 1; transform: none; }
.sounding__lead {
  position: absolute; right: 7px; top: 0; width: 11px; height: 15px; margin-top: -7px;
  transform: translateY(var(--lead, 0px));
}
.sounding__lead::before {      /* the lead weight */
  content: ""; position: absolute; inset: 0;
  background: var(--accent); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
  filter: drop-shadow(0 0 8px var(--accent));
}
.sounding__read {
  position: absolute; right: 26px; top: -7px; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--accent); white-space: nowrap; letter-spacing: .06em;
}

/* ===========================================================================
   Reveals — content is visible by default; only with JS do below-the-fold
   pieces wait, and they surface with a soft focus-pull.
   =========================================================================== */
.js .rv:not(.in) { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(10px); }
.rv {
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .rv-scale:not(.in) { transform: scale(.94) translate3d(0, 20px, 0); }

/* Line-by-line headline rise (split by core.js; words stay readable without JS) */
.split .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 38ms + var(--d, 0) * 90ms); }
.js .split:not(.in) .w > span { transform: translate3d(0, 105%, 0); opacity: 0; }

/* ===========================================================================
   Odometer — the app's numericText roll, digit by digit
   =========================================================================== */
.odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; position: relative; line-height: 1; }
.odo__col { display: flex; flex-direction: column; transition: transform 1.8s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.odo__col > span { height: 1em; line-height: 1; }
.odo__s { display: inline-block; }

/* ===========================================================================
   Placeholders — values the founder fills in via js/config.js
   =========================================================================== */
.ph {
  position: relative; display: inline-flex; align-items: center; gap: .3em;
  padding: 0 .38em; margin: 0 -.05em; border-radius: .32em;
  color: var(--ink-2); font-style: normal;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%) -200% 0 / 200% 100% no-repeat,
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.035) 6px 12px);
  animation: ph-shimmer 4.5s var(--ease-soft) infinite;
  cursor: help;
}
.ph::after {
  content: attr(data-ph-tag); font-family: var(--font-mono); font-size: max(9px, .28em); letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); opacity: .8; align-self: flex-start; margin-top: .25em;
}
@keyframes ph-shimmer { 0%, 40% { background-position: -200% 0, 0 0; } 80%, 100% { background-position: 200% 0, 0 0; } }
.ph-flash .ph { animation: ph-flash 1.4s var(--ease-out) 2; }
@keyframes ph-flash { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent); background-color: color-mix(in srgb, var(--accent) 18%, transparent); } }

.draft-badge {
  position: fixed; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px dashed var(--accent-line); cursor: pointer;
  background: rgba(10,14,16,.5); color: var(--ink-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .5s var(--ease-spring), color .3s;
}
.draft-badge:hover { color: var(--ink); transform: translateY(-2px); }
.draft-badge b { color: var(--accent); font-weight: 700; }
@media (max-width: 980px) { .draft-badge { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 68px); left: 10px; height: 28px; } }

/* ===========================================================================
   Phone — a CSS iPhone frame around real simulator captures
   =========================================================================== */
.phone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%; aspect-ratio: 600 / 1304;
  border-radius: calc(var(--w) * .15); padding: calc(var(--w) * .032);
  background:
    linear-gradient(145deg, #3a3f45 0%, #16191c 18%, #0c0e10 50%, #1b1e22 82%, #454a51 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 3px #050607,
    0 60px 120px -40px rgba(0,0,0,.8), 0 30px 60px -30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000;
  border-radius: calc(var(--w) * .122);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen img + img { position: absolute; inset: 0; }
.phone__island {
  position: absolute; z-index: 3; top: calc(var(--w) * .052); left: 50%; transform: translateX(-50%);
  width: 32%; height: calc(var(--w) * .09); border-radius: 999px; background: #000;
}
.phone__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.05) 100%);
}
.phone::before, .phone::after {   /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2e33;
}
.phone::before { left: -2px; top: 22%; height: 8%; box-shadow: 0 calc(var(--w) * .2) 0 #2a2e33; }
.phone::after { right: -2px; top: 28%; height: 13%; }

/* ===========================================================================
   Next sounding — the doorway into the next page, tinted with ITS hue, whose
   tide rises as you arrive (so every page flows into the next).
   =========================================================================== */
.next { position: relative; padding-block: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.next__door {
  position: relative; display: grid; gap: 14px; overflow: hidden; isolation: isolate;
  min-height: clamp(280px, 38vw, 420px); padding: clamp(26px, 4vw, 54px);
  border-radius: var(--r-sheet); text-decoration: none; color: var(--ink);
  align-content: end;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m-bg2) 70%, transparent), var(--m-bg1));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 50px 100px -50px rgba(0,0,0,.8);
  transition: transform .8s var(--ease-spring), box-shadow .6s;
}
.next__door:hover { transform: translateY(-4px) scale(1.005); box-shadow: inset 0 1px 0 var(--glass-hi), 0 60px 120px -50px color-mix(in srgb, var(--accent) 50%, #000); }
.next__tide {
  position: absolute; left: -5%; right: -5%; bottom: 0; z-index: -1;
  height: calc(30% + var(--p) * 55%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--m-bright) 55%, transparent), color-mix(in srgb, var(--m-primary) 70%, transparent) 40%, var(--m-deep));
  transition: height .2s linear;
}
.next__tide svg { position: absolute; left: 0; width: 200%; height: 26px; top: -25px; animation: tide-roll 9s linear infinite; }
.next__tide svg path { fill: color-mix(in srgb, var(--m-bright) 55%, transparent); }
.next__door:hover .next__tide svg { animation-duration: 4s; }
@keyframes tide-roll { to { transform: translateX(-50%); } }
.next__glow {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 80% 10%, color-mix(in srgb, var(--m-glow) 30%, transparent), transparent 70%);
}
.next__kicker { font-family: var(--font-mono); font-size: var(--t-11); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.next__title { font-family: var(--font-serif); font-size: var(--t-68); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.next__sub { color: var(--ink-2); max-width: 46ch; }
.next__go {
  position: absolute; right: clamp(22px, 4vw, 48px); top: clamp(22px, 4vw, 48px);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .7s var(--ease-spring), background .3s;
}
.next__go svg { width: 24px; height: 24px; }
.next__door:hover .next__go { transform: rotate(-45deg) scale(1.08); background: var(--accent); color: var(--on-accent); }

/* ===========================================================================
   Seabed footer
   =========================================================================== */
.seabed {
  position: relative; z-index: 1; overflow: hidden;
  padding: clamp(60px, 9vw, 110px) 0 calc(env(safe-area-inset-bottom, 0px) + 130px);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35) 30%, rgba(0,0,0,.55));
}
.seabed__sand {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background:
    radial-gradient(60% 120% at 20% 100%, color-mix(in srgb, var(--sand) 12%, transparent), transparent 70%),
    radial-gradient(50% 100% at 85% 100%, color-mix(in srgb, var(--sand) 9%, transparent), transparent 70%);
}
.seabed__grid { display: grid; gap: 36px; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .seabed__grid { grid-template-columns: 1fr; } }
.seabed__brand { display: flex; gap: 14px; align-items: center; }
.seabed__anchor { width: 46px; height: 46px; color: var(--accent); animation: moored 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes moored { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.seabed h3 { font-family: var(--font-mono); font-size: var(--t-11); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 12px; }
.seabed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seabed a { color: var(--ink-2); text-decoration: none; transition: color .3s; }
.seabed a:hover { color: var(--accent); }
.seabed__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: var(--t-12); color: var(--ink-3); display: grid; gap: 6px; max-width: 90ch; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -20px; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%);
  left: var(--x, 50%); animation: bubble var(--t, 9s) linear infinite; animation-delay: var(--dl, 0s); opacity: 0;
}
@keyframes bubble {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate3d(10px, -45vh, 0); }
  90% { opacity: .5; }
  100% { transform: translate3d(-6px, -90vh, 0); opacity: 0; }
}

/* ===========================================================================
   Shared small pieces
   =========================================================================== */
.kv { display: grid; gap: 2px; }
.kv__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.kv__v { font-family: var(--font-serif); font-size: var(--t-26); font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.hr { height: 1px; background: var(--hair); border: 0; margin: 0; }
.icon { width: 20px; height: 20px; flex: none; }

.page-hero { position: relative; padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero .display { max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }

/* ===========================================================================
   Page transitions (cross-document View Transitions): the new page's water
   floods in from the tab you tapped; the dock stays put and its pill glides.
   =========================================================================== */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.dock { view-transition-name: dock; }
.dock__pill { view-transition-name: dock-pill; }
::view-transition-old(root) { animation: vt-sink .6s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-flood .9s var(--ease-out) both; }
@keyframes vt-sink { to { opacity: .25; transform: scale(.97) translateY(-14px); filter: blur(8px); } }
@keyframes vt-flood {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 94%)); }
  to   { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 94%)); }
}
::view-transition-old(dock) { display: none; }
::view-transition-new(dock) { animation: none; }
::view-transition-old(topbar) { display: none; }
::view-transition-new(topbar) { animation: none; }
::view-transition-group(dock-pill) { animation-duration: .8s; animation-timing-function: cubic-bezier(.3, 1.3, .4, 1); }
::view-transition-old(dock-pill) { animation: none; opacity: 0; }
::view-transition-new(dock-pill) { animation: none; }

/* Without cross-document transitions, the page surfaces instead */
.js body.no-vt .page { animation: surface .9s var(--ease-out) both; }
@keyframes surface { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ===========================================================================
   Shared controls: segmented toggles, pill buttons, sliders
   =========================================================================== */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--hair); }
.seg button { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); transition: background .35s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px;
  transition: transform .5s var(--ease-spring), background .3s;
}
.pill-btn:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.pill-btn:active { transform: scale(.95); }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn--ghost { border-color: var(--hair); background: rgba(255,255,255,.04); color: var(--ink-2); }

.range { display: grid; gap: 8px; }
.range label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.range output { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer;
  --fill: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255,255,255,.1) var(--fill));
}
input[type=range]::-moz-range-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e8eef0 60%, #c8d0d4);
  box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .3s var(--ease-spring);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent); }


/* Above-the-fold entrance: plays on load, never waits on an observer */
.load { animation: load-rise 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes load-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); } }
.is-stepped *, .is-stepped *::before, .is-stepped *::after { transition: none !important; animation-play-state: paused !important; }
.is-stepped .load, .is-stepped .rv { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
.is-stepped .split .w > span { opacity: 1 !important; transform: none !important; }

/* ===========================================================================
   Reduced motion: every choreography resolves to its end state.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv:not(.in), .js .split:not(.in) .w > span { opacity: 1; transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .bubbles { display: none; }
}


/* ===========================================================================
   Public-site pieces: launch-state labels, the waitlist form, socials,
   and the App Store-style privacy label
   =========================================================================== */
.post { display: none; }
.is-launched .pre { display: none; }
.is-launched .post { display: inline; }
.is-launched .pre-only { display: none !important; }
.post-only { display: none !important; }
.is-launched .post-only { display: revert !important; }

.socials { display: flex; gap: 14px; font-size: 13px; }
.socials:empty { display: none; }
.socials a { color: var(--ink-3); text-decoration: none; }
.socials a:hover { color: var(--accent); }

.wl { display: grid; gap: 10px; width: min(100%, 480px); }
.wl__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); transition: border-color .3s, box-shadow .4s; }
.wl__row:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.wl input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15.5px; padding: 0 16px; outline: none; }
.wl input::placeholder { color: var(--ink-3); }
.wl .btn { min-height: 46px; }
.wl__note { margin: 0; min-height: 1.2em; font-size: 12.5px; color: var(--ink-3); padding-left: 18px; }
.wl.is-bad .wl__row { border-color: var(--negative); animation: gate-shake .5s var(--ease-out); }
.wl.is-done .wl__row { border-color: color-mix(in srgb, var(--positive) 60%, transparent); }
.wl.is-done .wl__note { color: var(--positive); }
.wl.is-sending .btn { opacity: .7; }
@keyframes gate-shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
@media (max-width: 460px) { .wl__row { flex-direction: column; border-radius: 26px; } .wl input { min-height: 46px; } }

/* App privacy label, in the App Store's idiom */
.plabel { padding: 22px; display: grid; gap: 14px; width: min(100%, 420px); border-radius: 26px; }
.plabel__top { display: flex; justify-content: space-between; align-items: baseline; }
.plabel__top b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.plabel__top span { font-size: 13px; color: var(--accent); }
.plabel__card { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); }
.plabel__card svg { width: 38px; height: 38px; color: var(--accent); }
.plabel__card b { font-size: 17px; }
.plabel__card p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 30ch; }
.plabel__foot { font-size: 11.5px; color: var(--ink-3); margin: 0; }
