@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --dp-900: #1a0533;
  --dp-700: #2d0a5c;
  --dp-500: #5a1f9e;
  --dp-300: #8b5cf6;
  --dp-100: #e0d5f7;
  --gold-800: #7a5800;
  --gold-600: #c8960a;
  --gold-400: #f0c929;
  --gold-200: #fce68a;
  --gold-100: #fef3c7;
  --teal-700: #0d5e63;
  --teal-500: #14a3ad;
  --teal-300: #5ed4de;
  --teal-100: #d1f2f5;
  --n-900: #0f0f11;
  --n-700: #404045;
  --n-500: #7c7c84;
  --n-300: #c4c4cb;
  --n-100: #f2f2f4;
  --white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 5, 51, 0.08);
  --shadow-md: 0 2px 8px rgba(26, 5, 51, 0.08);
  --shadow-lg: 0 4px 16px rgba(26, 5, 51, 0.12);
  --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* offset anchor jumps so the sticky navbar doesn't cover the section top */
section[id] { scroll-margin-top: 80px; }
body { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--n-900); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--dp-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dp-700); }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Accessibility: visually-hidden utility + skip-to-content link */
.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; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--dp-900); color: var(--white); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); }
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); color: var(--white); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--dp-700); }
h1 { font-size: 49px; }
h2 { font-size: 39px; margin-bottom: var(--space-lg); }
h3 { font-size: 31px; margin-bottom: var(--space-md); }
h4 { font-family: var(--font-body); font-size: 25px; font-weight: 600; line-height: 1.35; color: var(--dp-700); }
p { margin-bottom: var(--space-md); }

.section-label { font-family: var(--font-body); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dp-500); margin-bottom: var(--space-sm); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,0.06); padding: var(--space-sm) 0; position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar .logo { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--dp-900); display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.navbar .logo-dot { display: none; }
.navbar .logo-img { width: auto; height: 44px; display: block; }
.navbar .nav-links { display: flex; list-style: none; gap: var(--space-xl); align-items: center; }
.navbar .nav-links a { color: var(--n-700); font-weight: 500; font-size: 15px; transition: color var(--transition); }
.navbar .nav-links a:hover { color: var(--dp-500); }
.navbar .nav-cta { background: var(--gold-400); color: var(--dp-900) !important; padding: 10px 20px; border-radius: 10px; font-weight: 600 !important; font-size: 14px !important; }
.navbar .nav-cta:hover { background: var(--gold-600); color: var(--white) !important; }
.navbar .nav-login { color: var(--n-700) !important; font-weight: 500; font-size: 14px; padding: 6px 14px; border: 1px solid var(--n-300); border-radius: 8px; }
.navbar .nav-login:hover { border-color: var(--dp-500); color: var(--dp-500) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dp-900); padding: var(--space-sm); }

/* Hero section - full bleed background */
section.hero {
  position: relative;
  height: 738px;
  min-height: 738px;
  overflow: hidden;
  background-color: rgb(26, 15, 46);
}
section.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.94  0 0 0 0 0.78  0 0 0 0.03 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}
.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  display: block;
}
.hero-image-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgb(26, 15, 46) 0%, rgba(26, 15, 46, 0.92) 5%, rgba(26, 15, 46, 0.8) 32%, rgba(26, 15, 46, 0.55) 55%, rgba(26, 15, 46, 0.2) 78%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 15, 46, 0.45) 0%, rgba(0, 0, 0, 0) 35%);
  pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(26,15,46,0.95) 0%, rgba(26,15,46,0.85) 30%, rgba(26,15,46,0.5) 60%, rgba(26,15,46,0.18) 100%),
    linear-gradient(to top, rgba(26,15,46,0.6) 0%, rgba(0,0,0,0) 42%);
}
/* The Journey — value-ladder tease */
.journey { position: relative; overflow: hidden; }
.journey-bg { position: absolute; inset: 0; background: #1A0F2E url('/images/editorial/legacy-oak.jpg') center/cover no-repeat; opacity: 0.45; }
.journey-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,15,46,0.82), rgba(26,15,46,0.72)); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); max-width: 980px; margin: var(--space-2xl) auto 0; }
.rung { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,169,81,0.25); border-radius: var(--radius-md); padding: var(--space-xl); text-align: left; }
.rung-num { font-family: var(--font-heading); font-size: 40px; font-weight: 900; color: var(--gold-400); display: block; opacity: 0.55; line-height: 1; }
.rung h3 { color: var(--white); font-size: 22px; margin: var(--space-xs) 0 var(--space-sm); }
.rung p { color: var(--dp-100); font-size: 15px; margin-bottom: var(--space-md); }
.rung-link { color: var(--gold-400); font-weight: 600; font-size: 15px; }
.rung-capstone { background: rgba(200,169,81,0.12); border-color: var(--gold-400); box-shadow: 0 0 40px rgba(200,169,81,0.14); }
.rung-capstone h3 { color: var(--gold-200); }
@media (max-width: 768px) { .ladder { grid-template-columns: 1fr; } }
.hero-glow {
  position: absolute;
  top: 185px;
  left: 64px;
  width: 520px;
  height: 420px;
  background: radial-gradient(rgba(200, 169, 81, 0.09) 0%, rgba(200, 169, 81, 0.03) 45%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  padding: 130px 40px 96px;
  margin: 0 auto;
}
.hero-text {
  position: static;
  width: 896px;
  max-width: 896px;
  color: var(--white);
}
.hero-eyebrow {
  display: block;
  font-size: 12px;
  color: rgba(200, 169, 81, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: 59px;
  font-weight: 700;
  color: rgb(248, 245, 238);
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(248, 245, 238, 0.78);
  margin: 0 0 32px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-description {
  font-size: 17px;
  color: rgba(248, 245, 238, 0.92);
  text-shadow: 0 1px 8px rgba(26, 5, 51, 0.65);
  font-weight: 400;
  margin: 0 0 28px;
  max-width: 560px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
/* CTA gold unified to the brand token (was an off-token #C8A951). */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-400);
  color: var(--dp-900);
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-600);
  color: var(--white);
}
.btn-gold svg {
  flex-shrink: 0;
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgb(248, 245, 238);
  border: 1px solid rgba(248, 245, 238, 0.35);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms ease;
}
.btn-hero-outline:hover {
  border-color: rgba(248, 245, 238, 0.7);
  color: rgb(248, 245, 238);
}
.hero-scriptline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15.68px;
  color: rgba(200, 169, 81, 0.78);
  margin: 0 0 4px;
}
.hero-scriptref {
  font-size: 12px;
  color: rgba(248, 245, 238, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.hero-actions { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-body); font-weight: 600; font-size: 16px; padding: 12px 28px; border-radius: var(--radius-md); border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--gold-400); color: var(--dp-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
/* Default: legible on LIGHT backgrounds (dark text). White-text variant is scoped
   to genuinely dark containers below so the button is never invisible. */
.btn-secondary { background: transparent; color: var(--dp-500); border: 2px solid var(--dp-500); }
.btn-secondary:hover { background: var(--dp-500); color: var(--white); }
/* Dark contexts (hero image, solid dp-900 page headers, dark sections) → white text */
.hero .btn-secondary,
.page-header .btn-secondary,
.section-dark .btn-secondary { color: var(--white); border-color: var(--dp-100); }
.hero .btn-secondary:hover,
.page-header .btn-secondary:hover,
.section-dark .btn-secondary:hover { background: transparent; border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline { background: transparent; color: var(--dp-500); border: 2px solid var(--dp-500); }
.btn-outline:hover { background: var(--dp-500); color: var(--white); }
.btn-accent { background: var(--teal-500); color: var(--white); }
.btn-accent:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 36px; font-size: 18px; }

.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--n-100); }
.section-purple { background: var(--dp-100); }
.section-dark { background: var(--dp-900); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark .section-label, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--dp-100); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-2xl); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-xl); box-shadow: var(--shadow-md); border-top: 4px solid var(--dp-100); transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--dp-500); }
.card-icon { width: 48px; height: 48px; color: var(--dp-500); margin-bottom: var(--space-md); }
.card h3 { font-size: 22px; margin-bottom: var(--space-sm); }
.card p { color: var(--n-700); font-size: 15px; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); font-weight: 600; color: var(--dp-500); }
.card .card-link:hover { color: var(--dp-700); gap: var(--space-sm); }

/* Voices / social proof — testimonial figures. Reuses card surface; adds a
   quote mark and figcaption attribution. Semantic <figure>/<blockquote>. */
.voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); max-width: 960px; margin: 0 auto; }
.voice-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-md); padding: var(--space-xl); box-shadow: var(--shadow-md); border-top: 4px solid var(--gold-400); margin: 0; }
.voice-card::before { content: "\201C"; font-family: var(--font-heading); font-size: 56px; line-height: 1; color: var(--gold-400); display: block; margin-bottom: var(--space-xs); }
.voice-card blockquote { margin: 0 0 var(--space-md); padding: 0; border: 0; font-size: 17px; line-height: 1.55; color: var(--n-900); font-style: italic; }
.voice-card figcaption { margin-top: auto; font-size: 14px; color: var(--n-700); font-weight: 600; }
.voice-card figcaption .voice-role { display: block; font-weight: 400; color: var(--n-700); }
.voices-note { text-align: center; max-width: 640px; margin: var(--space-xl) auto 0; font-size: 14px; color: var(--n-700); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.feature-content .feature-label { font-family: var(--font-body); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-600); margin-bottom: var(--space-sm); }
.feature-content h2 { margin-bottom: var(--space-md); }
.feature-content p { font-size: 17px; color: var(--n-700); }
.feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-top: var(--space-xl); }
.stat { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 39px; font-weight: 700; color: var(--dp-500); display: block; }
.stat-label { font-size: 14px; color: var(--n-700); font-weight: 500; }

.challenge-banner { background: linear-gradient(135deg, var(--dp-900), var(--dp-700)); border-radius: var(--radius-lg); padding: var(--space-2xl); color: var(--white); text-align: center; }
.challenge-banner h2 { color: var(--white); }
.challenge-banner p { color: var(--dp-100); font-size: 18px; }
.challenge-badge { display: inline-flex; align-items: center; gap: var(--space-sm); background: var(--gold-400); color: var(--dp-900); padding: 6px 16px; border-radius: 100px; font-weight: 600; font-size: 14px; margin-bottom: var(--space-md); }

.page-header { background: var(--dp-900); padding: var(--space-3xl) 0 var(--space-2xl); color: var(--white); }
.page-header h1 { color: var(--white); }
.page-header p { margin-bottom: var(--space-lg); }
.breadcrumbs { font-size: 14px; color: var(--dp-100); margin-bottom: var(--space-md); }
.breadcrumbs a { color: var(--dp-100); }
.breadcrumbs a:hover { color: var(--gold-400); }

.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2xl); padding: var(--space-2xl) 0; }
.content-main { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar-card { background: var(--n-100); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.sidebar-card h4 { font-size: 18px; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--dp-100); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: var(--space-sm) 0; border-bottom: 1px solid var(--n-300); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { font-size: 15px; color: var(--n-700); }
.sidebar-card a:hover { color: var(--dp-500); }

.content-area { max-width: 720px; }
.content-area h2 { font-size: 31px; margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.content-area h3 { font-size: 25px; margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.content-area p { font-size: 17px; line-height: 1.8; color: var(--n-700); margin-bottom: var(--space-md); }
.content-area ul, .content-area ol { margin-bottom: var(--space-md); padding-left: var(--space-lg); }
.content-area li { font-size: 17px; line-height: 1.8; color: var(--n-700); margin-bottom: var(--space-sm); }
.content-area blockquote { font-family: var(--font-heading); font-weight: 400; font-style: italic; font-size: 20px; color: var(--dp-700); border-left: 4px solid var(--dp-500); padding: var(--space-md) var(--space-lg); margin: var(--space-xl) 0; background: var(--dp-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.content-area blockquote p { margin-bottom: 0; font-size: 20px; color: var(--dp-700); }

.callout { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); margin: var(--space-xl) 0; border-left: 4px solid; }
.callout-info { background: var(--teal-100); border-color: var(--teal-500); }
.callout-warning { background: var(--gold-100); border-color: var(--gold-400); }
.callout-tip { background: var(--dp-100); border-color: var(--dp-500); }
.callout-primary { background: var(--dp-100); border-color: var(--dp-500); }
.callout p { margin-bottom: 0; font-size: 15px; }
.callout strong { color: var(--n-900); }

.footer { background: var(--dp-900); color: var(--dp-100); padding: var(--space-2xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-brand .logo { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.footer-brand .logo-dot { display: none; }
.footer-brand .logo-img { width: auto; height: 36px; display: inline-block; vertical-align: middle; opacity: 0.95; }
.footer-brand p { font-size: 14px; color: var(--n-500); max-width: 300px; }
.footer h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-md); }
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--space-sm); }
.footer a { font-size: 15px; color: var(--dp-100); }
.footer a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid var(--dp-700); padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--n-500); }
.footer-bottom a { color: var(--n-500); }
.footer-bottom a:hover { color: var(--gold-400); }

.lesson-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-md); border-left: 4px solid var(--dp-500); transition: all var(--transition); margin-bottom: var(--space-lg); }
.lesson-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.lesson-card h3 { font-size: 20px; margin-bottom: var(--space-xs); }
.lesson-card .lesson-meta { font-size: 13px; color: var(--n-700); margin-bottom: var(--space-sm); }
.lesson-card p { font-size: 15px; color: var(--n-700); margin-bottom: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.step-card { text-align: center; padding: var(--space-xl); }
.step-number { font-family: var(--font-heading); font-size: 48px; font-weight: 900; color: var(--gold-400); display: block; margin-bottom: var(--space-md); }
.step-card h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.step-card p { font-size: 15px; color: var(--n-700); }

.email-form { display: flex; gap: var(--space-sm); max-width: 500px; margin: var(--space-lg) auto; }
.email-form input { flex: 1; padding: 14px 18px; border: 2px solid var(--n-300); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 16px; }
.email-form input:focus { outline: none; border-color: var(--dp-500); }
.email-form .btn { flex-shrink: 0; }
.form-note { font-size: 13px; color: var(--n-700); text-align: center; margin-top: var(--space-sm); }

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-lg); }
.pillar-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-xl); box-shadow: var(--shadow-md); border-top: 4px solid var(--dp-500); }
.pillar-card .pillar-icon { width: 40px; height: 40px; color: var(--dp-500); margin-bottom: var(--space-md); }
.pillar-card .pillar-icon img { width: 40px; height: 40px; display: block; }
.pillar-card h3 { font-size: 20px; margin-bottom: var(--space-xs); }
.pillar-card .pillar-count { font-size: 13px; color: var(--dp-500); font-weight: 600; margin-bottom: var(--space-sm); }
.pillar-card p { font-size: 15px; color: var(--n-700); }

.tier-card { background: var(--white); border: 2px solid var(--n-300); border-radius: var(--radius-md); padding: var(--space-xl); text-align: center; }
.tier-card.featured { border-color: var(--gold-400); box-shadow: var(--shadow-lg); }
.tier-card h3 { font-size: 22px; margin-bottom: var(--space-sm); }
.tier-card .tier-price { font-family: var(--font-heading); font-size: 39px; font-weight: 700; color: var(--dp-700); margin-bottom: var(--space-md); }
.tier-card ul { list-style: none; text-align: left; margin-bottom: var(--space-lg); }
.tier-card li { padding: var(--space-sm) 0; border-bottom: 1px solid var(--n-300); font-size: 15px; color: var(--n-700); display: flex; align-items: center; gap: var(--space-sm); }
.tier-card li:last-child { border-bottom: none; }
.tier-card .btn { width: 100%; justify-content: center; }

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

.about-section { max-width: 800px; margin: 0 auto; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  section.hero { height: 520px; min-height: 520px; }
  .hero-inner { padding: 80px 24px 48px; }
  .hero-text { width: 100%; max-width: 100%; }
  .hero-headline { font-size: 36px; }
  .hero-sub { max-width: 100%; font-size: 15px; }
  .hero-glow { display: none; }
  .navbar .nav-links { display: none; }
  .menu-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  /* stat rows inline-override to 4 cols on desktop; force 2-up on phones so
     figures like "1 in 4" don't wrap/collide (!important beats the inline style) */
  .feature-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  section.hero { height: 420px; min-height: 420px; }
  .hero-inner { padding: 60px 16px 32px; }
  .hero-headline { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-ctas { flex-direction: column; }
  .btn-gold, .btn-hero-outline { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* =============================================================
   Capture surfaces — sticky capture bar + exit-intent modal
   WP #213 (2026-07-14, Builder). Additive block; markup is
   injected by /js/site.js and feeds the existing Kit list
   (form 9633176 -> /confirm/). No layout shift: both are fixed.
   QA: PASS — 2026-07-14 — Builder
   ============================================================= */

/* --- Sticky capture bar (fixed to bottom, non-blocking, dismissible) --- */
.em-capbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--dp-700); color: var(--white);
  border-top: 2px solid var(--gold-400);
  box-shadow: 0 -4px 16px rgba(26, 5, 51, 0.18);
  transform: translateY(100%);
  transition: transform 260ms ease;
}
.em-capbar[data-open="true"] { transform: translateY(0); }
.em-capbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
}
.em-capbar-copy { flex: 1 1 220px; min-width: 190px; }
.em-capbar-copy strong { color: var(--gold-200); font-family: var(--font-heading); font-size: 18px; display: block; line-height: 1.2; }
.em-capbar-copy span { color: var(--dp-100); font-size: 14px; }
.em-capbar form { display: flex; gap: var(--space-sm); flex: 2 1 360px; flex-wrap: wrap; align-items: center; margin: 0; }
.em-capbar input[type="email"] {
  flex: 1 1 190px; min-width: 150px;
  padding: 10px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--n-300); border-radius: var(--radius-md);
  color: var(--n-900); background: var(--white);
}
.em-capbar .btn { padding: 10px 22px; font-size: 15px; white-space: nowrap; }
.em-capbar-close {
  background: none; border: none; cursor: pointer;
  color: var(--dp-100); font-size: 24px; line-height: 1;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); flex: 0 0 auto;
}
.em-capbar-close:hover { color: var(--white); }

/* --- Exit-intent modal --- */
.em-exit-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(26, 5, 51, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.em-exit-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.em-exit-dialog {
  background: var(--white); color: var(--n-900);
  max-width: 460px; width: 100%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-400);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  position: relative;
  transform: translateY(12px); transition: transform 220ms ease;
}
.em-exit-overlay[data-open="true"] .em-exit-dialog { transform: translateY(0); }
.em-exit-dialog h2 { font-size: 28px; margin-bottom: var(--space-sm); }
.em-exit-dialog p { color: var(--n-700); font-size: 15px; }
.em-exit-dialog form { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.em-exit-dialog input {
  padding: 13px 15px; font-size: 16px; font-family: var(--font-body);
  border: 1px solid var(--n-300); border-radius: var(--radius-md); width: 100%;
}
.em-exit-dialog .btn { width: 100%; justify-content: center; }
.em-exit-note { font-size: 13px; color: var(--n-500); text-align: center; margin-top: var(--space-sm); margin-bottom: 0; }
.em-exit-close {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  background: none; border: none; cursor: pointer;
  color: var(--n-500); font-size: 26px; line-height: 1;
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
}
.em-exit-close:hover { color: var(--n-900); }

@media (max-width: 640px) {
  .em-capbar-inner { padding: var(--space-sm) var(--space-md); }
  .em-capbar-copy strong { font-size: 16px; }
}

/* Respect reduced-motion: drop all slide/fade transitions on the surfaces */
@media (prefers-reduced-motion: reduce) {
  .em-capbar, .em-exit-overlay, .em-exit-dialog { transition: none; }
}

/* WCAG contrast — verified 2026-07-24 (supersedes the Sprint-4 audit's figures).
   Measured, not assumed: --n-500 #7c7c84 on white is 4.14:1, which FAILS AA for normal text
   (needs 4.5). Fixed by moving the three light-background uses to --n-700 #404045 = 10.31:1.
   DELIBERATELY UNCHANGED — the Sprint-4 audit measured these against white, but they all sit on
   dark backgrounds and pass comfortably: --dp-100 on --dp-900 = 13.50:1 (.breadcrumbs inside
   .page-header, .rung p, .challenge-banner p, .footer), --gold-200 on --dp-900 = 15.11:1
   (.rung-capstone h3), --n-500 on --dp-900 = 4.56:1 (.footer-brand p, passes). Do not 'fix' these. */
