@import url('tokens.css');

/* ══ SWITCHES ══════════════════════════════════════════════════════════
   One line each. Delete a line to show that piece; add it back to hide it.
   ═══════════════════════════════════════════════════════════════════════ */
.whats-next { display: none !important; }          /* "What's next" future-products sections (Products and Testimonials pages) */
.tslot-1 { display: none !important; }             /* Testimonial slot 1 (Sope Creek head coach quote) */
.tslot-2 { display: none !important; }             /* Testimonial slot 2 */
.tslot-3 { display: none !important; }             /* Testimonial slot 3 */
.testimonial-empty-note { display: block !important; } /* "Testimonial coming soon" note. Set to none once any slot above is shown */
/* Home hero: animation or video is chosen in index.html on the hero section: data-hero-mode="animation" or "video" */

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@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; }
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in oklch, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--ink) 5%, transparent) 1px, transparent 1px),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxOTInIGhlaWdodD0nMTkyJz48ZyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg5Niw5NiknPjxwYXRoIGQ9J00wIC03VjdNLTcgMEg3JyBzdHJva2U9J3JnYmEoMTgsMjAsMzAsMC4xMSknIHN0cm9rZS13aWR0aD0nMS4xJy8+PGNpcmNsZSByPSc4JyBmaWxsPSdub25lJyBzdHJva2U9J3JnYmEoMTgsMjAsMzAsMC4wOCknIHN0cm9rZS13aWR0aD0nMC45Jy8+PC9nPjwvc3ZnPgo=");
  background-size: 64px 64px, 64px 64px, 192px 192px;
  background-position: -1px -1px, -1px -1px, 0 0;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.measure { max-width: var(--measure); }

/* ── Layout helpers ────────────────────────────────────────────────── */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section { padding: 6.5rem 0; }
.section-tight { padding: 4rem 0; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background-color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-ghost-dark { background: transparent; border-color: color-mix(in oklch, var(--hero-ink) 30%, transparent); color: var(--hero-ink); }
.btn-ghost-dark:hover { background: color-mix(in oklch, var(--hero-ink) 10%, transparent); }

.btn-block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease-out-quart),
              border-color var(--dur-med) var(--ease-out-quart);
}
.site-nav.is-scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}
body.has-dark-hero .site-nav:not(.is-scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 140px;
  background: linear-gradient(color-mix(in oklch, var(--hero-bg) 70%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hero-ink);
  transition: color var(--dur-med) var(--ease-out-quart);
}
.is-scrolled .logo, body:not(.has-dark-hero) .logo { color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px;
  background: url('/images/logo-mark.svg') center / contain no-repeat;
  flex: none;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: color-mix(in oklch, var(--hero-ink) 82%, transparent);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.is-scrolled .nav-links a:not(.btn),
body:not(.has-dark-hero) .nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--hero-ink); }
.is-scrolled .nav-links a:not(.btn):hover,
body:not(.has-dark-hero) .nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn-primary { padding: 0.55rem 1.15rem; font-size: 0.88rem; }

.nav-menu-toggle { display: none; }

/* ── Hero (3D stage) ───────────────────────────────────────────────── */
.hero-stage {
  position: relative;
  height: 230vh;            /* scroll length of the home animation (was 340vh) */
  background: var(--hero-bg);
}
.hero-canvas-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback: shown if the WebGL module never initializes (blocked CDN, no WebGL,
   or opened via file:// where ES module scripts can't load at all). Collapses
   the scroll-pinned space back to a single viewport and substitutes a static,
   on-brand glow + grid so the hero never reads as broken/empty. */
.hero-stage.hero-static-fallback { height: 100vh; }
.hero-stage.hero-static-fallback .hero-canvas-wrap { position: relative; height: 100vh; }
.hero-stage.hero-static-fallback #hero-canvas,
.hero-stage.hero-static-fallback .hero-scroll-cue { display: none; }
.hero-stage.hero-static-fallback .hero-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 45% at 50% 68%, color-mix(in oklch, var(--primary) 32%, transparent), transparent 72%),
    linear-gradient(color-mix(in oklch, var(--hero-ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--hero-ink) 6%, transparent) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
}
.hero-copy .btn { pointer-events: auto; }
.hero-eyebrow {
  color: var(--hero-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.hero-copy h1 {
  color: var(--hero-ink);
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  max-width: 16ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8);
}
.hero-copy p {
  color: var(--hero-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--hero-ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--hero-bg) 62%, transparent);
  border: 1px solid color-mix(in oklch, var(--hero-ink) 28%, transparent);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  z-index: var(--z-hero-ui);
}
.hero-scroll-cue .line {
  width: 2px; height: 26px;
  background: linear-gradient(var(--hero-ink), transparent);
  animation: scroll-cue-nudge 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-nudge { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: 0.55; } }
.hero-fallback-note {
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-size: 0.7rem;
  color: var(--hero-muted);
  opacity: 0.6;
}

/* ── Reveal animation ──────────────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) var(--ease-out-quart),
              transform var(--dur-med) var(--ease-out-quart);
}
.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Cards / Panels ────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.feature-card { padding: 1.85rem; }
.feature-card .feature-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-card .feature-icon svg { width: 18px; height: 18px; stroke: var(--primary); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ── How it works ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ── Photo placeholder ─────────────────────────────────────────────── */
.photo-placeholder {
  border: 2px dashed var(--border);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  width: 100%;
}
.photo-placeholder svg { width: 30px; height: 30px; stroke: var(--muted); opacity: 0.7; }
.photo-placeholder span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; }
.photo-placeholder small { font-size: 0.75rem; color: var(--muted); opacity: 0.75; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-portrait { aspect-ratio: 3 / 4; }
.about-photo { max-width: 280px; }
@media (max-width: 800px) { .about-photo { max-width: 170px; } .about-photo .photo-placeholder { padding: 1rem; } }

/* ── CTA band ──────────────────────────────────────────────────────── */
.cta-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.85rem; }
.cta-band p { color: var(--hero-muted); margin-bottom: 2rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ── Page hero (non-3D pages) ──────────────────────────────────────── */
.page-hero {
  padding: 9.5rem 0 4rem;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .kicker { color: var(--primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 0.9rem; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; margin-bottom: 1.1rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

/* ── Pricing ───────────────────────────────────────────────────────── */
.pricing-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.pricing-note strong { color: var(--ink); }

.pricing-wrap { position: relative; }
/* Cards keep a fixed width. When all three fit they sit centered and static; when they do not,
   the row scrolls sideways (snap) and the arrows + hint from pricing-scroll.js appear. */
.pricing-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1.1rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.pricing-grid::-webkit-scrollbar { height: 8px; }
.pricing-grid::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.pricing-grid > .price-card { flex: 0 0 min(300px, 80%); scroll-snap-align: center; }
.pricing-grid > .price-card:first-child { margin-left: auto; }
.pricing-grid > .price-card:last-child { margin-right: auto; }
.pricing-hint { display: none; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.25rem; }
.pricing-wrap.is-scrollable .pricing-hint { display: block; }
.pricing-arrow {
  display: none;
  position: absolute; top: 45%;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  z-index: 2;
}
.pricing-wrap.is-scrollable .pricing-arrow { display: flex; }
.pricing-arrow[disabled] { opacity: 0.35; cursor: default; }
.pricing-arrow.prev { left: -6px; }
.pricing-arrow.next { right: -6px; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.price-card.is-featured {
  border-color: var(--primary);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -12px; left: 1.75rem;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.price-tier { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.6rem; }
.price-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.15rem; }
.price-amount sub { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-amount .tbd { font-size: 1.3rem; color: var(--muted); font-weight: 600; }
.price-secondary-link { text-align: center; margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.price-secondary-link a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.price-secondary-link a:hover { color: var(--ink); }
.price-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.price-limits {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
}
.price-limits li { display: flex; justify-content: space-between; gap: 1rem; list-style: none; }
.price-limits li b { font-weight: 600; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; font-size: 0.9rem; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 0.6rem; }
.price-features li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--primary); }
.price-features li.is-excluded { color: var(--muted); opacity: 0.6; }
.price-features li.is-excluded svg { stroke: var(--muted); }

/* Feature comparison matrix */
.matrix-wrap { overflow-x: auto; margin-top: 4.5rem; }
.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.matrix th, .matrix td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.matrix thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.matrix tbody th { font-weight: 500; color: var(--muted); }
.matrix td { text-align: center; }
.matrix td .yes { color: var(--primary); font-weight: 700; }
.matrix td .no { color: var(--border); }

/* ── Products catalog ──────────────────────────────────────────────── */
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 2.75rem;
}
@media (max-width: 800px) { .product-card { grid-template-columns: 1fr; } }
.product-card .kicker { color: var(--primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.product-card h3 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.product-card p { color: var(--muted); margin-bottom: 1.4rem; }
.product-card .btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.product-tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.5rem; }
.product-tag-list li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.roadmap-slot {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}
.roadmap-slot h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 0.5rem; }
.roadmap-slot p { font-size: 0.9rem; max-width: 42ch; margin: 0 auto; }

/* ── Testimonials ──────────────────────────────────────────────────── */
.testimonial-product-block + .testimonial-product-block { margin-top: 5rem; }
.testimonial-product-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-soft);
}
.testimonial-product-head h2 { font-size: 1.5rem; }
.testimonial-product-head span { color: var(--muted); font-size: 0.9rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
  gap: 1.5rem;
}
.testimonial-empty-note {
  display: none;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  max-width: 460px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
}
.testimonial-mark { color: var(--primary); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1; }
.testimonial-quote { font-size: 1rem; color: var(--ink); margin-bottom: 1.4rem; flex: 1; }
.testimonial-attrib { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.testimonial-attrib .name { font-weight: 600; font-size: 0.92rem; }
.testimonial-attrib .role { color: var(--muted); font-size: 0.85rem; }

.testimonial-card.is-placeholder {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 0.5rem;
  min-height: 220px;
}
.testimonial-card.is-placeholder svg { width: 26px; height: 26px; stroke: var(--muted); opacity: 0.7; margin-bottom: 0.3rem; }
.testimonial-card.is-placeholder span { font-size: 0.85rem; font-weight: 600; }
.testimonial-card.is-placeholder small { font-size: 0.78rem; opacity: 0.8; }

/* ── About ─────────────────────────────────────────────────────────── */
.about-lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); margin-bottom: 3rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.about-grid p + p { margin-top: 1rem; }
.about-grid p { color: var(--muted); }

.value-list { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 1rem; }
.value-list li { list-style: none; }
.value-list h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.value-list p { color: var(--muted); font-size: 0.93rem; }

/* ── Responsive nav ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* backdrop-filter on the nav makes it the containing block for the position:fixed menu,
     which collapsed the open menu to nothing (and showed the page through it) after scrolling.
     Solid backgrounds on mobile, no blur. */
  .site-nav.is-scrolled, .site-nav.menu-open { backdrop-filter: none; background: var(--bg); border-bottom-color: var(--border-soft); }
  .site-nav.menu-open .logo { color: var(--ink); }
  .site-nav.menu-open .nav-menu-toggle { color: var(--ink); border-color: var(--border-strong); }
  .nav-links { position: fixed; left: 0; right: 0; top: 68px; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 2rem 1.75rem; gap: 1.5rem; background: var(--bg); visibility: hidden; transform: translateX(100%); transition: transform var(--dur-med) var(--ease-out-quart), visibility 0s linear var(--dur-med); }
  .nav-links.is-open { transform: translateX(0); visibility: visible; transition: transform var(--dur-med) var(--ease-out-quart); }
  .nav-links .btn { align-self: flex-start; }
  .nav-links a:not(.btn) { color: var(--ink); font-size: 1.1rem; }
  .nav-menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid color-mix(in oklch, var(--hero-ink) 30%, transparent);
    border-radius: var(--r-sm);
    background: none;
    color: var(--hero-ink);
  }
  body:not(.has-dark-hero) .nav-menu-toggle, .is-scrolled .nav-menu-toggle { color: var(--ink); border-color: var(--border-strong); }
}

/* ── Find Your Team (workspace login) ─────────────────────────────────── */
.find-team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.find-team-card label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.find-team-input-row { display: flex; align-items: stretch; gap: 0.5rem; margin-bottom: 1rem; }
.find-team-input-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  min-width: 0;
}
.find-team-input-row input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.find-team-suffix { display: flex; align-items: center; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.btn-block { width: 100%; text-align: center; }
.find-team-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.75rem; margin-bottom: 0; }
.find-team-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; margin-bottom: 0; }
.find-team-note.is-available { color: var(--primary); }
.find-team-note.is-taken { color: #c0392b; }
.find-team-recovery-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.find-team-divider { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1.5rem 0; position: relative; }
.find-team-divider::before, .find-team-divider::after {
  content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.find-team-divider::before { left: 0; }
.find-team-divider::after { right: 0; }
.find-team-divider span { background: var(--bg); padding: 0 0.75rem; position: relative; }
.find-team-legacy-note { text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ── Home hero: video mode (set data-hero-mode="video" on .hero-stage) ── */
.hero-stage.hero-video-mode { height: 100vh; height: 100svh; }
.hero-stage.hero-video-mode .hero-canvas-wrap { position: relative; height: 100%; }
.hero-stage.hero-video-mode #hero-canvas,
.hero-stage.hero-video-mode .hero-scroll-cue { display: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage.hero-video-mode .hero-canvas-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(color-mix(in oklch, var(--hero-bg) 55%, transparent), color-mix(in oklch, var(--hero-bg) 70%, transparent));
}
.hero-stage.hero-video-mode .hero-copy { z-index: 2; }

/* ── Mobile refinements (phones) ───────────────────────────────────────── */
@media (max-width: 720px) {
  .wrap, .nav-inner { padding-left: 1.1rem; padding-right: 1.1rem; }
  .section { padding: 4rem 0; }
  .page-hero { padding: 7.5rem 0 3rem; }
  .cta-band { padding: 3.5rem 0; }
  .hero-copy { padding: 0 1.1rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .product-card { padding: 1.5rem; gap: 1.5rem; }
  .find-team-input-row { flex-wrap: wrap; }
  .find-team-suffix { flex: 1 0 100%; }
  .hero-scroll-cue { bottom: 1.25rem; }
}

/* ── Form controls (select / textarea) ────────────────────────────────── */
.form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.form-textarea { resize: vertical; min-height: 6rem; }
.form-select:focus, .form-textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ══ Look: "Singletrack" ═══════════════════════════════════════════════════
   Forest green + soil orange on warm paper. Dirt shows up as grit on the dark bands,
   and faint contour-map waves in the background of the hero, call-to-action bands and page headers.
   To change how strong the waves are, edit the two stroke-opacity numbers below
   (0.065 on dark bands, 0.06 on light sections; Look A was 0.09 and 0.10). Set to 0 to remove them. ═══ */
.hero-stage .hero-canvas-wrap::before,
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='280' viewBox='0 0 240 160' fill='none' stroke='%23ffffff' stroke-opacity='0.065' stroke-width='0.9'><path d='M-10 120 C 40 60, 90 150, 140 90 S 220 60, 260 100'/><path d='M-10 100 C 40 40, 90 130, 140 70 S 220 40, 260 80'/><path d='M-10 80 C 40 20, 90 110, 140 50 S 220 20, 260 60'/><path d='M-10 140 C 40 80, 90 170, 140 110 S 220 80, 260 120'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.75  0 0 0 0 0.55  0 0 0 0 0.35  0 0 0 0.55 -0.18'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.55;
}
.hero-stage .hero-canvas-wrap::before { z-index: 1; }
.hero-copy, .hero-scroll-cue { z-index: 10; }
.cta-band { position: relative; overflow: hidden; }
.cta-band > .wrap { position: relative; z-index: 2; }

/* Faint waves on light sections (page headers and the tinted "band" section) */
.page-hero, .band { position: relative; overflow: hidden; }
.page-hero::before, .band::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='280' viewBox='0 0 240 160' fill='none' stroke='%231f5c3a' stroke-opacity='0.06' stroke-width='0.9'><path d='M-10 120 C 40 60, 90 150, 140 90 S 220 60, 260 100'/><path d='M-10 100 C 40 40, 90 130, 140 70 S 220 40, 260 80'/><path d='M-10 80 C 40 20, 90 110, 140 50 S 220 20, 260 60'/></svg>");
}
.page-hero > .wrap, .band > .wrap { position: relative; z-index: 1; }

/* Orange call-to-action buttons on the dark bands (green stays the everyday primary) */
.hero-cta .btn-primary, .cta-band .btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero-cta .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--accent-hover); }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix tbody tr:first-child td { font-size: 1.05rem; }
