/* ============================================================
   MortuPro — Dual-Theme Stylesheet
   mortupro.com → data-theme="light"
   mortu.pro    → data-theme="warm"
   Zero hardcoded colors. 100% CSS variables.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* ── Theme Tokens ── */
:root {
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --max-width: 1200px;
  --nav-height: 72px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-alt2: #f1f3f5;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37,99,235,0.08);
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --nav-bg: rgba(255,255,255,0.92);
  --nav-border: rgba(0,0,0,0.06);
  --headline-font: 'Plus Jakarta Sans', sans-serif;
  --body-font: 'Inter', sans-serif;
  --logo-mortu: #0a0a0a;
  --logo-pro: #2563eb;
  --grain-opacity: 0;
  --hero-overlay: none;
  --stat-border: #e5e7eb;
  --input-bg: #f8f9fa;
  --input-border: #d1d5db;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --quiz-tile-bg: #ffffff;
  --quiz-tile-border: #e5e7eb;
  --quiz-tile-active: #2563eb;
  --chat-bg: #ffffff;
  --chat-shadow: 0 8px 40px rgba(0,0,0,0.14);
  --footer-bg: #0a0a0a;
  --footer-text: #f5f0eb;
  --pricing-highlight: rgba(37,99,235,0.05);
  --pricing-highlight-border: #2563eb;
  --badge-bg: #dbeafe;
  --badge-text: #1d4ed8;
}

[data-theme="warm"] {
  --bg: #faf7f2;
  --bg-alt: #f0ebe3;
  --bg-alt2: #e8e0d5;
  --text: #2c2420;
  --text-muted: #8a7060;
  --text-faint: #b8a090;
  --accent: #4a7c59;
  --accent-hover: #3a6849;
  --accent-subtle: rgba(74,124,89,0.08);
  --card-bg: #fdfaf6;
  --card-border: #e0d6ca;
  --nav-bg: rgba(250,247,242,0.92);
  --nav-border: rgba(44,36,32,0.08);
  --headline-font: 'Playfair Display', serif;
  --body-font: 'Lato', sans-serif;
  --logo-mortu: #2c2420;
  --logo-pro: #4a7c59;
  --grain-opacity: 0.04;
  --hero-overlay: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,92,56,0.05) 0%, transparent 70%);
  --stat-border: #e0d6ca;
  --input-bg: #fdfaf6;
  --input-border: #e0d6ca;
  --shadow-card: 0 1px 3px rgba(44,36,32,0.06), 0 4px 16px rgba(44,36,32,0.04);
  --shadow-card-hover: 0 8px 32px rgba(184,92,56,0.12), 0 2px 8px rgba(44,36,32,0.08);
  --quiz-tile-bg: #fdfaf6;
  --quiz-tile-border: #e0d6ca;
  --quiz-tile-active: #4a7c59;
  --chat-bg: #fdfaf6;
  --chat-shadow: 0 8px 40px rgba(44,36,32,0.12);
  --footer-bg: #2c2420;
  --footer-text: #c8b4a0;
  --pricing-highlight: rgba(184,92,56,0.05);
  --pricing-highlight-border: #4a7c59;
  --badge-bg: rgba(184,92,56,0.10);
  --badge-text: #3a6849;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Warm theme grain texture ── */
[data-theme="warm"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1' fill='%23b48c64'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--headline-font);
  color: var(--text);
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

[data-theme="warm"] h1 { font-weight: 600; letter-spacing: -0.01em; }
[data-theme="warm"] h2 { font-weight: 500; }
[data-theme="warm"] h3 { font-family: var(--body-font); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
[data-theme="warm"] .btn-primary { color: #ffffff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #fff;
}
[data-theme="warm"] .btn-primary:hover { color: #ffffff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text-muted);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: all var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--headline-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--logo-mortu);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
[data-theme="warm"] .nav-logo { font-size: 1.6rem; font-weight: 600; }
.nav-logo .pro { color: var(--logo-pro); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  font-family: var(--body-font);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--body-font);
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

/* Light theme: subtle grid */
[data-theme="light"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
}

/* Warm theme: soft terracotta glow */
[data-theme="warm"] .hero::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(184,92,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid;
  border-color: var(--accent);
  border-opacity: 0.2;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: var(--body-font);
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}
[data-theme="warm"] .hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-family: var(--body-font);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ── Quiz ── */
.quiz-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 48px 24px;
}
.quiz-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.quiz-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
  font-family: var(--body-font);
}
.quiz-tiles {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: var(--quiz-tile-bg);
  border: 1.5px solid var(--quiz-tile-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.quiz-tile:hover {
  border-color: var(--quiz-tile-active);
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.quiz-tile.active {
  border-color: var(--quiz-tile-active);
  background: var(--accent-subtle);
  box-shadow: var(--shadow-card-hover);
}
.quiz-tile .emoji { font-size: 2rem; line-height: 1; }
.quiz-tile .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--body-font);
}
.quiz-tile.active .label { color: var(--accent); }

/* ── Stats Bar ── */
.stats-bar {
  padding: 40px 24px;
  border-bottom: 1px solid var(--stat-border);
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  border-right: 1px solid var(--stat-border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--headline-font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
[data-theme="warm"] .stat-value { font-weight: 600; }
.stat-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--body-font);
}

/* ── Section ── */
.section {
  padding: 100px 24px;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p { font-size: 1.05rem; margin-top: 16px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--body-font);
}

/* ── Feature Grid ── */
.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border: 1px solid;
  border-color: rgba(0,0,0,0.06);
}
[data-theme="warm"] .feature-icon {
  border-color: rgba(184,92,56,0.20);
}
.feature-card h3 { margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 0.93rem; line-height: 1.65; }

/* ── How It Works ── */
.steps-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent));
  opacity: 0.3;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--headline-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; }

/* ── Pricing ── */
.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.pricing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--pricing-highlight-border);
  background: var(--pricing-highlight);
  transform: scale(1.03);
  box-shadow: var(--shadow-card-hover);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-2px); }
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-family: var(--body-font);
}
.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--body-font);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-price .amount {
  font-family: var(--headline-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
[data-theme="warm"] .pricing-price .amount { font-weight: 500; }
.pricing-price .currency {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  align-self: flex-start;
  padding-top: 8px;
  font-family: var(--body-font);
}
.pricing-price .period {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--body-font);
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  font-family: var(--body-font);
}
.pricing-features {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--body-font);
}
.pricing-feature .check {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── Trust Section ── */
.trust-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.trust-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.trust-quote {
  font-family: var(--headline-font);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 32px;
}
[data-theme="warm"] .trust-quote { font-style: italic; font-weight: 400; }
.trust-byline {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-family: var(--body-font);
  font-weight: 500;
}
.trust-byline strong { color: var(--accent); }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--body-font);
}
.trust-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
[data-theme="warm"] .cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(184,92,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { font-size: 1.05rem; margin-bottom: 36px; }
.cta-banner .hero-cta { margin-bottom: 0; }

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  padding: 60px 24px 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-brand .nav-logo {
  color: #f5f0eb;
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand .nav-logo .pro { color: var(--logo-pro); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(245,240,235,0.4);
  max-width: 260px;
  line-height: 1.6;
  font-family: var(--body-font);
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(245,240,235,0.6);
  font-size: 0.875rem;
  font-family: var(--body-font);
  transition: color var(--transition);
}
.footer-col a:hover { color: #f5f0eb; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(245,240,235,0.3);
  font-family: var(--body-font);
}
.footer-powered {
  font-size: 0.8rem;
  color: rgba(245,240,235,0.3);
  font-family: var(--body-font);
}
.footer-powered a { color: rgba(245,240,235,0.5); }
.footer-powered a:hover { color: rgba(245,240,235,0.8); }

/* ── Chat Bubble ── */
.chat-bubble-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}
.chat-bubble-trigger.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chat-bubble-trigger:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.chat-bubble-trigger.open { font-size: 1.1rem; }
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 340px;
  max-height: 500px;
  background: var(--chat-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--chat-shadow);
  z-index: 900;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-header-info .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--body-font);
}
.chat-header-info .status {
  font-size: 0.72rem;
  color: #22c55e;
  font-family: var(--body-font);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-msg {
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgIn 0.2s ease;
  font-family: var(--body-font);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  max-width: 90%;
  color: var(--text);
  align-self: flex-start;
}
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}
.chat-option {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--body-font);
  font-weight: 500;
}
.chat-option:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}
.chat-demo-form {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--body-font);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-faint); }
.chat-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body-font);
  transition: background var(--transition);
}
[data-theme="warm"] .chat-submit { color: #ffffff; }
.chat-submit:hover { background: var(--accent-hover); }

/* ── Scroll Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="warm"] .fade-up {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ── Page Header (inner pages) ── */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}
[data-theme="warm"] .page-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,92,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; }

/* ── About page ── */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.about-stat { margin-bottom: 32px; }
.about-stat .num {
  font-family: var(--headline-font);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
[data-theme="warm"] .about-stat .num { font-weight: 500; }
.about-stat .desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--body-font);
}

/* ── 404 ── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.not-found-code {
  font-family: var(--headline-font);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 0.85;
  margin-bottom: 24px;
  opacity: 0.15;
}
.not-found-inner h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.not-found-inner p { max-width: 400px; margin: 0 auto 36px; }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--body-font);
}
.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--body-font);
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-faint); }
.form-select { appearance: none; cursor: pointer; }

/* ── Demo Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal h3 { margin-bottom: 8px; }
.modal > p { font-size: 0.9rem; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  [data-theme="warm"] .hero h1 { font-size: clamp(2.4rem, 9vw, 4rem); }

  .hero-cta { flex-direction: column; align-items: center; }
  .stats-inner { flex-direction: column; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--stat-border); width: 100%; padding: 20px 0; }
  .stat-item:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 40px; }
  .chat-window { width: calc(100vw - 56px); right: 16px; bottom: 88px; }
  .chat-bubble-trigger { bottom: 20px; right: 16px; }
  .quiz-tiles { gap: 12px; }
  .quiz-tile { min-width: 120px; padding: 18px 20px; }
}

@media (max-width: 480px) {
  .quiz-tiles { flex-direction: column; align-items: center; }
  .quiz-tile { width: 100%; max-width: 280px; flex-direction: row; justify-content: center; }
}
