/* =========================================================================
   Michelle White - UESCA Ultra Running Coach
   Vanilla CSS. OKLCH palette, fluid type, soft/human direction.
   Tokens & class contract per design-notes.md.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Colour - OKLCH. Brand hue forest green (155); warm cream paper (92); flame accent (42) */
  --paper:        oklch(96.5% 0.015 92);
  --paper-2:      oklch(93% 0.018 92);
  --paper-3:      oklch(89% 0.02 92);
  --ink:          oklch(30% 0.035 155);
  --ink-strong:   oklch(23% 0.04 155);
  --ink-soft:     oklch(46% 0.03 152);
  --line:         oklch(84% 0.02 100);
  --line-strong:  oklch(78% 0.022 120);
  --accent:       oklch(63% 0.17 42);
  --accent-strong:oklch(52% 0.16 40);
  --on-accent:    oklch(23% 0.04 155);
  --paper-dim:    oklch(88% 0.012 150);
  --line-dark:    oklch(34% 0.03 155);

  /* Type */
  --font-display: "Anybody", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    "Onest", system-ui, -apple-system, sans-serif;

  --fs-eyebrow: clamp(.72rem, .68rem + .15vw, .8rem);
  --fs-sm:      clamp(.86rem, .84rem + .1vw, .92rem);
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-h2:      clamp(2rem, 1.5rem + 2vw, 3.2rem);
  --fs-h1:      clamp(2.4rem, 1.7rem + 3vw, 3.8rem);
  --fs-hero:    clamp(3rem, 1.5rem + 6.6vw, 7.5rem);

  /* Spacing - 4pt */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --container:        1240px;
  --container-narrow: 720px;

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px -4px oklch(30% 0.04 155 / 0.22);
  --shadow-md: 0 18px 40px -24px oklch(30% 0.04 155 / 0.30);
  --shadow-lg: 0 34px 70px -34px oklch(23% 0.04 155 / 0.38);

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur:      220ms;
  --dur-slow: 260ms;

  /* ---- Blog alias layer (platform blog reuses this shell) ---- */
  --blog-font-display: var(--font-display);
  --blog-font-body:    var(--font-body);
  --blog-display-weight: 800;
  --blog-fs-h1:      var(--fs-h1);
  --blog-fs-h2:      var(--fs-h2);
  --blog-fs-h3:      var(--fs-h3);
  --blog-fs-lead:    var(--fs-lead);
  --blog-fs-body:    var(--fs-body);
  --blog-fs-sm:      var(--fs-sm);
  --blog-fs-eyebrow: var(--fs-eyebrow);
  --blog-fs-quote:   clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --blog-ink:        var(--ink);
  --blog-ink-soft:   var(--ink-soft);
  --blog-line:       var(--line);
  --blog-surface:    var(--paper);
  --blog-surface-2:  var(--paper-2);
  --blog-accent:        var(--accent);
  --blog-accent-strong: var(--accent-strong);
  --blog-radius:     var(--radius);
  --blog-shadow:     var(--shadow-md);
  --blog-ease:       var(--ease-out);
  --blog-space-2xs:  var(--space-2xs);
  --blog-space-sm:   var(--space-sm);
  --blog-space-md:   var(--space-md);
  --blog-space-lg:   var(--space-lg);
  --blog-space-xl:   var(--space-xl);
  --blog-space-2xl:  var(--space-2xl);
  --blog-measure:    66ch;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; color: var(--ink-strong); }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.container--narrow { max-width: var(--container-narrow); }
.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: var(--space-md); top: -80px; z-index: 200;
  background: var(--ink-strong); color: var(--paper);
  padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill);
  font-weight: 600; transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

.section { padding-block: clamp(3.5rem, 7vw, 8rem); }
.section--flush { padding-block: 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink-strong); color: var(--paper-dim); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: var(--space-md);
}
.eyebrow--on-dark { color: var(--accent); }

.section__head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__title { font-size: var(--fs-h2); }
.section__intro { margin-top: var(--space-lg); font-size: var(--fs-lead); color: var(--ink-soft); max-width: 60ch; }
.section--dark .section__intro { color: var(--paper-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.5em; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  max-width: 100%; text-align: center; text-wrap: balance;
  white-space: normal; overflow-wrap: break-word;
}
.btn__icon { flex: none; width: 1.15em; height: 1.15em; transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.06rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--light { background: var(--paper); color: var(--ink-strong); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--ink-strong); }
  .btn--primary:hover .btn__icon { transform: translateX(3px); }
  .btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
  .btn--light:hover { background: var(--paper-2); }
  .btn--light:hover .btn__icon { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(96.5% 0.015 92 / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header--scrolled {
  background: oklch(96.5% 0.015 92 / 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: 68px;
}
.brand { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink-strong); margin-right: auto; }
.brand__mark { color: var(--accent); }
.brand--footer { font-size: 1.5rem; margin-right: 0; }

.primary-nav { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav__item { display: inline-flex; }
.primary-nav__link {
  position: relative; font-weight: 500; font-size: 0.98rem; color: var(--ink);
  padding-block: var(--space-xs);
  transition: color var(--dur) var(--ease-out);
}
.primary-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .primary-nav__link:hover { color: var(--ink-strong); }
  .primary-nav__link:hover::after { transform: scaleX(1); }
}
.primary-nav__link:focus-visible::after { transform: scaleX(1); }

.header-actions { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -8px; padding: 10px;
}
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--ink-strong); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav - full overlay, opaque, above header, scroll-locked via body.nav-open */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-lg); padding: var(--space-4xl) clamp(1.5rem, 8vw, 4rem) var(--space-3xl);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-in-out), visibility 0s linear var(--dur-slow);
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; transition: transform var(--dur-slow) var(--ease-in-out), visibility 0s; }
body.nav-open { overflow: hidden; }
/* Keep the brand + close (X) above the overlay and clickable */
body.nav-open .site-header { z-index: 160; background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-nav__list { display: flex; flex-direction: column; gap: var(--space-md); }
.mobile-nav__link {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 9vw, 3rem); color: var(--ink-strong);
}
.mobile-nav .btn { margin-top: var(--space-lg); align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .mobile-nav__link:hover { color: var(--accent-strong); }
}

/* ---------- Reveal (JS-gated) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal--d2 { transition-delay: 60ms; }
.reveal--d3 { transition-delay: 120ms; }
.reveal--d4 { transition-delay: 180ms; }
.reveal--d5 { transition-delay: 240ms; }

/* ---------- Hero (full-bleed photo, text on top) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  min-height: clamp(600px, 88vh, 900px);
  min-height: clamp(600px, 88svh, 900px);
}
/* Mobile: keep her face clear at the top, copy sits low over the darker torso */
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 52% 14%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right,
      oklch(18% 0.04 155 / 0.78) 0%,
      oklch(18% 0.04 155 / 0.34) 52%,
      oklch(18% 0.04 155 / 0) 82%),
    linear-gradient(to top,
      oklch(18% 0.04 155 / 0.92) 2%,
      oklch(18% 0.04 155 / 0.55) 38%,
      oklch(18% 0.04 155 / 0.18) 72%,
      oklch(18% 0.04 155 / 0.38) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .eyebrow, .hero__title, .hero__lead, .hero__meta { text-shadow: 0 1px 20px oklch(18% 0.04 155 / 0.45); }
.hero .eyebrow { margin-bottom: var(--space-md); }
.hero__title {
  font-size: var(--fs-hero); font-weight: 800; line-height: 0.94;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--paper); max-width: 16ch;
}
.hero__title .accent { color: var(--accent); }
.hero__lead { margin-top: var(--space-lg); font-size: var(--fs-lead); color: var(--paper-dim); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.cta-short { display: none; } /* full labels by default; short labels swapped in on mobile */
.hero .btn--ghost { color: var(--paper); border-color: oklch(96% 0.01 92 / 0.5); background: oklch(96% 0.01 92 / 0.06); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid oklch(96% 0.01 92 / 0.22); }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-item strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--paper); letter-spacing: -0.01em; }
.hero__meta-item span { font-size: var(--fs-sm); color: var(--paper-dim); }
@media (hover: hover) and (pointer: fine) { .hero .btn--ghost:hover { border-color: var(--paper); background: oklch(96% 0.01 92 / 0.14); } }
.hero__content { width: 100%; }
/* Mobile: keep the hero to headline + CTAs so her face stays clear; the lead
   and at-a-glance strip are dropped here (the intro section right below the
   hero carries the same copy). Both return on desktop. */
@media (max-width: 719px) {
  .hero__meta { display: none; }
  .hero__lead { display: none; }
  .hero__title { margin-top: var(--space-xs); }
  /* Two CTAs on one line with short labels */
  .hero__actions { flex-wrap: nowrap; gap: var(--space-sm); }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; padding-inline: var(--space-md); }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  /* Push the photo up (bottom-anchored + a touch taller) so her face sits
     higher; the top may crop under the nav, which is fine. */
  .hero__bg { height: 112%; top: auto; bottom: 0; }
}
/* Desktop: text sits in a constrained left column so it never covers her face;
   photo biased to show her face on the right, content vertically centred */
@media (min-width: 860px) {
  .hero { align-items: center; background: var(--ink-strong); }
  .hero__content { max-width: 54ch; }
  /* Shift the photo right (no zoom) so her face sits in the right third. The
     exposed left is the hero's dark ground, covered by a stronger left fade. */
  .hero__bg { object-position: center 30%; transform: translateX(22%); }
  .hero__scrim {
    background:
      linear-gradient(to right,
        oklch(18% 0.04 155 / 0.97) 0%,
        oklch(18% 0.04 155 / 0.9) 24%,
        oklch(18% 0.04 155 / 0.42) 48%,
        oklch(18% 0.04 155 / 0) 68%),
      linear-gradient(to top,
        oklch(18% 0.04 155 / 0.82) 0%,
        oklch(18% 0.04 155 / 0.32) 46%,
        oklch(18% 0.04 155 / 0.12) 78%,
        oklch(18% 0.04 155 / 0.28) 100%);
  }
}

/* ---------- Intro / coach (home short-about, text-led) ---------- */
.intro__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .intro__grid { grid-template-columns: 0.95fr 1.05fr; } }
.intro__lead { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.0; letter-spacing: -0.02em; color: var(--ink-strong); }
.intro__lead .accent { color: var(--accent); }
.intro__text > * + * { margin-top: var(--space-md); }
.intro__text p { color: var(--ink-soft); font-size: var(--fs-body); line-height: 1.65; max-width: 62ch; }
.intro__text p:first-child { color: var(--ink); font-size: var(--fs-lead); }
.intro__text strong { color: var(--ink); }
.intro__text a { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.intro__badge { width: clamp(104px, 22vw, 150px); height: auto; margin-top: var(--space-xl); }

/* ---------- Results (dark record board) ---------- */
.results .section__head { max-width: 38ch; }
.results__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .results__grid { grid-template-columns: 0.9fr 1.1fr; } }
.results__feature { border-top: 2px solid var(--accent); padding-top: var(--space-lg); }
.results__stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.35rem + 4.4vw, 5.2rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--paper); }
.results__stat-label { display: block; margin-top: var(--space-md); color: var(--paper-dim); max-width: 34ch; }
.results__list { display: grid; }
.results__row { display: grid; gap: 2px var(--space-lg); padding-block: var(--space-md); border-top: 1px solid var(--line-dark); }
@media (min-width: 560px) { .results__row { grid-template-columns: 8.5rem 1fr; align-items: baseline; } }
.results__row:first-child { border-top: none; }
.results__result { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 0.35em; }
.results__race { color: var(--paper); font-size: var(--fs-lead); }

/* Spartathlon highlight (inside dark results) */
.spartathlon { display: grid; gap: 0; align-items: stretch; overflow: hidden; border-radius: var(--radius-lg); background: oklch(27% 0.03 155); border: 1px solid var(--line-dark); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 780px) { .spartathlon { grid-template-columns: 1.1fr 0.9fr; } }
.spartathlon__media { position: relative; overflow: hidden; min-height: 320px; background: var(--ink-strong); }
.spartathlon__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
@media (min-width: 780px) { .spartathlon__media { min-height: 420px; } }
.spartathlon__panel { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.spartathlon__title { font-size: var(--fs-h3); color: var(--paper); margin-top: var(--space-sm); }
.spartathlon__text { margin-top: var(--space-sm); color: var(--paper-dim); }
.spartathlon__stats { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-lg); }
.spartathlon__stats li { display: flex; flex-direction: column; }
.spartathlon__stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.spartathlon__stats span { font-size: var(--fs-sm); color: var(--paper-dim); margin-top: 3px; }

/* ---------- Packages (asymmetric editorial stack, no prices) ---------- */
.packages { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.package { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink-strong); }
/* Mobile (single column): the header/aside always comes first, including the
   reversed card, so the number + title lead the content rather than trail it. */
.package--reverse .package__aside { order: -1; }
@media (min-width: 820px) {
  .package { grid-template-columns: 0.35fr 0.65fr; }
  .package--reverse { grid-template-columns: 0.65fr 0.35fr; }
  .package--reverse .package__aside { order: 2; }
}
.package__index { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.8; color: var(--ink-strong); letter-spacing: -0.03em; }
.package__aside { display: flex; flex-direction: column; gap: var(--space-sm); }
.package__kicker { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong); }
.package__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.package__note { font-size: var(--fs-sm); color: var(--ink-soft); }
.package__text { color: var(--ink-soft); max-width: 56ch; }
.package__list { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.package__item { position: relative; padding-left: var(--space-xl); color: var(--ink); }
.package__item::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 11l4 4 8-9' fill='none' stroke='%23E06A2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.package__cta { margin-top: var(--space-xl); }

/* ---------- Buddy running (photo split, set apart) ---------- */
.buddy { display: grid; gap: 0; align-items: stretch; background: var(--paper-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
@media (min-width: 860px) { .buddy { grid-template-columns: 1fr 1fr; } }
.buddy__media { background: var(--ink-strong); min-height: 300px; }
.buddy__img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.buddy__panel { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; }
.buddy__title { font-size: var(--fs-h2); margin-top: var(--space-sm); }
.buddy__text { margin-top: var(--space-md); color: var(--ink-soft); max-width: 48ch; }
.buddy .btn { margin-top: var(--space-xl); align-self: flex-start; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: var(--space-lg); border-top: 1px solid var(--line-dark); }
.section--dark .step { border-top-color: var(--line-dark); }
.step__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); margin-bottom: var(--space-sm); }
.step__title { font-size: var(--fs-h3); color: var(--paper); }
.step__text { margin-top: var(--space-sm); color: var(--paper-dim); }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: var(--space-sm); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  width: 100%; text-align: left; padding: var(--space-lg) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--ink-strong);
  letter-spacing: -0.01em;
}
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); border-radius: 2px; }
.faq__icon::before { width: 20px; height: 2px; }
.faq__icon::after { width: 2px; height: 20px; transition: transform var(--dur) var(--ease-out); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-in-out); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p { padding-bottom: var(--space-lg); color: var(--ink-soft); max-width: 62ch; }
.faq__a-inner a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact__intro { margin-top: var(--space-md); color: var(--ink-soft); max-width: 44ch; }
.contact__channels { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); }
.channel { display: flex; flex-direction: column; gap: 2px; }
.channel__label { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.channel__value { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink-strong); letter-spacing: -0.01em; }
a.channel__value { transition: color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.channel__value:hover { color: var(--accent-strong); } }

/* ---------- Form (bare - deploy owns submission) ---------- */
.form { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .form { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.req { color: var(--accent-strong); }
.field__input, .field__select, .field__textarea {
  width: 100%; padding: 0.8em 1em; background-color: var(--paper-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.field__input::placeholder, .field__textarea::placeholder { color: var(--ink-soft); opacity: 0.75; }
.field__textarea { resize: vertical; min-height: 140px; }
/* Custom dropdown chevron (native arrow removed for a consistent look) */
.field__select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2.75em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C4136' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; background-size: 1.15em;
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none; border-color: var(--accent); background-color: var(--paper);
  box-shadow: 0 0 0 3px oklch(63% 0.17 42 / 0.18);
}
.form__submit { grid-column: 1 / -1; justify-self: start; }

/* Form success (full border + tint - NOT a side-stripe) */
.form-success {
  border: 1px solid var(--accent); background: oklch(63% 0.17 42 / 0.08);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-success__title { font-size: var(--fs-h3); color: var(--ink-strong); }
.form-success__text { margin-top: var(--space-sm); color: var(--ink-soft); }
.form-success__text a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (About) ---------- */
.page-hero { padding-top: clamp(2rem, 5vw, 4rem); }
.page-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .page-hero__grid { grid-template-columns: 0.9fr 1.1fr; } }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__title { font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: -0.03em; margin-top: var(--space-xs); }
.page-hero__title .accent { color: var(--accent); }
.page-hero__lead { margin-top: var(--space-lg); font-size: var(--fs-lead); color: var(--ink-soft); max-width: 52ch; }

/* ---------- Prose (About long-form) ---------- */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: var(--space-lg); }
.prose p { color: var(--ink); }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--space-2xl); }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--space-xl); }
.prose ul { display: grid; gap: var(--space-sm); padding-left: var(--space-xl); list-style: none; }
.prose li { position: relative; color: var(--ink); }
.prose li::before { content: ""; position: absolute; left: calc(-1 * var(--space-xl)); top: 0.62em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.prose strong { color: var(--ink-strong); }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-strong); color: var(--paper-dim); padding-block: clamp(3rem, 6vw, 5rem) var(--space-2xl); }
.site-footer__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand .brand { color: var(--paper); }
.site-footer__brand p { margin-top: var(--space-md); color: var(--paper-dim); max-width: 40ch; }
.site-footer__head { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--space-md); }
.footer-nav { display: grid; gap: var(--space-sm); }
.footer-link { color: var(--paper-dim); transition: color var(--dur) var(--ease-out); width: fit-content; }
.footer-contact { display: grid; gap: var(--space-sm); }
.footer-contact a, .footer-areas { color: var(--paper-dim); }
@media (hover: hover) and (pointer: fine) {
  .footer-link:hover, .footer-contact a:hover { color: var(--accent); }
}
.footer__social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); color: var(--paper); transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.social-link svg { width: 20px; height: 20px; }
.social-link:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); justify-content: space-between; align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--space-lg); border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm); color: var(--paper-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.footer-legal__link { color: var(--paper-dim); transition: color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-legal__link:hover { color: var(--accent); } }

/* ---------- Legal pages (deploy-injected content) ---------- */
.legal-page { background: var(--paper); padding-block: clamp(3rem, 6vw, 6rem); }
.legal-page__inner { max-width: 68ch; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.legal-page__title { font-size: var(--fs-h1); margin-top: var(--space-md); }
.legal-page__last-updated { margin-top: var(--space-sm); color: var(--ink-soft); font-size: var(--fs-sm); }
.legal-page__body { margin-top: var(--space-2xl); }
.legal-page__body > * + * { margin-top: var(--space-lg); }
.legal-page__body p, .legal-page__body li { color: var(--ink); line-height: 1.7; }
.legal-page__body ul { padding-left: var(--space-lg); list-style: disc; display: grid; gap: var(--space-xs); }
.legal-page__body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal-page__section-heading { font-size: var(--fs-h3); margin-top: var(--space-2xl); }
.legal-page__section-subheading { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-strong); margin-top: var(--space-lg); }

/* ---------- Desktop nav breakpoint ---------- */
@media (min-width: 960px) {
  .primary-nav { display: block; }
  .header-actions { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
