/* FreedivingLog website
 *
 * Two moods share one system:
 *   - the home page is a dive: daylight at the surface, then a descent along
 *     the line into dark water, ending at the bottom plate;
 *   - every other page is the logbook: warm paper, ink, and a dark-water band
 *     at the top (dark mode turns the paper to night water).
 */

/* --- Fonts (self-hosted: the site makes no third-party requests) ---------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2-variations'),
       url('../fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2-variations'),
       url('../fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

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

:root {
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-num: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* The water column, surface to bottom. */
  --air: #eef8fb;
  --foam: #f7fcfd;
  --sea-1: #0a6f96;
  --sea-2: #085a85;
  --sea-3: #06456f;
  --sea-4: #043152;
  --sea-5: #03213a;
  --sea-6: #021526;
  --sea-7: #010b15;
  --aqua: #39d0ec;
  --glow: #7ff6e2;
  --buoy: #ff6b2c;
  --buoy-hi: #ff8a50;
  --kelp: #2fbf8f;
  --amber: #ffb547;
  --coral: #ff7a6b;

  /* The app's own palette, for the glimpses of its screens. */
  --app-page: #f3f5f8;
  --app-paper: #ffffff;
  --app-well: #eef1f5;
  --app-ink: #0d1b2a;
  --app-ink-2: #4a5a6b;
  --app-ink-3: #66727f;
  --app-ink-4: #8592a0;
  --app-primary: #0b5c91;
  --app-primary-soft: #e6f0f7;
  --app-success: #0f7a55;
  --app-success-soft: #e3f4ec;
  --app-warning: #a35d00;
  --app-warning-soft: #fdf0dc;
  --app-violet: #5b3db8;
  --app-violet-soft: #eeeafb;

  /* Paper pages (light). */
  --bg: #f5f1e8;
  --bg-2: #ede7da;
  --card: #fffdf8;
  --ink: #0b1826;
  --ink-2: #33414f;
  --ink-3: #56636f;
  --rule: rgba(11, 24, 38, 0.13);
  --rule-2: rgba(11, 24, 38, 0.07);
  --link: #0a5e8c;
  --link-hover: #06456f;
  --accent-ink: #b8461a; /* buoy orange, dark enough for text on paper */
  --mark: #ffe07a;
  --mark-ink: #3a2a00;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-1: 0 1px 2px rgba(3, 20, 38, 0.06), 0 6px 18px rgba(3, 20, 38, 0.07);
  --shadow-deep: 0 2px 6px rgba(1, 10, 20, 0.25), 0 30px 70px -20px rgba(1, 10, 20, 0.6);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  body.page {
    --bg: #07121d;
    --bg-2: #0b1a29;
    --card: #0e1f30;
    --ink: #e8eff4;
    --ink-2: #c3cfd9;
    --ink-3: #9aa9b6;
    --rule: rgba(232, 239, 244, 0.14);
    --rule-2: rgba(232, 239, 244, 0.07);
    --link: #6fd3ee;
    --link-hover: #a5e8f7;
    --accent-ink: #ff9a66;
    --mark: #6b5414;
    --mark-ink: #fff3c7;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* --- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
sub, sup { line-height: 0; font-size: 0.72em; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--buoy); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--buoy); color: #10161d; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--buoy); color: #10161d; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.eyebrow a { color: inherit; }

.display {
  font-family: var(--f-display);
  font-weight: 340;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}
.display em { font-style: italic; font-weight: 300; font-variation-settings: 'SOFT' 100, 'WONK' 1; }

.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

mark.ph {
  background: var(--mark);
  color: var(--mark-ink);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.82em;
  letter-spacing: 0;
  white-space: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn--buoy { background: var(--buoy); color: #10161d; box-shadow: 0 6px 18px -6px rgba(255, 107, 44, 0.7); }
.btn--buoy:hover { background: var(--buoy-hi); color: #10161d; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { color: inherit; background: rgba(127, 127, 127, 0.12); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { color: var(--bg); opacity: 0.9; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 14px;
  border-radius: 16px;
  background: #0b1826; color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
a.store:hover { color: #fff; background: #13263a; transform: translateY(-2px); }
.store__icon { width: 26px; height: 26px; flex: none; }
.store__icon svg { width: 100%; height: 100%; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: 0.6875rem; opacity: 0.75; letter-spacing: 0.02em; }
.store__text b { font-family: var(--f-num); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.store--soon { opacity: 0.86; cursor: default; }
.store--ghost { background: transparent; color: inherit; border-color: currentColor; }
a.store--ghost:hover { background: rgba(127, 127, 127, 0.12); color: inherit; }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--ink);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.page .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--rule-2); }
.home .site-header { position: fixed; inset: 0 0 auto 0; color: #0b1826; }
.home .site-header.is-scrolled { background: rgba(2, 21, 38, 0.72); color: #eaf6fa; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.home .site-header.is-scrolled.is-air { background: rgba(238, 248, 251, 0.82); color: #0b1826; box-shadow: 0 1px 0 rgba(11, 24, 38, 0.06); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px rgba(6, 42, 71, 0.25); }
.brand__word { font-family: var(--f-num); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand__word b { font-weight: 600; color: #0b7ea5; }
.brand--light .brand__word b, .home .is-scrolled:not(.is-air) .brand__word b { color: var(--aqua); }
@media (prefers-color-scheme: dark) { .page .brand__word b { color: var(--aqua); } }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: inherit; text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: 8px 12px; border-radius: 999px; opacity: 0.86;
  transition: background-color 0.2s, opacity 0.2s;
}
.site-nav a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.site-nav a[aria-current='page'] { opacity: 1; box-shadow: inset 0 -2px 0 var(--buoy); border-radius: 0; }
.site-nav__cta { display: none; }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .site-header__cta { margin-left: auto; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: rgba(127, 127, 127, 0.14); cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
    transition: transform 0.25s var(--ease), background-color 0.2s;
  }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; }
  .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 68px 12px auto 12px; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #fffdf8; color: #0b1826; border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(1, 10, 20, 0.45), 0 0 0 1px rgba(11, 24, 38, 0.06);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .site-nav a { padding: 14px 16px; font-size: 1.0625rem; border-radius: 14px; }
  .site-nav a[aria-current='page'] { box-shadow: none; background: rgba(255, 107, 44, 0.12); }
  .site-nav__cta { display: block; text-align: center; margin-top: 6px; background: var(--buoy); color: #10161d !important; font-weight: 600; opacity: 1 !important; }
}
@media (max-width: 420px) { .site-header__cta { display: none; } .menu-btn { margin-left: auto; } }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { background: var(--sea-7); color: #c9d6df; font-size: 0.9375rem; position: relative; z-index: 2; }
.site-footer a { color: #e7f2f7; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.site-footer__inner {
  max-width: var(--max); margin-inline: auto; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px;
}
.site-footer__brand .brand { color: #fff; margin-bottom: 16px; }
.site-footer__brand p { margin: 0 0 12px; max-width: 32ch; }
.buddy-line { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.buddy-line span { width: 10px; height: 10px; border-radius: 50%; background: var(--buoy); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.22); flex: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.site-footer__head { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa3b2; margin: 0 0 4px; }
.site-footer__base {
  max-width: var(--max); margin-inline: auto; padding: 20px var(--gutter) 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); color: #8fa3b2; font-size: 0.8125rem;
}
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols div:last-child { grid-column: 1 / -1; }
}

/* =========================================================================
   HOME: the dive
   ========================================================================= */

body.home { background: var(--sea-7); color: #eaf6fa; }
.home main { position: relative; }

/* --- Surface (above water) ----------------------------------------------- */

.surface {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, #f6fbfd 0%, var(--air) 55%, #d8eff6 100%);
  color: #0b1826;
  padding-top: clamp(96px, 14vh, 140px);
  overflow: hidden;
}
.surface__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  position: relative; z-index: 2;
}
.surface .eyebrow { color: #0a5e8c; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.surface .eyebrow span + span::before { content: '·'; margin-right: 14px; color: rgba(10, 94, 140, 0.45); }
.surface h1 { font-size: clamp(3.25rem, 9.2vw, 8.4rem); color: #0b1826; }
.surface h1 em { color: #0a6f96; }
.surface__lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: #33414f; max-width: 36rem; margin: 28px 0 32px; }
.surface__lede b { color: #0b1826; font-weight: 600; }
.surface__note { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 0.875rem; color: #44525f; }
.surface__note::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--buoy); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.2); flex: none; }
.surface__copy { padding-bottom: clamp(80px, 13vw, 170px); }
.surface__visual { position: relative; align-self: end; margin-bottom: -150px; }

/* The waterline: the sea's edge, three moving wave lines, the buoy. */
.waterline { position: relative; height: clamp(120px, 14vw, 190px); margin-top: -80px; z-index: 3; pointer-events: none; }
.waterline svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.waterline__waves { position: absolute; inset: 0; overflow: hidden; }
.waterline .waterline__band {
  position: absolute; inset: 0 auto 0 0; width: 200%; max-width: none; height: 100%;
  animation: drift 26s linear infinite;
}
.waterline__band:nth-child(2) { animation-duration: 38s; animation-direction: reverse; }
.waterline__band:nth-child(3) { animation-duration: 52s; }
@keyframes drift { to { transform: translateX(-50%); } }

.waterline .buoy {
  position: absolute; z-index: 3; inset: auto; left: calc(var(--line-x) - 30px); top: calc(40% - 64px);
  width: 60px; height: 72px; animation: bob 4.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(3, 33, 58, 0.25));
}
@keyframes bob { 50% { transform: translateY(7px) rotate(-3deg); } }

/* --- The descent --------------------------------------------------------- */

.home { --line-x: clamp(22px, 5.2vw, 76px); --indent: calc(var(--line-x) + clamp(26px, 4vw, 70px)); }

.descent {
  position: relative;
  background: linear-gradient(180deg,
    var(--sea-1) 0%, #09628d 7%, var(--sea-2) 15%, var(--sea-3) 26%, var(--sea-4) 40%,
    var(--sea-5) 55%, var(--sea-6) 72%, var(--sea-7) 92%);
  margin-top: -2px;
}
/* Sun shafts in the shallows. */
.descent::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 170vh; pointer-events: none;
  background:
    repeating-linear-gradient(104deg, transparent 0 60px, rgba(255, 255, 255, 0.05) 60px 90px, transparent 90px 170px, rgba(255, 255, 255, 0.035) 170px 190px, transparent 190px 260px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 100%);
  animation: shafts 18s ease-in-out infinite alternate;
}
@keyframes shafts { to { background-position: 140px 0; } }

.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; }

/* The line, from the buoy to the bottom plate. */
.line {
  position: absolute; z-index: 1; left: var(--line-x); top: -110px; bottom: 210px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0 7px, rgba(255, 255, 255, 0.55) 7px 9px);
  opacity: 0.75;
}
.line::before { /* the bottom plate the line ends on */
  content: ''; position: absolute; left: 50%; bottom: -3px; width: 40px; height: 6px; margin-left: -20px; border-radius: 3px;
  background: #0b2a44; box-shadow: 0 0 0 1.5px rgba(127, 246, 226, 0.45), 0 0 24px rgba(127, 246, 226, 0.25);
}
.line::after { /* a lanyard's shine */
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px; left: 1px; background: rgba(255, 255, 255, 0.35);
}

/* The diver: always mid-screen, on the line. */
.diver {
  position: fixed; z-index: 3; left: var(--line-x); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 0 5px rgba(127, 246, 226, 0.18), 0 0 26px 6px rgba(127, 246, 226, 0.45);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.diver.is-on { opacity: 1; }

/* The dive computer readout. */
.computer {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto auto; gap: 2px 18px; align-items: baseline;
  padding: 12px 16px 12px 16px; border-radius: 18px;
  background: rgba(1, 11, 21, 0.78); color: #eaf6fa;
  border: 1px solid rgba(127, 246, 226, 0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(12px); transition: opacity 0.35s, transform 0.35s var(--ease);
  pointer-events: none;
}
.computer.is-on { opacity: 1; transform: none; }
.computer__k { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(234, 246, 250, 0.6); }
.computer__v { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--glow); letter-spacing: -0.02em; }
.computer__v small { font-size: 0.6em; font-weight: 500; color: rgba(234, 246, 250, 0.7); margin-left: 3px; }
.computer__state { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); min-height: 1em; }
@media (max-width: 640px) { .computer { padding: 9px 12px; gap: 0 12px; } .computer__v { font-size: 1.125rem; } }

/* --- Zones (sections along the line) ------------------------------------- */

.zone { position: relative; z-index: 2; padding: clamp(72px, 10vw, 130px) 0; }
.zone__inner { max-width: calc(var(--max) + 120px); margin-inline: auto; padding-left: var(--indent); padding-right: var(--gutter); }
.zone__tag {
  position: absolute; left: var(--line-x); top: clamp(72px, 10vw, 130px); transform: translate(-50%, -2px);
  font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em;
  color: #0b1826; background: var(--amber); padding: 3px 7px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.zone__tag::before { content: ''; position: absolute; left: 50%; top: -6px; width: 2px; height: 6px; margin-left: -1px; background: rgba(255, 255, 255, 0.6); }
.zone .eyebrow { color: var(--glow); }
.zone h2 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); max-width: 14ch; color: #f2fafc; }
.zone h2 em { color: var(--glow); }
.zone__lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(236, 248, 252, 0.88); max-width: 40rem; margin: 26px 0 0; }
.zone__lede strong { color: #fff; font-weight: 600; }
.zone a:not(.btn):not(.store) { color: var(--glow); }
.zone a:not(.btn):not(.store):hover { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 920px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); } }

/* A typographic list of facts: short bold claim, one line of why. */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 12px; }
.facts li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.facts__n { font-family: var(--f-mono); font-size: 0.75rem; color: var(--glow); padding-top: 0.35em; grid-row: span 2; }
.facts b { font-family: var(--f-display); font-weight: 400; font-size: 1.375rem; letter-spacing: -0.01em; color: #fff; line-height: 1.25; font-variation-settings: 'SOFT' 50; }
.facts span:not(.facts__n) { color: rgba(236, 248, 252, 0.84); font-size: 0.9875rem; }

/* --- App glimpses (the app's own look: daylight paper on the deep) ------- */

.app {
  font-family: var(--f-body); color: var(--app-ink); background: var(--app-page);
  border-radius: 28px; padding: 18px; box-shadow: var(--shadow-deep);
  font-size: 15px; line-height: 1.4; position: relative;
}
.app__bar { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 14px; }
.app__title { font-family: var(--f-num); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.app__sub { font-size: 13px; color: var(--app-ink-3); }
.app-card { color: var(--app-ink); background: var(--app-paper); border-radius: 20px; padding: 16px; box-shadow: 0 1px 2px rgba(13, 27, 42, 0.05), 0 4px 14px rgba(13, 27, 42, 0.05); }
.app-card + .app-card { margin-top: 12px; }
.app-hero { background: radial-gradient(120% 90% at 85% 0%, rgba(43, 176, 214, 0.35), transparent 60%), linear-gradient(135deg, #061b2e, #0c4a73); color: #fff; border-radius: 24px; padding: 18px; }
.app-eyebrow { font-size: 12px; font-weight: 600; color: var(--app-ink-3); letter-spacing: 0.01em; }
.app-hero .app-eyebrow { color: rgba(255, 255, 255, 0.72); }
.app-big { font-family: var(--f-num); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.app-big small, .app-num small { font-size: 0.55em; font-weight: 500; color: var(--app-ink-2); margin-left: 2px; letter-spacing: 0; }
.app-hero .app-big small { color: rgba(255, 255, 255, 0.72); }
.app-num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--app-well); font-size: 13px; font-weight: 600; color: var(--app-ink); white-space: nowrap; }
.app-chip.is-on { background: var(--app-primary); color: #fff; }
.app-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--app-primary-soft); color: var(--app-primary); white-space: nowrap; }
.app-badge--pb { background: var(--app-success-soft); color: var(--app-success); }
.app-badge--warn { background: var(--app-warning-soft); color: var(--app-warning); }
.app-badge--coach { background: var(--app-violet-soft); color: var(--app-violet); }
.app-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; background: var(--app-primary); color: #fff; font-weight: 600; font-size: 15px; margin-top: 14px; }
.app-btn--soft { background: var(--app-primary-soft); color: #094c78; }
.app-row { display: grid; grid-template-columns: 26px 56px 1fr auto; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid rgba(13, 27, 42, 0.07); font-size: 14px; }
.app-row:first-of-type { border-top: 0; }
.app-row__i { width: 26px; height: 26px; border-radius: 50%; background: var(--app-well); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--app-ink-2); }
.app-row__d { font-weight: 600; color: var(--app-ink-2); font-size: 13px; }
.app-row__v { display: flex; gap: 14px; }
.app-row__v .app-num { font-size: 17px; }
.app-dots { display: inline-flex; gap: 3px; }
.app-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--app-well); }
.app-dots i.on { background: var(--app-primary); }
.app-label { font-size: 13px; font-weight: 600; color: var(--app-ink-2); margin: 14px 0 8px; }
.app-hint { font-size: 12.5px; color: var(--app-ink-3); }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--app-primary); }

/* Phone frame for the surface. */
.phone {
  width: min(330px, 78vw); margin-left: auto; padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #1a2733, #05101a); box-shadow: 0 40px 80px -30px rgba(3, 33, 58, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotate(3deg);
}
.phone .app { border-radius: 37px; padding: 14px 12px 20px; box-shadow: none; min-height: 600px; }
.phone__notch { width: 92px; height: 26px; border-radius: 20px; background: #05101a; margin: -4px auto 10px; }
.week { display: flex; justify-content: space-between; margin-top: 14px; }
.week span { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.week i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.week i.on { background: var(--aqua); border-color: var(--aqua); }
.bests { display: grid; grid-template-columns: repeat(3, 1fr); }
.bests > div { padding: 2px 10px; border-left: 1px solid rgba(13, 27, 42, 0.07); }
.bests > div:first-child { border-left: 0; padding-left: 2px; }
.bests .app-num { font-size: 24px; display: block; margin: 4px 0 2px; }
.bests .app-hint { font-size: 11.5px; }

/* --- Disciplines --------------------------------------------------------- */

.disciplines { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; overflow: hidden; }
.disc {
  appearance: none; border: 0; text-align: left; cursor: pointer;
  background: rgba(3, 49, 82, 0.55); color: #eaf6fa; padding: clamp(16px, 2vw, 26px);
  display: flex; flex-direction: column; gap: 6px; min-height: 150px;
  transition: background-color 0.25s;
}
.disc:hover, .disc[aria-pressed='true'] { background: rgba(127, 246, 226, 0.12); }
.disc[aria-pressed='true'] .disc__code { color: var(--glow); }
.disc__code { font-family: var(--f-num); font-weight: 600; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 0.95; transition: color 0.2s; }
.disc__name { font-size: 0.875rem; color: rgba(236, 248, 252, 0.84); line-height: 1.35; }
.disc__metric { margin-top: auto; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.disc-detail { margin-top: 18px; min-height: 3.4em; font-size: 1.0625rem; color: rgba(236, 248, 252, 0.9); max-width: 46rem; }
.disc-detail b { color: #fff; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.extras span { font-size: 0.875rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(236, 248, 252, 0.9); }
@media (max-width: 820px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); } .disc { min-height: 120px; } }

/* --- Personal bests ------------------------------------------------------ */

.pbs { display: grid; gap: 14px; }
.pb { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; }
.pb__head { display: flex; align-items: center; gap: 8px; }
.pb__d { font-size: 13px; font-weight: 600; color: var(--app-ink-2); }
.pb .app-big { font-size: 44px; }
.pb__meta { font-size: 12.5px; color: var(--app-ink-3); grid-column: 1; }
.pb__delta { color: var(--app-success); font-weight: 600; }
.pb__spark { grid-row: 1 / span 3; grid-column: 2; width: 130px; height: 70px; }
.pb__goal { grid-column: 1 / -1; margin-top: 10px; }
.pb__bar { height: 6px; border-radius: 999px; background: var(--app-well); overflow: hidden; margin-top: 6px; }
.pb__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2bb0d6, var(--app-primary)); }
.chart-note { font-size: 0.875rem; color: rgba(236, 248, 252, 0.8); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.chart-note svg { width: 18px; height: 18px; flex: none; }

/* --- Countdown demo ------------------------------------------------------ */

.cd { background: rgba(1, 11, 21, 0.45); border: 1px solid rgba(127, 246, 226, 0.18); border-radius: 30px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.cd__ring { position: relative; width: min(280px, 70vw); aspect-ratio: 1; }
.cd__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cd__track { stroke: rgba(255, 255, 255, 0.1); }
.cd__arc { stroke: var(--amber); transition: stroke 0.3s; }
.cd.is-hold .cd__arc { stroke: var(--aqua); }
.cd__center { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.cd__phase { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.cd.is-hold .cd__phase { color: var(--aqua); }
.cd__time { font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(3.2rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; }
.cd__sub { font-size: 0.8125rem; color: rgba(236, 248, 252, 0.72); }
.cd__call { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 18ch; line-height: 1.1; min-height: 1.2em; color: #fff; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.cd__call.is-top { color: var(--glow); }
.cd__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cd__controls .btn--ghost { color: #eaf6fa; border-color: rgba(255, 255, 255, 0.35); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.toggle { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: rgba(236, 248, 252, 0.8); font-size: 0.875rem; font-weight: 600; }
.toggle::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.toggle[aria-pressed='true'] { background: rgba(127, 246, 226, 0.14); border-color: rgba(127, 246, 226, 0.5); color: #fff; }
.toggle[aria-pressed='true']::before { background: var(--glow); border-color: var(--glow); }
.cd__contractions { font-size: 0.875rem; color: rgba(236, 248, 252, 0.8); min-height: 1.4em; }
.cd__contractions b { color: #c8b5ff; }
.cd__fine { font-size: 0.8125rem; color: rgba(236, 248, 252, 0.7); max-width: 34ch; margin: 0; }
.btn--contraction { background: #8b6cff; color: #fff; }
.btn--contraction:hover { background: #a08aff; color: #fff; }

.calls { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 4px; font-family: var(--f-num); font-size: 0.9375rem; color: rgba(236, 248, 252, 0.75); }
.calls li::after { content: '→'; margin-left: 4px; color: rgba(236, 248, 252, 0.35); }
.calls li:last-child::after { content: ''; }
.calls li:last-child { color: var(--glow); font-weight: 600; }

/* --- Tables generator ---------------------------------------------------- */

.tables { margin-top: clamp(56px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tables h3 { font-family: var(--f-display); font-weight: 350; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; color: #fff; font-variation-settings: 'SOFT' 50; }
.tables p { color: rgba(236, 248, 252, 0.86); margin: 0 0 14px; }
.tgen { background: rgba(1, 11, 21, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 20px; }
.tgen__form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 16px; }
.tgen label { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: rgba(236, 248, 252, 0.84); }
.tgen input, .tgen select {
  height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff;
  padding: 0 12px; font-family: var(--f-num); font-size: 1.125rem; width: 7.5rem;
}
.tgen select { font-family: var(--f-body); font-size: 0.9375rem; width: auto; }
.tgen select option { color: #0b1826; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.seg button { appearance: none; border: 0; background: transparent; color: rgba(236, 248, 252, 0.8); height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 0.9375rem; }
.seg button[aria-pressed='true'] { background: #eaf6fa; color: #0b1826; }
.tgen table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tgen th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236, 248, 252, 0.6); padding: 6px 8px; }
.tgen td { white-space: nowrap; padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--f-num); font-size: 1.0625rem; }
.tgen td:first-child { color: rgba(236, 248, 252, 0.6); font-size: 0.9375rem; }
.tgen td .bar { display: inline-block; height: 6px; border-radius: 3px; vertical-align: middle; margin-left: 10px; }
.tgen td .bar--rest { background: rgba(255, 181, 71, 0.75); }
.tgen td .bar--hold { background: rgba(57, 208, 236, 0.85); }
.tgen__total { margin-top: 12px; font-size: 0.875rem; color: rgba(236, 248, 252, 0.75); }
@media (max-width: 920px) { .tables { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .tgen td { white-space: normal; }
  .tgen td .bar { display: block; margin: 6px 0 0; }
}

/* --- Breathing pacer ----------------------------------------------------- */

.breath { display: flex; gap: 22px; align-items: center; margin-top: 30px; padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); max-width: 34rem; }
.breath__box { position: relative; width: 84px; height: 84px; flex: none; }
.breath__box svg { width: 100%; height: 100%; }
.breath__word { font-family: var(--f-display); font-style: italic; font-size: 1.75rem; font-weight: 300; color: #fff; line-height: 1; min-width: 4ch; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.breath p { margin: 6px 0 0; font-size: 0.875rem; color: rgba(236, 248, 252, 0.8); }

/* --- Coaching ------------------------------------------------------------ */

.ex { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid rgba(13, 27, 42, 0.07); }
.ex:first-of-type { border-top: 0; }
.ex__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--app-primary-soft); color: var(--app-primary); font-weight: 700; font-size: 13px; }
.ex__t { font-weight: 600; font-size: 14.5px; }
.ex__s { font-size: 12.5px; color: var(--app-ink-3); }
.ex__done .ex__n { background: var(--app-success-soft); color: var(--app-success); }
.ex-break { display: flex; align-items: center; gap: 8px; margin: 2px 0 2px 44px; font-size: 12px; color: var(--app-warning); font-weight: 600; }
.ex-break::before { content: ''; width: 18px; border-top: 1.5px dashed currentColor; }
.ring { width: 46px; height: 46px; }
.coach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, #7a5cff, #2bb0d6); flex: none; }

.marquee { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 10px; width: max-content; animation: marquee 80s linear infinite; }
.marquee__row:nth-child(2) { animation-direction: reverse; animation-duration: 95s; }
.marquee__row span { white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9375rem; color: rgba(236, 248, 252, 0.9); }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Imports ------------------------------------------------------------- */

.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(36px, 5vw, 60px); }
.source { padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11); display: flex; flex-direction: column; gap: 10px; }
.source__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.source h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.625rem; line-height: 1.15; color: #fff; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 50; }
.source p { margin: 0; color: rgba(236, 248, 252, 0.84); font-size: 0.9875rem; }
.source svg { margin-top: auto; width: 100%; height: 86px; }
@media (max-width: 860px) { .sources { grid-template-columns: 1fr; } }
.pull { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; color: #fff; margin: clamp(40px, 6vw, 70px) 0 0; max-width: 24ch; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.pull::before { content: ''; display: block; width: 48px; height: 3px; background: var(--buoy); margin-bottom: 18px; border-radius: 2px; }

/* --- Marine life --------------------------------------------------------- */

.species { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid rgba(13, 27, 42, 0.07); }
.species:first-of-type { border-top: 0; }
.species__i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--app-primary-soft); }
.species__i svg { width: 26px; height: 26px; }
.species__n { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.species__l { font-style: italic; font-size: 12.5px; color: var(--app-ink-3); }
.species__c { text-align: right; font-size: 12px; color: var(--app-ink-3); }
.species__c b { display: block; font-family: var(--f-num); font-size: 18px; color: var(--app-ink); }
.geo { display: flex; gap: 6px; margin-top: 12px; }

/* --- Privacy ------------------------------------------------------------- */

.vows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.vow { padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.vow:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.vow b { display: block; font-family: var(--f-display); font-weight: 350; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; color: #fff; margin-bottom: 10px; font-variation-settings: 'SOFT' 50; }
.vow span { color: rgba(236, 248, 252, 0.82); font-size: 0.9875rem; }
@media (max-width: 860px) {
  .vows { grid-template-columns: 1fr; }
  .vow, .vow:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; }
}

/* --- The bottom plate ---------------------------------------------------- */

.bottom { position: relative; z-index: 2; padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 9vw, 110px); }
.bottom .zone__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.bottom h2 { font-size: clamp(3rem, 8vw, 6.6rem); color: #fff; }
.bottom h2 em { color: var(--buoy); }
.bottom p:not(.eyebrow) { color: rgba(236, 248, 252, 0.86); font-size: 1.125rem; max-width: 34rem; margin: 22px 0 30px; }
.bottom .stores .store { background: #eaf6fa; color: #0b1826; border-color: transparent; }
.bottom .stores a.store:hover { background: #fff; color: #0b1826; }
.bottom .store--ghost { background: transparent !important; color: #eaf6fa !important; border-color: rgba(234, 246, 250, 0.4) !important; }
.plate { position: relative; justify-self: center; width: min(300px, 70vw); }
.plate svg { width: 100%; height: auto; overflow: visible; }
.ascend { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: rgba(236, 248, 252, 0.8); font-size: 0.9375rem; text-decoration: none; }
.ascend:hover { color: #fff; }
.ascend svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .bottom .zone__inner { grid-template-columns: 1fr; } .plate { justify-self: start; width: 220px; } }

/* --- Home on small screens ----------------------------------------------- */

@media (max-width: 920px) {
  .surface__inner { grid-template-columns: 1fr; }
  .surface__copy { padding-bottom: 20px; }
  .surface__visual { margin: 10px 0 -150px; justify-self: center; }
  .phone { transform: rotate(2deg); margin-inline: auto; }
  .waterline { margin-top: 0; }
}
@media (max-width: 640px) {
  .home { --line-x: 18px; --indent: 44px; }
  .zone__tag { font-size: 0.625rem; padding: 2px 5px; }
  .phone .app { min-height: 520px; }
  .phone { width: min(300px, 80vw); }
  .waterline .buoy { left: calc(var(--line-x) - 22px); width: 44px; height: 53px; top: calc(40% - 47px); }
}

/* =========================================================================
   PAPER PAGES
   ========================================================================= */

.page-hero {
  position: relative; overflow: hidden; color: #eaf6fa;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(57, 208, 236, 0.28), transparent 60%),
    linear-gradient(180deg, var(--sea-2), var(--sea-5));
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
}
.page-hero::after { /* the line, carried over from the home page */
  content: ''; position: absolute; top: 0; bottom: 0; left: clamp(22px, 5.2vw, 76px); width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 7px, rgba(255, 255, 255, 0.3) 7px 9px);
}
.page-hero__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--glow); }
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 5.6rem); color: #fff; max-width: 16ch; }
.page-hero h1 em { color: var(--glow); }
.page-hero .lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(236, 248, 252, 0.88); max-width: 42rem; margin: 22px 0 0; }
.page-hero .depth { position: absolute; right: var(--gutter); bottom: -6px; font-family: var(--f-num); font-weight: 600; font-size: clamp(5rem, 16vw, 13rem); line-height: 1; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.05); pointer-events: none; user-select: none; }
@media (min-width: 1000px) { .page-hero__inner { padding-left: calc(clamp(22px, 5.2vw, 76px) + 56px); } }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section + .section { padding-top: 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .eyebrow { color: var(--accent-ink); }
.section__head h2 { font-family: var(--f-display); font-weight: 350; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; font-variation-settings: 'SOFT' 50; }
.section__head p { color: var(--ink-2); font-size: 1.125rem; margin: 16px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); border: 1px solid var(--rule-2); }
.card h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 450; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 50; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.9875rem; }
.card p + p { margin-top: 10px; }
.card .k { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 10px; }
a.card { text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
a.card:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 2px 4px rgba(3, 20, 38, 0.06), 0 18px 40px -12px rgba(3, 20, 38, 0.22); }
a.card .more { display: inline-block; margin-top: 14px; color: var(--link); font-weight: 600; font-size: 0.9375rem; }

/* Manual layout: sticky contents beside long reading. */
.manual { max-width: var(--max); margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 100px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.manual__aside { position: relative; }
.manual__aside .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 960px) {
  .manual { grid-template-columns: 1fr; }
  .manual__aside .toc { position: static; }
}

.toc { font-size: 0.9375rem; }
.toc__title { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.6875rem; color: var(--ink-3); margin-right: 10px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--buoy); font-weight: 600; }
@media (max-width: 960px) {
  .toc { background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-1); }
  .toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Long-form reading. */
.prose { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); max-width: 46rem; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink); margin: 2.4em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--rule); font-variation-settings: 'SOFT' 50;
}
.prose h3 { font-family: var(--f-body); font-weight: 650; font-size: 1.1875rem; color: var(--ink); margin: 1.8em 0 0.4em; letter-spacing: -0.005em; }
.prose h4 { font-size: 1rem; color: var(--ink); margin: 1.5em 0 0.3em; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose dl { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose ul li::marker { color: var(--accent-ink); }
.prose ol li::marker { font-family: var(--f-mono); font-size: 0.85em; color: var(--accent-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--f-mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prose td:first-child { color: var(--ink); font-weight: 550; min-width: 9rem; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--buoy); color: var(--ink); font-family: var(--f-display); font-size: 1.25rem; font-style: italic; font-weight: 350; line-height: 1.45; }
.prose code { font-family: var(--f-mono); font-size: 0.85em; background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose .lead { font-size: 1.1875rem; color: var(--ink); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.prose dt { font-weight: 650; color: var(--ink); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }

.chapter-k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 8px; }
.prose h2 .chapter-k { margin-bottom: 10px; }

.callout { border-radius: 16px; padding: 16px 20px; margin: 0 0 1.6em; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-1); font-size: 0.9875rem; line-height: 1.6; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout--draft { background: color-mix(in srgb, var(--mark) 26%, var(--card)); border-color: color-mix(in srgb, var(--mark) 70%, transparent); }
.callout--safety { border-left: 4px solid var(--buoy); }
.callout--tip { border-left: 4px solid #2bb0d6; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.pill--draft { background: var(--mark); color: var(--mark-ink); }

.steps { list-style: none; counter-reset: step; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px !important; margin: 0 !important; background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--f-num); font-weight: 600; font-size: 0.9375rem; }
.steps li b, .steps li strong { color: var(--ink); }

.kbd { display: inline-block; font-family: var(--f-body); font-weight: 600; font-size: 0.875em; padding: 0.05em 0.5em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; }
.tags li { margin: 0 !important; padding: 5px 12px !important; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); font-size: 0.875rem; color: var(--ink); }

.ex-groups { columns: 2 250px; column-gap: 14px; margin: 1.5em 0; }
.ex-group { break-inside: avoid; margin-bottom: 14px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-1); }
.ex-group h4 { margin: 0 0 8px; font-family: var(--f-mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.ex-group ul { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.ex-group li { margin: 0; padding: 5px 0; border-top: 1px solid var(--rule-2); color: var(--ink); }
.ex-group li:first-child { border-top: 0; }

/* FAQ */
.faq { max-width: 50rem; }
.faq__group { margin-bottom: 44px; }
.faq__group > h2 { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--ink); font-variation-settings: 'SOFT' 50; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-num); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--accent-ink); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }
.faq details > div p { margin: 0 0 0.8em; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Legal documents. */
.doc-head { background: linear-gradient(180deg, var(--sea-3), var(--sea-5)); color: #eaf6fa; padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.doc-head::after { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(22px, 5.2vw, 76px); width: 2px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 7px, rgba(255, 255, 255, 0.28) 7px 9px); }
.doc-head__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
@media (min-width: 1000px) { .doc-head__inner { padding-left: calc(clamp(22px, 5.2vw, 76px) + 56px); } }
.doc-head .eyebrow { color: var(--glow); }
.doc-head .eyebrow a { text-decoration: none; }
.doc-head .eyebrow a:hover { text-decoration: underline; }
.doc-head h1 { font-family: var(--f-display); font-weight: 350; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; margin: 0; color: #fff; font-variation-settings: 'SOFT' 50; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: 0.875rem; color: rgba(236, 248, 252, 0.8); }
.doc-meta mark.ph { font-size: 0.78em; }
.doc-layout { max-width: var(--max); margin-inline: auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 100px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.doc-aside { position: relative; }
.doc-aside__in { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.doc-aside__note { margin-top: 22px; font-size: 0.875rem; line-height: 1.9; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside__in { position: static; max-height: none; }
}

/* Legal index. */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.doc-list li { border-bottom: 1px solid var(--rule); }
.doc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 22px 0; text-decoration: none; color: inherit; }
.doc-list a:hover h3 { color: var(--link); }
.doc-list h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--ink); transition: color 0.2s; font-variation-settings: 'SOFT' 50; }
.doc-list p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; grid-column: 1; }
.doc-list .where { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 640px) { .doc-list a { grid-template-columns: 1fr; } .doc-list .where { grid-row: auto; grid-column: 1; text-align: left; } }

/* Contact block. */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.contact > div { background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-1); }
.contact .k { display: block; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.contact b { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact p { margin: 6px 0 0; font-size: 0.875rem; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.lost h1 { font-size: clamp(3rem, 9vw, 6rem); }
.lost p { color: var(--ink-2); font-size: 1.125rem; max-width: 30rem; margin: 18px auto 28px; }
.lost .num { font-size: clamp(5rem, 20vw, 11rem); font-weight: 600; color: var(--accent-ink); line-height: 1; display: block; margin-bottom: 10px; }

/* --- Reveal on scroll (only when JS is running) ---------------------------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay='1'] { transition-delay: 0.08s; }
.js .reveal[data-delay='2'] { transition-delay: 0.16s; }
.js .reveal[data-delay='3'] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__row { flex-wrap: wrap; width: auto; }
}

/* --- Print (legal pages print cleanly) ------------------------------------- */

@media print {
  .site-header, .site-footer, .doc-aside, .skip, .computer, .diver, .snow { display: none !important; }
  body, body.page { background: #fff; color: #000; --ink: #000; --ink-2: #111; --rule: #ccc; --card: #fff; }
  .doc-head, .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .doc-head h1, .page-hero h1 { color: #000; }
  .doc-head::after, .page-hero::after { display: none; }
  .doc-meta, .doc-head .eyebrow { color: #333; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; font-size: 11pt; }
  a { color: #000; }
  mark.ph { background: none; border: 1px dashed #999; }
}
