/* =========================================================
   STEPWISE — Premium Operator Landing Page
   Design: Dark editorial, Linear/Stripe aesthetic, parallax
   ========================================================= */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #08080e;
  --surface:      #111118;
  --surface-alt:  #18181f;
  --border:       rgba(255,255,255,0.07);
  --border-accent: rgba(245,158,11,0.25);
  --fg:           #e8e4dc;
  --fg-muted:     #6e6b65;
  --accent:       #f59e0b;
  --accent-dim:   rgba(245,158,11,0.10);
  --accent-hover: #fbbf24;
  --success:      #34d399;
  --error:        #f87171;

  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --max-w: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;

  --parallax-rate: 0.4;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  background: rgba(8,8,14,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}
.header-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-accent);
  border-radius: 2rem;
  transition: all 0.2s;
}
.header-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--section-pad) + 3.5rem) 2rem var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* Background gradient noise */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(245,158,11,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(100,60,200,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

/* Float badge for hero */
.hero-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  animation: fadeSlideDown 0.6s ease-out both;
}
.hero-float-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  animation: fadeSlideDown 0.6s ease-out 0.1s both;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2.5rem;
  animation: fadeSlideDown 0.6s ease-out 0.2s both;
}

/* Email capture form */
.hero-form-wrap {
  animation: fadeSlideDown 0.6s ease-out 0.3s both;
}
.hero-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin-bottom: 0.85rem;
}
.hero-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-form input[type="email"]::placeholder { color: var(--fg-muted); }
.hero-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.hero-form button {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.hero-form button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-form button:active { transform: translateY(0); }
.hero-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hero-form-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.hero-form-note span { color: var(--fg); }

/* Form states */
.hero-form-wrap .form-success {
  display: none;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--success);
  align-items: center;
  gap: 0.6rem;
  max-width: 440px;
  animation: fadeSlideDown 0.4s ease-out;
}
.hero-form-wrap .form-error {
  display: none;
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.5rem;
  max-width: 440px;
}
.hero-form-wrap .form-loading button { opacity: 0.7; cursor: wait; }

/* Hero visual — parallax container */
.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideDown 0.7s ease-out 0.25s both;
}
.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  width: 100%;
  max-width: 520px;
}
.hero-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Floating stats overlay */
.hero-stats {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeSlideDown 0.6s ease-out 0.5s both;
}
.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-stat-card .stat-val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hero-stat-card .stat-lbl {
  font-size: 0.7rem;
  color: var(--fg-muted);
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────
   PROBLEM
   ───────────────────────────────────────────────────────────── */
.problem {
  padding: var(--section-pad) 2rem;
  position: relative;
  overflow: hidden;
}
.problem::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.problem-header {
  max-width: 52ch;
  margin-bottom: 4rem;
}
.problem-header .section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.problem-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.18;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.problem-header h2 em {
  font-style: normal;
  color: var(--accent);
}

/* Identity cards — parallax staggered */
.problem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
  cursor: default;
}
.problem-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.problem-card .card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.problem-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.problem-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS
   ───────────────────────────────────────────────────────────── */
.how {
  padding: var(--section-pad) 2rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.how::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.how-header {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 4rem;
}
.how-header .section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.how-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.how-header p {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 0.85rem;
  line-height: 1.65;
}

/* 3-step grid */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.how-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.how-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.how-step:hover::before { opacity: 1; }

/* Step number badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Session dialogue preview (on hover) */
.step-dialogue {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
}
.how-step:hover .step-dialogue { display: block; }
.step-dialogue .dialogue-line {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}
.step-dialogue .dialogue-line:last-child { margin-bottom: 0; }
.step-dialogue .mentor { color: var(--accent); font-weight: 500; }
.step-dialogue .mentor::before { content: '→ '; opacity: 0.6; }
.step-dialogue .user { color: var(--fg-muted); }

/* Progress ring */
.progress-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.progress-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.progress-ring svg {
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.3));
}
.progress-ring-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   SOCIAL PROOF
   ───────────────────────────────────────────────────────────── */
.proof {
  padding: var(--section-pad) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.proof-inner {
  max-width: 820px;
  margin: 0 auto;
}
.proof-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.proof-headline em { font-style: normal; color: var(--accent); }
.proof-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Metric pills */
.proof-metrics {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.proof-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.proof-metric strong { color: var(--fg); }

/* B2B CTA */
.proof-b2b {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.55rem 1.1rem;
  transition: all 0.2s;
}
.proof-b2b:hover {
  border-color: var(--border-accent);
  color: var(--fg);
}
.proof-b2b::after {
  content: '→';
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   PRICING
   ───────────────────────────────────────────────────────────── */
.pricing {
  padding: var(--section-pad) 2rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.pricing-header {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 3rem;
}
.pricing-header .section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.pricing-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.tier {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.tier::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  opacity: 0;
  transition: opacity 0.3s;
}
.tier:hover::before { opacity: 1; }
.tier:hover {
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.tier-free { --tier-accent: var(--fg-muted); }
.tier-paid  { --tier-accent: var(--accent); }

.tier-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tier-accent);
  margin-bottom: 0.85rem;
}
.tier-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 0.35rem;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}
.tier-price .amount {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--fg);
  line-height: 1;
}
.tier-price .period {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.tier-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.tier-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.tier-cta {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.tier-paid .tier-cta {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}
.tier-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ─────────────────────────────────────────────────────────────
   MENTORS
   ───────────────────────────────────────────────────────────── */
.mentors {
  padding: var(--section-pad) 2rem;
  position: relative;
  overflow: hidden;
}
.mentors::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.mentors-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.mentors-header {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 3.5rem;
}
.mentors-header .section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.mentors-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.mentor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  user-select: none;
}
.mentor-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.mentor-card.expanded {
  border-color: var(--accent);
}

/* Mentor avatar */
.mentor-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.mentor-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.mentor-archetype {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.mentor-quote {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

/* Expanded dialogue */
.mentor-dialogue {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-top: 0.75rem;
}
.mentor-card.expanded .mentor-dialogue { display: block; }

.dialogue-entry {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
}
.dialogue-entry:last-child { margin-bottom: 0; }
.dialogue-entry.mentor { color: var(--fg); }
.dialogue-entry.mentor::before {
  content: attr(data-name) ': ';
  color: var(--accent);
  font-weight: 600;
}
.dialogue-entry.user { color: var(--fg-muted); padding-left: 0.75rem; }

.expand-hint {
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 0.6rem;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   CLOSING CTA
   ───────────────────────────────────────────────────────────── */
.closing {
  padding: var(--section-pad) 2rem;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.closing-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}
.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

.closing-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.closing-form input[type="email"] {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  width: 260px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.closing-form input[type="email"]::placeholder { color: var(--fg-muted); }
.closing-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.closing-form button {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.closing-form button:hover { background: var(--accent-hover); transform: translateY(-1px); }

.closing-form-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.closing-form .form-success {
  display: none;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--success);
  align-items: center;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto 2rem;
  animation: fadeSlideDown 0.4s ease-out;
}

/* Value pills */
.closing-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.value-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(110,107,101,0.5);
  margin-top: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual-wrap { order: -1; }
  .hero-img-wrapper { max-width: 480px; }
  .hero-stats { position: static; flex-direction: row; animation-delay: 0.4s; margin-top: 1rem; }
  .how-steps { grid-template-columns: 1fr; }
  .pricing-tiers { grid-template-columns: 1fr; max-width: 440px; }
  .mentor-grid { grid-template-columns: 1fr; }
  .closing-form { flex-direction: column; align-items: center; }
  .closing-form input[type="email"] { width: 300px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 3rem; }
  .site-header { padding: 1rem 1.25rem; }
  .header-badge { display: none; }
  .hero-form { flex-direction: column; }
  .hero-form input[type="email"],
  .hero-form button { width: 100%; }
  .hero-stats { flex-direction: column; }
  .problem-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .closing-form input[type="email"] { width: 100%; }
}

@media (max-width: 400px) {
  .pricing-tiers { max-width: 100%; }
}