/* Doula Business HQ. Light, airy layout in the style of joinloula.com:
   DM Sans, one saturated warm accent (raspberry, our own), soft periwinkle panels,
   small uppercase eyebrows, cards with an accent bar along the bottom. */
:root {
  --bg: #ffffff;
  --ink: #2b2831;
  --muted: #625e6b;
  --line: #e7e5ea;
  --accent: #d2365f;
  --accent-deep: #b02a4e;
  --accent-soft: #fbe9ee;
  --panel: #e3e6f5;
  --tile: #ffffff;
  --ok: #2f8f4e;
  --ok-soft: #e4f4e9;
  --wait: #a86b00;
  --wait-soft: #fbf1dc;
  --info: #2d55b8;
  --info-soft: #e5ecfb;
  --font: "DM Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* text-size-adjust stops iPhones from enlarging text on their own (it happens in landscape). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h1 { font-size: clamp(40px, 6vw, 66px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Jump links (#call, #pricing...) and focused form fields land below the sticky header, not under it. */
[id] { scroll-margin-top: 88px; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(210, 54, 95, 0.12); }

.container { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
.center { text-align: center; justify-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-family: var(--font); font-weight: 600; font-size: 16px; text-decoration: none; padding: 14px 26px; border-radius: 6px; border: 1.5px solid var(--accent); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: #cfccd5; }
.btn-outline:hover { background: transparent; border-color: var(--ink); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
/* Solid white so page text never shows through it while scrolling (it did on iPhone). */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.logo-text { color: var(--ink); }
.logo-text b { color: var(--accent); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:not(.btn):hover { color: var(--accent); }

/* Menu button and drop-down for phones and tablets (opened by the small script in Base.astro). */
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex: none; border-radius: 6px; border: 1.5px solid #cfccd5; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 18px 30px rgba(43, 40, 49, 0.14); max-height: calc(100dvh - 72px); overflow-y: auto; }
.menu-panel .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 4px 22px; }
.menu-nav { display: grid; margin-bottom: 8px; }
.menu-nav a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; }
.menu-panel .btn svg { color: var(--accent); }
.menu-panel .btn:not(.btn-outline) svg { color: #fff; }

/* The full row (logo, phone, 4 links, Book button) needs about 1,080px. Narrower than that,
   the links move into the menu; under 720px the Book button moves there too. */
@media (max-width: 1130px) {
  .header-row { gap: 10px; }
  .main-nav a:not(.btn) { display: none; }
  .phone-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .menu-panel:not([hidden]) { display: block; }
}
@media (min-width: 561px) and (max-width: 1130px) {
  .menu-panel { left: auto; width: min(400px, 100%); border-bottom-left-radius: 16px; }
}
@media (max-width: 719px) { .main-nav { display: none; } }

/* Hero */
.hero { padding-block: 32px 88px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 78px); letter-spacing: -0.03em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero-art { background: var(--panel); border-radius: 28px; padding: 28px; display: grid; gap: 14px; }
.board { background: var(--tile); border-radius: 16px; padding: 18px; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(43, 40, 49, 0.06), 0 8px 24px rgba(43, 40, 49, 0.06); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.board-head b { font-weight: 600; }
.board-head span { font-size: 12px; color: var(--muted); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row strong { display: block; font-weight: 600; font-size: 15px; }
.row small { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.wait { color: var(--wait); background: var(--wait-soft); }
.pill.info { color: var(--info); background: var(--info-soft); }
.art-note { font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Coverage panel */
.panel { background: var(--panel); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.panel-copy { display: grid; gap: 18px; justify-items: start; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--tile); border-radius: 10px; padding: 18px 16px; display: grid; gap: 2px; text-align: center; min-height: 86px; align-content: center; }
.tile b { font-weight: 600; font-size: 18px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.now span { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* Feature cards */
.head { display: grid; gap: 12px; margin-bottom: 40px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 15px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 22px; }
.card { background: var(--tile); border: 1px solid var(--line); border-bottom: 5px solid var(--accent); border-radius: 14px; padding: 26px 22px 24px; display: grid; gap: 12px; align-content: start; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card p { color: var(--muted); font-size: 16px; }

.cards.six { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* "Sound familiar?" */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.pain-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); }
.pain-item span { color: var(--accent); padding-top: 2px; }
.we-get-it { margin-top: 28px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.015em; max-width: 44ch; }
.tiles-wrap { display: grid; gap: 14px; }
.tiles-label { font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }

/* US tile map: where Medicaid pays doulas */
.usmap { margin: 0; display: grid; gap: 14px; min-width: 0; }
.usmap-title { font-size: 18px; text-align: center; }
.usmap-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.st { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: clamp(9px, 1.05vw, 12.5px); font-weight: 600; letter-spacing: 0.02em; background: var(--tile); color: #8f8b9b; cursor: default; }
.st.pays { background: var(--accent); color: #fff; }
.st.soon { background: #f6c3d0; color: var(--accent-deep); }
.usmap-caption { display: grid; gap: 8px; }
.usmap-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; }
.usmap-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw.pays { background: var(--accent); }
.sw.soon { background: #f6c3d0; }
.sw.not { background: var(--tile); border: 1px solid #c9cde3; }
.usmap-source { font-size: 12.5px; color: var(--muted); text-align: center; }
.usmap-list { font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.55); border-radius: 10px; padding: 10px 14px; }
.usmap-list summary { cursor: pointer; font-weight: 600; color: var(--ink); padding-block: 6px; }
.usmap-list p { margin-top: 8px; }
.panel-copy .lede + .lede { margin-top: -6px; }
.panel-copy .actions { margin-top: 4px; }

/* Comparison table */
.compare-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 15px; font-weight: 600; background: #faf9fb; }
.compare thead th.us { background: var(--accent); color: #fff; }
.compare tbody th { font-weight: 600; width: 25%; }
.compare td { color: var(--muted); width: 25%; }
.compare td.us { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.mark { display: inline-flex; align-items: flex-start; gap: 8px; }
.mark svg { flex: none; margin-top: 2px; }
.yes { color: var(--ok); display: inline-flex; }
.no { color: #b8b3c0; display: inline-flex; }
.dash { color: #b8b3c0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.plan { background: var(--tile); border: 1px solid var(--line); border-bottom: 5px solid var(--accent); border-radius: 14px; padding: 28px 26px; display: grid; gap: 12px; align-content: start; }
.plan.alt { border-bottom-color: #b9bed8; }
.plan .tag { justify-self: start; }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }

/* Booking */
.book { background: var(--panel); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.book-copy { display: grid; gap: 16px; }
.call-form { background: var(--tile); border-radius: 16px; padding: 26px; display: grid; gap: 8px; }
.call-form label { font-weight: 600; font-size: 15px; margin-top: 6px; }
.call-form input, .call-form select { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid #d6d3dc; background: #fff; color: var(--ink); width: 100%; }
.call-form button { margin-top: 16px; }
.call-form .choices { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px 16px; }
.call-form .choices legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.call-form .choices .optional { font-weight: 400; color: var(--muted); }
.call-form .choice { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; margin: 0; cursor: pointer; }
.call-form .choice input { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } }

/* Phone: header button (centered between logo and menu on desktop, beside the menu button on phones) and the big call tile */
.phone-btn { gap: 8px; flex: none; }
.phone-btn svg { color: var(--accent); flex: none; }
.call-tile { margin-top: 10px; display: flex; align-items: center; gap: 18px; background: var(--tile); border: 2px solid transparent; border-radius: 16px; padding: 22px 24px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.call-tile:hover { border-color: var(--accent); }
.call-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.call-label { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.call-number { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.footer-phone { font-weight: 600; text-decoration: none; }
@media (max-width: 560px) {
  .phone-btn span { display: none; }
  .phone-btn { width: 44px; height: 44px; padding: 0; }
  .call-tile { padding: 16px; gap: 14px; }
  .call-icon { width: 48px; height: 48px; }
  .call-number { font-size: clamp(21px, 6.6vw, 28px); }
}

/* Map tiles that link to a state guide */
a.st { text-decoration: none; cursor: pointer; }
a.st.has-guide { box-shadow: 0 0 0 2px var(--ink) inset; }
a.st:hover { filter: brightness(1.08); }

/* Homepage FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
/* The padding sits on the summary so the whole row is the tap target, not just the question text. */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--tile); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 20px; }
.faq details p { margin: -6px 0 0; padding: 0 20px 16px; color: var(--muted); }

/* Guide pages */
.guide { padding-block: 32px 72px; }
.guide > .container { display: grid; gap: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.guide-head { display: grid; gap: 14px; max-width: 860px; }
.guide-head h1 { font-size: clamp(36px, 5vw, 56px); }
.updated { font-size: 14px; color: var(--muted); }
.answer-box { background: var(--panel); border-radius: 22px; padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; max-width: 980px; }
.answer-box dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px 32px; }
.answer-box dt { font-weight: 600; }
.answer-box dd { margin: 4px 0 0; }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 22px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.data-table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; max-width: 980px; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: #faf9fb; font-weight: 600; }
.data-table tfoot td { font-weight: 600; background: var(--accent-soft); border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; max-width: 980px; }
.stat-row .stat { border: 1px solid var(--line); border-bottom: 5px solid var(--accent); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.stat-row .stat b { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.stat-row .stat span { font-size: 15px; color: var(--muted); }
.cta-box { background: var(--panel); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; max-width: 980px; }
.cta-box > div:first-child { display: grid; gap: 12px; }
.faq-list { display: grid; gap: 18px; max-width: 860px; }
.qa-item { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qa-item p { color: var(--muted); }
.sources { display: grid; gap: 12px; max-width: 860px; font-size: 15px; color: var(--muted); }
.sources h2 { font-size: 24px; color: var(--ink); }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Hub page */
.hub-map { background: var(--panel); border-radius: 22px; padding: clamp(18px, 4vw, 36px); max-width: 860px; }
.state-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.state-columns h2 { font-size: 22px; display: flex; gap: 10px; align-items: baseline; }
.count { font-size: 14px; font-weight: 600; color: var(--muted); }
.state-list { list-style: none; margin: 12px 0 0; padding: 0; columns: 2 140px; column-gap: 20px; font-size: 16px; }
.state-list li { break-inside: avoid; padding: 3px 0; }
.guide-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: 2px; }

/* Footer */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 26px; margin-top: 12px; font-size: 14px; }
.footer-links a { color: var(--muted); padding-block: 6px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 15px; }

/* Single-column grids get an explicit minmax(0, 1fr) column, so nothing inside them (a table,
   a wide grid, a long word) can stretch the page wider than a phone screen. */
.hero-copy, .panel-copy, .head, .book-copy, .call-form, .faq, .guide > .container, .guide-head,
.answer-box, .prose, .cta-box, .faq-list, .sources { grid-template-columns: minmax(0, 1fr); }

/* ── Phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  .hero { padding-block: 16px 60px; }
  .hero h1 { font-size: clamp(38px, 11.8vw, 46px); }
  .head { margin-bottom: 28px; }
  .hero-art { padding: 16px; border-radius: 22px; }
  .panel, .book { padding: 26px 18px; border-radius: 22px; gap: 30px; }
  .call-form { padding: 22px 18px; }
  .cards, .cards.six { gap: 14px; }
  .card { padding: 22px 20px 20px; }
  .plan { padding: 24px 20px; }

  /* Steps: number on the left, text beside it */
  .steps { gap: 20px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .steps li::before { grid-row: span 2; }

  /* Guide pages */
  .guide { padding-block: 18px 56px; }
  .guide > .container { gap: 26px; }
  .guide-head h1 { font-size: clamp(30px, 8.6vw, 36px); }
  .prose h2 { margin-top: 14px; }
  .stat-row .stat { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 14px 18px; }
  .stat-row .stat b { font-size: 30px; min-width: 2.75em; white-space: nowrap; }

  /* Comparison table: one card per row, each answer labeled (labels come from data-label) */
  .compare-box { border: 0; border-radius: 0; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare { min-width: 0; font-size: 15px; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tr { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .compare tbody th, .compare tbody tr:last-child th { width: auto; padding: 13px 16px 11px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .compare td, .compare tbody tr:last-child td { width: auto; padding: 9px 16px 10px; line-height: 1.45; border-bottom: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .compare td.us::before { color: var(--accent-deep); }
  .compare tbody tr td:last-child { border-bottom: 0; }

  /* NY rate table: one card per service */
  .data-table-box { border: 0; border-radius: 0; overflow: visible; }
  .data-table, .data-table tbody, .data-table tfoot, .data-table tr, .data-table td { display: block; }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 12px; }
  .data-table tfoot { margin-top: 12px; }
  .data-table tr { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .data-table td { display: grid; grid-template-columns: 9.6em minmax(0, 1fr); gap: 12px; padding: 9px 16px; }
  .data-table td::before { content: attr(data-label); font-size: 14px; font-weight: 600; color: var(--muted); }
  .data-table td:first-child { display: block; font-weight: 600; padding-block: 13px 11px; }
  .data-table td:first-child::before { content: none; }
  .data-table tfoot tr { border-color: #f3c9d5; }
  .data-table tfoot td { border-bottom: 1px solid #f3c9d5; }
  .data-table tr td:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .header-row { padding-block: 10px; }
  /* Buttons stack full width: easier to hit with a thumb */
  .actions { display: grid; justify-self: stretch; width: 100%; gap: 12px; }
  .actions .btn { width: 100%; }
  .call-form .choices { gap: 0 16px; }
  .call-form .choice { min-height: 44px; }
  .call-form .choice input { width: 20px; height: 20px; }
}

@media (max-width: 400px) {
  .container { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .header-row { gap: 8px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
}

@media (max-width: 350px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .logo { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; }
  .phone-btn, .menu-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
