/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --clr-bg-primary:      #08080f;
  --clr-bg-secondary:    #0d0d1a;
  --clr-bg-card:         #141420;
  --clr-gold-accent:     #c9a227;
  --clr-gold-cta:        #f0b429;
  --clr-text-primary:    #e0e0e8;
  --clr-text-muted:      #a0a0b8;
  --clr-text-on-gold:    #08080f;
  --clr-border-subtle:   rgba(201, 162, 39, 0.13);
  --clr-border-hover:    rgba(201, 162, 39, 0.45);
  --clr-answer-sel-bg:   rgba(240, 180, 41, 0.07);
  --clr-error:           #e08070;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-2xs:  4px;
  --sp-xs:   8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  64px;
  --sp-2xl: 96px;
  --sp-3xl: 128px;

  /* Layout */
  --max-content: 1100px;
  --max-reading:  680px;
  --max-narrow:   560px;

  /* Radii */
  --r-sm:  6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Easing */
  --ease-fast: 150ms ease;
  --ease-mid:  280ms ease;
  --ease-slow: 600ms ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; color: inherit; }
input  { font-family: var(--font-sans); }
ul, li { list-style: none; }


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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;
}

:focus-visible {
  outline: 2px solid var(--clr-gold-cta);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ============================================================
   VIEW MANAGEMENT
   ============================================================ */
.view {
  display: none;
  min-height: 100vh;
  animation: none;
}

.view.active {
  display: block;
}

.view.view-entering {
  animation: viewEnter 380ms ease both;
}

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


/* ============================================================
   CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--sp-sm);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin-inline: auto;
}


/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-text-primary);
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-heading.align-left { text-align: left; }

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  text-align: center;
  margin-bottom: var(--sp-lg);
  display: block;
}

.body-copy {
  font-size: 16px;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-sm);
  max-width: var(--max-reading);
}


/* ============================================================
   BUTTONS
   ============================================================ */

/* Gold button — primary action */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background-color: var(--clr-gold-cta);
  color: var(--clr-text-on-gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border-radius: var(--r-sm);
  transition:
    background-color var(--ease-fast),
    transform        var(--ease-fast),
    box-shadow       var(--ease-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #e6aa24;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 180, 41, 0.28);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

/* Dark button — used on gold backgrounds */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background-color: var(--clr-bg-primary);
  color: var(--clr-gold-cta);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border-radius: var(--r-sm);
  border: 2px solid var(--clr-gold-cta);
  transition:
    background-color var(--ease-fast),
    transform        var(--ease-fast),
    box-shadow       var(--ease-fast);
  white-space: nowrap;
}

.btn-dark:hover {
  background-color: rgba(240, 180, 41, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* On gold backgrounds the semi-transparent hover washes out — keep it dark */
.cta-band .btn-dark:hover {
  background-color: rgba(8, 8, 15, 0.88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.btn-dark:active { transform: translateY(0); }

.btn-cta { font-size: 15px; }

.btn-arrow {
  display: inline-block;
  transition: transform var(--ease-fast);
}

.btn-primary:hover .btn-arrow,
.btn-dark:hover .btn-arrow {
  transform: translateX(4px);
}


/* ============================================================
   LANDING — HERO
   ============================================================ */
.hero {
  background-color: var(--clr-bg-primary);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--sp-3xl) 0 var(--sp-2xl);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--max-reading);
  margin-inline: auto;
}

.hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-md);
}

.hero-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clr-gold-accent);
  font-weight: 400;
}

.hero-subhead {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--sp-lg);
}

.trust-line {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-top: var(--sp-sm);
  letter-spacing: 0.04em;
  opacity: 0.7;
}


/* ============================================================
   LANDING — SECTIONS
   ============================================================ */
.section {
  background-color: var(--clr-bg-primary);
  padding: var(--sp-2xl) 0;
}

.section-alt {
  background-color: var(--clr-bg-secondary);
  padding: var(--sp-2xl) 0;
}


/* ============================================================
   LANDING — CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
}

.card {
  background-color: var(--clr-bg-card);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-md);
  position: relative;
  overflow: hidden;
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: var(--sp-lg);
  right: var(--sp-lg);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-accent), transparent);
}

.card-text {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.65;
}


/* ============================================================
   LANDING — STEPS
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--clr-gold-accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  min-width: 44px;
}

.step-text {
  font-size: 16px;
  color: var(--clr-text-muted);
  line-height: 1.65;
  padding-top: 4px;
}


/* ============================================================
   LANDING — COACH SECTION
   ============================================================ */
.coach-section { padding: var(--sp-2xl) 0; }

.coach-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  align-items: center;
}

.coach-photo-wrap {
  width: 100%;
  max-width: 300px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--clr-border-subtle);
  flex-shrink: 0;
  font-size: 0;
  /* Force GPU compositing layer — prevents 1px background bleed
     at clipped edges (known Safari/Chrome border-radius bug) */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Placeholder state — only activates when coach.jpg fails to load */
.coach-photo-wrap.coach-placeholder {
  background-color: var(--clr-bg-card);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.coach-photo-wrap.coach-placeholder::after {
  content: 'Photo coming soon';
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0.5;
  text-align: center;
  padding: var(--sp-sm);
}

.coach-photo-wrap.coach-placeholder .coach-photo { display: none; }

/* Image fills the wrapper with zero gaps */
.coach-photo {
  display: block;
  width: 100%;
  height: auto;
}

.coach-copy { max-width: 520px; }


/* ============================================================
   LANDING — CTA BAND
   ============================================================ */
.cta-band {
  background-color: var(--clr-gold-cta);
  padding: var(--sp-2xl) 0;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
  text-align: center;
}

.cta-band-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  color: var(--clr-text-on-gold);
  line-height: 1.2;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--clr-bg-primary);
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--clr-border-subtle);
}

.footer-text {
  font-size: 13px;
  color: var(--clr-text-muted);
  text-align: center;
  opacity: 0.6;
}

.footer-link {
  color: var(--clr-gold-accent);
  opacity: 1;
  transition: opacity var(--ease-fast);
}

.footer-link:hover { opacity: 0.7; }

.landing-disclaimer {
  font-size: 11px;
  color: var(--clr-text-muted);
  text-align: center;
  opacity: 0.4;
  margin-top: var(--sp-sm);
  line-height: 1.5;
}

/* AI insight attribution note */
.ai-disclaimer {
  font-size: 11px;
  color: var(--clr-text-muted);
  text-align: center;
  opacity: 0.45;
  margin-top: var(--sp-lg);
  line-height: 1.55;
  max-width: 440px;
  margin-inline: auto;
  font-style: italic;
}

/* Full disclaimer in results footer */
.results-disclaimer {
  font-size: 11px;
  color: var(--clr-text-muted);
  text-align: center;
  opacity: 0.4;
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* ============================================================
   ASSESSMENT — PROGRESS BAR
   ============================================================ */
.progress-bar-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(8, 8, 15, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-sm) var(--sp-sm) var(--sp-xs);
  border-bottom: 1px solid var(--clr-border-subtle);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-xs);
}

.q-counter {
  font-size: 12px;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
}

.q-category-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
}

.progress-track {
  height: 2px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-gold-accent), var(--clr-gold-cta));
  border-radius: 2px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   ASSESSMENT — BODY & QUESTION
   ============================================================ */
.assessment-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px var(--sp-sm) 90px;
}

.question-container {
  width: 100%;
  max-width: 600px;
  /* Transition classes added by JS */
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Exit animations */
.question-container.q-exit-fwd  { opacity: 0; transform: translateX(-28px); }
.question-container.q-exit-back { opacity: 0; transform: translateX(28px); }
/* Enter animations — JS removes these classes one frame after set */
.question-container.q-enter-fwd  { opacity: 0; transform: translateX(28px); }
.question-container.q-enter-back { opacity: 0; transform: translateX(-28px); }

.q-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}

.q-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4.5vw, 27px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-lg);
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-card {
  background-color: var(--clr-bg-card);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  cursor: pointer;
  transition:
    border-color     var(--ease-fast),
    background-color var(--ease-fast),
    transform        var(--ease-fast);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-align: left;
  width: 100%;
}

.answer-card:hover {
  border-color: var(--clr-border-hover);
  background-color: rgba(201, 162, 39, 0.04);
}

.answer-card:active { transform: scale(0.99); }

.answer-card.selected {
  border-color: var(--clr-gold-cta);
  background-color: var(--clr-answer-sel-bg);
}

.answer-letter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-gold-accent);
  opacity: 0.5;
  flex-shrink: 0;
  width: 18px;
  transition: opacity var(--ease-fast);
}

.answer-card:hover .answer-letter,
.answer-card.selected .answer-letter {
  opacity: 1;
}

.answer-text {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.55;
  transition: color var(--ease-fast);
}

.answer-card:hover .answer-text,
.answer-card.selected .answer-text {
  color: var(--clr-text-primary);
}


/* ============================================================
   ASSESSMENT — BACK BUTTON
   ============================================================ */
.assessment-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-sm);
  background: linear-gradient(to top, var(--clr-bg-primary) 55%, transparent);
  pointer-events: none;
}

.back-btn {
  font-size: 13px;
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
  padding: var(--sp-xs) 0;
  pointer-events: all;
  opacity: 0;
  visibility: hidden;
  transition: color var(--ease-fast), opacity var(--ease-mid);
}

.back-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-btn:hover { color: var(--clr-text-primary); }


/* ============================================================
   OPEN QUESTION
   ============================================================ */
.oq-wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl) var(--sp-sm);
}

.oq-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.oq-heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-sm);
}

.oq-subtext {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-lg);
  opacity: 0.75;
}

.oq-textarea {
  width: 100%;
  background-color: var(--clr-bg-card);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--clr-text-primary);
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color var(--ease-fast);
  margin-bottom: var(--sp-xs);
}

.oq-textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.5;
}

.oq-textarea:focus { border-color: var(--clr-gold-accent); }

.oq-char-count {
  font-size: 11px;
  color: var(--clr-text-muted);
  text-align: right;
  opacity: 0.45;
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.04em;
}

.oq-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.oq-skip-btn {
  font-size: 13px;
  color: var(--clr-text-muted);
  opacity: 0.55;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
  transition: opacity var(--ease-fast);
}

.oq-skip-btn:hover { opacity: 1; }


/* ============================================================
   EMAIL GATE
   ============================================================ */
.gate-wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  padding: var(--sp-xl) var(--sp-sm);
}

.gate-preview-area { text-align: center; }

.gate-preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xs);
  display: block;
  opacity: 0.7;
}

.gate-score-blur {
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-content: center;
  filter: blur(10px);
  user-select: none;
  margin-bottom: var(--sp-xs);
}

.gate-score-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: var(--clr-gold-cta);
  line-height: 1;
}

.gate-score-denom {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--clr-text-muted);
  line-height: 1;
}

.gate-preview-hint {
  font-size: 14px;
  color: var(--clr-text-muted);
  font-style: italic;
  opacity: 0.7;
}

.gate-card {
  background-color: var(--clr-bg-card);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-md);
  width: 100%;
  max-width: 460px;
}

.gate-heading {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 600;
  color: var(--clr-text-primary);
  line-height: 1.2;
  margin-bottom: var(--sp-sm);
}

.gate-subtext {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.form-group { width: 100%; }

.form-input {
  width: 100%;
  background-color: var(--clr-bg-secondary);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--clr-text-primary);
  outline: none;
  transition: border-color var(--ease-fast);
}

.form-input::placeholder { color: var(--clr-text-muted); opacity: 0.6; }

.form-input:focus { border-color: var(--clr-gold-accent); }

.form-error {
  font-size: 13px;
  color: var(--clr-error);
  min-height: 18px;
  margin-top: -4px;
}

.gate-reassurance {
  font-size: 12px;
  color: var(--clr-text-muted);
  text-align: center;
  margin-top: var(--sp-md);
  line-height: 1.5;
  opacity: 0.65;
}


/* ============================================================
   RESULTS — SCORE HERO
   ============================================================ */
.results-hero {
  background-color: var(--clr-bg-primary);
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  text-align: center;
}

.results-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-display-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.animated-score {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(80px, 18vw, 116px);
  font-weight: 900;
  color: var(--clr-gold-cta);
  line-height: 1;
  min-width: 1ch;
  text-shadow: 0 0 80px rgba(240, 180, 41, 0.22), 0 0 160px rgba(240, 180, 41, 0.09);
}

.score-denom {
  font-family: var(--font-serif);
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 400;
  color: var(--clr-text-muted);
  line-height: 1;
}

.result-type-reveal {
  font-size: clamp(17px, 3vw, 21px);
  color: var(--clr-text-muted);
  margin-top: var(--sp-sm);
  letter-spacing: 0.01em;
}

/* Archetype name rendered in gold italic serif — the reveal moment */
.result-type-reveal strong {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clr-gold-accent);
  font-weight: 600;
  font-size: 1.1em;
}

.result-reflection {
  font-family: var(--font-serif);
  font-size: clamp(17px, 3.5vw, 21px);
  font-style: italic;
  font-weight: 400;
  color: var(--clr-text-primary);
  opacity: 0.85;
  line-height: 1.75;
  max-width: 520px;
  text-align: center;
  margin-top: var(--sp-lg);
}


/* ============================================================
   RESULTS — CATEGORY BREAKDOWN
   ============================================================ */
.breakdown-section { padding: var(--sp-2xl) 0; }

.category-bars-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

/* Each bar item starts invisible; JS adds .bar-visible */
.category-bar-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.category-bar-item.bar-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.category-bar-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-primary);
}

.category-bar-score {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--clr-gold-accent);
  line-height: 1;
}

.category-bar-track {
  height: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-gold-accent), var(--clr-gold-cta));
  border-radius: 5px;
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================================
   RESULTS — OPPORTUNITY CARDS
   ============================================================ */
.opportunity-section {
  border-top: 1px solid var(--clr-border-subtle);
  padding-top: var(--sp-xl);
}

.opportunity-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-md);
  text-align: center;
  display: block;
}

.opportunity-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.opportunity-card {
  background-color: var(--clr-bg-primary);
  border-left: 3px solid var(--clr-gold-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-md) var(--sp-md);
}

.opportunity-card-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-xs);
}

.opportunity-card-text {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.65;
}


/* ============================================================
   RESULTS — AI INSIGHT
   ============================================================ */
.ai-insight-section {
  padding: var(--sp-2xl) 0;
  background-color: rgba(201, 162, 39, 0.03);
  border-top: 1px solid var(--clr-border-subtle);
  border-bottom: 1px solid var(--clr-border-subtle);
}

.ai-insight-content { position: relative; }

.ai-insight-text {
  font-size: 17px;
  color: var(--clr-text-primary);
  line-height: 1.85;
  margin-bottom: var(--sp-md);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: insightReveal 500ms ease forwards;
}

.ai-insight-text:nth-child(2) { animation-delay: 120ms; }
.ai-insight-text:nth-child(3) { animation-delay: 240ms; }

.ai-insight-text:last-child { margin-bottom: 0; }

@keyframes insightReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton loader */
.insight-loading {
  padding: var(--sp-xs) 0;
}

.insight-skeleton {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.insight-skeleton--mid   { width: 78%; margin-inline: auto; }
.insight-skeleton--short { width: 52%; margin-inline: auto; }

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================
   RESULTS — COST + POSSIBILITY
   ============================================================ */
.cp-section { padding: var(--sp-2xl) 0; }

.cp-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.cp-block {
  padding: var(--sp-lg) var(--sp-md);
  background-color: var(--clr-bg-card);
  border: 1px solid var(--clr-border-subtle);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.cp-block::before {
  content: '';
  position: absolute;
  top: 0; left: var(--sp-md); right: var(--sp-md);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-accent), transparent);
}

.cp-block--possibility {
  background-color: rgba(240, 180, 41, 0.04);
}

.cp-block--possibility::before {
  background: linear-gradient(90deg, transparent, var(--clr-gold-cta), transparent);
}

.cp-block-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-sm);
}

.cp-block--possibility .cp-block-label {
  color: var(--clr-gold-cta);
}

.cp-block-text {
  font-size: 16px;
  color: var(--clr-text-muted);
  line-height: 1.75;
}


/* ============================================================
   RESULTS — DESCRIPTION
   ============================================================ */
.result-desc-section { padding: var(--sp-2xl) 0; }

.result-headline {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 600;
  font-style: italic;
  color: var(--clr-text-primary);
  line-height: 1.3;
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.result-description p {
  font-size: 17px;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
  text-align: center;
}

.result-description p:last-child { margin-bottom: 0; }

.result-next-step-wrap {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--clr-border-subtle);
  text-align: center;
}

.result-next-step-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold-accent);
  margin-bottom: var(--sp-sm);
}

.result-next-step-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.5vw, 24px);
  font-style: italic;
  color: var(--clr-text-primary);
  line-height: 1.55;
  max-width: 480px;
  margin-inline: auto;
}


/* ============================================================
   RESULTS — CTA BAND
   ============================================================ */
.results-cta-band .cta-band-heading { color: var(--clr-text-on-gold); }

.cta-band-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  text-align: center;
  color: rgba(8, 8, 15, 0.72);
}

.cta-private-note {
  font-size: 12px;
  color: rgba(8, 8, 15, 0.5);
  letter-spacing: 0.06em;
  margin-top: -8px;
}

.share-btn {
  font-size: 13px;
  color: rgba(8, 8, 15, 0.5);
  cursor: pointer;
  transition: color var(--ease-fast);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.03em;
  margin-top: var(--sp-xs);
}

.share-btn:hover { color: var(--clr-text-on-gold); }


/* ============================================================
   RESULTS — FOOTER
   ============================================================ */
.results-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  text-align: center;
}

.retake-link {
  font-size: 13px;
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
  transition: color var(--ease-fast);
  cursor: pointer;
  padding: var(--sp-xs) 0;
}

.retake-link:hover { color: var(--clr-gold-accent); }


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
  }

  .question-container  { transition: none; }
  .category-bar-fill   { transition: none; }
  .category-bar-item   { transition: none; }
  .view.view-entering  { animation: none; }
  .insight-skeleton    { animation: none; }
  .ai-insight-text     { animation: none; opacity: 1; transform: none; }
}


/* ============================================================
   RESPONSIVE — TABLET 640px+
   ============================================================ */
@media (min-width: 640px) {
  .container { padding-inline: var(--sp-lg); }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .coach-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-2xl);
  }

  .coach-photo-wrap {
    width: 240px;
    max-width: 240px;
  }

  .gate-wrap {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-2xl);
    padding: var(--sp-2xl) var(--sp-lg);
  }

  .gate-preview-area { flex: 1; }
  .gate-card {
    flex: 0 0 420px;
    padding: var(--sp-xl) var(--sp-lg);
  }
}


/* ============================================================
   RESPONSIVE — DESKTOP 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .container { padding-inline: var(--sp-xl); }

  .coach-photo-wrap {
    width: 300px;
    max-width: 300px;
  }

  .assessment-body {
    padding: 110px var(--sp-xl) 90px;
  }
}
