/* ============================================
   401 Value — style.css
   Design: Warm + Aspirational | Deep Navy + Gold
   Fonts: Zodiak (display) + Satoshi (body)
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1000px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* Custom 401 Value Palette — Navy + Gold + Vitality Green */
  --color-bg:              #f8f7f3;
  --color-surface:         #faf9f6;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #f0ede6;
  --color-border:          #dbd7ce;
  --color-divider:         #e5e2db;
  --color-text:            #1c1a14;
  --color-text-muted:      #6b6760;
  --color-text-faint:      #b0ada6;
  --color-text-inverse:    #f9f8f4;

  --color-primary:         #1b3a6b;   /* Deep navy */
  --color-primary-hover:   #14285a;
  --color-primary-active:  #0d1c42;
  --color-primary-light:   #e8edf6;

  --color-gold:            #c8920a;
  --color-gold-hover:      #a87208;
  --color-gold-light:      #fdf3dc;

  --color-success:         #437a22;
  --color-success-light:   #e8f2e0;

  --color-orange:          #d4600a;
  --color-orange-light:    #fdeee3;

  --color-nav-bg:          rgba(248, 247, 243, 0.92);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 26, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 26, 20, 0.09);
  --shadow-lg: 0 12px 40px rgba(28, 26, 20, 0.12);
  --shadow-xl: 0 24px 64px rgba(28, 26, 20, 0.15);
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg:              #12110e;
  --color-surface:         #18170f;
  --color-surface-2:       #1e1d16;
  --color-surface-offset:  #1a1914;
  --color-border:          #2e2c24;
  --color-divider:         #232118;
  --color-text:            #e8e6df;
  --color-text-muted:      #918f86;
  --color-text-faint:      #5a5852;
  --color-text-inverse:    #1c1a14;

  --color-primary:         #5b82c8;
  --color-primary-hover:   #7a9ad8;
  --color-primary-active:  #9ab5e6;
  --color-primary-light:   #1e2638;

  --color-gold:            #e8b240;
  --color-gold-hover:      #f5c855;
  --color-gold-light:      #2e2718;

  --color-success:         #6daa45;
  --color-success-light:   #1e2e14;

  --color-orange:          #f08030;
  --color-orange-light:    #2e1e0e;

  --color-nav-bg:          rgba(18, 17, 14, 0.92);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #12110e;
    --color-surface:         #18170f;
    --color-surface-2:       #1e1d16;
    --color-surface-offset:  #1a1914;
    --color-border:          #2e2c24;
    --color-divider:         #232118;
    --color-text:            #e8e6df;
    --color-text-muted:      #918f86;
    --color-text-faint:      #5a5852;
    --color-text-inverse:    #1c1a14;
    --color-primary:         #5b82c8;
    --color-primary-hover:   #7a9ad8;
    --color-primary-light:   #1e2638;
    --color-gold:            #e8b240;
    --color-gold-light:      #2e2718;
    --color-success:         #6daa45;
    --color-orange:          #f08030;
    --color-nav-bg:          rgba(18,17,14,0.92);
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}

img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection {
  background: rgba(27, 58, 107, 0.15);
  color: var(--color-text);
}
[data-theme="dark"] ::selection {
  background: rgba(91, 130, 200, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 20px rgba(27,58,107,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

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

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow { max-width: var(--content-narrow); }
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

/* ---- NAVIGATION ---- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.logo-value { color: var(--color-gold); }

.nav-links {
  display: none;
  gap: var(--space-6);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.nav-actions .btn { display: none; }
@media (min-width: 640px) { .nav-actions .btn { display: inline-flex; } }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition);
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 500; color: var(--color-text); }

/* ---- HERO ---- */
.hero {
  padding-top: calc(80px + var(--space-20));
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg-gradient {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,58,107,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.headline-accent { color: var(--color-primary); }

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}
.hero-sub em { font-style: italic; color: var(--color-text); }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.hero-caption {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-16);
}

/* Hero dashboard preview */
.hero-dashboard-preview {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: var(--space-20);
}

.preview-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.preview-label { font-weight: 600; font-size: var(--text-base); }
.preview-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.preview-score-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-6);
}

.preview-gauge { width: 130px; flex-shrink: 0; }
.gauge-svg { width: 100%; }
.gauge-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-number { font-family: var(--font-display); fill: var(--color-text); }

.preview-pillars { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.pillar-bar {
  display: grid;
  grid-template-columns: 70px 1fr 28px;
  align-items: center;
  gap: var(--space-3);
}
.pillar-bar-label { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); }
.pillar-bar-track {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.pillar-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar-bar-val { font-size: var(--text-xs); font-weight: 700; color: var(--color-text); text-align: right; }

.preview-insight {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  line-height: 1.6;
}
.preview-insight strong { color: var(--color-text); }

/* Stat strip */
.stat-strip {
  background: var(--color-primary);
  color: #fff;
}
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-12);
  text-align: center;
  flex: 1;
  min-width: 150px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
}
.stat-desc { font-size: var(--text-sm); opacity: 0.8; margin-top: var(--space-1); }
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* ---- INSIGHT SECTION ---- */
.insight-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-offset);
}

.insight-block { text-align: center; }
.insight-quote-mark {
  font-size: 120px;
  line-height: 0.4;
  color: var(--color-gold);
  opacity: 0.25;
  font-family: var(--font-display);
  display: block;
  margin-bottom: var(--space-6);
}
.insight-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.insight-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.8;
}
.insight-body em { color: var(--color-primary); font-style: normal; font-weight: 600; }

/* ---- SECTIONS COMMON ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin: 0 auto;
}

/* ---- PILLARS ---- */
.pillars-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.pillar-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.pillar-wealth::before { background: var(--color-primary); }
.pillar-health::before { background: var(--color-success); }
.pillar-lifestyle::before { background: var(--color-gold); }
.pillar-purpose::before { background: var(--color-orange); }

.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.pillar-weight {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.pillar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pillar-features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pillar-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-faint);
  flex-shrink: 0;
}

/* ---- CALCULATOR ---- */
.calculator-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-primary);
  color: #fff;
}
.calculator-section .section-header .section-eyebrow { color: var(--color-gold); }
.calculator-section .section-header h2 { color: #fff; }
.calculator-section .section-header p { color: rgba(255,255,255,0.7); }
.section-header-light { color: #fff; }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .calc-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

.calc-form-wrap {
  background: var(--color-surface-2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}

.calc-progress-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.calc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.calc-step-indicator {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.calc-step { display: none; }
.calc-step.active { display: block; }

.calc-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.step-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.input-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition);
}
.input-group:focus-within { border-color: var(--color-primary); }
.input-prefix, .input-unit { font-weight: 500; color: var(--color-text-muted); font-size: var(--text-base); }
.calc-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}
.calc-input::placeholder { color: var(--color-text-faint); font-weight: 400; }

.option-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.option-btn {
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}
.option-btn:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.option-btn.selected { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }

.checkbox-group { display: flex; flex-direction: column; gap: var(--space-3); }
.checkbox-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--color-bg);
  transition: border-color var(--transition), background var(--transition);
  font-size: var(--text-sm);
  font-weight: 500;
}
.checkbox-opt:hover { border-color: var(--color-primary); }
.checkbox-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.checkbox-opt input:checked + span { color: var(--color-primary); }
.checkbox-opt:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); }

.calc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Results panel */
.calc-results-wrap {
  position: sticky;
  top: 100px;
}

.results-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}

.results-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  text-align: center;
}

.big-score-gauge {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-6);
}
.big-gauge-svg { width: 200px; margin: 0 auto; }
.big-gauge-fill { transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1); }
.big-score-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-top: -20px;
}
.big-score-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.results-pillars { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.result-pillar {}
.rp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.rp-name { font-size: var(--text-sm); font-weight: 600; }
.rp-val { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); }
.rp-bar-track { height: 8px; background: var(--color-surface-offset); border-radius: var(--radius-full); overflow: hidden; }
.rp-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 1s cubic-bezier(0.4,0,0.2,1); }

.results-insight {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-offset);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.step-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); }
.step-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.step-arrow {
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  flex-shrink: 0;
}
@media (max-width: 767px) { .step-arrow { display: none; } }

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.t-quote {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text-muted);
  font-style: italic;
  flex: 1;
}
.t-author { display: flex; align-items: center; gap: var(--space-3); }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: var(--text-sm); }
.t-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.t-score {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.t-score strong { color: var(--color-success); }

/* ---- PRICING ---- */
.pricing-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-offset);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(27,58,107,0.12);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}
.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}
.price-per { font-size: var(--text-sm); color: var(--color-text-muted); }
.plan-desc { font-size: var(--text-sm); color: var(--color-text-muted); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding-bottom: var(--space-4);
}
.plan-features li { font-size: var(--text-sm); color: var(--color-text-muted); }
.plan-feature-off { opacity: 0.4; }
.plan-footnote { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; margin-top: var(--space-2); }

/* ---- LEAD MAGNET ---- */
.lead-magnet-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-bg);
}

.lead-card {
  background: var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 767px) { .lead-card { grid-template-columns: 1fr; } }

.lead-content .section-eyebrow { color: var(--color-gold); }
.lead-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
.lead-content p {
  font-size: var(--text-base);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.lead-form-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.lead-email-input {
  flex: 1;
  min-width: 220px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition);
}
.lead-email-input::placeholder { color: rgba(255,255,255,0.5); }
.lead-email-input:focus { outline: 2px solid var(--color-gold); background: rgba(255,255,255,0.18); }
.lead-form .btn-primary { background: var(--color-gold); border-color: var(--color-gold); color: #1c1a14; }
.lead-form .btn-primary:hover { background: var(--color-gold-hover); }
.lead-disclaimer { font-size: var(--text-xs); opacity: 0.55; margin-top: var(--space-3); }

.lead-success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-gold);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-4) 0;
}

/* Report mockup */
.lead-visual { flex-shrink: 0; }
.report-mockup {
  width: 180px;
  transform: rotate(3deg);
}
.report-cover {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}
.rc-logo { font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-3); }
.rc-title { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); }
.rc-name { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.rc-score-preview {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  color: #fff;
}
.rcs-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 4px; }
.rcs-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--color-gold); line-height: 1; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-20) 0 var(--space-10);
}
[data-theme="dark"] .site-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-border); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .nav-logo { opacity: 0.9; margin-bottom: var(--space-4); }
.site-footer .logo-text { color: rgba(249,248,244,0.9); }
.site-footer .logo-value { color: var(--color-gold); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: rgba(249,248,244,0.8);
  margin-bottom: var(--space-5);
  font-style: italic;
}
.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(249,248,244,0.4);
  line-height: 1.7;
  max-width: 42ch;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(249,248,244,0.5);
  margin-bottom: var(--space-5);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: rgba(249,248,244,0.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(249,248,244,1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(249,248,244,0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(249,248,244,0.4); }
.footer-bottom a { color: rgba(249,248,244,0.6); }
.pplx-credit {
  font-size: var(--text-xs);
  color: rgba(249,248,244,0.4);
  transition: color var(--transition);
}
.pplx-credit:hover { color: rgba(249,248,244,0.7); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
