:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-tint: #f1eee7;
  --surface-sage: #eaf1ee;
  --ink: #131c1a;
  --ink-soft: #2e3b38;
  --muted: #566661;
  --line: #e2ddd3;
  --line-strong: #cfc8ba;
  --primary: #0f3d36;
  --primary-hover: #0a2d28;
  --primary-soft: #e4efeb;
  --accent: #b5673e;
  --accent-soft: #f7ece6;
  --ok: #1b6b4c;
  --warn: #9a3412;
  --warn-soft: #fef3eb;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(15, 61, 54, 0.05);
  --shadow: 0 14px 36px rgba(15, 61, 54, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 61, 54, 0.13);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  line-height: 1.16;
  font-weight: 600;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); line-height: 1.07; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.13; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; color: var(--ink-soft); }
li { margin-bottom: 0.42rem; }
small { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 16px; }

/* Top Clinical Standards Strip */
.top-strip {
  background: var(--primary);
  color: #e7f1ee;
  font-size: 0.81rem;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.top-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px;
}
.top-strip strong { color: #fff; font-weight: 600; }
.top-strip a { color: #d6ebe4; text-decoration: underline; text-underline-offset: 2px; }
.top-strip a:hover { color: #fff; }

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--primary); }
.brand-sub {
  display: block; font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-top: -1px;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 12px; border-radius: 9px;
  font-size: 0.91rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--surface-tint); color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  padding: 9px 12px; border-radius: 9px;
  font-size: 0.91rem; font-weight: 500; color: var(--ink-soft);
}
.nav-dropdown-btn:hover { background: var(--surface-tint); color: var(--primary); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 245px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink); font-size: 0.89rem; font-weight: 500;
}
.nav-dropdown-menu a span {
  display: block; font-size: 0.77rem; font-weight: 400; color: var(--muted); margin-top: 1px;
}
.nav-dropdown-menu a:hover { background: var(--surface-sage); color: var(--primary); }
.nav-dropdown-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 6px 12px 4px; font-weight: 700;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}

/* Mobile Nav Panel */
.mobile-drawer {
  display: none; border-top: 1px solid var(--line);
  background: var(--surface); padding: 18px 22px 24px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-group { margin-bottom: 16px; }
.mobile-drawer-group h4 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px;
}
.mobile-drawer a {
  display: block; padding: 8px 0; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid #f2efe9;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 600; font-size: 0.94rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: all 0.16s ease; text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 61, 54, 0.2); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #d5e6e0; color: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #9b5531; color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 0.86rem; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-full { width: 100%; }

/* Badges & Pills */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary);
  padding: 6px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.eyebrow-warm { background: var(--accent-soft); color: #8c4825; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 0.83rem; color: var(--muted); padding: 18px 0 6px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* Hero */
.hero { padding: 54px 0 68px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 44px; align-items: center;
}
.hero-lead {
  font-size: 1.09rem; color: var(--ink-soft); max-width: 58ch; margin: 14px 0 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.trust-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px; padding-top: 20px; border-top: 1px solid var(--line);
}
.trust-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.87rem; color: var(--ink-soft); font-weight: 500;
}
.trust-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0; font-size: 0.72rem; font-weight: 800; margin-top: 2px;
}

.hero-visual-stack { display: flex; flex-direction: column; gap: 16px; }
.hero-photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface-sage); aspect-ratio: 16 / 10;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-badge {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 221, 211, 0.9);
  border-radius: 12px; padding: 11px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 0.82rem;
}
.hero-photo-badge strong { color: var(--ink); display: block; font-size: 0.86rem; }

/* Fee Card */
.fee-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
.fee-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; gap: 12px;
}
.fee-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid #efece6;
}
.fee-row:last-of-type { border-bottom: 0; }
.fee-row strong { display: block; font-size: 0.94rem; color: var(--ink); }
.fee-row small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.price-pill {
  font-weight: 700; font-size: 1.05rem; color: var(--primary);
  background: var(--primary-soft); padding: 4px 11px; border-radius: 8px;
  white-space: nowrap;
}

/* Page Hero (Subpages) */
.page-hero {
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #f3f0e9 100%);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: start;
}
.quick-facts-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.fact-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #efece6; font-size: 0.89rem;
}
.fact-line:last-child { border-bottom: 0; }
.fact-line span { color: var(--muted); }
.fact-line strong { color: var(--ink); text-align: right; }

/* Sections */
.section { padding: 68px 0; }
.section-sm { padding: 46px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sage { background: var(--surface-sage); border-top: 1px solid #d5e3dd; border-bottom: 1px solid #d5e3dd; }
.section-dark { background: var(--primary); color: #eef5f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li { color: #cfe2dc; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 18px; margin-bottom: 34px;
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: #b7cbc4; box-shadow: var(--shadow); }
.card-media {
  margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-sage);
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-footer { margin-top: auto; padding-top: 14px; }
.card-tint { background: var(--bg); }

.condition-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  color: var(--ink); transition: all 0.16s ease;
}
.condition-tile:hover {
  border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.condition-tile .tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary);
}
.condition-tile p { font-size: 0.87rem; color: var(--muted); margin: 0; }
.condition-tile .arrow { margin-top: auto; padding-top: 8px; font-size: 0.84rem; font-weight: 600; color: var(--primary); }

/* Cash Plan Strip */
.insurer-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.insurer-pill {
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}

/* Interactive Tools (Symptom Checker & Cash Plan Calculator) */
.tool-shell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.tool-progress {
  display: flex; gap: 8px; margin-bottom: 22px;
}
.tool-step-bar {
  height: 5px; flex: 1; border-radius: 999px; background: var(--line);
  transition: background 0.25s ease;
}
.tool-step-bar.done, .tool-step-bar.active { background: var(--primary); }
.option-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 22px;
}
.option-btn {
  text-align: left; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 13px; padding: 16px 18px; cursor: pointer; font-family: inherit;
  transition: all 0.15s ease; color: var(--ink);
}
.option-btn:hover { border-color: var(--primary); background: var(--surface-sage); }
.option-btn.selected {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(15, 61, 54, 0.12);
}
.option-btn strong { display: block; font-size: 0.96rem; margin-bottom: 3px; }
.option-btn span { display: block; font-size: 0.82rem; color: var(--muted); }
.result-panel {
  background: var(--surface-sage); border: 1.5px solid #bfd7ce;
  border-radius: 16px; padding: 26px;
}
.red-flag-box {
  background: var(--warn-soft); border: 1px solid #f4cbb6;
  border-left: 4px solid var(--warn); border-radius: 12px;
  padding: 16px 18px; margin: 18px 0; font-size: 0.9rem;
}
.red-flag-box strong { color: var(--warn); display: block; margin-bottom: 4px; }

/* Cash Plan Calculator */
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.calc-output {
  background: var(--primary); color: #fff; border-radius: 18px; padding: 28px;
}
.calc-big-num {
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: #fff; margin: 6px 0 12px;
}
.calc-line {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.92rem; color: #d4e8e1;
}
.calc-line strong { color: #fff; }
.calc-line:last-of-type { border-bottom: 0; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 54, 0.12);
}
textarea.form-control { min-height: 105px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status {
  margin-top: 14px; padding: 14px 16px; border-radius: 11px; font-size: 0.91rem; display: none;
}
.form-status.ok { display: block; background: var(--surface-sage); border: 1px solid #b3d2c6; color: var(--primary); }
.form-status.err { display: block; background: var(--warn-soft); border: 1px solid #f4cbb6; color: var(--warn); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #efece6; }
th { background: var(--surface-tint); font-weight: 700; color: var(--ink); font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }

/* Editorial Article / Clinical Guide Layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; align-items: start; }
.prose h2 { margin-top: 2.1rem; font-size: 1.95rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.74; }
.prose-callout {
  background: var(--surface-sage); border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 22px 0;
}
.sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 0.99rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--primary);
  line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* Filter Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; font-family: inherit; transition: all 0.15s ease;
}
.chip:hover, .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* CTA Banner */
.cta-band {
  background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 44px; display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #d3e7e0; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .btn-white { background: #fff; color: var(--primary); }
.cta-band .btn-white:hover { background: #eef5f2; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Footer */
.site-footer {
  background: #101b18; color: #b8c8c3; padding: 62px 0 34px; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 34px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h4 {
  color: #fff; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.89rem; }
.site-footer a { color: #b8c8c3; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 24px; font-size: 0.82rem; color: #8da29c;
}

/* Sticky Mobile Action Bar */
.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 14px;
  gap: 10px; box-shadow: 0 -6px 24px rgba(15, 61, 54, 0.09);
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(16, 27, 24, 0.62); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 30px; box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 1.2rem; cursor: pointer; color: var(--ink);
}

/* Responsive */
@media (max-width: 980px) {
  .main-nav, .nav-actions .btn-outline { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid, .page-hero-grid, .calc-grid, .article-layout, .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band-actions { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .mobile-sticky-bar { display: flex; }
  .hero { padding: 34px 0 46px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4, .option-grid, .form-row-2, .trust-row, .footer-grid {
    grid-template-columns: 1fr;
  }
  .tool-shell, .fee-card, .cta-band { padding: 22px; }
  .nav-actions .btn-primary { display: none; }
}
