/* ===================================================================
   styles.css — shared stylesheet for warmvanillainbox.com
   Used by /, /product/, /faq/ and /404.html
   /product/ additionally loads /product.css for its own sections.
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Green-first palette per redesign spec */
  --paper: #f5f0e8;           /* warm cream background */
  --paper-warm: #ede5d3;      /* slightly deeper cream for section separation */
  --ink: #0f1a14;             /* darkest green-black, dark sections */
  --sage: #3d5c42;            /* primary accent */
  --sage-light: #6b8f71;      /* hover states, softer accents */
  --sage-tint: rgba(61, 92, 66, 0.08);  /* subtle tint for surfaces */
  --gold: #c8a84b;            /* precious accent — logo + 1 hero italic */
  --gold-tint: rgba(200, 168, 75, 0.12);
  --text: #1a1f1c;            /* softened near-black body text */
  --text-muted: #5a5247;      /* secondary text */
  --text-faint: #8a8072;      /* meta, timestamps, faint labels */
  --rule: #d4cbb8;            /* borders */
  --rule-soft: #e6dfd0;       /* softer dividers */
  --white: #ffffff;

  /* Type scale */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --leading-relaxed: 1.7;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: var(--leading-body);
  overflow-x: hidden;
}

/* ─────────── NAV ─────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--sage);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--sage); }
.nav-login {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--sage);
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  transition: all 0.2s;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--ink); }

/* ─────────── HERO ─────────── */
.hero {
  padding: 11rem 3rem 6rem;
  text-align: center;
  position: relative;
  background: var(--sage);
  color: var(--paper);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
/* Subtle gold radial pulse for warmth without breaking sage dominance */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 20%, rgba(200, 168, 75, 0.15), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 26, 20, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--paper);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease-out both;
}

/* Letter-by-letter drop animation on H1 — Affinity's move */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.75rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-h1-word {
  display: inline-block;
  overflow: hidden;
}
.hero-h1-word span {
  display: inline-block;
  animation: letterDrop 0.5s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}

@keyframes letterDrop {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(245, 240, 232, 0.85);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeUp 0.6s 0.3s ease-out both;
}

.hero-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.5s ease-out both;
}
/* Hero primary button on sage background — use gold for contrast */
.hero .btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.hero .btn-primary:hover { background: var(--paper); }
/* Hero secondary button on sage background — cream text with cream underline */
.hero .btn-secondary {
  color: var(--paper);
  border-bottom-color: rgba(245, 240, 232, 0.5);
}
.hero .btn-secondary:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--sage);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--ink); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 3px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.btn-secondary-arrow { transition: transform 0.2s; }
.btn-secondary:hover .btn-secondary-arrow { transform: translateX(3px); }

/* Hero visual */
.hero-visual {
  margin: 4rem auto 0;
  max-width: 1000px;
  padding: 12px;
  background: var(--white);
  border: 1px solid rgba(200, 168, 75, 0.3);
  border-radius: 4px;
  box-shadow:
    0 24px 60px rgba(15, 26, 20, 0.35),
    0 8px 20px rgba(15, 26, 20, 0.2);
  animation: fadeUp 0.8s 0.7s ease-out both;
  position: relative;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.hero-visual-placeholder {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg,
      rgba(61, 92, 66, 0.05),
      rgba(61, 92, 66, 0.05) 14px,
      rgba(61, 92, 66, 0.10) 14px,
      rgba(61, 92, 66, 0.10) 28px);
  border: 1px dashed var(--sage-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─────────── SHARED SECTION HEADINGS ─────────── */
/* Restored: these base rules were dropped from index.html and faq/index.html
   during the October copy rewrite while the markup kept using the classes.
   Recovered from commit dbe5be4. product.css overrides them for its
   left-aligned sections. */
.section-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}
.section-title {
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 5rem;
  line-height: 1.6;
}
/* The voice-notes panel is left-aligned, so its eyebrow follows the panel
   rather than the centred default. */
.voice-left .section-eyebrow { text-align: left; }
/* ─────────── PROOF / REAL NUMBERS ─────────── */
.proof {
  padding: 5rem 3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}
.proof-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sage);
}
.proof-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.proof-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.proof-caption strong {
  color: var(--ink);
  font-weight: 500;
}

/* ─────────── LOGO MARQUEE ─────────── */
.marquee {
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.marquee-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
}
.marquee-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}
.marquee-item {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────── VOICE NOTES ─────────── */
.voice {
  padding: 7rem 3rem;
  background: var(--paper-warm);
}
.voice-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.voice-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.voice-left h2 em { font-style: italic; color: var(--sage); }
.voice-story {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.voice-story strong {
  color: var(--ink);
  font-weight: 400;
}
.voice-right {
  border-left: 2px solid var(--sage);
  padding-left: 2rem;
  padding-top: 0.5rem;
}
.voice-step {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.voice-step:last-of-type { border-bottom: none; }
.voice-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.voice-step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.voice-kicker {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ─────────── FLYWHEEL / FIVE STAGES ─────────── */
.flywheel {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}
.flywheel-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.flywheel .section-eyebrow { color: var(--gold); background: transparent; padding: 0; }
.flywheel .section-title { color: var(--paper); }
.flywheel .section-sub { color: rgba(245, 240, 232, 0.7); }
.flywheel .section-sub em { font-style: italic; color: var(--gold); }

.stages-wrap {
  position: relative;
  margin-top: 5rem;
}

.stages-line {
  position: absolute;
  top: 12px;
  left: 6%;
  right: 6%;
  width: 88%;
  height: 2px;
  z-index: 1;
  pointer-events: none;
}
.stages-line-draw {
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.stages-line.in-view .stages-line-draw {
  stroke-dashoffset: 0;
}

.stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.stage {
  position: relative;
  padding-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out,
              transform 0.5s ease-out,
              filter 0.35s ease-out;
  cursor: default;
}
.stage.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Affinity hover pattern: hovered stage stays bright, others mute */
.stages:hover .stage:not(:hover) {
  opacity: 0.35;
  filter: saturate(0.6);
}
.stages .stage {
  transition: opacity 0.35s ease-out, filter 0.35s ease-out, transform 0.5s ease-out;
}
.stage-num {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.stage-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  line-height: var(--leading-snug);
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.stage-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.65);
}

/* ─────────── PLATFORM / TABBED PRODUCT DEMO ─────────── */
.platform {
  padding: 8rem 3rem;
  background: var(--paper-warm);
}
.platform-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.platform-tab {
  background: none;
  border: none;
  padding: 1rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.platform-tab:hover { color: var(--sage); }
.platform-tab.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

.platform-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}
.platform-panel.active {
  display: grid;
  animation: fadeUp 0.4s ease-out both;
}
.platform-panel h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.platform-panel p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.platform-panel-visual {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px;
  box-shadow:
    0 12px 32px rgba(15, 26, 20, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.3, 1),
              box-shadow 0.35s ease-out;
  position: relative;
  text-decoration: none;
  display: block;
}
.platform-panel-visual:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 24px 48px rgba(15, 26, 20, 0.14),
    0 8px 16px rgba(15, 26, 20, 0.08);
}
.platform-panel-visual::after {
  content: 'Click to explore →';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}
.platform-panel-visual:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.platform-panel-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.platform-panel-placeholder {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg,
      rgba(61, 92, 66, 0.03),
      rgba(61, 92, 66, 0.03) 14px,
      rgba(61, 92, 66, 0.06) 14px,
      rgba(61, 92, 66, 0.06) 28px);
  border: 1px dashed var(--sage-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}

/* ─────────── TRUST CALLOUT ─────────── */
.callout {
  padding: 7rem 3rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(200,168,75,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.callout-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.callout-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.callout h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.callout h2 em { font-style: italic; color: var(--gold); }
.callout p {
  font-size: 1.08rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto;
}
.callout-link {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.callout-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ─────────── FAQ ─────────── */
.faq {
  padding: 7rem 3rem;
  background: var(--paper);
}
.faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.faq-header {
  max-width: 700px;
  margin-bottom: 3.5rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}
.faq-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.faq-q {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a strong {
  color: var(--ink);
  font-weight: 500;
}

/* ─────────── WALKTHROUGH SECTION ─────────── */
.walkthrough {
  padding: 7rem 3rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.walkthrough-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.walkthrough-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.walkthrough-left h2 em { font-style: italic; color: var(--sage); }
.walkthrough-left p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.walkthrough-points {
  list-style: none;
  margin-top: 1.5rem;
}
.walkthrough-points li {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.6;
  padding: 0.7rem 0;
  padding-left: 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.walkthrough-points li:last-child { border-bottom: none; }
.walkthrough-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}
.walkthrough-right {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
}
.walkthrough-right-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.walkthrough-right-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  line-height: var(--leading-snug);
  margin-bottom: 1rem;
  color: var(--paper);
}
.walkthrough-right-desc {
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.walkthrough-cta {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.walkthrough-cta:hover { background: var(--paper); }
.walkthrough-meta {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.5);
}

/* ─────────── FINAL CTA ─────────── */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  background: var(--sage);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
    rgba(200, 168, 75, 0.18) 0%,
    transparent 70%);
  pointer-events: none;
}
.cta-section .section-title {
  color: var(--paper);
  position: relative;
}
.cta-section p {
  color: rgba(245, 240, 232, 0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.cta-section .btn-primary {
  background: var(--gold);
  color: var(--ink);
  position: relative;
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
}
.cta-section .btn-primary:hover { background: var(--paper); }

.cta-alt {
  margin-top: 1.75rem;
  position: relative;
  font-size: 0.88rem;
}
.cta-alt a {
  color: rgba(245, 240, 232, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-alt a:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--ink);
  color: rgba(245, 240, 232, 0.4);
  padding: 3rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  color: var(--paper);
  font-size: 1.1rem;
}
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }

/* ─────────── 404 PAGE ─────────── */
.notfound {
  background: var(--sage);
  color: var(--paper);
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(200, 168, 75, 0.15), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 26, 20, 0.25), transparent 70%);
  pointer-events: none;
}
.four-oh-four {
  max-width: 640px;
  text-align: center;
  position: relative;
  animation: fadeUp 0.6s ease-out both;
}
.four-oh-four-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.four-oh-four-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.four-oh-four-headline em {
  font-style: italic;
  color: var(--gold);
}
.four-oh-four-sub {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.four-oh-four-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.four-oh-four-cta:hover { background: var(--paper); }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 900px) {
  .notfound { padding: 7rem 1.5rem 4rem; min-height: calc(100vh - 220px); }
  /* Nav: shrink logo, hide desktop-only links, tighten spacing */
  nav {
    padding: 0.85rem 1rem;
  }
  .nav-logo {
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav-links { display: none; }
  .nav-right { gap: 0.6rem; }
  .nav-login {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  .nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  /* Hero: tighter padding, keep pill on one line */
  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero-inner { padding: 0; }
  .hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    padding: 0.4rem 0.75rem;
    margin-bottom: 2rem;
    max-width: 100%;
    line-height: 1.4;
  }
  .hero-sub { font-size: 1rem; }
  .hero-cta-row { gap: 1rem; }

  .marquee { padding: 2rem 0; }
  .flywheel { padding: 4rem 1.5rem; }
  .stages { grid-template-columns: 1fr; gap: 2rem; }
  .platform { padding: 4rem 1.5rem; }

  /* Tabs: prevent horizontal scroll, wrap them instead */
  .platform-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 0.25rem;
    border-bottom: none;
  }
  .platform-tab {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
  }
  .platform-panel.active { grid-template-columns: 1fr; gap: 2rem; }
  .platform-panel h3 { font-size: 1.5rem; }

  .callout { padding: 4rem 1.5rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .walkthrough { padding: 4rem 1.5rem; }
  .walkthrough-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1.25rem; }
}

@media (max-width: 480px) {
  /* Extra-tight for phones: hide LOG IN entirely, keep only Request access */
  .nav-login { display: none; }
  .nav-logo { font-size: 0.95rem; }
  .hero-eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.65rem;
  }
}
