:root {
  --navy: #0f2240;
  --teal: #08785e;
  --teal-light: #12b08a;
  --gold: #c9963a;
  --gold-light: #f0bb60;
  --cream: #faf8f3;
  --warm-gray: #f2ede4;
  --text: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #8a9ab0;
  --white: #ffffff;
  --shadow: 0 4px 30px rgba(15,34,64,0.10);
  --shadow-lg: 0 12px 60px rgba(15,34,64,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,34,64,0.97);
  backdrop-filter: blur(12px);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  border-bottom: 1px solid rgba(201,150,58,0.2);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 4px; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(201,150,58,0.15);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 9px 20px !important;
}

.nav-cta:hover { background: var(--teal-light) !important; }

/* ─── PAGES ─── */
.page { display: none; padding-top: 68px; min-height: 100vh; }
.page.active { display: block; }

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 40px 80px;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(10,140,110,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201,150,58,0.10) 0%, transparent 60%);
}

.hero-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,150,58,0.15);
  border: 1px solid rgba(201,150,58,0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.70);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.75;
}

.hero p.hero-sub-claim { margin-bottom: 16px; }
.hero-card-note {
  color: rgba(255,255,255,0.68);
  font-size: 14px !important;
  line-height: 1.55 !important;
  max-width: none !important;
  margin: -8px 0 20px !important;
  font-weight: 400 !important;
}


.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(10,140,110,0.4);
}

.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(10,140,110,0.5); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
}

.hero-card h2, .hero-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.debt-calc-row {
  display: flex; flex-direction: column; gap: 16px;
}

.calc-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.calc-field input, .calc-field select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.calc-field input:focus, .calc-field select:focus { border-color: var(--teal-light); }
.calc-field select option { background: var(--navy); color: var(--white); }

.calc-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}
.calc-btn:hover { background: var(--gold-light); }

.calc-result {
  margin-top: 16px;
  background: rgba(10,140,110,0.15);
  border: 1px solid rgba(10,140,110,0.3);
  border-radius: 10px;
  padding: 16px;
  display: none;
}

.calc-result h4 {
  color: var(--teal-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-result p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.calc-result .hero-paths {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.calc-result .hero-paths li {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.calc-result .hero-paths-note {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}


/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--white);
  padding: 50px 40px;
  border-bottom: 1px solid #e8e0d5;
}

.stats-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  text-align: center;
}

.stat-item .number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .number span { color: var(--teal); }
.stat-item .label { font-size: 14px; color: var(--text-mid); font-weight: 400; }

/* ─── SECTIONS ─── */
.section { padding: 80px 40px; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.tag {
  display: inline-block;
  background: rgba(10,140,110,0.10);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(10,140,110,0.2);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-dark .section-header h2 { color: var(--white); }

.section-header p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

.section-dark .section-header p { color: rgba(255,255,255,0.65); }

.container { max-width: 1140px; margin: 0 auto; }

/* ─── SOLUTION CARDS ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--white);
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(10,140,110,0.2); }
.solution-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  background: rgba(10,140,110,0.10);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-stats {
  display: flex; gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0ebe3;
}

.card-stat .val {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.card-stat .lbl {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: gap 0.2s;
  margin-top: 8px;
}

.card-link:hover { gap: 10px; }

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -40px; top: 4px;
  width: 26px; height: 26px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  border: 3px solid var(--cream);
  z-index: 1;
}

.section-alt .timeline-dot { border-color: var(--white); }

.timeline-item h2, .timeline-item h3, .timeline-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

.timeline-badge {
  display: inline-block;
  background: rgba(10,140,110,0.10);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* ─── TRUST STRIP ─── */
.trust-strip {
  background: var(--warm-gray);
  padding: 40px;
  display: flex; align-items: center; justify-content: center; gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
}

.trust-item .icon { font-size: 22px; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 30px;
}

.stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }

.testimonial p {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.author-info .name { font-size: 14px; font-weight: 600; color: var(--white); }
.author-info .detail { font-size: 12px; color: rgba(255,255,255,0.50); }

/* ─── NEWSLETTER / CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #067a5f 100%);
  border-radius: 20px;
  padding: 56px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-banner::after {
  content: '';
  position: absolute; right: 60px; bottom: -100px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-banner-text p { font-size: 16px; color: rgba(255,255,255,0.80); font-weight: 300; }

.cta-banner-form {
  display: flex; gap: 12px; min-width: 380px;
  position: relative; z-index: 1;
}

.cta-banner-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 15px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.cta-banner-form input::placeholder { color: rgba(255,255,255,0.60); }

.cta-banner-form button {
  background: var(--white);
  color: var(--teal);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.cta-banner-form button:hover { background: var(--cream); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 60px 40px 30px;
  color: rgba(255,255,255,0.60);
}

.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .logo span { color: var(--gold); }

.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }

.footer-col h2, .footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.88); text-decoration: underline; text-underline-offset: 2px; }

/* ─── PAGE: SOLUTIONS ─── */
.page-hero {
  background: var(--navy);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(10,140,110,0.20) 0%, transparent 70%);
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.70);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Solution Detail Sections */
.solution-detail {
  padding: 70px 40px;
  border-bottom: 1px solid #e8e0d5;
}

.solution-detail-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start;
}

.solution-detail-grid.reverse { direction: rtl; }
.solution-detail-grid.reverse > * { direction: ltr; }

.solution-detail h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.solution-detail p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(10,140,110,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box {
  background: var(--warm-gray);
  border: 1px solid #e0d8cc;
  border-radius: 16px;
  padding: 28px 32px;
}

.info-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8e0d5;
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-row .key { color: var(--text-mid); font-weight: 400; }
.info-row .val { color: var(--navy); font-weight: 600; }
.info-row .val.green { color: var(--teal); }
.info-row .val.amber { color: var(--gold); }

/* ─── PAGE: BOOK ─── */
.book-hero {
  background: var(--navy);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.book-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(201,150,58,0.15) 0%, transparent 70%);
}

.book-hero-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: center;
  position: relative; z-index: 1;
}

.book-cover {
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2240 60%, #0a3328 100%);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: -8px 8px 40px rgba(0,0,0,0.5), inset 4px 0 8px rgba(255,255,255,0.05);
  text-align: center;
  border: 1px solid rgba(201,150,58,0.3);
  position: relative;
}

.book-cover::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border-radius: 12px 12px 0 0;
}

.book-cover .book-icon { font-size: 48px; margin-bottom: 16px; }
.book-cover h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.book-cover .subtitle { font-size: 13px; color: var(--gold-light); font-weight: 500; letter-spacing: 1px; margin-bottom: 24px; }
.book-cover .pages { font-size: 12px; color: rgba(255,255,255,0.50); }

.book-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.book-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  margin-bottom: 28px;
  font-weight: 300;
}

/* Book Content */
.book-content-wrapper {
  max-width: 1140px; margin: 0 auto; padding: 60px 0;
  display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start;
}

.book-toc {
  position: sticky; top: 90px;
  background: var(--white);
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 24px;
}

.book-toc h4 {
  font-size: 12px; font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e0d5;
}

.toc-item {
  display: block;
  font-size: 13.5px;
  color: var(--text-mid);
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
  margin-bottom: 2px;
}

.toc-item:hover, .toc-item.active { background: rgba(10,140,110,0.08); color: var(--teal); }
.toc-item.active { font-weight: 600; }

.chapter-content { display: none; }
.chapter-content.active { display: block; }

.chapter-header {
  background: var(--white);
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

.chapter-num {
  font-size: 11px; font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}

.chapter-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.chapter-body {
  background: var(--white);
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 36px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
}

.chapter-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

.chapter-body h3:first-child { margin-top: 0; }

.chapter-body p { margin-bottom: 16px; }

.chapter-body ul {
  margin: 0 0 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}

.chapter-body ul li { font-size: 15px; }

.chapter-body .callout {
  background: rgba(10,140,110,0.07);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
}

.chapter-body .callout strong { color: var(--teal); }

.data-table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8e0d5;
  color: var(--text-mid);
}

.data-table tr:hover td { background: var(--warm-gray); }

/* ─── PAGE: TOOLS ─── */
.tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}

.tool-card {
  background: var(--white);
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.tool-card:hover { box-shadow: var(--shadow-lg); }

.tool-card-header {
  background: var(--navy);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 16px;
}

.tool-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.tool-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.tool-card-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  margin-top: 2px;
}

.tool-card-body { padding: 28px; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: 0.5px; }

.form-group input, .form-group select {
  padding: 10px 14px;
  border: 1.5px solid #e0d8cc;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus, .form-group select:focus { border-color: var(--teal); }

.tool-btn {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  margin-top: 6px;
}

.tool-btn:hover { background: var(--teal-light); }

.tool-result {
  margin-top: 16px;
  background: var(--warm-gray);
  border-radius: 10px;
  padding: 16px;
  display: none;
}

.tool-result .res-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #e0d8cc;
}

.tool-result .res-row:last-child { border-bottom: none; }
.tool-result .res-row .key { color: var(--text-mid); }
.tool-result .res-row .val { font-weight: 700; color: var(--navy); }
.tool-result .res-row .val.good { color: var(--teal); }
.tool-result .res-row .val.warn { color: var(--gold); }
.tool-result .res-row .val.bad { color: #e05050; }

/* ─── PAGE: FAQ ─── */
.faq-wrapper { max-width: 820px; margin: 0 auto; }

.faq-category {
  margin-bottom: 48px;
}

.faq-category h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e0d5;
}

.faq-item {
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow); }

.faq-q {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  background: var(--white);
  gap: 20px;
}

.faq-q span {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.faq-toggle {
  width: 28px; height: 28px;
  background: rgba(10,140,110,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.25s;
}

.faq-item.open .faq-toggle { background: var(--teal); color: var(--white); transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  background: var(--warm-gray);
}

.faq-item.open .faq-a { max-height: 600px; }

.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-a-inner ul {
  margin: 10px 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}

/* ─── UTILITY ─── */
.mt-60 { margin-top: 60px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ─── ASSESSMENT GATE MODAL ─── */
#assessmentGate {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,20,40,0.82);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
#assessmentGate.open { display: flex; }

.gate-modal {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  width: 100%; max-width: 560px;
  box-shadow: 0 30px 80px rgba(10,20,40,0.45);
  animation: gateIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes gateIn {
  from { opacity: 0; transform: scale(0.90) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.gate-header {
  background: var(--navy);
  padding: 36px 40px 28px;
  position: relative;
  text-align: center;
}

.gate-header::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}

.gate-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(10,140,110,0.4);
}

.gate-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.gate-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.5;
}

.gate-body { padding: 32px 40px 36px; }

.gate-body .form-intro {
  display: flex; gap: 8px; flex-direction: column;
  margin-bottom: 24px;
}

.gate-benefit {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-mid);
}

.gate-benefit::before {
  content: '✓';
  width: 20px; height: 20px; flex-shrink: 0;
  background: rgba(10,140,110,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--teal);
}

.gate-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}

.gate-field { display: flex; flex-direction: column; gap: 5px; }

.gate-field label {
  font-size: 11px; font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.8px; text-transform: uppercase;
}

.gate-field input, .gate-field select {
  padding: 11px 14px;
  border: 1.5px solid #ddd6cc;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-field input:focus, .gate-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,140,110,0.12);
}

.gate-field.full { grid-column: 1 / -1; }

/* Formspree error spans */
.gate-field [data-fs-error] {
  font-size: 12px; color: #e05050; margin-top: 2px; display: none;
}
.gate-field [data-fs-error]:not(:empty) { display: block; }

/* Form-level error / success messages */
[data-fs-error]:not([data-fs-error=""]):empty { display: none; }
.gate-form-msg {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: none;
}
.gate-form-msg.error { background: #fef2f2; color: #c0392b; border: 1px solid #fca5a5; }

.gate-submit {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none; border-radius: 10px;
  padding: 15px;
  font-size: 16px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gate-submit:hover:not(:disabled) { background: var(--teal-light); transform: translateY(-1px); }
.gate-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.gate-privacy {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* Success state inside modal */
.gate-success {
  display: none;
  padding: 48px 40px;
  text-align: center;
}
.gate-success .success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(10,140,110,0.35);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.gate-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.gate-success p {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.65; margin-bottom: 24px;
}
.gate-success .continue-btn {
  background: var(--teal);
  color: var(--white);
  border: none; border-radius: 10px;
  padding: 15px 36px;
  font-size: 16px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-success .continue-btn:hover { background: var(--teal-light); }

@media (max-width: 900px) {
  .hero-grid, .book-hero-grid, .solution-detail-grid,
  .book-content-wrapper, .footer-grid { grid-template-columns: 1fr; }
  .hero-card { display: block; margin-top: 28px; }
  .solutions-grid, .testimonials-grid, .tools-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; }
  .cta-banner-form { min-width: auto; width: 100%; }
  nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-top: 1px solid #e3e9ef;
    box-shadow: 0 12px 28px rgba(15,34,64,.12);
    padding: 8px 0; margin: 0; list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 14px 20px; border-bottom: 1px solid #f0f4f8; }
  .nav-links .nav-cta { margin: 10px 20px; text-align: center; border-bottom: 0; }
  .section, .solution-detail { padding: 50px 20px; }
  .hero { padding: 60px 20px; }
}

/* debtpivot-fix-v1 applied */
/* debtpivot-fix-v2 applied */
/* debtpivot-fix-v3 applied */
/* debtpivot-fix-v3.1 applied */
/* debtpivot-fix-v4 applied */
/* mobile nav fix: v1 rule order hid the menu button and the dropdown had white text on white */
@media (max-width:900px){nav .nav-toggle{display:block}nav .nav-toggle span{background:#fff}.nav-links{background:var(--navy);border-top-color:rgba(255,255,255,.08)}.nav-links a{color:rgba(255,255,255,.88);border-bottom-color:rgba(255,255,255,.08)}.nav-links a:hover,.nav-links a.active{background:rgba(201,150,58,.15)}}
/* ── v3 components (added 2026-11-01) ───────────────────────── */
.stats-source{max-width:1140px;margin:26px auto 0;text-align:center;font-size:12.5px;line-height:1.6;color:var(--text-mid)}
.stats-source a{color:var(--teal)}
.triage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.triage-card{display:block;background:var(--white);border:1px solid #e8e0d5;border-radius:14px;padding:24px;text-decoration:none;color:var(--text);transition:transform .2s,box-shadow .2s,border-color .2s}
.triage-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:rgba(10,140,110,.25)}
.triage-card .k{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--teal);margin-bottom:6px}
.triage-card .k.urgent{color:#c0392b}
.triage-card h3{font-family:'Playfair Display',serif;font-size:20px;color:var(--navy);margin-bottom:6px;line-height:1.3}
.triage-card p{font-size:14.5px;color:var(--text-mid);line-height:1.6}
.support-strip{margin-top:28px;background:var(--warm-gray);border:1px solid #e0d8cc;border-radius:14px;padding:20px 24px;font-size:15px;color:var(--text-mid);line-height:1.65}
.support-strip strong{color:var(--navy)}
.support-strip a{color:var(--teal)}
.gate-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.gate-close:hover{background:rgba(255,255,255,.22)}
.gate-privacy a{color:var(--teal)}
.footer-bottom a:hover{color:var(--gold-light)}
@media (max-width:1100px) and (min-width:901px){.nav-links a{padding:8px 10px;font-size:13.5px}}
@media (max-width:900px){.triage-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column;gap:10px;text-align:center}}
/* ── mobile navigation (added 2026-08-19) ───────────────────────── */
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:10px; width:44px; height:44px; }
.nav-toggle span{ display:block; width:22px; height:2px; margin:4px auto; background:var(--navy,#0f2240); transition:transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* section headings demoted from h1 to h2 keep their original scale */
.page-hero h2{ font-family:'Playfair Display', serif; font-size:clamp(36px, 4vw, 56px); font-weight:900; color:var(--white); margin-bottom:16px; line-height:1.15; }
.book-hero h2{ font-family:'Playfair Display', serif; font-size:clamp(32px, 3.5vw, 50px); font-weight:900; color:var(--white); line-height:1.15; margin-bottom:20px; }

/* inline material-connection disclosure */
.disclosure-inline{ font-size:.82rem; line-height:1.5; color:#5a6b7d; border-left:3px solid var(--gold,#c9963a); padding:8px 0 8px 12px; margin:14px 0 0; }

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:3px solid var(--gold,#c9963a); outline-offset:2px; border-radius:3px;
}

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


/* Extracted from repeated inline styles so the HTML can stay smaller. */
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--navy);padding:8px 14px;z-index:2000}
.skip:focus{left:8px;top:8px}
.is-hidden{display:none}
.h-pad{padding:16px 14px;color:var(--text-mid)}
.h-pad-teal{padding:16px 14px;color:var(--teal);font-weight:600}
.h-pad-navy{padding:16px 14px;font-weight:700;color:var(--navy)}
.h-pad-warn{padding:16px 14px;color:#c95a3a;font-weight:600}
.h-th{padding:16px 14px;text-align:left;font-weight:600;font-size:13px;letter-spacing:0.5px;text-transform:uppercase}
.h-foot-link{font-size:14px;color:rgba(255,255,255,0.88)}
.h-inherit{color:inherit}
.h-teal-em{color:var(--teal);font-weight:600}
.h-teal{color:var(--teal)}
.h-navy{color:var(--navy)}
.h-gold-em{color:var(--gold-light);font-weight:600}
.h-link-row{margin:-6px 0 18px;font-size:14px}
.h-bar-lab{display:flex;justify-content:space-between;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--text-mid)}
.h-bar{height:8px;background:#e8e0d5;border-radius:100px;overflow:hidden}
.h-btn-wide{width:100%;margin-top:18px;padding:14px;font-size:15px}
.h-btn-navy{width:100%;margin-top:18px;padding:14px;font-size:15px;background:var(--navy);color:var(--white);border:none;border-radius:10px;cursor:pointer;font-weight:700}
.h-btn-lg{font-size:16px;padding:18px 36px}
.h-btn-md{font-size:16px;padding:16px 36px}
.h-row-line{border-bottom:1px solid #f0e9dc}
.h-row-line-head{border-bottom:1px solid #f0e9dc;background:var(--cream)}
.h-stat{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.10);border-radius:14px;padding:24px}
.h-stat-k{color:var(--gold-light);font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin-bottom:16px}
.h-stat-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.h-tag-gold{background:rgba(201,150,58,0.15);color:var(--gold-light);border-color:rgba(201,150,58,0.3)}
.h-rel{position:relative;z-index:1}
.h-wash{background:var(--warm-gray)}
.h-cream{background:var(--cream)}
.h-assess-note{margin-top:14px;font-size:13px;color:rgba(255,255,255,0.8);max-width:540px;line-height:1.5}
.h-hero-pills{display:flex;gap:24px;margin-top:32px;flex-wrap:wrap;font-size:13px;color:rgba(255,255,255,0.7);font-weight:500}
.h-two-col{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.h-three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.h-section-title{font-family:'Playfair Display',serif;font-size:36px;font-weight:700;color:var(--navy);line-height:1.2;margin-bottom:20px}
.h-section-lead{font-size:16px;color:var(--text-mid);margin-bottom:30px;line-height:1.75}
.h-panel{background:var(--white);border:1px solid #e8e0d5;border-radius:20px;padding:36px}
.h-panel-title{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:var(--navy);margin-bottom:8px}
.h-panel-sub{font-size:13px;color:var(--text-mid);margin-bottom:24px}
.h-stack{display:flex;flex-direction:column;gap:14px}
.h-danger{color:#c0392b}
.h-bar-fill-red{width:100%;height:100%;background:linear-gradient(90deg,#e05050,#e87070);border-radius:100px}
.h-bar-fill-green{width:50%;height:100%;background:linear-gradient(90deg,#8ab86a,#a8d480);border-radius:100px}
.h-bar-fill-gold{width:47%;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-light));border-radius:100px}
.h-bar-fill-teal{width:25%;height:100%;background:linear-gradient(90deg,var(--teal),var(--teal-light));border-radius:100px}
.h-footnote{margin-top:28px;padding-top:20px;border-top:1px solid #e8e0d5;font-size:13px;color:var(--text-mid)}
.h-btn-ghost{background:var(--white);color:var(--teal);box-shadow:none}
.h-table-wrap{overflow-x:auto;background:var(--white);border-radius:16px;padding:8px;box-shadow:var(--shadow);border:1px solid #e8e0d5}
.h-table{width:100%;border-collapse:collapse;font-size:14px;min-width:760px}
.h-thead{background:var(--navy);color:var(--white)}
.h-faq-head{text-align:left;margin:0 0 22px}
.h-mt-14{margin-top:14px}
.h-cta-box{margin-top:60px;text-align:center;padding:48px;background:var(--white);border-radius:20px;border:1px solid #e8e0d5;box-shadow:var(--shadow)}
.h-cta-title{font-family:'Playfair Display',serif;font-size:30px;font-weight:700;color:var(--navy);margin-bottom:12px}
.h-cta-lead{font-size:16px;color:var(--text-mid);max-width:560px;margin:0 auto 28px;line-height:1.7}
.h-fine{margin-top:16px;font-size:13px;color:var(--text-light)}
@media (max-width:800px){
  .h-two-col,.h-three-col{grid-template-columns:1fr;gap:28px}
  .h-section-title{font-size:28px}
}

.dp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
