/* Cardio Trails website
   Palette: the app's forest accent, a warm paper, and the slope colors of the map
   (teal 0%, yellow 5%, orange 10%, purple 20%+). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  --forest-950: #051a15;
  --forest-900: #08241d;
  --forest-850: #0b2e25;
  --forest-800: #0e3a2f;
  --forest-700: #0f5c4a;
  --forest-600: #17745e;
  --mint: #61d6ad;
  --mint-soft: #bff0dc;

  --paper: #f6f3eb;
  --paper-2: #eee9dc;
  --paper-3: #e4ddcb;
  --card: #fffdf8;
  --ink: #0f1f1a;
  --ink-2: #47564f;
  --ink-3: #7b8781;
  --line: rgba(15, 31, 26, 0.12);
  --line-strong: rgba(15, 31, 26, 0.2);
  --on-dark: #f1efe6;
  --on-dark-2: rgba(241, 239, 230, 0.72);
  --on-dark-3: rgba(241, 239, 230, 0.5);
  --line-dark: rgba(241, 239, 230, 0.14);

  --s0: #05947d;
  --s5: #dba60a;
  --s10: #f25229;
  --s20: #913dbd;
  --slope: linear-gradient(90deg, var(--s0) 0%, var(--s5) 25%, var(--s10) 50%, var(--s20) 100%);

  --z1: #59b8ff;
  --z2: #33cc61;
  --z3: #ffcc00;
  --z4: #ff8c00;
  --z5: #ff383d;

  --d-green: #1f9a46;
  --d-blue: #1d68dc;
  --d-red: #dc2430;
  --d-purple: #8b30c9;

  --health: #ff2d55;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4.5vw, 48px);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(15, 31, 26, 0.06), 0 12px 32px -12px rgba(15, 31, 26, 0.18);
  --shadow-float: 0 30px 80px -24px rgba(5, 26, 21, 0.45), 0 12px 24px -12px rgba(5, 26, 21, 0.25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; }

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

.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-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-variation-settings: "opsz" 96;
}
.h1 { font-size: clamp(3rem, 7.6vw, 7rem); }
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.08; }

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--slope);
}
.on-dark .eyebrow { color: var(--mint); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
}
.on-dark .lede { color: var(--on-dark-2); }

.slope-text {
  background: var(--slope);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

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

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 16px 40px -12px rgba(0, 0, 0, 0.55); }
.btn-store svg { width: 26px; height: 26px; fill: currentColor; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.1; }
.btn-store small { font-size: 11px; letter-spacing: 0.02em; opacity: 0.85; }
.btn-store strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { color: var(--on-dark); border-color: rgba(241, 239, 230, 0.45); }
.btn--light:hover { background: rgba(241, 239, 230, 0.12); }
.btn--solid {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: #fff;
}
.btn--solid:hover { background: var(--forest-600); border-color: var(--forest-600); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--forest-700);
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--mint); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--on-dark);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.nav.is-solid,
.nav--solid {
  background: rgba(8, 36, 29, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(241, 239, 230, 0.08);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}
.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.86;
  transition: background 0.2s, opacity 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--forest-900);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
.nav__cta svg { width: 16px; height: 16px; fill: currentColor; }
.nav__cta:hover { transform: translateY(-1px); }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.16);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links,
  .nav__cta { display: none; }
  .nav.is-open {
    background: var(--paper);
    color: var(--ink);
    height: auto;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3);
  }
  .nav.is-open .nav__inner { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-bottom: 20px; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    order: 3;
    width: 100%;
    margin: 0;
  }
  .nav.is-open .nav__links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav.is-open .nav__cta { display: inline-flex; order: 4; margin-top: 16px; background: var(--forest-900); color: var(--on-dark); }
}

/* ---------- Hero ---------- */

.hero {
  --hero-h: max(640px, min(100svh, 980px));
  /* The hero's timeline: the far stretch, the climb hidden behind the hill and its card,
     the middle stretch, the last stretch and the disc under her feet, her card, the path
     ahead, and the record. */
  --t-far: 0.3s;
  --t-hidden-line: 1.3s;
  --t-hidden-card: 1.7s;
  --t-mid: 1.95s;      /* while the card above is still opening */
  --t-near: 2.65s;
  --t-disc: 3.45s;
  --t-now-line: 4s;
  --t-now-card: 4.4s;
  --t-ahead: 4.6s;     /* while her card is still opening */
  --t-pass: 5.4s;
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  background: var(--forest-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
/* Past this width the photo would be cropped too much in height: it stops growing
   and its sides fade into the page (see .is-capped, set by site.js). */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: calc(var(--hero-h) * 1.72);
  margin-inline: auto;
}
/* Behind it, a blurred copy of the photo fills the rest of the width, and the sharp
   photo's sides ease into it. */
.hero__ambient { display: none; }
@media (min-width: 1100px) {
  .hero.is-capped .hero__ambient {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
  }
  .hero__ambient::before,
  .hero__ambient::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  /* A tiny, already blurred copy of the photo: stretched, it stays smooth and costs nothing
     to draw, unlike a CSS blur over the whole width. */
  .hero__ambient::before {
    inset: -40px;
    background: url("../photos/hero-ambient.webp") center / cover no-repeat;
  }
  .hero__ambient::after {
    background:
      linear-gradient(90deg, rgba(5, 26, 21, 0.9) 0%, rgba(5, 26, 21, 0.72) 30%, rgba(5, 26, 21, 0.2) 55%, rgba(5, 26, 21, 0.12) 100%),
      linear-gradient(180deg, rgba(5, 26, 21, 0.55) 0%, rgba(5, 26, 21, 0) 26%, rgba(8, 36, 29, 0) 74%, rgba(8, 36, 29, 0.7) 88%, #08241d 100%);
  }
  .hero__media.is-capped {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 2.5%, rgba(0, 0, 0, 0.16) 5%, rgba(0, 0, 0, 0.32) 7.5%, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0.68) 12.5%, rgba(0, 0, 0, 0.84) 15%, rgba(0, 0, 0, 0.96) 17.5%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0.96) 82.5%, rgba(0, 0, 0, 0.84) 85%, rgba(0, 0, 0, 0.68) 87.5%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 0.32) 92.5%, rgba(0, 0, 0, 0.16) 95%, rgba(0, 0, 0, 0.04) 97.5%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 2.5%, rgba(0, 0, 0, 0.16) 5%, rgba(0, 0, 0, 0.32) 7.5%, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0.68) 12.5%, rgba(0, 0, 0, 0.84) 15%, rgba(0, 0, 0, 0.96) 17.5%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0.96) 82.5%, rgba(0, 0, 0, 0.84) 85%, rgba(0, 0, 0, 0.68) 87.5%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 0.32) 92.5%, rgba(0, 0, 0, 0.16) 95%, rgba(0, 0, 0, 0.04) 97.5%, rgba(0, 0, 0, 0) 100%);
  }
}
.hero__media img,
.hero__media svg.trail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 50%; }
/* Above the overlay, so the runner cut-out is shaded exactly like the photo under it.
   The bottom fades into the next section. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 26, 21, 0.92) 0%, rgba(5, 26, 21, 0.72) 28%, rgba(5, 26, 21, 0.14) 43%, rgba(5, 26, 21, 0) 50%),
    linear-gradient(180deg, rgba(5, 26, 21, 0.55) 0%, rgba(5, 26, 21, 0) 26%, rgba(8, 36, 29, 0) 74%, rgba(8, 36, 29, 0.7) 88%, #08241d 100%);
  pointer-events: none;
}
.trail-overlay { z-index: 1; pointer-events: none; }

.js .trail-reveal { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-drawn .trail-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur) cubic-bezier(0.45, 0, 0.35, 1) var(--t); }
.trail-reveal--far { --t: var(--t-far); --dur: 1s; }
.trail-reveal--mid { --t: var(--t-mid); --dur: 0.65s; }
.trail-reveal--near { --t: var(--t-near); --dur: 0.85s; }

.puck__in,
.puck__pings ellipse { transform-box: fill-box; transform-origin: center; }
.js .puck__in { scale: 0; }
.is-drawn .puck__in { scale: 1; transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--t-disc); }
.puck__pings ellipse { opacity: 0; vector-effect: non-scaling-stroke; }
.is-drawn .puck__pings ellipse { animation: ping 2.7s cubic-bezier(0.2, 0.6, 0.3, 1) calc(var(--t-disc) + 0.3s) infinite; }
.is-drawn .puck__pings ellipse:nth-child(2) { animation-delay: calc(var(--t-disc) + 1.2s); }
.is-drawn .puck__pings ellipse:nth-child(3) { animation-delay: calc(var(--t-disc) + 2.1s); }
.ahead ellipse { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
.js .ahead ellipse { opacity: 0; }
.is-drawn .ahead ellipse { opacity: 1; transition: opacity 0.4s calc(var(--t-ahead) + var(--i) * 0.09s); }
@keyframes ping {
  0% { scale: 0.9; opacity: 0.95; }
  100% { scale: 4.4; opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--nav-h) + 48px) 96px;
}
.hero__text { max-width: min(530px, 37vw); }
.hero .eyebrow { color: var(--mint); }
.hero h1 { margin-bottom: 26px; text-wrap: balance; }
.hero h1 .accent { font-size: 1.04em; }
.hero .lede { margin-bottom: 36px; color: rgba(241, 239, 230, 0.84); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 14px;
  color: var(--on-dark-2);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--mint); }

/* The Apple Health app icon, wherever Apple Health is named. */
.ah-icon { flex: none; width: 18px; height: 18px; border-radius: 4.5px; }
.ah-icon--lg { display: block; width: 26px; height: 26px; border-radius: 6.5px; margin-bottom: 14px; }
.policy-summary .ah-icon--lg { margin-bottom: 12px; }
.icon-badge--ah { background: none; }
.icon-badge--ah img { width: 40px; height: 40px; border-radius: 10px; }
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(97, 214, 173, 0.18);
  color: var(--mint);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 17, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.chip b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chip small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.chip__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
}
.chip__dot .icon { width: 19px; height: 19px; stroke-width: 2.2; }
.is-drawn .chip { opacity: 1; transition: opacity 0.7s var(--ease-out) var(--d, 2.4s), translate 0.7s var(--ease-out) var(--d, 2.4s); }
.chip { translate: 0 10px; }
.is-drawn .chip { translate: 0 0; }
.no-js .chip,
.no-js .hero__leaders { display: none; }
.chip--pass { --d: var(--t-pass); }

/* A card of figures for a point of the route: a line draws out of that point, and the
   card opens from the end of the line (its transform-origin, set by site.js). */
.chip--card {
  transform: none;
  translate: none;
  scale: 0.15;
  display: grid;
  gap: 5px;
  padding: 11px 16px 12px 13px;
  border-radius: 18px;
  white-space: nowrap;
}
.is-drawn .chip--card {
  scale: 1;
  transition: opacity 0.25s ease-out var(--d), scale 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) var(--d);
}
.chip--hidden { --d: var(--t-hidden-card); }
.chip--now { --d: var(--t-now-card); }
.chip__title {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.chip__row { display: flex; align-items: center; gap: 9px; }
.chip--card .chip__row b { display: inline; font-size: 16px; }
.chip__sub {
  margin: -3px 0 0 25px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
.chip__grade {
  flex: none;
  width: 16px;
  height: 6px;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #fff;
}
.chip__heart { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero__leaders {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* Leaders to hidden points are drawn in the trail overlay, under the hills that hide them. */
.leader--hidden { --d: var(--t-hidden-line); }
.leader--now { --d: var(--t-now-line); }
.leader circle { opacity: 0; }
.is-drawn .leader circle { opacity: 1; transition: opacity 0.2s ease-out var(--d); }
.leader line { stroke: rgba(255, 255, 255, 0.85); stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawn .leader line { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s cubic-bezier(0.3, 0, 0.3, 1) var(--d); }
.leader .tip { fill: #fff; }
.leader .ring { fill: none; stroke: rgba(255, 255, 255, 0.55); }

/* In the middle, at the end of the dotted path ahead of the runner. */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .icon { animation: nudge 2.2s ease-in-out infinite; }
}
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Stacked hero: text on forest, then the photo as a tall card. */
@media (max-width: 1099px) {
  .hero { display: block; min-height: 0; }
  .hero__content { padding-block: calc(var(--nav-h) + 40px) 36px; }
  .hero__text { max-width: 640px; }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    width: min(100% - 2 * var(--gutter), 760px);
    margin: 0 auto 24px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .hero__media {
    max-width: none;
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(5, 26, 21, 0.25) 0%, rgba(5, 26, 21, 0) 30%, rgba(5, 26, 21, 0) 72%, rgba(5, 26, 21, 0.35) 100%);
  }
  .hero__scroll { display: none; }
  .chip { padding: 7px 12px 7px 7px; gap: 8px; }
  .chip--card { padding: 8px 11px 9px 10px; gap: 3px; border-radius: 14px; }
  .chip--card .chip__row b { font-size: 13px; }
  .chip__sub { font-size: 10.5px; margin-left: 23px; }
  .chip__title { font-size: 9.5px; }
  .chip__dot { width: 28px; height: 28px; }
  .chip b { font-size: 14px; }
  .chip small { font-size: 11px; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .hero__media { aspect-ratio: 16 / 13; }
}
@media (max-width: 639px) {
  .chip small { display: none; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(72px, 9vw, 120px); }
.section--paper-2 { background: var(--paper-2); }
.section--forest { background: var(--forest-900); color: var(--on-dark); }
.section--deep { background: var(--forest-950); color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 22px; text-wrap: balance; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.points {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  list-style: none;
}
.points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.points .icon-badge { margin-top: 2px; }
.points strong { display: block; font-weight: 650; }
.points span { color: var(--ink-2); font-size: 16px; }
.on-dark .points span { color: var(--on-dark-2); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 92, 74, 0.1);
  color: var(--forest-700);
}
.icon-badge .icon { width: 21px; height: 21px; }
.on-dark .icon-badge { background: rgba(97, 214, 173, 0.12); color: var(--mint); }

/* ---------- Phone ---------- */

.phone {
  --w: 320px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #3b413e 0%, #161917 40%, #0b0d0c 60%, #2e3431 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 calc(var(--w) * 0.006) #5c6460 inset,
    var(--shadow-float);
  flex: none;
}
.phone::before {
  content: "";
  position: absolute;
  inset: calc(var(--w) * 0.012);
  border-radius: calc(var(--w) * 0.153);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.135);
  background: #e9eee6;
}
.phone--lg { --w: 360px; }
.phone--sm { --w: 280px; }
@media (max-width: 520px) {
  .phone, .phone--lg { --w: min(300px, 78vw); }
  .phone--sm { --w: min(260px, 70vw); }
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 214, 173, 0.32), rgba(97, 214, 173, 0) 68%);
  filter: blur(10px);
  z-index: -1;
}
.section--paper-2 .phone-stage::before,
.section:not(.section--forest):not(.section--deep) .phone-stage::before {
  background: radial-gradient(circle, rgba(219, 166, 10, 0.22), rgba(219, 166, 10, 0) 66%);
}

/* ---------- Intro: phone with callouts ---------- */

.intro { padding-top: clamp(28px, 4vw, 56px); }
.showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.callouts { display: grid; gap: 44px; list-style: none; }
.callouts--left { text-align: right; }
.callout h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.callout p { margin: 0; color: var(--on-dark-2); font-size: 16px; }
.callout__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(241, 239, 230, 0.08);
  box-shadow: 0 0 0 1px var(--line-dark) inset;
}
.callout__mark .icon { width: 22px; height: 22px; color: var(--mint); }
.callout__mark--slope { background: var(--slope); box-shadow: none; }
.callout__mark--slope .icon { color: #fff; }
.callout__mark--badge { gap: 0; }
@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase .phone-stage { grid-column: 1 / -1; order: -1; margin-bottom: 24px; }
  .callouts--left { text-align: left; }
}
@media (max-width: 560px) {
  .showcase { grid-template-columns: 1fr; }
  .callouts { gap: 32px; }
}

.mini-badges { display: inline-flex; gap: 4px; }
.mini-badges i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Stat strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line-dark);
}
.stats-strip div { padding: 28px 24px 0 0; }
.stats-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-strip span { color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards (app-like) ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.ios {
  font-family: var(--font-ios);
  letter-spacing: -0.01em;
}

/* Slope profile */
.profile-card { padding: 26px 26px 22px; }
.profile-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.profile-card__head h3 { font-size: 17px; font-weight: 650; }
.profile-card__head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.profile {
  position: relative;
  touch-action: pan-y;
  cursor: crosshair;
}
.profile svg { width: 100%; height: auto; overflow: visible; }
.profile__readout {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  translate: -50% calc(-100% - 14px);
  opacity: 0;
  transition: opacity 0.15s;
  font-variant-numeric: tabular-nums;
}
.profile__readout b { font-size: 15px; }
.profile.is-hover .profile__readout { opacity: 1; }
.legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.legend__bar { height: 8px; border-radius: 8px; background: var(--slope); }
.legend__ticks {
  display: flex;
  justify-content: space-between;
  grid-column: 2;
  margin-top: -8px;
  font-size: 12px;
}
.legend__ticks span:nth-child(2) { margin-left: 8%; }
.legend__ticks span:nth-child(3) { margin-right: 32%; }

.grade-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 32px;
  list-style: none;
}
.grade-scale li {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.grade-scale i {
  display: block;
  height: 6px;
  margin-bottom: 12px;
  border-radius: 6px;
}
.grade-scale b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grade-scale span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 520px) {
  .grade-scale { grid-template-columns: 1fr 1fr; }
}

.slope-visual {
  position: relative;
  display: grid;
  justify-items: end;
  padding-bottom: 40px;
}
.slope-visual .phone-stage { margin-right: 4%; }
.slope-visual .profile-card {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(440px, 86%);
  box-shadow: var(--shadow-card), 0 40px 80px -30px rgba(5, 26, 21, 0.45);
}
@media (max-width: 900px) {
  .slope-visual { justify-items: center; padding-bottom: 0; gap: 24px; }
  .slope-visual .phone-stage { margin-right: 0; }
  .slope-visual .profile-card { position: static; width: 100%; max-width: 560px; }
}
.split h2 { margin-bottom: 22px; text-wrap: balance; }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.tile > p { color: var(--ink-2); font-size: 16px; max-width: 34em; }
.tile--network { grid-column: span 4; grid-row: span 2; background: var(--forest-900); color: var(--on-dark); }
.tile--network > p { color: var(--on-dark-2); }
.tile--efforts { grid-column: span 2; grid-row: span 2; }
.tile--passes { grid-column: span 3; }
.tile--edit { grid-column: span 3; padding-bottom: 0; }
@media (max-width: 1000px) {
  .tile--network, .tile--efforts, .tile--passes, .tile--edit { grid-column: span 6; grid-row: auto; }
  .tile--efforts { grid-column: span 6; }
}
@media (min-width: 640px) and (max-width: 1000px) {
  .tile--passes, .tile--edit { grid-column: span 3; }
}

.network-art {
  position: relative;
  margin: 24px -12px -12px;
  flex: 1;
  min-height: 300px;
}
.network-art svg { width: 100%; height: 100%; }
@media (max-width: 1000px) {
  .network-art { flex: none; min-height: 0; margin-inline: -16px; padding-bottom: 52px; }
  .network-art svg { height: auto; }
}
.network-art .trace { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; transition: opacity 1.2s ease 1.4s; }
.network-art .seg {
  fill: none;
  stroke: #e9f3ee;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.network-art .node { fill: var(--forest-900); stroke: #e9f3ee; stroke-width: 3.5; transform-box: fill-box; transform-origin: center; scale: 0; }
.network-art .badge { opacity: 0; transform-box: fill-box; transform-origin: center; scale: 0.6; }
.network-art.is-in .trace { opacity: 0.62; }
.network-art.is-in .seg { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.5s; }
.network-art.is-in .node { scale: 1; transition: scale 0.5s var(--ease-out) 1.9s; }
.network-art.is-in .badge { opacity: 1; scale: 1; transition: opacity 0.5s 2.3s, scale 0.6s var(--ease-out) 2.3s; }
.network-art__legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.network-art__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241, 239, 230, 0.08);
  color: var(--on-dark-2);
}
.network-art__legend i { width: 18px; height: 3px; border-radius: 3px; display: block; }

.efforts-card { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--paper); }
.efforts-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.efforts-card__best { margin: 6px 0 2px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.efforts-card__best small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.efforts-card > svg { width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.efforts-list { list-style: none; font-size: 14px; }
.efforts-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.efforts-list li span:first-child { color: var(--ink-2); }
.efforts-list li span:last-child { color: var(--ink-3); min-width: 72px; text-align: right; }
.efforts-list .is-best span:nth-child(2) { color: var(--forest-700); font-weight: 700; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 92, 74, 0.1);
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 650;
}

.passes-grid {
  display: grid;
  grid-template-columns: 56px repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.passes-grid span { display: flex; align-items: center; }
.passes-grid .m { justify-content: center; }
.passes-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(15, 92, 74, var(--a, 0.06));
}
.passes-grid .lbl { gap: 6px; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.passes-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: auto 0 0;
  padding-top: 24px;
}
.passes-totals div { padding-top: 14px; border-top: 1px solid var(--line); }
.passes-totals dt { font-size: 13px; color: var(--ink-3); }
.passes-totals dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.passes-totals div:last-child dd { color: var(--forest-700); }
.passes-grid .lbl .icon { width: 14px; height: 14px; }

.edit-shot {
  margin: 22px -36px 0;
  height: 330px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.edit-shot img {
  position: absolute;
  left: 50%;
  top: -560px;
  width: 560px;
  max-width: none;
  translate: -50% 0;
  border-radius: 28px;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tools span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.tools .icon { width: 15px; height: 15px; }

/* ---------- Energy ---------- */

.energy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 960px) { .energy-grid { grid-template-columns: 1fr; } }

.panel {
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(241, 239, 230, 0.07), rgba(241, 239, 230, 0.03));
  box-shadow: 0 0 0 1px var(--line-dark) inset;
  padding: clamp(22px, 3vw, 32px);
}
.panel + .panel { margin-top: 18px; }
.energy-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
}
.energy-total .icon { width: 34px; height: 34px; color: var(--mint); align-self: center; stroke-width: 2; }
.energy-total b { font-size: clamp(3.2rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.energy-total span { color: var(--on-dark-2); font-size: 18px; }
.energy-total em { margin-left: auto; font-style: normal; color: var(--on-dark-3); font-size: 15px; }
.energy-rows { list-style: none; }
.energy-rows li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 4px 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}
.energy-rows .icon { width: 22px; height: 22px; color: var(--mint); margin-top: 2px; }
.energy-rows strong { font-weight: 600; }
.energy-rows small { display: block; color: var(--on-dark-3); font-size: 14px; }
.energy-rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.energy-rows .bar {
  grid-column: 2 / -1;
  height: 4px;
  border-radius: 4px;
  background: rgba(241, 239, 230, 0.1);
  overflow: hidden;
}
.energy-rows .bar i { display: block; height: 100%; width: var(--w); background: var(--c, var(--mint)); border-radius: 4px; transform-origin: left; }
.reveal .energy-rows .bar i { transform: scaleX(0); }
.reveal.is-in .energy-rows .bar i { transform: scaleX(1); transition: transform 1.2s var(--ease-out) 0.4s; }
.energy-rows li.is-mix strong { color: var(--mint); }

.zones { list-style: none; display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.zones li {
  display: grid;
  grid-template-columns: 64px 96px 1fr 56px;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}
.zones li span:nth-child(2) { color: var(--on-dark-3); }
.zones li span:last-child { text-align: right; }
.zones i { display: block; height: 10px; width: var(--w); min-width: 8px; border-radius: 10px; background: var(--c); transform-origin: left; }
.reveal .zones i { transform: scaleX(0); }
.reveal.is-in .zones i { transform: scaleX(1); transition: transform 1s var(--ease-out); }
.reveal.is-in .zones li:nth-child(2) i { transition-delay: 0.1s; }
.reveal.is-in .zones li:nth-child(3) i { transition-delay: 0.2s; }
.reveal.is-in .zones li:nth-child(4) i { transition-delay: 0.3s; }
.reveal.is-in .zones li:nth-child(5) i { transition-delay: 0.4s; }
.panel__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.panel__title h3 { font-size: 18px; font-weight: 650; }
.panel__title p { margin: 0; font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 480px) {
  .zones li { grid-template-columns: 56px 1fr 52px; }
  .zones li span:nth-child(2) { display: none; }
}

.inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
}
.inputs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(241, 239, 230, 0.07);
  box-shadow: 0 0 0 1px var(--line-dark) inset;
  font-size: 14px;
  color: var(--on-dark-2);
}
.inputs .icon { width: 16px; height: 16px; color: var(--mint); }
.energy-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 44em;
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-3);
  text-align: left;
}
.energy-note .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ---------- Difficulty ---------- */

.ground-demo { padding: 24px; }
.ground-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--paper-2);
  margin-bottom: 18px;
}
.ground-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.ground-toggle button .icon { width: 18px; height: 18px; }
.ground-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.ground-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #e8efe2;
}
.ground-map svg { width: 100%; height: auto; }
.ground-map .gbadge { transform-box: fill-box; transform-origin: center; }
.ground-map .gbadge.is-changed { animation: pop 0.28s var(--ease-out); }
@keyframes pop { 35% { scale: 1.22; } }
/* Arrows are drawn, not typed, so they sit exactly in the middle of their disc. */
.ground-map .arrow,
.network-art .badge .arrow { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ground-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--ink-2);
  min-height: 1.6em;
}
.ground-note .icon { width: 18px; height: 18px; color: var(--forest-700); }

.rating-card { padding: 22px 22px 18px; margin-top: 18px; }
.rating-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rating-card__head h3 { font-size: 16px; font-weight: 650; }
.rating {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rating th { font-weight: 500; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 4px; }
.rating th:first-child { text-align: left; }
.rating td { padding: 9px 4px; border-top: 1px solid var(--line); text-align: center; }
.rating td:first-child { text-align: left; color: var(--ink-2); white-space: nowrap; }
.rating td:first-child .icon { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.rating .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.rating .dot--empty { background: transparent; box-shadow: 0 0 0 1.5px var(--line-strong) inset; }

.soil {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}
.soil li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 14px;
  color: var(--ink-2);
}
.soil li.is-on { background: var(--forest-700); color: #fff; box-shadow: none; }
.diff-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; list-style: none; font-size: 14px; color: var(--ink-2); }
.diff-key li { display: inline-flex; align-items: center; gap: 8px; }
.diff-key i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }

/* ---------- Activities ---------- */

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 14px;
}
.mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--forest-850);
}
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 17, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mosaic figcaption .icon { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
}

.activity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  list-style: none;
}
.activity-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(241, 239, 230, 0.06);
  box-shadow: 0 0 0 1px var(--line-dark) inset;
  font-size: 15px;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}
.activity-list li:hover { background: rgba(97, 214, 173, 0.14); transform: translateY(-2px); }
.activity-list .icon { width: 20px; height: 20px; color: var(--mint); }

/* ---------- Live Activity ---------- */

.lock {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(340px, 100%);
  aspect-ratio: 1206 / 2622;
  margin-inline: auto;
  padding: 12px 14px 22px;
  border-radius: 54px;
  background:
    radial-gradient(120% 70% at 30% 10%, rgba(219, 166, 10, 0.55), transparent 60%),
    radial-gradient(90% 60% at 80% 90%, rgba(5, 148, 125, 0.7), transparent 70%),
    linear-gradient(160deg, #26402f, #0b1d17 70%);
  color: #fff;
  box-shadow: var(--shadow-float), 0 0 0 10px #121514, 0 0 0 11px #3b413e;
  overflow: hidden;
}
.lock__island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 68%;
  height: 38px;
  margin: 0 auto 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: #000;
  font-family: var(--font-ios);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lock__island span { display: inline-flex; align-items: center; gap: 6px; }
.lock__island .icon { width: 18px; height: 18px; color: var(--mint); }
.lock__time {
  text-align: center;
  font-family: var(--font-ios);
  margin-bottom: auto;
}
.lock__time small { display: block; font-size: 16px; font-weight: 600; opacity: 0.85; }
.lock__time b { display: block; font-size: 84px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lock__buttons {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px 0;
}
.lock__buttons span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 24, 22, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lock__buttons .icon { width: 20px; height: 20px; }
.lock__bar { width: 38%; height: 5px; margin: 16px auto 0; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.live-card {
  padding: 16px 16px 14px;
  border-radius: 26px;
  background: rgba(20, 24, 22, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  font-family: var(--font-ios);
}
.live-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.live-card__top .icon { width: 18px; height: 18px; color: var(--mint); }
.live-card__top em { margin-left: auto; font-style: normal; font-size: 12px; color: #ff6b6b; display: inline-flex; align-items: center; gap: 6px; }
.live-card__top em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
/* Two by two, as the Live Activity lays out the page of figures last open in the app. */
.live-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.live-figs small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.live-figs b { display: flex; align-items: baseline; gap: 3px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.15; }
.live-figs b sub { font-size: 10px; font-weight: 600; vertical-align: baseline; color: rgba(255, 255, 255, 0.65); }
.live-figs .icon { align-self: center; width: 14px; height: 14px; color: var(--mint); }
.live-figs .live-figs__heart { fill: currentColor; stroke: none; }

/* ---------- Photo band (privacy) ---------- */

.band {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 26, 21, 0.1) 0%, rgba(5, 26, 21, 0.35) 40%, rgba(5, 26, 21, 0.92) 100%);
}
.band__content { padding-block: 120px clamp(64px, 8vw, 110px); }
.band h2 { max-width: 13ch; margin-bottom: 24px; }
.band .lede { color: rgba(255, 255, 255, 0.85); }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  list-style: none;
}
.privacy-points li {
  padding: 22px;
  border-radius: var(--radius-m);
  background: rgba(10, 20, 17, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.privacy-points .icon { width: 26px; height: 26px; color: var(--mint); margin-bottom: 14px; }
.privacy-points strong { display: block; font-size: 17px; margin-bottom: 6px; }
.privacy-points span { font-size: 14px; color: rgba(255, 255, 255, 0.74); line-height: 1.5; display: block; }
@media (max-width: 1000px) { .privacy-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-points { grid-template-columns: 1fr; } }

/* ---------- Health ---------- */

.health-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}
.health-node {
  padding: 26px 28px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card);
  height: 100%;
}
.health-node h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-700); margin-bottom: 16px; }
.health-node ul { list-style: none; display: grid; gap: 10px; font-size: 16px; color: var(--ink-2); }
.health-node li { display: flex; gap: 10px; align-items: flex-start; }
.health-node li .icon { width: 18px; height: 18px; color: var(--forest-700); margin-top: 3px; }
.health-emblem {
  display: flex;
  align-items: center;
  gap: 14px;
}
.health-emblem img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -16px rgba(5, 26, 21, 0.4);
}
.health-swap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest-700);
  color: #fff;
}
.health-swap .icon { width: 20px; height: 20px; stroke-width: 2.2; }
@media (max-width: 860px) {
  .health-flow { grid-template-columns: 1fr; }
  .health-emblem { justify-content: center; order: -1; }
}

/* ---------- More features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.feature {
  padding: 28px 26px 30px;
  background: var(--paper);
  transition: background 0.25s;
}
.feature:hover { background: var(--card); }
.feature .icon { width: 26px; height: 26px; color: var(--forest-700); margin-bottom: 18px; }
.feature h3 { font-size: 17px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding-block: clamp(120px, 16vw, 220px);
}
.cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 42%; /* keeps the runner, on the upper right, in view on phones too */
  z-index: -2;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 80% at 50% 50%, rgba(5, 26, 21, 0.2), rgba(5, 26, 21, 0.65));
}
.cta img.cta__icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 32px;
  border-radius: 24px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.cta h2 { max-width: 14ch; margin: 0 auto 22px; text-wrap: balance; }
.cta .lede { margin: 0 auto 40px; color: rgba(255, 255, 255, 0.86); }
.cta .hero__actions { justify-content: center; margin-bottom: 0; }

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

.footer {
  background: var(--forest-950);
  color: var(--on-dark-2);
  padding: 72px 0 40px;
  font-size: 15px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand { color: var(--on-dark); margin-bottom: 16px; }
.footer p { max-width: 30em; }
.footer h4 { color: var(--on-dark); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--on-dark-3);
}
.footer__bottom p { margin: 0; max-width: none; }
.footer__slope { height: 4px; background: var(--slope); }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; translate: 0 28px; }
.js .reveal.is-in { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.js .reveal[data-delay="1"].is-in { transition-delay: 0.1s; }
.js .reveal[data-delay="2"].is-in { transition-delay: 0.2s; }
.js .reveal[data-delay="3"].is-in { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 90px);
  background: var(--forest-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .topo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.page-hero h1 { margin-bottom: 20px; max-width: 16ch; text-wrap: balance; }
.page-hero .lede { color: var(--on-dark-2); }
.page-hero__meta { margin-top: 24px; font-size: 14px; color: var(--on-dark-3); }

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.help-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card), 0 20px 50px -30px rgba(5, 26, 21, 0.5);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}
.help-card:hover { transform: translateY(-4px); }
.help-card .icon-badge { margin-bottom: 18px; }
.help-card h2 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.help-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .help-cards { grid-template-columns: 1fr; gap: 12px; }
  .help-card { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 20px; }
  .help-card .icon-badge { grid-row: span 2; margin: 0; }
}

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--forest-700); transition: rotate 0.3s var(--ease-out); }
.faq details[open] summary .icon { rotate: 180deg; }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-card), 0 30px 60px -40px rgba(5, 26, 21, 0.45);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2347564f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 92, 74, 0.14);
}
.field small { font-size: 13px; color: var(--ink-3); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.topics legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.topics span .icon { width: 16px; height: 16px; }
.topics input:checked + span { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.topics input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__foot p { margin: 0; font-size: 13px; color: var(--ink-3); flex: 1 1 220px; }
.form .btn--solid { min-width: 190px; }
.form .btn--solid[disabled] { opacity: 0.6; cursor: progress; }
.form__status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
}
.form__status.is-ok { display: flex; background: rgba(15, 92, 74, 0.1); color: var(--forest-700); }
.form__status.is-error { display: flex; background: rgba(220, 36, 48, 0.08); color: #a3141f; }
.form__status .icon { width: 22px; height: 22px; margin-top: 1px; }
.form__sent { text-align: center; padding: 30px 10px; }
.form__sent .check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--forest-700);
  color: #fff;
}
.form__sent .check .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.form__sent h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin-bottom: 10px; }
.form__sent p { color: var(--ink-2); max-width: 30em; margin-inline: auto; }

.aside-list { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.aside-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.aside-list strong { display: block; }
.aside-list span { color: var(--ink-2); font-size: 15px; }

/* Privacy policy */
.policy-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.policy-summary div {
  padding: 22px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card), 0 20px 50px -30px rgba(5, 26, 21, 0.5);
}
.policy-summary .icon { width: 26px; height: 26px; color: var(--forest-700); margin-bottom: 12px; }
.policy-summary strong { display: block; margin-bottom: 4px; }
.policy-summary span { font-size: 14px; color: var(--ink-2); display: block; line-height: 1.5; }
@media (max-width: 960px) { .policy-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .policy-summary { grid-template-columns: 1fr; } }

.policy {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--nav-h) + 32px); font-size: 14px; }
.toc h2 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--forest-700); border-left-color: var(--forest-700); font-weight: 600; }
@media (max-width: 900px) {
  .policy { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose { font-size: 17px; color: var(--ink-2); max-width: 42em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 64px 0 18px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 32px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--forest-700); }
.prose strong { color: var(--ink); }
.prose a { color: var(--forest-700); text-underline-offset: 3px; }
.callout-box {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-m);
  background: rgba(15, 92, 74, 0.07);
  box-shadow: 0 0 0 1px rgba(15, 92, 74, 0.15) inset;
  margin: 8px 0 24px;
  font-size: 16px;
}
.callout-box p:last-child { margin-bottom: 0; }
.yes-no { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 24px; }
.yes-no > div { padding: 20px 22px; border-radius: var(--radius-m); background: var(--card); box-shadow: var(--shadow-card); }
.yes-no h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.yes-no ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.yes-no .no h3 { color: #a3141f; }
.yes-no .no li::marker { color: #a3141f; }
@media (max-width: 640px) { .yes-no { grid-template-columns: 1fr; } }
