/* ============================================
   ANDROPAUSE CALCULATOR — PROTOTYPE v2
   A (consumer brand) → B (terminal protocol) hybrid
   Built from scratch, NOT T-calc skeleton
   ============================================ */

:root {
  /* Direction A — Lifestyle product palette */
  --a-bg: #F4ECDF;
  --a-bg-deep: #EBDFCC;
  --a-paper: #FAF5EB;
  --a-ink: #2A1F18;
  --a-ink-soft: #5A4A3E;
  --a-muted: #8B7B6C;
  --a-coral: #E2735A;
  --a-coral-deep: #C5573D;
  --a-coral-soft: #F4C9BD;
  --a-amber: #C99A4C;
  --a-line: rgba(42, 31, 24, 0.10);
  
  /* Direction B — Light family (typography does the work, not color) */
  --b-bg: #F4ECDF;
  --b-bg-elev: #EBDFCC;
  --b-bg-card: #FAF5EB;
  --b-ink: #2A1F18;
  --b-ink-soft: #5A4A3E;
  --b-muted: #8B7B6C;
  --b-line: rgba(42, 31, 24, 0.10);
  --b-line-strong: rgba(42, 31, 24, 0.18);
  --b-signal: #C99A4C;
  --b-warn: #E2934E;
  --b-alert: #C5573D;
  --b-accent: #E2735A;
  
  /* Typography */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Screen reader only — visually hidden but accessible to SR and SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   PROTOTYPE TOOLBAR (delete in production)
   ============================================ */
.proto-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.proto-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.proto-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.proto-tag strong {
  color: var(--b-signal);
  font-weight: 500;
}

.proto-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  padding: 3px;
  border-radius: 4px;
}

.proto-tab {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 7px 14px;
  border-radius: 3px;
  transition: all 0.2s var(--ease);
}

.proto-tab:hover { color: white; }
.proto-tab.active {
  background: rgba(255,255,255,0.92);
  color: #0A0A0A;
}

/* Page wrapper */
.page {
  min-height: 100vh;
  display: none;
}
.page.active {
  display: block;
  animation: pageIn 0.45s var(--ease);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes regionModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   ╔═══════════════════════════════════════╗
   ║  PAGE 1 — WELCOME (Direction A)       ║
   ║  Hims/Roman lifestyle product feel    ║
   ╚═══════════════════════════════════════╝
   ============================================ */
#page-welcome {
  background: var(--a-bg);
  color: var(--a-ink);
  position: relative;
  overflow: hidden;
}

/* Decorative ambient gradient */
#page-welcome::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(226, 115, 90, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#page-welcome::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 154, 76, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.w-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px;
  position: relative;
  z-index: 1;
}

/* Top bar — brand strip */
.w-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--a-line);
}

.w-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a-coral), var(--a-amber));
  position: relative;
}

.w-brand-symbol::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--a-paper);
  border-radius: 50%;
}

.w-brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--a-ink);
}

.w-brand-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--a-muted);
  text-transform: uppercase;
}

/* HERO — centered single-column, NOT grid like T calc */
.w-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 60px;
}

.w-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(226, 115, 90, 0.10);
  border: 1px solid rgba(226, 115, 90, 0.20);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--a-coral-deep);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.w-hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a-coral);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.w-hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--a-ink);
  margin-bottom: 28px;
}

.w-hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--a-coral);
}

.w-hero-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--a-ink-soft);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 400;
}

/* Pill CTA — bigger, softer, NOT corporate */
.w-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--a-ink);
  color: var(--a-paper);
  padding: 20px 36px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 4px 24px rgba(42, 31, 24, 0.18);
}

.w-cta:hover {
  background: var(--a-coral-deep);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(197, 87, 61, 0.32);
}

.w-cta-arrow {
  display: inline-block;
  width: 22px; height: 22px;
  background: var(--a-paper);
  color: var(--a-ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-spring);
}

.w-cta:hover .w-cta-arrow {
  transform: translateX(4px) rotate(-12deg);
  background: var(--a-paper);
  color: var(--a-coral-deep);
}

.w-meta-row {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--a-muted);
}

.w-meta-row span:not(:last-child)::after {
  content: ' · ';
  margin: 0 8px;
  color: var(--a-coral);
}

/* Illustrated "orb" — replaces preview card */
.w-orb-section {
  display: flex;
  justify-content: center;
  margin: 32px 0 80px;
}

.w-orb {
  position: relative;
  width: 220px;
  height: 220px;
}

.w-orb-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    var(--a-coral-soft) 0%,
    var(--a-coral) 40%,
    var(--a-coral-deep) 100%);
  box-shadow:
    0 0 80px rgba(226, 115, 90, 0.45),
    inset -20px -30px 60px rgba(0,0,0,0.18),
    inset 20px 20px 60px rgba(255,255,255,0.25);
  animation: orbFloat 8s ease-in-out infinite;
}

/* Motion trail ring — dark crescent that fades into rotation direction */
.w-orb-trail {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--a-coral);
  border-right-color: rgba(226, 115, 90, 0.7);
  border-bottom-color: rgba(226, 115, 90, 0.35);
  border-left-color: rgba(226, 115, 90, 0.12);
  animation: orbSpin 8s linear infinite;
  filter: blur(0.5px);
}

.w-orb-trail-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(226, 115, 90, 0.5);
  animation: orbSpin 8s linear infinite;
  filter: blur(4px);
}

.w-orb-ring-outer {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px solid rgba(226, 115, 90, 0.18);
}

.w-orb-ring-outermost {
  position: absolute;
  inset: -90px;
  border-radius: 50%;
  border: 1px dashed rgba(226, 115, 90, 0.10);
}

.w-orb-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--a-coral-deep);
  border-radius: 50%;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 4px rgba(226, 115, 90, 0.18),
    0 0 24px rgba(226, 115, 90, 0.95),
    0 0 48px rgba(226, 115, 90, 0.5);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.w-orb-dot-orbit {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  animation: orbSpin 8s linear infinite;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes orbSpin {
  to { transform: rotate(360deg); }
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(226, 115, 90, 0.18),
      0 0 24px rgba(226, 115, 90, 0.95),
      0 0 48px rgba(226, 115, 90, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(226, 115, 90, 0.25),
      0 0 32px rgba(226, 115, 90, 1),
      0 0 64px rgba(226, 115, 90, 0.7);
  }
}

/* "What is andropause" — 3 panels horizontal scrollable */
.w-explain {
  padding: 60px 0;
  border-top: 1px solid var(--a-line);
  border-bottom: 1px solid var(--a-line);
  background: var(--a-bg-deep);
  position: relative;
  margin-left: -32px;
  margin-right: -32px;
  padding-left: 32px;
  padding-right: 32px;
}

.w-explain-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.w-explain-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.w-explain-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--a-coral-deep);
  text-transform: uppercase;
}

.w-explain-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--a-ink);
  flex: 1;
  min-width: 280px;
}

.w-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.w-explain-card {
  background: var(--a-paper);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.w-explain-card:hover {
  transform: translateY(-4px);
}

.w-explain-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--a-coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.w-explain-card-icon::before {
  content: '';
  width: 24px; height: 24px;
  border: 2px solid var(--a-coral-deep);
  border-radius: 50%;
}

.w-explain-card:nth-child(2) .w-explain-card-icon::before {
  border-radius: 4px;
  transform: rotate(45deg);
}

.w-explain-card:nth-child(3) .w-explain-card-icon::before {
  width: 20px; height: 12px;
  border-radius: 0;
  border-bottom: none;
  border-left: none;
  transform: rotate(-45deg);
}

.w-explain-card-num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--a-coral);
  opacity: 0.4;
}

.w-explain-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--a-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.w-explain-card-desc {
  font-size: 14px;
  color: var(--a-ink-soft);
  line-height: 1.6;
}

/* Trust footer */
.w-trust {
  padding: 50px 0 40px;
  text-align: center;
}

.w-trust-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--a-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.w-trust-pills {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.w-trust-pill {
  background: var(--a-paper);
  border: 1px solid var(--a-line);
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--a-ink-soft);
}

.w-trust-pill::before {
  content: '✓ ';
  font-family: var(--sans);
  font-style: normal;
  color: var(--a-coral);
  font-weight: 600;
  margin-right: 2px;
}

/* ============================================
   ╔═══════════════════════════════════════╗
   ║  PAGE 2 — QUESTION (Direction A)      ║
   ║  Center-stage, no card boundary       ║
   ╚═══════════════════════════════════════╝
   ============================================ */
#page-question {
  background: var(--a-bg);
  color: var(--a-ink);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#page-question::before {
  content: '';
  position: absolute;
  top: 10%; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(226, 115, 90, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.q-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  position: relative;
}

/* Top bar — minimalistinis */
.q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a-muted);
}

.q-top-section strong {
  color: var(--a-coral-deep);
  font-weight: 600;
}

.q-top-exit {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--a-muted);
  text-decoration: underline;
  text-decoration-color: var(--a-line);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}

.q-top-exit:hover { color: var(--a-ink); }

/* Progress — thin gradient bar */
.q-progress {
  height: 2px;
  background: var(--a-line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 64px;
  position: relative;
}

.q-progress-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, var(--a-coral), var(--a-coral-deep));
  border-radius: 2px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px rgba(226, 115, 90, 0.4);
}

/* Question itself — large, centered, NO card */
.q-category {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--a-coral-deep);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-category::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--a-coral);
}

.q-text {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--a-ink);
  margin-bottom: 16px;
}

.q-helper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--a-ink-soft);
  margin-bottom: 48px;
}

/* Pill options — NO box, just inline pill rows */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.q-option {
  width: 100%;
  text-align: left;
  background: var(--a-paper);
  border: 1.5px solid transparent;
  padding: 22px 26px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--a-ink);
  transition: all 0.25s var(--ease);
  position: relative;
}

.q-option:hover {
  background: var(--a-bg-deep);
  transform: translateX(4px);
}

.q-option.selected {
  background: var(--a-ink);
  color: var(--a-paper);
  border-color: var(--a-ink);
  transform: translateX(4px);
}

.q-option-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--a-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}

.q-option.selected .q-option-mark {
  border-color: var(--a-coral);
  background: var(--a-coral);
}

.q-option.selected .q-option-mark::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* Bottom nav — invisible until action */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.q-back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--a-muted);
  padding: 12px 0;
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.q-back:hover { color: var(--a-ink); }
.q-back:disabled { opacity: 0.25; cursor: not-allowed; }

.q-next {
  background: var(--a-coral);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(226, 115, 90, 0.32);
}

.q-next:hover {
  background: var(--a-coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(226, 115, 90, 0.42);
}

.q-next:disabled {
  background: var(--a-bg-deep);
  color: var(--a-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.q-next-arrow {
  display: inline-block;
  width: 22px; height: 22px;
  background: white;
  color: var(--a-coral);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.q-next:hover .q-next-arrow {
  transform: translateX(3px);
}

.q-next:disabled .q-next-arrow {
  background: var(--a-muted);
  color: var(--a-bg-deep);
}

/* Skip notice — softer, integrated */
.q-skip {
  margin-top: 60px;
  padding: 24px 28px;
  background: var(--a-paper);
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px dashed var(--a-line);
}

.q-skip-symbol {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--a-coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.q-skip-symbol::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid var(--a-coral-deep);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(45deg);
}

.q-skip-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--a-ink-soft);
}

.q-skip-content strong {
  color: var(--a-ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.q-skip-content code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--a-bg-deep);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--a-coral-deep);
}

/* ============================================
   QUESTION INPUT TYPES (slider, number, likert)
   ============================================ */

/* Slider (age) */
.q-slider-wrap {
  margin-bottom: 48px;
}

.q-slider-display {
  text-align: center;
  margin-bottom: 28px;
}

.q-slider-value {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: var(--a-coral);
  letter-spacing: -0.03em;
}

.q-slider-unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--a-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

.q-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(90deg,
    rgba(127, 176, 105, 0.4) 0%,
    rgba(201, 154, 76, 0.45) 50%,
    rgba(216, 95, 74, 0.45) 100%);
  outline: none;
  margin: 12px 0 20px;
}

.q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--a-coral);
  border: 3px solid var(--a-paper);
  box-shadow: 0 0 0 1px var(--a-coral), 0 4px 12px rgba(226, 115, 90, 0.4);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.q-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.q-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--a-coral);
  border: 3px solid var(--a-paper);
  box-shadow: 0 0 0 1px var(--a-coral), 0 4px 12px rgba(226, 115, 90, 0.4);
  cursor: pointer;
}

.q-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--a-muted);
  padding: 0 4px;
}

/* Number inputs (height, weight, waist) */
.q-number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.q-number-grid-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.q-number-field {
  background: var(--a-paper);
  border: 1.5px solid var(--a-line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s var(--ease);
}

.q-number-field:focus-within {
  border-color: var(--a-coral);
}

.q-number-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--a-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.q-number-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--a-ink);
  width: 100%;
  letter-spacing: -0.01em;
}

.q-number-input::placeholder {
  color: var(--a-muted);
  opacity: 0.5;
}

.q-number-suffix {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-muted);
  letter-spacing: 0.08em;
  margin-left: 8px;
}

/* Unit toggle */
.q-unit-toggle {
  display: inline-flex;
  background: var(--a-bg-deep);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 28px;
}

.q-unit-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a-ink-soft);
  transition: all 0.2s var(--ease);
}

.q-unit-btn.active {
  background: var(--a-ink);
  color: var(--a-paper);
}

/* "I don't know" inline opt-out */
.q-dont-know {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--a-muted);
  cursor: pointer;
  user-select: none;
}

.q-dont-know input {
  width: 18px;
  height: 18px;
  accent-color: var(--a-coral);
  cursor: pointer;
}

.q-dont-know:hover { color: var(--a-ink); }

/* Likert scale (AMS 1-5) */
.q-likert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.q-likert-row {
  width: 100%;
  text-align: left;
  background: var(--a-paper);
  border: 1.5px solid transparent;
  padding: 18px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--a-ink);
  transition: all 0.2s var(--ease);
}

.q-likert-row:hover {
  background: var(--a-bg-deep);
  transform: translateX(3px);
}

.q-likert-row.selected {
  background: var(--a-ink);
  color: var(--a-paper);
  border-color: var(--a-ink);
  transform: translateX(3px);
}

.q-likert-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--a-bg);
  color: var(--a-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.q-likert-row.selected .q-likert-num {
  background: var(--a-coral);
  color: white;
}

.q-likert-text { flex: 1; }
.q-likert-label-small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--a-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.q-likert-row.selected .q-likert-label-small {
  color: rgba(245, 237, 223, 0.6);
}

/* Branch decision card (after Section 2 / Section 3) */
.q-branch {
  margin-top: 36px;
  background: var(--a-paper);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--a-line);
  text-align: center;
}

.q-branch-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--a-coral-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.q-branch-head::before { content: '✓ '; color: var(--a-coral); }

.q-branch-text {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--a-ink-soft);
  margin-bottom: 24px;
  line-height: 1.4;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.q-branch-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.q-branch-skip,
.q-branch-continue {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--a-line);
  background: var(--a-bg);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-branch-skip:hover {
  border-color: var(--a-muted);
  background: var(--a-bg-deep);
}

.q-branch-continue {
  background: var(--a-coral);
  border-color: var(--a-coral);
  color: white;
}

.q-branch-continue:hover {
  background: #C5573D;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226, 115, 90, 0.32);
}

.q-branch-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--a-ink);
}

.q-branch-continue .q-branch-label { color: white; }

.q-branch-conf {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--a-muted);
  text-transform: uppercase;
}

.q-branch-continue .q-branch-conf { color: rgba(255,255,255,0.75); }

/* ============================================
   ╔═══════════════════════════════════════╗
   ║  PAGE 3 — RESULT (Direction B)        ║
   ║  Pitch black terminal protocol        ║
   ╚═══════════════════════════════════════╝
   ============================================ */
#page-result {
  background: var(--b-bg);
  color: var(--b-ink);
  min-height: 100vh;
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}

#page-result::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 70% 20%, rgba(226, 115, 90, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 154, 76, 0.08) 0%, transparent 50%);
  z-index: 1;
  opacity: 1;
}

.r-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  position: relative;
  z-index: 2;
}

/* Terminal top — boot sequence look */
.r-boot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--b-line);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.r-boot-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.r-boot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--b-signal);
  box-shadow: 0 0 12px var(--b-signal);
  animation: bootPulse 1.5s ease-in-out infinite;
}

@keyframes bootPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.r-boot strong {
  color: var(--b-signal);
  font-weight: 500;
}

/* HERO — terminal output */
/* ============================================
   HORMONAL AGE HERO — the money shot
   Telescope (big number) + lifeline (context)
   ============================================ */
.r-hero {
  margin-bottom: 56px;
  padding: 8px 0 40px;
  position: relative;
}

.r-hero-prefix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--b-muted);
  margin-bottom: 28px;
  text-transform: uppercase;
  text-align: center;
}

.r-hero-prefix::before {
  content: '— ';
  color: var(--b-accent);
}

.r-hero-prefix::after {
  content: ' —';
  color: var(--b-accent);
}

/* Age display — chronological / hormonal pair */
.r-age-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.r-age-side {
  text-align: center;
}

.r-age-side.chrono { text-align: right; }
.r-age-side.hormonal { text-align: left; }

.r-age-side-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.r-age-side-number {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--b-ink-soft);
}

.r-age-side.hormonal .r-age-side-number {
  color: var(--b-accent);
  font-weight: 500;
  font-size: clamp(80px, 12vw, 144px);
  font-style: italic;
}

.r-age-side-suffix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Delta arrow between */
.r-age-delta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.r-age-delta-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  color: var(--b-accent);
  line-height: 1;
}

.r-age-delta-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--b-accent);
  background: rgba(226, 115, 90, 0.10);
  border: 1px solid rgba(226, 115, 90, 0.25);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.r-age-headline {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: var(--b-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 32px auto 8px;
  max-width: 640px;
}

.r-age-headline em {
  color: var(--b-accent);
  font-style: italic;
  font-weight: 500;
}

.r-age-subline {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Lifeline arc — horizontal trajectory */
.r-lifeline {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 36px 0 8px;
  position: relative;
}

.r-lifeline-track {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(127, 176, 105, 0.4) 0%,
    rgba(201, 154, 76, 0.45) 50%,
    rgba(216, 95, 74, 0.45) 100%);
  border-radius: 100px;
}

.r-lifeline-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: rgba(42, 31, 24, 0.18);
}

.r-lifeline-tick-label {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--b-muted);
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

.r-lifeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r-lifeline-marker-chrono .r-lifeline-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--b-ink-soft);
  border: 2px solid var(--b-bg);
  box-shadow: 0 0 0 1px var(--b-ink-soft);
}

.r-lifeline-marker-hormonal .r-lifeline-marker-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--b-accent);
  border: 3px solid var(--b-bg);
  box-shadow:
    0 0 0 1px var(--b-accent),
    0 0 0 6px rgba(226, 115, 90, 0.18),
    0 4px 12px rgba(226, 115, 90, 0.45);
  animation: lifelinePulse 2.2s ease-in-out infinite;
}

@keyframes lifelinePulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px var(--b-accent),
      0 0 0 6px rgba(226, 115, 90, 0.18),
      0 4px 12px rgba(226, 115, 90, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px var(--b-accent),
      0 0 0 10px rgba(226, 115, 90, 0.10),
      0 4px 16px rgba(226, 115, 90, 0.55);
  }
}

.r-lifeline-marker-label {
  position: absolute;
  bottom: 100%;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--b-ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.r-lifeline-marker-label-strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--b-accent);
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Connecting arc between two markers */
.r-lifeline-arc {
  position: absolute;
  top: -22px;
  height: 24px;
  border: 1.5px dashed var(--b-accent);
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  opacity: 0.55;
}

/* Stage chip under the lifeline */
.r-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 56px auto 0;
  padding: 10px 18px 10px 14px;
  background: rgba(226, 115, 90, 0.08);
  border: 1px solid rgba(226, 115, 90, 0.22);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--b-ink-soft);
  text-transform: uppercase;
}

.r-stage-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--b-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.r-stage-chip-name {
  color: var(--b-ink);
  font-weight: 500;
}

.r-stage-chip-conf {
  color: var(--b-muted);
  border-left: 1px solid rgba(42, 31, 24, 0.15);
  padding-left: 10px;
  margin-left: 4px;
}

.r-hero-center {
  display: flex;
  justify-content: center;
}

/* ============================================
   REVERSIBILITY CALLOUT — hope after the shock
   ============================================ */
.r-reversibility {
  background: linear-gradient(135deg,
    rgba(127, 176, 105, 0.08) 0%,
    rgba(226, 115, 90, 0.06) 100%);
  border: 1px solid rgba(127, 176, 105, 0.18);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 56px;
}

.r-reversibility-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 24px;
}

.r-reversibility-divider {
  height: 50px;
  background: rgba(42, 31, 24, 0.10);
}

.r-reversibility-stat {
  text-align: center;
}

.r-reversibility-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.r-reversibility-stat-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--b-ink);
  margin-bottom: 6px;
  line-height: 1.1;
}

.r-reversibility-stat-value strong {
  font-style: normal;
  font-weight: 600;
  color: #5A8F3F;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.r-reversibility-stat-value.r-rev-amber strong {
  color: var(--b-warn);
}

.r-reversibility-stat-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--b-muted);
}

/* Stage indicator bar — discrete blocks */
.r-stage-track {
  margin-bottom: 56px;
}

.r-stage-track-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.r-stage-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.r-stage-block {
  height: 6px;
  background: var(--b-line);
  position: relative;
}

.r-stage-block.passed { background: var(--b-line-strong); }
.r-stage-block.active {
  background: var(--b-warn);
  box-shadow: 0 0 16px rgba(232, 160, 78, 0.5);
}

.r-stage-block-label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--b-muted);
  text-transform: uppercase;
}

.r-stage-block.active .r-stage-block-label {
  color: var(--b-warn);
}

/* Raw data grid */
.r-data {
  background: var(--b-bg-card);
  border: 1px solid var(--b-line);
  padding: 32px;
  margin-bottom: 56px;
  position: relative;
}

.r-data::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--b-signal), transparent);
}

.r-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b-line);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.r-data-header strong {
  color: var(--b-signal);
  font-weight: 500;
}

.r-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.r-data-cell {
  position: relative;
}

.r-data-cell-key {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.r-data-cell-key::before {
  content: '_';
  color: var(--b-muted);
  margin-right: 4px;
}

.r-data-cell-value {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--b-ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.r-data-cell-value .unit {
  font-size: 11px;
  color: var(--b-muted);
  margin-left: 4px;
  font-weight: 400;
}

.r-data-cell-bar {
  height: 3px;
  background: var(--b-line);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.r-data-cell-bar-fill {
  height: 100%;
  background: var(--b-warn);
  box-shadow: 0 0 8px currentColor;
}

.r-data-cell-bar-fill.positive { background: var(--b-signal); color: var(--b-signal); }
.r-data-cell-bar-fill.warn { background: var(--b-warn); color: var(--b-warn); }
.r-data-cell-bar-fill.alert { background: var(--b-alert); color: var(--b-alert); }

.r-data-cell-status {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.r-data-cell-status.warn { color: var(--b-warn); }
.r-data-cell-status.alert { color: var(--b-alert); }
.r-data-cell-status.positive { color: var(--b-signal); }

/* Interpretation block — terminal log style */
.r-block {
  margin-bottom: 56px;
}

.r-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--b-line);
}

.r-block-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--b-accent);
  text-transform: uppercase;
  font-weight: 500;
}

.r-block-tag::before {
  content: '> ';
  color: var(--b-muted);
}

.r-block-rule {
  flex: 1;
  height: 1px;
  background: var(--b-line);
}

.r-block-num {
  font-size: 10px;
  color: var(--b-muted);
  letter-spacing: 0.14em;
}

.r-interp-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--b-ink-soft);
  max-width: 720px;
}

.r-interp-body p { margin-bottom: 14px; }

.r-interp-body em {
  color: var(--b-warn);
  font-style: normal;
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(232, 160, 78, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* Priorities — terminal output list */
.r-priorities {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r-priority {
  background: var(--b-bg-card);
  border-left: 2px solid var(--b-line);
  padding: 24px 28px;
  transition: border-color 0.25s var(--ease);
}

.r-priority:hover {
  border-left-color: var(--b-signal);
}

.r-priority-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  font-family: var(--mono);
}

.r-priority-id {
  font-size: 12px;
  color: var(--b-muted);
  letter-spacing: 0.12em;
}

.r-priority-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--b-ink);
  letter-spacing: -0.005em;
}

.r-priority-desc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--b-ink-soft);
  margin-bottom: 12px;
  margin-left: 36px;
}

.r-priority-ref {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--b-muted);
  text-transform: uppercase;
  margin-left: 36px;
}

.r-priority-ref::before {
  content: '// ref: ';
  color: var(--b-muted);
}

/* Affiliate — terminal action */
.r-action {
  background: linear-gradient(180deg, var(--b-bg-card) 0%, var(--b-bg-elev) 100%);
  border: 1px solid var(--b-line);
  padding: 36px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.r-action::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184, 232, 71, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.r-action-head {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--b-signal);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.r-action-head::before {
  content: '> exec ';
  color: var(--b-muted);
}

.r-action-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--b-ink);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.r-action-desc {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--b-ink-soft);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 580px;
}

.r-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--b-accent);
  color: white;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(226, 115, 90, 0.3);
}

.r-action-btn:hover {
  background: #C5573D;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(226, 115, 90, 0.42);
}

.r-action-btn-arrow {
  font-size: 14px;
}

.r-action-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--b-muted);
  letter-spacing: 0.06em;
}

.r-action-note a {
  color: var(--b-signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Book CTA — bridge back to A palette */
.r-book {
  background: #FAF5EB;
  color: var(--a-ink);
  border-radius: 16px;
  padding: 56px 48px;
  margin: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(42, 31, 24, 0.08);
  box-shadow: 0 12px 40px rgba(42, 31, 24, 0.06);
}

.r-book::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(226, 115, 90, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.r-book-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--a-coral-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.r-book-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--a-ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
  position: relative;
}

.r-book-title em {
  font-style: italic;
  color: var(--a-coral);
}

.r-book-desc {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--a-ink-soft);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.55;
  position: relative;
}

.r-book-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.r-book-primary {
  background: var(--a-coral);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(226, 115, 90, 0.3);
}

.r-book-primary:hover {
  background: var(--a-coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226, 115, 90, 0.42);
}

.r-book-secondary {
  background: transparent;
  color: var(--a-ink);
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--a-line);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s var(--ease);
}

.r-book-secondary:hover {
  border-color: var(--a-ink);
  background: var(--a-paper);
}

/* Disclaimer + retake */
.r-disclaimer {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
  color: var(--b-ink-soft);
  letter-spacing: 0;
  padding: 28px 32px;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  margin-bottom: 24px;
  background: rgba(250, 245, 235, 0.5);
}

.r-disclaimer > strong {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--b-ink);
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.r-retake {
  text-align: center;
}

.r-retake button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b-muted);
  padding: 12px 24px;
  border: 1px solid var(--b-line);
  transition: all 0.2s var(--ease);
}

.r-retake button:hover {
  color: var(--b-ink);
  border-color: var(--b-line-strong);
}

.r-retake button::before {
  content: '$ ';
  color: var(--b-signal);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .w-explain-grid { grid-template-columns: 1fr; }
  .r-data-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  .w-container { padding: 40px 20px; }
  .w-brand { margin-bottom: 24px; }
  .w-hero { padding: 12px 0 36px; }
  .w-orb { width: 140px; height: 140px; }
  .w-orb-section { margin: 16px 0 48px; }
  .w-explain { padding: 48px 20px; margin-left: -20px; margin-right: -20px; }
  .w-explain-header { flex-direction: column; gap: 12px; }
  
  .q-container { padding: 28px 20px 60px; }
  .q-top { margin-bottom: 32px; }
  .q-progress { margin-bottom: 40px; }
  .q-text { font-size: 28px; }
  .q-helper { font-size: 15px; margin-bottom: 32px; }
  .q-options { gap: 10px; margin-bottom: 36px; }
  .q-option { padding: 18px 22px; font-size: 15px; }
  .q-skip { margin-top: 40px; padding: 18px 20px; }
  
  /* New question types on mobile */
  .q-slider-value { font-size: 64px; }
  .q-number-grid,
  .q-number-grid-3col { grid-template-columns: 1fr; gap: 10px; }
  .q-likert-row { padding: 14px 18px; gap: 14px; font-size: 14px; }
  .q-branch { padding: 24px 20px; margin-top: 28px; }
  .q-branch-text { font-size: 16px; }
  .q-branch-buttons { grid-template-columns: 1fr; }
  
  .r-container { padding: 28px 20px 60px; }
  .r-hero-output { gap: 12px; }
  .r-hero-stage-num { font-size: 80px; }
  .r-hero-stage-name { font-size: 28px; }
  
  /* Age display — keep horizontal but tighter */
  .r-age-display { gap: 12px; max-width: none; }
  .r-age-side.chrono .r-age-side-number { font-size: 38px; }
  .r-age-side.hormonal .r-age-side-number { font-size: 64px; }
  .r-age-delta-arrow { font-size: 24px; }
  .r-age-delta-value { font-size: 11px; padding: 3px 8px; }
  .r-age-headline { font-size: 20px; margin: 24px auto 6px; }
  
  /* Lifeline */
  .r-lifeline { padding: 32px 0 8px; }
  .r-lifeline-tick-label { font-size: 9px; }
  .r-lifeline-marker-label { font-size: 9px; }
  .r-lifeline-marker-label-strong { font-size: 12px; }
  
  /* Reversibility — stack vertical on mobile */
  .r-reversibility { padding: 20px 18px; margin-bottom: 40px; }
  .r-reversibility-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .r-reversibility-divider {
    height: 1px;
    width: 100%;
  }
  
  .r-data { padding: 24px 20px; }
  .r-data-cell-value { font-size: 26px; }
  .r-action { padding: 28px 24px; }
  .r-action-title { font-size: 24px; }
  .r-book { padding: 40px 24px; margin-left: -20px; margin-right: -20px; }
  .r-priority { padding: 20px 22px; }
  .r-priority-desc, .r-priority-ref { margin-left: 0; }
}

@media (max-width: 478px) {
  .w-hero-title { font-size: 42px; }
  .w-hero-lede { font-size: 16px; }
  .r-hero-output { flex-direction: column; align-items: flex-start; gap: 8px; }
  .r-hero-stage-num { font-size: 64px; }
  .r-data-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .r-data-cell-value { font-size: 22px; }
  .r-book-primary, .r-book-secondary { width: 100%; justify-content: center; }
  .proto-bar-inner { gap: 8px; }
  .proto-tag { font-size: 9px; }
}
