/* Vinayak Multispeciality Dental Clinic — design system */

:root {
  --ink: #12211f;
  --ink-2: #3d534f;
  --ink-3: #6b807c;
  --teal-900: #0c3835;
  --teal-700: #12564f;
  --teal-500: #1a7d72;
  --teal-100: #d7ebe7;
  --teal-50: #eff7f5;
  --gold: #b8873b;
  --gold-soft: #f0e2c8;
  --bg: #fbf9f6;
  --surface: #ffffff;
  --line: #e4ded4;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12, 56, 53, .06), 0 2px 8px rgba(12, 56, 53, .05);
  --shadow-md: 0 4px 12px rgba(12, 56, 53, .07), 0 16px 40px rgba(12, 56, 53, .08);
  --wrap: 1160px;
  --gutter: clamp(1.375rem, 4.5vw, 2.5rem);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* `clip` not `hidden`: overflow:hidden on body makes it a scroll container and
   breaks position:sticky on the header. This is a safety net only — real
   overflows are fixed at the source (see .nap dd min-width below). */
html, body { overflow-x: clip; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inline icons carry no class and would otherwise fill their flex parent.
   Every rule below that sizes an icon explicitly comes later, so it wins. */
svg { flex: none; }
svg:not([class]) { width: 1.05em; height: 1.05em; vertical-align: -.15em; }

/* One gutter value for the whole site. It grows with the viewport so phones get
   real breathing room and tablets are not pinned to a 20px edge. Anything that
   needs to line up with page content reads --gutter rather than guessing. */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal-900); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .97rem; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; max-width: 100%; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-900); box-shadow: var(--shadow-md); }
.btn--wa { background: #1faa53; color: #fff; box-shadow: var(--shadow-sm); }
.btn--wa:hover { background: #16853f; box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: #fff; color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* ---------- header ---------- */
.topbar {
  background: var(--teal-900); color: rgba(255,255,255,.85);
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; justify-content: space-between; padding: .5rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.langswitch {
  margin-left: .85rem; padding: .15rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); font-size: .8rem; line-height: 1.5;
  text-decoration: none; white-space: nowrap;
}
.langswitch:hover { background: rgba(255,255,255,.14); text-decoration: none; }

/* Gujarati sets longer conjuncts — give the script a little more room */
:lang(gu) { line-height: 1.8; }
:lang(gu) h1, :lang(gu) h2, :lang(gu) h3 { line-height: 1.35; letter-spacing: 0; }
:lang(gu) .eyebrow { letter-spacing: .06em; }
/* On phones the three-line topbar pushed the h1 below the fold. The sticky
   action bar already covers call/WhatsApp, so keep only the number here. */
@media (max-width: 720px) {
  .topbar .wrap { justify-content: center; }
  .topbar span:not(:last-child) { display: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 246, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
/* One teal logo file. brightness(0) flattens it to black, invert(1) to white —
   so the dark footer reuses the same asset instead of a second colour variant. */
.brand__mark { width: 40px; height: 40px; flex: none; }
.site-footer .brand__mark { filter: brightness(0) invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.brand__sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: .5rem .8rem; border-radius: 8px;
}
.nav a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }
.nav .btn-row { display: none; }   /* duplicated CTAs — mobile drawer only */
.header-cta { display: flex; gap: .5rem; align-items: center; }
.header-cta .btn { padding: .6rem 1.15rem; font-size: .88rem; }
/* The full clinic name is long. Below this the nav and two CTAs no longer fit
   beside it — drop the phone button, which the topbar already carries. */
@media (max-width: 1200px) { .header-cta .btn--ghost { display: none; } }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    /* anchored to the header, not a hardcoded offset — the topbar above it is
       only sometimes on screen, so a fixed top would overlap or float. */
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.5rem;
    gap: 0; max-height: 80dvh; overflow-y: auto; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav .btn-row { display: flex; margin-top: 1rem; }
  .nav .btn { flex: 1; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70rem 40rem at 88% -10%, rgba(26,125,114,.14), transparent 60%),
    radial-gradient(50rem 30rem at 4% 105%, rgba(184,135,59,.12), transparent 62%),
    var(--bg);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: var(--teal-700); }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 46ch; margin-bottom: 1.8rem; }
.hero .btn-row { margin-bottom: 2rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero__trust div strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--teal-700); line-height: 1.1; }
.hero__trust div span { font-size: .82rem; color: var(--ink-3); }

.hero__media { position: relative; }
.hero__card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-100);
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 5;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }

/* 3D tooth. The inline SVG sits underneath as the no-WebGL fallback and is only
   hidden once tooth.js has a live context, so a failed init degrades to the
   illustration rather than an empty box. */
.tooth3d { position: relative; width: 100%; height: 100%; touch-action: pan-y; }
/* Flat teal behind a pale tooth gave it nothing to sit against — a soft vignette
   plus a contact shadow reads as a lit object rather than a floating cutout. */
.tooth3d.is-3d {
  background:
    radial-gradient(58% 42% at 50% 84%, rgba(12, 56, 53, .17), rgba(12, 56, 53, 0) 70%),
    radial-gradient(80% 65% at 50% 26%, #f4faf8, rgba(244, 250, 248, 0) 72%),
    linear-gradient(165deg, var(--teal-50), var(--teal-100) 62%, var(--gold-soft));
}
.tooth3d .illus { width: 100%; height: 100%; display: block; }
.tooth3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tooth3d.is-3d { cursor: grab; }
.tooth3d.is-3d:active { cursor: grabbing; }
.tooth3d.is-3d .illus { visibility: hidden; }
.tooth3d__hint {
  position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%);
  display: none; align-items: center; gap: .4rem; white-space: nowrap;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .76rem; color: var(--ink-2); pointer-events: none;
}
.tooth3d.is-3d .tooth3d__hint { display: inline-flex; }
.tooth3d__hint svg { width: 14px; height: 14px; }
@media (hover: none) { .tooth3d__hint { font-size: .72rem; } }
.hero__badge {
  position: absolute; left: -1.2rem; bottom: 1.8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.15rem;
  box-shadow: var(--shadow-md); display: flex; gap: .7rem; align-items: center; max-width: 15rem;
}
.hero__badge svg { width: 30px; height: 30px; flex: none; color: var(--teal-500); }
.hero__badge b { display: block; font-size: .92rem; color: var(--ink); }
.hero__badge span { font-size: .78rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* headline stays first on small screens — it is the h1 and the conversion hook */
  .hero__media { max-width: 30rem; }
  .hero__card { aspect-ratio: 5 / 4; }
  /* Between phone and desktop the 30rem cap left the image floating in a wide
     column with dead space to its right. Fill the column — but keep 5/4, since
     the placeholder art is xMidYMid slice and a wider box crops the tooth. */
  @media (min-width: 561px) { .hero__media { max-width: none; } }
  /* in-flow, not overhanging: absolute positioning clipped awkwardly at narrow widths */
  .hero__badge { position: static; max-width: none; margin-top: 1rem; }
}

/* placeholder art used until real photos land */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-100), var(--teal-50) 55%, var(--gold-soft));
  color: var(--teal-700);
}
.ph svg { width: 38%; max-width: 130px; height: auto; opacity: .5; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
/* min(Npx, 100%) so a track can never demand more than the container has —
   otherwise these overflow on narrow phones instead of collapsing to one column. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }

a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
/* margin-top:auto pins "Learn more" to the bottom so it lines up across a row of uneven cards */
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--teal-700); }
a.card:hover .card__more { gap: .65rem; }
.card__more svg { width: 15px; height: 15px; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 1rem;
}
.icon-badge svg { width: 24px; height: 24px; }

.feature { display: flex; gap: 1rem; }
.feature .icon-badge { margin-bottom: 0; flex: none; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature p { font-size: .93rem; margin: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: s; position: relative; padding-left: 3.5rem; margin: 0;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--teal-700);
  background: var(--teal-50); border-radius: 10px; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
}
.steps b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .15rem; }
.steps span { font-size: .95rem; }

/* ---------- doctors ---------- */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.doc__img { aspect-ratio: 1 / 1; background: var(--teal-50); }
.doc__img img { width: 100%; height: 100%; object-fit: cover; }
/* Bios differ in length, so push the meta row to the bottom of both cards
   instead of letting the shorter one leave a gap under its footer line. */
.doc__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.doc__body .tags { margin-top: auto; padding-top: 1.1rem; }
.doc__body h3 { margin-bottom: .15rem; }
.doc__role { font-size: .85rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.doc__body p { font-size: .94rem; margin: 0; }
.doc__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3);
}
.doc__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.doc__meta svg { width: 15px; height: 15px; flex: none; }
.doc:target { border-color: var(--teal-500); box-shadow: var(--shadow-md); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.1rem 0 0; }
.tags li {
  margin: 0; font-size: .78rem; font-weight: 500; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: .25rem .65rem; border-radius: 999px;
}

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

/* ---------- quotes ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--serif); font-size: 1.06rem; color: var(--ink); line-height: 1.5; }
.quote footer { font-size: .85rem; color: var(--ink-3); }
.stars { color: var(--gold); letter-spacing: .12em; font-size: .95rem; margin-bottom: .7rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.65rem;
  width: 11px; height: 11px; border-right: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.9rem; }
.faq summary:hover { color: var(--teal-700); }
.faq .faq__a { padding: 0 2.5rem 1.4rem 0; font-size: .98rem; }

/* ---------- bands ---------- */
.band {
  background:
    radial-gradient(50rem 30rem at 80% 0%, rgba(26,125,114,.5), transparent 60%),
    var(--teal-900);
  color: rgba(255,255,255,.82);
}
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; }
.band .lede { color: rgba(255,255,255,.82); }
.band .eyebrow { color: var(--gold-soft); }

.band-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
@media (max-width: 800px) { .band-split { grid-template-columns: 1fr; } }

/* ---------- location ---------- */
/* Equal columns, equal heights: both panels stretch to the taller of the two. */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
@media (max-width: 860px) { .loc { grid-template-columns: 1fr; } }
.loc > * { min-width: 0; }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: var(--teal-50); min-height: 420px;
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.nap { font-style: normal; }
.nap.card { display: flex; flex-direction: column; }
.nap dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.2rem; margin: 0; font-size: .96rem; }
.nap dt { font-weight: 600; color: var(--ink); }
/* min-width:0 + wrap: without these the unbreakable email address forced the
   grid wider than the viewport and gave the whole page a horizontal scrollbar. */
.nap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .nap dl { grid-template-columns: 1fr; gap: .1rem; }
  .nap dt { margin-top: .6rem; }
}
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: .3rem; }
.hours-table th, .hours-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- breadcrumbs / prose ---------- */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 1.2rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; gap: .45rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); text-decoration: underline; }

.page-head { padding: 1.5rem 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head + .section--tight { padding-top: 0; }  /* two stacked paddings left a dead gap */

/* Article text is authored in content files and will grow over time — let any
   future long URL or chemical name break rather than blow the column out. */
.prose { max-width: 72ch; min-width: 0; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.answer-box {
  background: var(--teal-50); border: 1px solid var(--teal-100); border-left: 3px solid var(--teal-500);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 2rem;
}
.answer-box p { font-size: 1.03rem; color: var(--ink); margin: 0; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 6px; border-left: 2.5px solid var(--teal-500); border-bottom: 2.5px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* minmax(0, …) not 1fr: a grid track defaults to min-width:auto, so one wide
   table inside .prose stretched the whole column past the viewport and the text
   was silently cut off by the overflow-x:clip on body. */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.layout-2 > * { min-width: 0; }
@media (max-width: 940px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
/* An implicit grid column sizes to max-content, so a long treatment name or
   article title in one card widened every card past the column. Pin the track. */
.sidebar { position: sticky; top: 100px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.sidebar .card { padding: 1.4rem; }
/* Sidebar CTAs are labelled with a service name from content.py, not a fixed
   phrase, so they must be allowed to wrap. Buttons elsewhere stay on one line. */
.sidebar .btn { white-space: normal; text-wrap: balance; }
.sidebar h3 { font-size: 1.1rem; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0; border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: .65rem 0; font-size: .93rem; text-decoration: none; color: var(--ink-2); }
.side-links a:hover { color: var(--teal-700); }
.side-links a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.68); font-size: .92rem; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .brand__name, .site-footer .brand__sub { color: #fff; }
.site-footer .brand__sub { color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .84rem;
}
.areas { font-size: .82rem; line-height: 1.9; color: rgba(255,255,255,.5); }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.12); }
.socials svg { width: 18px; height: 18px; }

/* ---------- sticky mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 720px) {
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr;
    gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(251, 249, 246, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .actionbar .btn { width: 100%; padding: .75rem 1rem; }
  body { padding-bottom: 4.5rem; }
}

/* ---------- scroll reveal ----------
   The selector list is duplicated in assets/app.js — keep the two in sync.
   Gated on html.js (set by an inline script in <head>) so content is never
   hidden for users without JS, and never flashes before the observer runs. */
/* :where() not :is() — :is() takes the HIGHEST specificity of its arguments, so
   `.section > .wrap > .center` (0,3,0) would outrank `.is-in` and the content
   would stay invisible forever. :where() contributes zero specificity. */
html.js :where(.card, .doc, .feature, .answer-box, .note, .table-wrap, .disclaimer,
               .steps > li, .section > .wrap > .center, .hero__trust > div, .map, .nap, .rail) {
  opacity: 0;
  transform: translateY(20px);
}
html.js .is-in {
  opacity: 1;
  transform: none;
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
/* hero is above the fold — it animates in on load rather than on scroll */
.hero__grid > div > * { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
.hero__grid > div > *:nth-child(2) { animation-delay: .06s; }
.hero__grid > div > *:nth-child(3) { animation-delay: .12s; }
.hero__grid > div > *:nth-child(4) { animation-delay: .18s; }
.hero__media { animation: rise .8s .1s cubic-bezier(.22,.61,.36,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js :where(.card, .doc, .feature, .answer-box, .note, .table-wrap, .disclaimer,
                 .steps > li, .section > .wrap > .center, .hero__trust > div, .map, .nap, .rail) {
    opacity: 1; transform: none;
  }
  .hero__grid > div > *, .hero__media { animation: none; }
}

/* ---------- horizontal snap rail (reviews) ----------
   Deliberate horizontal scroll. Contained: the rail scrolls, the page does not. */
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail:focus-visible { outline: 3px solid var(--teal-500); outline-offset: -3px; }
.rail__track {
  /* 100% not 100vw — 100vw includes the desktop scrollbar, which nudged the first
     card out of line with every other section on the page. */
  display: flex; gap: 1.25rem; padding: .5rem max(var(--gutter), calc((100% - var(--wrap)) / 2)) 1.5rem;
  width: max-content;
}
.rail .quote { scroll-snap-align: center; width: min(78vw, 26rem); flex: none; margin: 0; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--teal-100); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: transparent; }

/* ---------- blog ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.6rem 0 0; }
.chips li { margin: 0; }
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: .28rem .7rem; border-radius: 999px;
}
a.card.post { padding: 0; overflow: hidden; }
.post__art { aspect-ratio: 20 / 11; background: var(--teal-50); }
.post__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post__body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem;
  font-size: .84rem; color: var(--ink-3); margin: 0 0 .8rem;
}
.page-head .post__meta { margin-top: 1rem; }

.illus { width: 100%; height: 100%; display: block; object-fit: cover; }

.note {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid #e3cfa6; border-radius: var(--radius);
  padding: 1.2rem 1.35rem; margin: 2rem 0;
}
.note svg { width: 22px; height: 22px; color: var(--gold); margin-top: .2rem; }
.note p { margin: 0; font-size: .96rem; color: #6b4f1c; }

/* Wide tables scroll inside this box rather than widening the page. */
.table-wrap {
  overflow-x: auto; margin: 2rem 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--teal-100); border-radius: 99px; }
/* A cut-off cell reads as broken unless you say it scrolls. Only shown where the
   table actually cannot fit, and iOS hides its scrollbar until you already swipe. */
.table-hint { display: none; font-size: .82rem; color: var(--ink-3); margin: 0 0 2rem; }
@media (max-width: 760px) { .table-hint { display: block; } }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 30rem; }
table.data th, table.data td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--teal-50); color: var(--ink); font-weight: 600; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }

.disclaimer {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-3);
}
.disclaimer p { margin: 0; }

@media print {
  .site-header, .topbar, .actionbar, .site-footer, .band { display: none; }
  body { background: #fff; }
}
