:root {
  --cream: #FAF8F3;
  --cream-dark: #F0ECE3;
  --white: #FFFFFF;
  --navy: #1A2744;
  --navy-light: #2C3E6B;
  --navy-pale: #E8ECF5;
  --gold: #B8962E;
  --gold-light: #D4AF50;
  --gold-pale: #F5EDD0;
  --grey: #8A8A85;
  --grey-light: #E8E6E0;
  --text-dark: #1A1A16;
  --text-mid: #4A4A44;
  --text-muted: #7A7A74;
  --success: #2D6A4F;
  --success-bg: #D8F3DC;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 20px rgba(26,39,68,0.10);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.25; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 16px; font-weight: 600;
  flex-shrink: 0;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-mid); font-size: 14px; cursor: pointer; transition: color 0.2s; text-decoration: none; }
.nav-link:hover { color: var(--navy); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.nav-cta:hover { background: var(--navy-light); color: var(--white); }

/* ─── LANDING ─────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,150,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(184,150,46,0.15);
  border: 1px solid rgba(184,150,46,0.3);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 760px;
  margin: 0 auto 24px;
  font-weight: 400;
  line-height: 1.18;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.hero-disclaimer {
  padding-top:10px;
  margin-top: 90px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section { padding: 72px 32px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.5vw, 40px); color: var(--navy); margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 540px; line-height: 1.7; font-weight: 300; }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin-top: 56px; }
.step { text-align: center; padding: 32px 24px; position: relative; }
.step::after {
  content: '→';
  position: absolute;
  right: -12px; top: 42px;
  color: var(--grey-light);
  font-size: 20px;
}
.step:last-child::after { display: none; }
.step-num {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 20px;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); font-weight: 300; }

/* WHAT YOU RECEIVE */
.receive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; }
.receive-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.receive-icon { font-size: 28px; margin-bottom: 16px; }
.receive-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.receive-card p { font-size: 14px; color: var(--text-muted); font-weight: 300; }

/* WHY GRID */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.why-card {
  background: var(--cream);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.why-icon { font-size: 28px; margin-bottom: 14px; }
.why-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.why-card p { font-size: 14px; color: var(--text-mid); font-weight: 300; line-height: 1.7; }

/* DISCLAIMER */
.disclaimer-section { background: var(--navy-pale); padding: 40px 32px; }
.disclaimer-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.disclaimer-box h3 { font-size: 12px; color: var(--navy); margin-bottom: 12px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.disclaimer-box p { font-size: 14px; color: var(--text-mid); line-height: 1.8; font-weight: 300; }

/* PRICING */
.pricing-section { background: var(--cream-dark); padding: 72px 32px; }
.pricing-card {
  max-width: 420px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.pricing-title { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.pricing-price { font-size: 52px; color: var(--navy); font-family: 'Playfair Display', serif; font-weight: 400; margin: 20px 0 8px; }
.pricing-price span { font-size: 22px; vertical-align: top; margin-top: 14px; display: inline-block; }
.pricing-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; font-weight: 300; }
.pricing-features { list-style: none; margin-bottom: 32px; text-align: left; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--grey-light); font-size: 14px; color: var(--text-mid); display: flex; align-items: center; gap: 10px; }
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--success); font-weight: 600; }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 40px 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
}
footer .footer-logo { color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 16px; }
footer a { color: rgba(255,255,255,0.4); text-decoration: none; margin: 0 12px; }
footer a:hover { color: rgba(255,255,255,0.7); }

/* ─── AUTH ────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cream);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-header h2 { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--text-muted); font-weight: 300; }
.field-group { margin-bottom: 20px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-mid); margin-bottom: 8px; }
.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.field-input:focus { border-color: var(--navy); background: var(--white); }
.field-input--error { border-color: #c0392b !important; background: #fff8f8 !important; }
.field-error-msg { font-size: 12px; color: #c0392b; margin-top: 5px; }
.validation-banner { background: #fdf2f2; border: 1px solid #f5c6cb; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px; }
.validation-banner-title { font-size: 14px; font-weight: 500; color: #8b1a1a; margin-bottom: 8px; }
.validation-banner ul { margin: 0; padding-left: 18px; }
.validation-banner li { font-size: 13px; color: #8b1a1a; margin-bottom: 4px; cursor: pointer; text-decoration: underline; }
.validation-banner li:hover { color: #c0392b; }
.btn-block {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  margin-top: 8px;
}
.btn-block:hover { background: var(--navy-light); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--navy); text-decoration: none; font-weight: 500; }
.disclaimer-small { font-size: 12px; color: var(--text-muted); background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 20px; line-height: 1.6; font-weight: 300; }

/* ─── EDUCATION ───────────────────────────────────────── */
.edu-hero { background: var(--navy); color: var(--white); padding: 56px 32px 48px; text-align: center; }
.edu-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 400; margin-bottom: 16px; }
.edu-hero p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; font-weight: 300; }
.edu-grid { max-width: 860px; margin: 48px auto; padding: 0 32px; display: flex; flex-direction: column; gap: 16px; }
.edu-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.edu-card-header {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s;
}
.edu-card-header:hover { background: var(--cream); }
.edu-card-header.open { background: var(--navy); color: var(--white); }
.edu-card-header.open .edu-term { color: var(--gold-light); }
.edu-card-header.open .edu-def { color: rgba(255,255,255,0.7); }
.edu-card-header.open .edu-chevron { color: var(--gold-light); transform: rotate(180deg); }
.edu-term { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); }
.edu-def { font-size: 14px; color: var(--text-muted); font-weight: 300; }
.edu-chevron { font-size: 20px; flex-shrink: 0; transition: transform 0.2s; color: var(--grey); }
.edu-body { padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.edu-body.open { max-height: 600px; padding: 24px 28px 28px; }
.edu-body-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-section-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.edu-body p { font-size: 14px; color: var(--text-mid); line-height: 1.75; font-weight: 300; }
.edu-note { grid-column: 1/-1; background: var(--gold-pale); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: var(--text-mid); font-weight: 300; }
.edu-proceed { max-width: 860px; margin: 0 auto 64px; padding: 0 32px; text-align: center; }

/* ─── LEELA ONBOARDING ────────────────────────────────── */
.leela-onboarding {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.leela-onboarding.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}
.leela-onboarding-inner {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.leela-onboarding-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.leela-onboarding-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.leela-onboarding-name { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--white); }
.leela-onboarding-sub { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 300; margin-top: 2px; }
.leela-onboarding-messages {
  padding: 24px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
}
.leela-bubble {
  max-width: 92%;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}
.leela-bubble.leela { background: var(--navy-pale); color: var(--text-dark); border-bottom-left-radius: 4px; align-self: flex-start; }
.leela-bubble.user { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 400; }
.leela-typing {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 16px;
  background: var(--navy-pale);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: 52px;
}
.leela-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.4;
  animation: leelaTyping 1.2s infinite;
}
.leela-typing span:nth-child(2) { animation-delay: 0.2s; }
.leela-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes leelaTyping { 0%,60%,100% { opacity: 0.4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.leela-onboarding-choices {
  padding: 8px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.leela-choice {
  background: var(--cream);
  border: 1px solid var(--grey-light);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, border-color 0.15s;
  font-weight: 400;
}
.leela-choice:hover { background: var(--navy-pale); border-color: var(--navy); }
.leela-onboarding-footer {
  border-top: 1px solid var(--grey-light);
  padding: 12px 24px;
  text-align: center;
}
.leela-onboarding-footer a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.leela-onboarding-footer a:hover { color: var(--navy); }
.leela-onboarding-begin {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  margin-top: 4px;
}
.leela-onboarding-begin:hover { background: var(--gold-light); }

/* ─── BUILDER ─────────────────────────────────────────── */
.builder-layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 64px); }
.builder-sidebar {
  background: var(--white);
  border-right: 1px solid var(--grey-light);
  padding: 32px 24px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.builder-sidebar h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.sidebar-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.sidebar-step:hover { background: var(--cream); }
.sidebar-step.active { background: var(--navy-pale); }
.sidebar-step.done .step-dot { background: var(--success); }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.sidebar-step.active .step-dot { background: var(--navy); color: var(--white); }
.step-label { font-size: 14px; color: var(--text-mid); }
.sidebar-step.active .step-label { color: var(--navy); font-weight: 500; }
.builder-main { padding: 40px 48px; max-width: 720px; }
.builder-section-title { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.builder-section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; font-weight: 300; }
.field-help { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 300; }
.field-example { font-size: 12px; color: var(--gold); margin-top: 4px; }
.field-why { font-size: 12px; color: var(--text-muted); background: var(--cream); padding: 8px 12px; border-radius: var(--radius-sm); margin-top: 6px; font-weight: 300; }
.field-why strong { color: var(--navy); font-weight: 500; }
textarea.field-input { min-height: 100px; resize: vertical; }
.builder-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--grey-light); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--navy);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { background: var(--navy-pale); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.autosave-note { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.autosave-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.party-card { background: var(--cream); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.party-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.party-card-title { font-size: 15px; font-weight: 500; color: var(--navy); }
.btn-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; }
.btn-add {
  background: transparent;
  border: 1px dashed var(--grey);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.btn-add:hover { border-color: var(--navy); color: var(--navy); }
.optional-badge { font-size: 11px; background: var(--cream-dark); color: var(--text-muted); padding: 3px 10px; border-radius: 100px; font-weight: 400; }
.progress-bar-wrap { height: 4px; background: var(--grey-light); border-radius: 2px; margin: 24px 0; }
.progress-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; }
.builder-step-content { display: none; }
.builder-step-content.active { display: block; }

/* ─── PREVIEW ─────────────────────────────────────────── */
.preview-bar { background: var(--navy); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.preview-bar-label { color: rgba(255,255,255,0.7); font-size: 14px; }
.preview-bar-label em { color: var(--gold-light); }
.preview-bar-actions { display: flex; gap: 12px; }
.preview-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 40px; max-width: 1200px; margin: 0 auto; }
.preview-doc {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-md);
  position: relative;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
}
.preview-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 36px;
  color: rgba(26,39,68,0.04);
  font-family: 'Playfair Display', serif;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.preview-doc h2 { font-size: 22px; color: var(--navy); text-align: center; margin-bottom: 8px; }
.preview-doc .doc-center { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.preview-doc h3 { font-size: 14px; color: var(--navy); margin: 28px 0 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--grey-light); padding-bottom: 6px; }
.doc-field { margin-bottom: 10px; }
.doc-field-label { font-size: 12px; color: var(--text-muted); }
.doc-field-val { font-size: 14px; color: var(--text-dark); font-weight: 500; }
.preview-sidebar-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.preview-sidebar-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 16px; }
.price-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.price-line.total { font-weight: 600; color: var(--navy); border-top: 1px solid var(--grey-light); padding-top: 10px; margin-top: 4px; }
.btn-gold {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-gold:hover { background: var(--gold-light); color: var(--white); }

/* ─── CHECKOUT ────────────────────────────────────────── */
.checkout-wrap { max-width: 900px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.checkout-title { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.checkout-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; font-weight: 300; }
.checkout-section-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 16px; margin-top: 28px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stripe-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.stripe-badge svg { width: 40px; }
.checkout-summary { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); align-self: start; position: sticky; top: 96px; }
.checkout-summary h3 { font-size: 16px; color: var(--navy); margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; color: var(--navy); border-top: 1px solid var(--grey-light); padding-top: 14px; margin-top: 8px; }
.secure-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; text-align: center; font-weight: 300; }

/* ─── DOWNLOADS ───────────────────────────────────────── */
.downloads-wrap { max-width: 700px; margin: 0 auto; padding: 64px 32px; }
.success-banner { background: var(--success-bg); border: 1px solid rgba(45,106,79,0.2); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.success-icon { font-size: 36px; flex-shrink: 0; }
.success-banner h2 { font-size: 22px; color: var(--success); font-family: 'Playfair Display', serif; margin-bottom: 4px; }
.success-banner p { font-size: 14px; color: var(--text-mid); font-weight: 300; }
.download-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); margin-bottom: 16px; gap: 16px; }
.download-info { display: flex; align-items: center; gap: 16px; }
.download-file-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.pdf-icon { background: #FEE2E2; color: #DC2626; }
.docx-icon { background: #DBEAFE; color: #2563EB; }
.download-name { font-size: 15px; color: var(--navy); font-weight: 500; }
.download-meta { font-size: 13px; color: var(--text-muted); font-weight: 300; }
.btn-download { background: var(--navy); color: var(--white); padding: 10px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; white-space: nowrap; }

/* ─── DASHBOARD ───────────────────────────────────────── */
.dashboard-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 32px; }
.field-prefilled {
  border-color: var(--gold) !important;
  background: var(--gold-pale) !important;
  transition: border-color 0.3s, background 0.3s;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--grey-light);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.dashboard-header h1 { font-size: 32px; color: var(--navy); }
.dashboard-header p { font-size: 15px; color: var(--text-muted); margin-top: 4px; font-weight: 300; }
.trust-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.trust-name { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.trust-meta { font-size: 13px; color: var(--text-muted); font-weight: 300; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; }
.status-generated { background: var(--success-bg); color: var(--success); }
.status-draft { background: var(--gold-pale); color: var(--gold); }
.status-pending { background: var(--navy-pale); color: var(--navy); }
.trust-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-sm { padding: 8px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.locked-modules { margin-top: 48px; }
.locked-modules h2 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.locked-modules p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; font-weight: 300; }
.locked-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.locked-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 20px; opacity: 0.6; position: relative; overflow: hidden; }
.locked-card::after { content: '🔒'; position: absolute; top: 12px; right: 12px; font-size: 14px; opacity: 0.5; }
.locked-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.locked-card p { font-size: 13px; color: var(--text-muted); font-weight: 300; }
.coming-tag { font-size: 11px; color: var(--gold); font-weight: 500; margin-top: 8px; }

/* ─── LEELA AI CHAT ───────────────────────────────────── */
.lumina-float { position: fixed; bottom: 28px; right: 28px; z-index: 200; }
.lumina-btn { width: 56px; height: 56px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 24px rgba(26,39,68,0.3); border: none; transition: transform 0.2s, background 0.2s; }
.lumina-btn:hover { transform: scale(1.05); background: var(--navy-light); }
.lumina-btn span { font-size: 22px; }
.lumina-panel { position: absolute; bottom: 68px; right: 0; width: 340px; background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; flex-direction: column; }
.lumina-panel.open { display: flex; }
.lumina-header { background: var(--navy); padding: 14px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lumina-avatar { width: 32px; height: 32px; background: var(--gold-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lumina-name { font-family: 'Playfair Display', serif; color: var(--white); font-size: 15px; }
.lumina-sub { font-size: 12px; color: rgba(255,255,255,0.5); }
.lumina-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; margin-left: auto; font-size: 18px; padding: 0 2px; }
/* message thread */
.leela-messages { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 8px; max-height: 320px; min-height: 120px; }
.leela-bubble { font-size: 13px; line-height: 1.6; padding: 10px 13px; border-radius: 14px; max-width: 88%; font-weight: 300; white-space: pre-wrap; word-break: break-word; }
.leela-bubble--assistant { background: var(--cream); color: var(--text-mid); border-bottom-left-radius: 4px; align-self: flex-start; }
.leela-bubble--user { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
/* typing indicator */
.leela-typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.leela-typing span { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: leelaDot 1.2s infinite; }
.leela-typing span:nth-child(2) { animation-delay: 0.2s; }
.leela-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes leelaDot { 0%,80%,100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
/* quick suggestion buttons */
.leela-suggestions { display: flex; flex-direction: column; gap: 6px; padding: 0 0 6px; }
.leela-suggestion-btn { text-align: left; background: var(--navy-pale); border: none; border-radius: var(--radius-md); padding: 9px 12px; font-size: 12px; color: var(--navy); cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 400; transition: background 0.15s; }
.leela-suggestion-btn:hover { background: var(--cream-dark); }
/* disclaimer */
.leela-disclaimer { font-size: 11px; color: var(--text-muted); padding: 6px 14px 10px; font-weight: 300; font-style: italic; flex-shrink: 0; border-top: 1px solid var(--grey-light); }
/* input row */
.leela-input-row { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--grey-light); flex-shrink: 0; }
.leela-input { flex: 1; border: 1px solid var(--grey-light); border-radius: 20px; padding: 8px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--navy); outline: none; background: var(--cream); }
.leela-input:focus { border-color: var(--navy-light); background: var(--white); }
.leela-input::placeholder { color: var(--text-muted); font-weight: 300; }
.leela-send { width: 34px; height: 34px; background: var(--navy); color: var(--white); border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; }
.leela-send:hover { background: var(--navy-light); }
.leela-send:disabled { opacity: 0.4; cursor: default; }

/* ─── AUTH STATES ─────────────────────────────────────── */
.nav-greeting { color: var(--text-muted); cursor: default; pointer-events: none; }
.nav-cta--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy-light);
  font-family: 'DM Sans', sans-serif;
}
.nav-cta--ghost:hover { background: var(--navy-pale); color: var(--navy); }
.alert-error {
  background: #FEE2E2;
  border: 1px solid rgba(220,38,38,0.2);
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}
.alert-error:not(:empty) { display: block; }
.btn-block:disabled,
.btn-navy:disabled,
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── UTILITY ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.divider { height: 1px; background: var(--grey-light); margin: 32px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.field-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238A8A85'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* NAV */
  nav { padding: 0 16px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    padding: 8px 16px 16px;
    gap: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 13px 4px; font-size: 15px; border-bottom: 1px solid var(--grey-light); display: block; width: 100%; }
  .nav-cta { width: 100%; text-align: center; margin-top: 10px; padding: 12px; display: block; }
  .nav-hamburger { display: flex; }

  /* DASHBOARD */
  .dashboard-wrap { padding: 32px 16px; }
  .dashboard-header { flex-wrap: wrap; }
  .trust-card { grid-template-columns: 1fr; }
  .trust-card > div:last-child { text-align: left !important; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--grey-light); }

  /* BUILDER / PREVIEW / CHECKOUT */
  .builder-layout { grid-template-columns: 1fr; }
  .builder-sidebar { display: none; }
  .builder-main { padding: 24px 20px; }
  .preview-bar { padding: 12px 16px; }
  .preview-layout { grid-template-columns: 1fr; padding: 20px 16px; }
  .preview-doc { padding: 32px 24px; }
  .checkout-wrap { grid-template-columns: 1fr; padding: 32px 16px; }

  /* EDUCATION */
  .edu-body-inner { grid-template-columns: 1fr; }
  .edu-grid { padding: 0 16px; }

  /* DOWNLOADS */
  .downloads-wrap { padding: 40px 16px; }
  .download-card { flex-direction: column; align-items: flex-start; }

  /* LEELA */
  .lumina-float { right: 16px; bottom: 16px; }
  .lumina-panel { width: min(340px, calc(100vw - 32px)); right: 0; }
  .leela-messages { max-height: 260px; }

  /* GENERAL */
  .section { padding: 48px 20px; }
  .auth-card { padding: 36px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}
