/* CoachPlate marketing site — "coach's review desk" system.
   Warm light brand mirrored from the app (lib/theme/colors.dart), with
   operational UI grammar: real meal photos, terse approval marks, mono
   data annotations, solid ink actions. Fluid responsive: clamp()
   everywhere; media queries only for layout shifts.
   Source of truth: site-src/ — build with `node site-src/build.mjs`. */

:root {
  --bg: #fffbf6;
  --peach: #fff3e7;
  --surface: #ffffff;
  --surface-alt: #f8f2ea;
  --border: #ede2d6;
  --ink: #151419;
  --ink-soft: #26242c;
  --cream: #fdf7ef;
  --silver: #6b6270;       /* muted text — ≥5.2:1 on every light surface */
  --platinum: #3f3942;
  --gold: #d69a5f;         /* decorative only — never body text */
  --gold-light: #f4c98f;
  --gold-dark: #8f5b29;    /* gold as TEXT — ≥5.1:1 on every light surface */
  --success: #1e7a4d;
  --success-wash: #e7f8ef;
  --danger: #b3261e;
  --focus: #8f5b29;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;

  --radius-card: 20px;
  --radius-pill: 999px;

  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 0.55s;
  --stagger: 70ms;

  --space-section: clamp(3.5rem, 2.25rem + 5vw, 7.5rem);
  --space-inner: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  --content-max: 1120px;

  --shadow-card: 0 14px 40px rgba(21, 20, 25, 0.09), 0 3px 10px rgba(21, 20, 25, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Clip horizontal overflow on body (not the scroll container) so nothing
     can slide past the column edges — vertical scroll and the sticky nav on
     <html> are untouched. clip, not hidden, keeps position:sticky working. */
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 0.75rem + 3vw, 3rem);
}

/* ---------- Focus & skip link (designed, not accidental) ---------- */

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

.section-ink :focus-visible,
.cta-band :focus-visible {
  --focus: var(--gold-light);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.wordmark span {
  color: var(--gold-dark);
  font-weight: 400;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.7rem, 0.55rem + 0.6vw, 1rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.4rem + 1.8vw, 2rem);
}

.nav-links a {
  color: var(--platinum);
  font-weight: 600;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* Compact nav: below 720px the inline links fold into the menu; the
   wordmark + primary CTA + menu button stay. Deliberate — do not keep
   deleting links at smaller widths. */
.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] summary {
  background: var(--peach);
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 0.45rem;
  display: grid;
  z-index: 30;
}

.nav-menu-panel a {
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--platinum);
}

.nav-menu-panel a:hover {
  background: var(--peach);
  color: var(--ink);
}

.nav-menu-panel a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-alt);
  box-shadow: none;
}

@media (max-width: 720px) {
  .nav-links a.nav-secondary {
    display: none;
  }
  .nav-menu {
    display: block;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  padding: clamp(0.7rem, 0.6rem + 0.4vw, 0.9rem) clamp(1.2rem, 1rem + 1vw, 1.7rem);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(21, 20, 25, 0.18);
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 20, 25, 0.22);
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
}

.btn-cream:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.btn-nav {
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.nav-links a.btn-primary {
  color: var(--cream);
}

.link-quiet {
  font-weight: 700;
  color: var(--platinum);
}

.link-quiet::after {
  content: " ↓";
  color: var(--gold-dark);
}

.link-quiet:hover {
  color: var(--gold-dark);
}

/* ---------- Eyebrows & status ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.66rem + 0.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: clamp(0.8rem, 0.7rem + 0.5vw, 1.2rem);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--peach);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--platinum);
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.status-chip-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Small phones: stack the badge into two centered lines and center the
   whole pill on screen. */
@media (max-width: 560px) {
  .status-chip {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .status-chip-text {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
  }
  .status-chip-sep {
    display: none;
  }
}

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

.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--peach) 70%, transparent) 0%, transparent 70%),
    var(--bg);
}

.hero-compact {
  padding-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.55rem + 3.75vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  text-wrap: balance;
}

/* The display italic is spent exactly once per page — in the H1. */
h1 em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-sub {
  color: var(--silver);
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.2rem);
  line-height: 1.55;
  max-width: 33em;
  margin-bottom: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 0.8rem + 0.5vw, 1.4rem);
  align-items: center;
}

.hero-note {
  margin-top: clamp(0.9rem, 0.8rem + 0.5vw, 1.3rem);
  color: var(--silver);
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  font-weight: 600;
}

.hero-note strong {
  color: var(--gold-dark);
}

/* Entrance: one staggered rise on load, nothing scattered. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > * {
  animation: rise 0.55s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }

.hero-visual {
  animation: rise 0.65s ease 0.2s both;
}

/* ---------- Product cards (the review-desk collage) ---------- */

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: min-content;
  max-width: 480px;
  margin-inline: auto;
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(0.8rem, 0.7rem + 0.4vw, 1.05rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pcard-meal {
  grid-column: 1 / 10;
  grid-row: 1 / 4;
  z-index: 1;
}

.pcard-workout {
  grid-column: 8 / 13;
  grid-row: 2;
  z-index: 2;
  margin-left: -0.5rem;
}

.pcard-weigh {
  grid-column: 6 / 13;
  grid-row: 4;
  z-index: 2;
  margin-top: -0.6rem;
}

.pcard img {
  width: 100%;
  height: auto; /* beat the width/height attribute hint so aspect-ratio applies */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.pcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pcard-label {
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
  font-weight: 700;
}

.pcard-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.pcard-who b {
  font-size: 0.82rem;
  font-weight: 800;
}

.pcard-who .mono {
  color: var(--silver);
  font-size: 0.62rem;
}

.pcard-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pcard-meta b {
  font-size: 0.88rem;
  font-weight: 800;
}

.pcard-meta .mono,
.pcard-workout .mono,
.pcard-train > .mono {
  color: var(--silver);
  font-size: 0.7rem;
}

.pcard-workout b,
.pcard-train b {
  font-size: 0.85rem;
  font-weight: 800;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid var(--border);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--peach);
  border: 1px solid var(--border);
  color: var(--platinum);
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  white-space: nowrap;
  width: fit-content;
}

.chip-good {
  background: var(--success-wash);
  border-color: color-mix(in srgb, var(--success) 25%, transparent);
  color: var(--success);
}

.chip-pending {
  background: var(--surface-alt);
  color: var(--silver);
}

.pcard-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.45rem 0.6rem;
}

.btn-mini-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.weigh-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.weigh-num {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.weigh-num small {
  font-size: 0.55em;
  color: var(--silver);
  font-weight: 600;
}

.spark {
  width: 100%;
  height: clamp(34px, 30px + 1vw, 44px);
}

.spark-lg {
  height: clamp(56px, 48px + 2vw, 76px);
}

.collage-caption {
  margin-top: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem);
  text-align: center;
  color: var(--silver);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Pillar vignette details */

.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.macro-grid span {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.2rem;
  text-align: center;
  font-size: 0.62rem;
  color: var(--silver);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.macro-grid b {
  color: var(--ink);
  font-size: 0.82rem;
}

.mode-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.week-dots {
  display: flex;
  gap: 0.35rem;
}

.week-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.week-dots i.on {
  background: var(--gold);
  border-color: var(--gold);
}

.rpe {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rpe-label {
  color: var(--silver);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rpe-bar {
  display: flex;
  gap: 3px;
}

.rpe-bar i {
  height: 10px;
  flex: 1;
  border-radius: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.rpe-bar i.on {
  background: var(--gold);
  border-color: var(--gold);
}

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

.section {
  padding-block: var(--space-section);
}

.section-tight {
  padding-block-start: 0;
}

.section-alt {
  background: var(--peach);
  border-block: 1px solid var(--border);
}

.section-ink {
  background: var(--ink);
  color: var(--cream);
}

.section-head {
  max-width: 42em;
  margin-bottom: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: clamp(0.7rem, 0.6rem + 0.5vw, 1.1rem);
  text-wrap: balance;
}

.section-head p {
  color: var(--silver);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

.section-ink .section-head p {
  color: #b7afa8;
}

.section-ink .eyebrow {
  color: var(--gold-light);
}

/* ---------- The daily loop (rail, not cards) ---------- */

.rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  list-style: none;
  counter-reset: none;
}

@media (min-width: 720px) {
  .rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rail li {
  border-top: 2px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  padding-top: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
}

.rail-num {
  display: block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: clamp(0.7rem, 0.6rem + 0.4vw, 1rem);
}

.rail h3 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.rail p {
  color: var(--silver);
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 0.975rem);
}

.rail-fine {
  margin-top: 0.6rem;
  font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem) !important;
  color: var(--gold-dark) !important;
  font-weight: 600;
}

/* ---------- Pillars (alternating annotated rows) ---------- */

.pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 1.3rem + 1.5vw, 3rem);
  align-items: center;
  padding-block: clamp(1.6rem, 1.3rem + 1.5vw, 2.8rem);
}

.pillar + .pillar {
  border-top: 1px solid var(--border);
}

@media (min-width: 880px) {
  .pillar {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .pillar-flip .pillar-visual {
    order: -1;
  }
}

.pillar-copy .eyebrow {
  margin-bottom: 0.6rem;
}

.pillar-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: clamp(0.6rem, 0.5rem + 0.4vw, 0.9rem);
}

.pillar-copy p {
  color: var(--silver);
  max-width: 32em;
}

.pillar-visual .pcard {
  max-width: 380px;
  margin-inline: auto;
  gap: 0.7rem;
}

/* ---------- Coach side (ink band) ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
}

@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool {
  border-top: 1px solid rgba(253, 247, 239, 0.16);
  padding-top: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
}

.tool-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}

.tool h3 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.tool p {
  color: #b7afa8;
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
}

/* ---------- Origin (editorial, no card) ---------- */

.origin {
  max-width: 50rem;
}

.origin-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.65rem);
  line-height: 1.5;
  color: var(--platinum);
  border-left: 3px solid var(--gold);
  padding-left: clamp(1rem, 0.8rem + 1vw, 1.8rem);
  margin-top: clamp(1rem, 0.8rem + 0.8vw, 1.6rem);
}

/* ---------- Referral ladder ---------- */

.referral-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .referral-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.referral-body {
  color: #b7afa8;
  max-width: 34em;
}

.referral-fine {
  margin-top: clamp(0.8rem, 0.7rem + 0.4vw, 1.1rem);
  color: var(--gold-light);
  font-size: clamp(0.8rem, 0.77rem + 0.15vw, 0.88rem);
  font-weight: 600;
  max-width: 32em;
}

.referral-cta {
  margin-top: clamp(1.2rem, 1rem + 0.6vw, 1.7rem);
}

.section-ink .link-more {
  color: var(--gold-light);
  font-weight: 800;
}

.section-ink .link-more:hover {
  color: var(--cream);
}

.ladder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.1rem, 1rem + 0.6vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
  color: var(--ink);
}

.ladder-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ladder-num small {
  font-size: 0.45em;
  color: var(--silver);
  font-weight: 600;
}

.ladder-sub,
.ladder-caption {
  color: var(--silver);
  font-size: 0.72rem;
}

.ladder-bar {
  display: flex;
  gap: 4px;
  margin-block: 0.2rem;
}

.ladder-bar i {
  height: 14px;
  flex: 1;
  border-radius: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.ladder-bar i.on {
  background: var(--gold);
  border-color: var(--gold);
}

/* Pricing-page ladder example strip */

.ladder-example {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 0.8rem + 0.8vw, 1.6rem);
  margin-bottom: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem);
}

@media (min-width: 720px) {
  .ladder-example {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ladder-step {
  border-left: 3px solid var(--border);
  padding-left: clamp(0.7rem, 0.6rem + 0.4vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ladder-step.on {
  border-left-color: var(--gold);
}

.ladder-step .mono {
  color: var(--silver);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ladder-step b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1.1;
}

.ladder-step.free b {
  color: var(--gold-dark);
}

.ladder-ex-note {
  color: var(--silver);
  font-size: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  font-weight: 600;
  margin-bottom: clamp(1.8rem, 1.5rem + 1.5vw, 3rem);
}

.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
}

@media (min-width: 720px) {
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rule {
  border-top: 2px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  padding-top: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem);
}

.rule h3 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.rule p {
  color: var(--silver);
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
}

.referral-worked {
  margin-top: clamp(1.8rem, 1.5rem + 1.5vw, 3rem);
  max-width: 44em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--platinum);
  border-left: 3px solid var(--gold);
  padding-left: clamp(1rem, 0.8rem + 1vw, 1.8rem);
}

/* ---------- Pricing teaser (facts, not cards) ---------- */

.price-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 1rem + 1vw, 2rem);
}

@media (min-width: 720px) {
  .price-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-fact {
  border-left: 3px solid var(--gold);
  padding-left: clamp(0.9rem, 0.8rem + 0.5vw, 1.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.price-fact b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.1;
}

.price-fact span {
  color: var(--silver);
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
}

.teaser-cta {
  margin-top: clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
}

/* ---------- Pricing page ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 0.8rem + 0.8vw, 1.4rem);
}

@media (min-width: 640px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-inner);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-card.free {
  background: var(--peach);
}

.price-card.popular {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(214, 154, 95, 0.18);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.75rem;
  right: 1.1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
}

.badge-quiet {
  position: static;
  align-self: flex-start;
  background: var(--surface-alt);
  color: var(--silver);
  border: 1px solid var(--border);
  margin-bottom: 0.2rem;
}

.price-card:not(.popular) {
  position: relative;
}

.price-clients {
  font-weight: 800;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.7rem + 1.3vw, 2.8rem);
  line-height: 1.05;
}

.price-amount small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.42em;
  color: var(--silver);
}

.price-per {
  color: var(--silver);
  font-size: clamp(0.8rem, 0.77rem + 0.15vw, 0.88rem);
  font-weight: 600;
}

.price-action {
  margin-top: clamp(0.8rem, 0.7rem + 0.4vw, 1.1rem);
  font-weight: 800;
  font-size: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
  color: var(--gold-dark);
}

.price-action:hover {
  color: var(--ink);
}

.price-notes {
  margin-top: clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
  max-width: 46em;
  display: grid;
  gap: 0.9rem;
}

.price-notes p {
  color: var(--silver);
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: clamp(0.8rem, 0.7rem + 0.5vw, 1.1rem);
  max-width: 46em;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1rem, 0.9rem + 0.4vw, 1.3rem) clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold-dark);
  font-size: 1.3em;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--silver);
  padding-top: 0.7rem;
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 0.975rem);
}

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

.cta-band {
  background: var(--ink);
  border-radius: clamp(22px, 18px + 1vw, 32px);
  padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) var(--space-inner);
  text-align: center;
  color: var(--cream);
}

.cta-band h2 {
  color: var(--cream);
}

.cta-band p {
  color: #b7afa8;
  max-width: 34em;
  margin: 0 auto clamp(1.4rem, 1.2rem + 1vw, 2rem);
}

/* ---------- Early access panel + form ---------- */

.ea-panel {
  background: var(--peach);
  border: 1px solid var(--border);
  border-radius: clamp(22px, 18px + 1vw, 32px);
  padding: clamp(1.8rem, 1.4rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 1.4rem + 2vw, 3.5rem);
}

@media (min-width: 880px) {
  .ea-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ea-intro p {
  color: var(--silver);
  max-width: 30em;
}

.ea-intro .ea-fine {
  margin-top: clamp(0.8rem, 0.7rem + 0.4vw, 1.2rem);
}

.ea-fine {
  font-size: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  color: var(--silver);
  font-weight: 600;
}

.ea-form {
  display: grid;
  gap: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem);
}

.ea-row {
  display: grid;
  gap: 0.35rem;
}

.ea-row label {
  font-weight: 700;
  font-size: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
}

.ea-form input,
.ea-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(0.7rem, 0.6rem + 0.3vw, 0.85rem) clamp(0.85rem, 0.75rem + 0.3vw, 1rem);
  font-family: var(--font-body);
  /* Must stay >= 16px: below it, iOS Safari auto-zooms into the field on
     focus, which resizes and side-scrolls the whole page. */
  font-size: 16px;
  color: var(--ink);
}

.ea-form input::placeholder {
  color: color-mix(in srgb, var(--silver) 70%, transparent);
}

.ea-form input:focus-visible,
.ea-form select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--gold);
}

/* Honeypot: visually removed, still in the DOM for bots. */
.ea-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ea-form .btn {
  justify-self: start;
}

.ea-status {
  display: none;
  font-weight: 700;
  font-size: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
}

.ea-status.show {
  display: block;
}

.ea-status.ok {
  color: var(--success);
}

.ea-status.err {
  color: var(--danger);
}

/* ---------- Footer (operational) ---------- */

.footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4.5rem) clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

.footer-brand p {
  color: var(--silver);
  font-size: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  max-width: 24em;
  margin-top: 0.8rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--platinum) !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--platinum);
  font-weight: 600;
  font-size: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
}

.footer-col a:hover {
  color: var(--gold-dark);
}

.footer-fine {
  color: var(--silver);
  font-size: 0.78rem;
}

.footer-bottom {
  margin-top: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  padding-top: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--silver);
  font-size: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
}

.footer-bottom a {
  color: var(--platinum);
  font-weight: 600;
}

/* ---------- Legal & support prose ---------- */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.legal h1 {
  margin-bottom: 0.4rem;
}

.legal .eff {
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
}

.legal h3 {
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.2rem;
}

/* ---------- Status pages (404, thanks, billing) ---------- */

.status-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background: var(--bg);
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  max-width: 26rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(21, 20, 25, 0.08);
}

.status-icon {
  width: clamp(64px, 56px + 2vw, 76px);
  height: clamp(64px, 56px + 2vw, 76px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-size: 1.7rem;
}

.status-icon.ok {
  background: linear-gradient(120deg, #f7d3a0, #e7a96c 55%, #f4c98f);
  color: var(--ink);
}

.status-icon.neutral {
  background: var(--peach);
  border: 1px solid var(--border);
}

.status-card h1 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  margin-bottom: 0.6rem;
}

.status-card p {
  color: var(--silver);
  margin-bottom: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
}

.status-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
}

.status-links a {
  font-weight: 700;
}

.status-card .wordmark {
  display: inline-block;
  margin-top: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

/* ---------- Scroll-focus motion (website-scroll-motion skill) ----------
   All hidden-initial states are gated on html.js (added by site.js) and
   prefers-reduced-motion: no-preference — no JS or reduced motion means
   fully visible, static content. Reveals fire once and never replay. */

.js .nav {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-scrolled {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom-color: var(--border);
}

@media (prefers-reduced-motion: no-preference) {
  /* Photo fade-in tied to the image's own load event, not the container's
     scroll reveal — a lazy-loaded <img> decoding after its card has
     already settled would otherwise pop in raw and jarring. */
  .js .img-fade {
    opacity: 0;
  }

  .js .img-fade.is-loaded {
    opacity: 1;
    transition: opacity 0.5s var(--ease-settle);
  }

  /* Fade-up reveals with sibling stagger */
  .js .reveal {
    opacity: 0;
    translate: 0 14px;
  }

  .js .reveal.is-in {
    opacity: 1;
    translate: 0 0;
    transition:
      opacity var(--dur-reveal) var(--ease-settle),
      translate var(--dur-reveal) var(--ease-settle);
    transition-delay: calc(var(--stagger-i, 0) * var(--stagger));
  }

  /* Muted→lit shading: the daily-loop steps light 01→02→03 */
  .js li.shade .rail-num,
  .js li.shade h3 {
    color: var(--silver);
    transition: color 0.45s var(--ease-settle);
    transition-delay: calc(var(--stagger-i, 0) * 180ms);
  }

  .js li.shade.lit .rail-num {
    color: var(--gold-dark);
  }

  .js li.shade.lit h3 {
    color: var(--ink);
  }

  /* Origin editorial lights from silver to platinum when centered */
  .js .origin-body.shade {
    color: var(--silver);
    border-left-color: var(--border);
    transition:
      color 0.6s var(--ease-settle),
      border-left-color 0.6s var(--ease-settle);
  }

  .js .origin-body.shade.lit {
    color: var(--platinum);
    border-left-color: var(--gold);
  }

  /* Pricing ladder strip lights left→right, $0 lands last in gold */
  .js .ladder-step.shade b {
    color: var(--silver);
    transition: color 0.45s var(--ease-settle);
    transition-delay: calc(var(--stagger-i, 0) * 120ms);
  }

  .js .ladder-step.shade.lit b {
    color: var(--ink);
  }

  .js .ladder-step.shade.free.lit b {
    color: var(--gold-dark);
  }

  /* Product micro-moments: bar segments fill after their card reveals */
  .js .reveal [data-fill] > * {
    opacity: 0;
    scale: 0.6;
  }

  .js .reveal.is-in [data-fill] > * {
    opacity: 1;
    scale: 1;
    transition:
      opacity 0.3s var(--ease-settle),
      scale 0.3s var(--ease-settle);
    transition-delay: calc(var(--seg-i, 0) * 60ms + 0.25s);
  }

  /* Referral card: the discount chip pops after the ladder fills */
  .js .ladder-card.reveal .chip-good {
    opacity: 0;
    scale: 0.8;
  }

  .js .ladder-card.reveal.is-in .chip-good {
    opacity: 1;
    scale: 1;
    transition:
      opacity 0.3s var(--ease-settle),
      scale 0.3s var(--ease-settle);
    transition-delay: 0.85s;
  }

  /* Weigh-in sparkline draws in (polyline carries pathLength="1") */
  .js .reveal .draw-in {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .reveal.is-in .draw-in {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s var(--ease-settle) 0.3s;
  }

  .js .reveal .spark-dot {
    opacity: 0;
  }

  .js .reveal.is-in .spark-dot {
    opacity: 1;
    transition: opacity 0.3s var(--ease-settle) 1.1s;
  }

}


/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
  .hero-copy > *,
  .hero-visual {
    animation: none;
  }
}
