/* Larkspur — Design System Tokens */
:root {
  --bg: #f5f3ee;
  --bg-alt: #ebe7df;
  --surface: #ffffff;
  --ink: #0f1218;
  --ink-2: #2a2e36;
  --muted: #6b6f78;
  --line: #d9d4c8;
  --line-soft: #e8e3d6;

  --brand: #1a3a8f;
  --brand-deep: #0f1f4a;
  --brand-soft: #e7ebf6;
  --sand: #c9b88a;
  --sand-soft: #ebe1c7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 74, 0.04), 0 1px 1px rgba(15, 31, 74, 0.02);
  --shadow: 0 8px 24px rgba(15, 31, 74, 0.06), 0 2px 6px rgba(15, 31, 74, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 31, 74, 0.12);

  --font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Typography === */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.035em; font-weight: 450; }
h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.03em; font-weight: 460; }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary .arrow {
  background: rgba(255,255,255,0.16);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--brand);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-logo .mark::after {
  content: "";
  width: 12px; height: 12px;
  border: 1.5px solid var(--sand);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(15, 31, 74, 0.05); color: var(--ink); }
.nav-link .chev {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.55;
}
.nav-cta { margin-left: 8px; }

/* === Hero === */
.hero {
  padding: 64px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero h1 .accent { color: var(--brand); }
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: var(--sand);
  border-radius: 2px;
  opacity: 0.85;
}
.hero-sub {
  margin-top: 28px;
  max-width: 540px;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-stat-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-stat-card .stat-num {
  font-size: 44px;
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-card .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  background: var(--bg-alt);
}

/* === Trust strip === */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.trust-strip .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-marks {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.trust-mark .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* === Sections === */
section { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 720px; }
.section-head .head-meta { max-width: 380px; }
.section-head .head-meta p { color: var(--muted); margin-top: 12px; }

/* === Pathway cards === */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pathway {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.pathway:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pathway-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pathway h3 { font-size: 20px; }
.pathway p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pathway .arrow-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
  padding-top: 8px;
}
.pathway .arrow-row span:last-child {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.pathway:hover .arrow-row span:last-child { background: var(--brand); color: #fff; border-color: var(--brand); }

/* === Service cards (large) === */
.services {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 360px;
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.service-card.dark {
  background: var(--brand-deep);
  color: #fff;
  border-color: transparent;
}
.service-card.sand {
  background: var(--sand-soft);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.service-card.dark .num { color: rgba(255,255,255,0.6); }
.service-card h3 { font-size: 28px; }
.service-card.dark h3 { color: #ffffff; }
.service-card .desc { color: var(--muted); max-width: 460px; }
.service-card.dark .desc { color: rgba(255,255,255,0.7); }
.service-card .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card .features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.service-card .features li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  background: radial-gradient(circle, var(--brand) 30%, transparent 32%);
  flex-shrink: 0;
}
.service-card.dark .features li::before {
  border-color: var(--sand);
  background: radial-gradient(circle, var(--sand) 30%, transparent 32%);
}
.service-card .footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.service-card .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--brand);
}
.service-card.dark .cta-link { color: var(--sand); }
.service-card .cta-link .arrow-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.service-card.dark .cta-link .arrow-circle { background: var(--sand); color: var(--brand-deep); }

/* === Why Larkspur === */
.why {
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.why-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.why-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: start;
}
.why-item .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  margin-top: 6px;
}
.why-item h3 { font-size: 22px; margin-bottom: 6px; font-weight: 500; }
.why-item p { color: var(--muted); font-size: 15px; max-width: 520px; }
.why-item .icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}

/* === Calculators === */
.calc-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px;
  margin: 0 32px;
  position: relative;
  overflow: hidden;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.calc-section h2 { color: #fff; }
.calc-section .eyebrow { color: var(--sand); }
.calc-section .eyebrow::before { background: var(--sand); }
.calc-section .lead { color: rgba(255,255,255,0.72); }
.calc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}
.calc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  cursor: pointer;
  transition: color .2s ease;
}
.calc-list-item:hover { color: var(--sand); }
.calc-list-item .arrow-mini {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
}
.calc-list-item:hover .arrow-mini { background: var(--sand); color: var(--brand-deep); }

.calc-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.calc-card-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.calc-card-head h3 { font-size: 18px; }
.calc-card-head .tag { font-size: 11px; padding: 4px 10px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.calc-card .field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.calc-card .field label { font-size: 13px; color: var(--muted); }
.calc-card .field-row { display: flex; align-items: center; gap: 12px; }
.calc-card .field-value { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; min-width: 140px; }
.calc-card input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.calc-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(15,31,74,0.2);
}
.calc-result {
  margin-top: 24px;
  padding: 20px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-result .num {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}
.calc-result .label-top { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

/* === Trust / Team === */
.trust-section { background: var(--surface); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.team-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line-soft);
}
.team-card .ph { aspect-ratio: 1; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.team-card h4 { font-size: 16px; }
.team-card .role { font-size: 13px; color: var(--muted); margin-top: 4px; }
.team-card .credentials { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.team-card .credentials .cred { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px; color: var(--ink-2); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num { font-size: 48px; font-weight: 460; letter-spacing: -0.03em; line-height: 1; }
.stat .num .suffix { color: var(--brand); }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* === Testimonials === */
.testimonial-section { background: var(--brand-deep); color: #fff; }
.testimonial-section h2 { color: #fff; }
.testimonial-section .eyebrow { color: var(--sand); }
.testimonial-section .eyebrow::before { background: var(--sand); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial .quote-mark {
  font-family: var(--font);
  font-size: 36px;
  line-height: 0.6;
  color: var(--sand);
  font-weight: 400;
}
.testimonial .quote {
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.01em;
}
.testimonial .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-deep);
  font-weight: 500;
  font-size: 14px;
}
.testimonial .name { font-size: 14px; }
.testimonial .place { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.testimonial .date { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); }

/* === Final CTA === */
.final-cta {
  padding: 96px 0 120px;
  text-align: center;
}
.final-cta h2 { max-width: 800px; margin: 0 auto 24px; }
.final-cta .lead { max-width: 600px; margin: 0 auto; color: var(--muted); }
.final-cta .ctas { margin-top: 36px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* === Footer === */
footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: #fff; font-size: 22px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 320px; font-size: 14px; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.85); font-size: 14.5px; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .afsl { font-family: var(--font-mono); }

/* === Sticky CTA === */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.sticky-cta:hover { transform: translateY(-2px); background: var(--brand); }
.sticky-cta .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5dd886;
  position: relative;
}
.sticky-cta .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #5dd886;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.sticky-cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.sticky-cta-text .top { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.sticky-cta-text .bot { font-size: 14.5px; font-weight: 500; }
.sticky-cta .go {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === Booking Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-side {
  background: var(--brand-deep);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-side h3 { color: #fff; font-size: 24px; }
.modal-side .checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.modal-side .checks li { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.85); }
.modal-side .checks li svg { flex-shrink: 0; color: var(--sand); margin-top: 2px; }
.modal-main { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.modal-main .close-btn {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-main h3 { font-size: 22px; margin-bottom: 4px; }
.modal-main .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-input { display: flex; flex-direction: column; gap: 6px; }
.field-input label { font-size: 13px; color: var(--muted); }
.field-input input, .field-input select, .field-input textarea {
  font-family: inherit;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease;
  color: var(--ink);
}
.field-input input:focus, .field-input select:focus, .field-input textarea:focus { border-color: var(--brand); }
.modal-main .submit-row { margin-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* === Service page specific === */
.service-hero {
  padding: 56px 0 64px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.service-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 0;
  margin-bottom: 32px;
}
.service-tab {
  padding: 16px 24px;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.service-tab.active { color: var(--ink); border-color: var(--brand); }
.service-tab:hover { color: var(--ink); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.problem-card h4 { font-size: 18px; margin: 12px 0 8px; }
.problem-card p { font-size: 14.5px; color: var(--muted); }

.process-section {
  background: var(--bg-alt);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.process-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 24px;
}
.process-step h4 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); }

/* === Calculator page === */
.calc-page-hero {
  padding: 48px 0 32px;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 96px;
}
.calc-form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.calc-form .section-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.calc-form .section-label:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.calc-form .field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-form .input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .15s ease;
}
.calc-form .input-with-prefix:focus-within { border-color: var(--brand); }
.calc-form .input-with-prefix .prefix {
  color: var(--muted);
  font-size: 15px;
  margin-right: 6px;
}
.calc-form .input-with-prefix input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
}
.calc-form .toggle-row {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--line-soft);
}
.calc-form .toggle-row button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.calc-form .toggle-row button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-card {
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.result-card .label-top {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 12px;
}
.result-card .big-num {
  font-size: 64px;
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-card .sub {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  max-width: 460px;
}
.result-card .range-bar {
  margin-top: 24px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.result-card .range-fill {
  position: absolute;
  height: 100%;
  background: var(--sand);
  border-radius: 4px;
  transition: left .3s ease, width .3s ease;
}
.result-card .range-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.scenario .name { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.scenario .amt { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.scenario .delta { font-size: 12px; margin-top: 6px; color: var(--brand); display: flex; align-items: center; gap: 4px; }

.disclaimer {
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .why-grid, .calc-grid, .service-hero-grid, .calc-layout { grid-template-columns: 1fr; }
  .pathway-grid, .services-grid, .team-grid, .testimonial-grid, .problem-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .modal { grid-template-columns: 1fr; }
  .modal-side { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}
@media (max-width: 600px) {
  .pathway-grid, .services-grid, .team-grid, .testimonial-grid, .problem-grid, .process-grid, .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .calc-section { margin: 0 16px; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
