/* ==========================================================================
   Area Dental Clinic — design system
   Direction: "Warm & human" — soft teal + warm sand / terracotta.
   Chosen because the clinic's own Google reviews describe it as
   "a homely place in your area", and because every competing dental site
   in Lucknow uses clinical blue-and-white.
   ========================================================================== */

:root {
  /* ---- brand ---- */
  --teal-900: #0d3b3f;
  --teal-800: #14514f;
  --teal-700: #1a6560;
  --teal-600: #217b73;
  --teal-500: #2f958a;
  --teal-400: #5cb3a8;
  --teal-300: #93cfc6;
  --teal-200: #c3e5e0;
  --teal-100: #e3f2ef;
  --teal-50:  #f2f9f7;

  --terra-700: #9c4a2f;
  --terra-600: #bd5a37;
  --terra-500: #d9713f;
  --terra-400: #e89163;
  --terra-300: #f2b48f;
  --terra-200: #f8d6bf;
  --terra-100: #fdeade;

  --sand-500: #b79b76;
  --sand-300: #e0cdb2;
  --sand-200: #efe3d2;
  --sand-100: #f8f2e9;
  --sand-50:  #fdfaf5;

  /* ---- neutrals ---- */
  --ink-900: #1b1a18;
  --ink-800: #2d2b28;
  --ink-700: #46433e;
  --ink-600: #635f58;
  --ink-500: #857f76;
  --ink-400: #a8a29a;
  --ink-300: #cdc8c0;
  --ink-200: #e5e1da;
  --ink-100: #f2efea;
  --white: #ffffff;

  /* ---- semantic ---- */
  --bg: var(--sand-50);
  --bg-raised: var(--white);
  --bg-tint: var(--teal-50);
  --bg-warm: var(--sand-100);
  --text: var(--ink-800);
  --text-muted: var(--ink-600);
  --text-faint: var(--ink-500);
  --border: var(--ink-200);
  --border-strong: var(--ink-300);
  --brand: var(--teal-700);
  --brand-hover: var(--teal-800);
  --accent: var(--terra-500);
  --accent-hover: var(--terra-600);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --success: #2f7d5c;
  --warn: #b8860b;
  --danger: #c0392b;

  /* ---- type ---- */
  --font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hi: "Noto Sans Devanagari", "Nirmala UI", var(--font-sans);

  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.37rem);
  --step-2:  clamp(1.44rem, 1.33rem + 0.55vw, 1.73rem);
  --step-3:  clamp(1.73rem, 1.55rem + 0.87vw, 2.18rem);
  --step-4:  clamp(2.07rem, 1.81rem + 1.3vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.1rem + 1.94vw, 3.47rem);

  /* ---- space ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* ---- shape ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 26, 24, 0.05), 0 1px 3px rgba(27, 26, 24, 0.06);
  --shadow-md: 0 2px 4px rgba(27, 26, 24, 0.04), 0 6px 16px rgba(27, 26, 24, 0.08);
  --shadow-lg: 0 4px 8px rgba(27, 26, 24, 0.04), 0 16px 40px rgba(27, 26, 24, 0.1);
  --shadow-brand: 0 8px 28px rgba(26, 101, 96, 0.18);

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 480ms;

  --header-h: 68px;
}

/* ==========================================================================
   reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="hi"] body, html[lang="hi-IN"] body { font-family: var(--font-hi); }
html[lang="hi"] .display, html[lang="hi-IN"] .display { font-family: var(--font-hi); font-weight: 700; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--brand); text-decoration-color: var(--teal-300); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
ul, ol { padding-left: 1.15em; }
li + li { margin-top: 0.3em; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 650; letter-spacing: -0.018em; color: var(--ink-900); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--terra-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-200%);
  z-index: 200; background: var(--teal-800); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600; text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: #fff; }

/* ==========================================================================
   layout
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sp-8); }
.section-sm { padding-block: var(--sp-7); }
.section-tint { background: var(--bg-tint); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--teal-900); color: var(--teal-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--teal-200); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 650; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--terra-600);
}
.section-dark .eyebrow { color: var(--terra-300); }
.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; max-width: 62ch; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.028em; }

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 245, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.brand-link { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink-900); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.09rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  padding: 0.5rem 0.7rem; border-radius: var(--r-sm); text-decoration: none;
  color: var(--ink-700); font-weight: 550; font-size: 0.94rem;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav a:hover { background: var(--teal-100); color: var(--teal-800); }
.nav a[aria-current="page"] { color: var(--teal-800); background: var(--teal-100); }

.has-menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  color: var(--ink-700); font-weight: 550; font-size: 0.94rem;
}
.menu-btn:hover { background: var(--teal-100); color: var(--teal-800); }
.menu-btn svg { transition: transform var(--dur-fast) var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: var(--sp-2); display: none; z-index: 110;
}
.menu-panel.open { display: block; animation: pop var(--dur) var(--ease-out); }
.menu-panel a { display: block; padding: 0.5rem 0.65rem; font-size: 0.92rem; }
.menu-panel .menu-price { color: var(--text-faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.lang-switch { display: flex; gap: 2px; background: var(--ink-100); border-radius: var(--r-full); padding: 3px; }
.lang-switch a {
  padding: 0.28rem 0.6rem; border-radius: var(--r-full); font-size: 0.82rem;
  font-weight: 650; text-decoration: none; color: var(--text-muted);
}
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--teal-800); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; padding: 0.55rem; border-radius: var(--r-sm); color: var(--ink-800); }
.nav-toggle:hover { background: var(--teal-100); }

@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; animation: slideDown var(--dur) var(--ease-out); }
  .nav a, .menu-btn { padding: 0.75rem 0.5rem; font-size: 1rem; width: 100%; }
  .menu-panel { position: static; box-shadow: none; border: none; border-left: 2px solid var(--teal-200); border-radius: 0; margin-left: 0.5rem; min-width: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .lang-switch { align-self: flex-start; margin-top: var(--sp-3); }
}

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.3rem; border-radius: var(--r-full);
  font-weight: 640; font-size: 0.97rem; text-decoration: none;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--teal-800); color: #fff; box-shadow: 0 12px 32px rgba(26, 101, 96, 0.26); }

.btn-accent { background: var(--terra-500); color: #fff; box-shadow: 0 8px 24px rgba(217, 113, 63, 0.26); }
.btn-accent:hover { background: var(--terra-600); color: #fff; }

.btn-wa { background: var(--whatsapp); color: #06251a; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.24); }
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }

.btn-ghost { background: var(--white); color: var(--teal-800); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--teal-50); border-color: var(--teal-400); color: var(--teal-900); }

.btn-quiet { background: transparent; color: var(--brand); padding-inline: 0.35rem; }
.btn-quiet:hover { text-decoration: underline; transform: none; }

.btn-lg { padding: 0.92rem 1.7rem; font-size: 1.04rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.section-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ==========================================================================
   cards
   ========================================================================== */
.card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); color: inherit; }
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card-accent .card-icon { background: var(--terra-100); color: var(--terra-600); }
.card-foot { margin-top: auto; padding-top: var(--sp-4); display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.price-tag { font-weight: 700; color: var(--teal-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-tag small { font-weight: 500; color: var(--text-faint); font-size: 0.76em; }
.card-cta { font-size: 0.88rem; font-weight: 640; color: var(--terra-600); display: inline-flex; align-items: center; gap: 0.3em; }
.card-link:hover .card-cta { gap: 0.55em; }
.card-cta svg { transition: transform var(--dur-fast) var(--ease); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.2rem 0.6rem; border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  background: var(--teal-100); color: var(--teal-800); text-transform: uppercase;
}
.badge-urgent { background: #fdeceb; color: var(--danger); }
.badge-accent { background: var(--terra-100); color: var(--terra-700); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero { position: relative; padding-block: var(--sp-8) var(--sp-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 74% at 88% 6%, var(--teal-100) 0%, transparent 62%),
    radial-gradient(48% 62% at 4% 92%, var(--terra-100) 0%, transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; gap: var(--sp-7); align-items: center; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-5); margin-bottom: var(--sp-4); }
.hero h1 .hl { color: var(--teal-700); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.03em; height: 0.3em;
  background: var(--terra-200); border-radius: 3px; z-index: -1;
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.trust-item { display: flex; flex-direction: column; gap: 0.1rem; }
.trust-num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--teal-800); line-height: 1; }
.trust-label { font-size: 0.8rem; color: var(--text-faint); font-weight: 550; }

.hero-media { position: relative; }
.hero-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--shadow-lg);
}
.hero-card + .hero-card { margin-top: var(--sp-4); }

/* open-now pill */
.open-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: var(--r-full);
  font-size: 0.87rem; font-weight: 640; border: 1px solid var(--border);
  background: var(--white);
}
.open-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-400); flex-shrink: 0; }
.open-pill[data-state="open"] { border-color: #9fd9bd; background: #eefaf3; color: #1d6344; }
.open-pill[data-state="open"] .dot { background: var(--success); box-shadow: 0 0 0 0 rgba(47,125,92,0.55); animation: pulse 2.4s infinite; }
.open-pill[data-state="closed"] { border-color: var(--sand-300); background: var(--sand-100); color: var(--ink-700); }
.open-pill[data-state="closed"] .dot { background: var(--warn); }

/* ==========================================================================
   answer box — the AEO passage
   ========================================================================== */
.answer-box {
  background: var(--white); border: 1px solid var(--teal-200);
  border-left: 5px solid var(--teal-600);
  border-radius: var(--r-md); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.answer-box p { font-size: var(--step-1); line-height: 1.55; color: var(--ink-800); }
.answer-box .answer-label {
  display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: var(--sp-2);
}

/* ==========================================================================
   price table
   ========================================================================== */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); }
.price-table { font-size: 0.95rem; min-width: 420px; }
.price-table caption { text-align: left; padding: var(--sp-4) var(--sp-5) 0; font-weight: 650; color: var(--ink-900); }
.price-table th, .price-table td { padding: 0.8rem var(--sp-5); text-align: left; border-bottom: 1px solid var(--ink-100); }
.price-table thead th { background: var(--teal-50); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-800); border-bottom: 1px solid var(--teal-200); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 640; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--sand-50); }
.price-table a { font-weight: 550; }
.table-group th {
  background: var(--sand-100); font-family: var(--font-display); font-size: 1rem;
  font-weight: 600; color: var(--teal-900); letter-spacing: -0.01em; text-transform: none;
}

.updated-note {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.85rem; color: var(--text-faint);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.faq-item { border-bottom: 1px solid var(--ink-100); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink-900); transition: background var(--dur-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--teal-50); }
.faq-item summary::after {
  content: ""; margin-left: auto; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 2.2px solid var(--teal-600); border-bottom: 2.2px solid var(--teal-600);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease); margin-top: 6px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { background: var(--teal-50); }
.faq-answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); max-width: 72ch; }

/* ==========================================================================
   steps / timeline
   ========================================================================== */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; padding-bottom: var(--sp-5); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--teal-700); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.steps li::after {
  content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0.2rem;
  width: 2px; background: var(--teal-200);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h4 { font-size: var(--step-0); margin-bottom: 0.2rem; }
.steps p { color: var(--text-muted); font-size: 0.94rem; }

.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 1.9rem; margin-top: 0.55rem; color: var(--text-muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 1.1rem; height: 0.58rem;
  border-left: 2.4px solid var(--terra-500); border-bottom: 2.4px solid var(--terra-500);
  transform: rotate(-45deg);
}

.meta-strip { display: flex; flex-wrap: wrap; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-md); }
.meta-strip div { display: flex; flex-direction: column; }
.meta-strip dt { font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; }
.meta-strip dd { margin: 0; font-weight: 600; color: var(--ink-900); }

/* ==========================================================================
   interactive islands
   ========================================================================== */
.tool {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden;
}
.tool-head { padding: var(--sp-5); background: linear-gradient(135deg, var(--teal-800), var(--teal-600)); color: #fff; }
.tool-head h2, .tool-head h3 { color: #fff; margin-bottom: 0.25rem; }
.tool-head p { color: var(--teal-100); font-size: 0.94rem; }
.tool-body { padding: var(--sp-5); }
.tool-foot { padding: var(--sp-4) var(--sp-5); background: var(--sand-50); border-top: 1px solid var(--border); }

.progress { height: 5px; background: var(--teal-100); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--sp-5); }
.progress-bar { height: 100%; background: var(--terra-500); border-radius: var(--r-full); transition: width var(--dur-slow) var(--ease-out); width: 0; }

.step-panel { display: none; animation: fadeUp var(--dur-slow) var(--ease-out); }
.step-panel.active { display: block; }
.step-q { font-size: var(--step-2); font-weight: 640; margin-bottom: var(--sp-2); color: var(--ink-900); }
.step-hint { color: var(--text-muted); font-size: 0.93rem; margin-bottom: var(--sp-5); }

.opt-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.opt {
  display: flex; flex-direction: column; gap: 0.2rem; text-align: left;
  padding: var(--sp-4); border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--white); transition: all var(--dur-fast) var(--ease);
}
.opt:hover { border-color: var(--teal-400); background: var(--teal-50); transform: translateY(-2px); }
.opt[aria-pressed="true"], .opt.selected { border-color: var(--teal-600); background: var(--teal-50); box-shadow: 0 0 0 3px var(--teal-100); }
.opt-title { font-weight: 640; color: var(--ink-900); }
.opt-sub { font-size: 0.84rem; color: var(--text-faint); }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  padding: 0.5rem 1rem; border-radius: var(--r-full); border: 1.5px solid var(--border);
  background: var(--white); font-weight: 600; font-size: 0.92rem;
  transition: all var(--dur-fast) var(--ease);
}
.pill:hover { border-color: var(--teal-400); background: var(--teal-50); }
.pill[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

.result {
  text-align: center; padding: var(--sp-6) var(--sp-5);
  background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-lg);
}
.result-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; }
.result-value {
  font-family: var(--font-display); font-size: var(--step-5); font-weight: 600;
  color: var(--teal-900); line-height: 1.05; margin: var(--sp-2) 0;
  font-variant-numeric: tabular-nums;
}
.result-note { font-size: 0.88rem; color: var(--text-muted); max-width: 46ch; margin-inline: auto; }
.result-breakdown { margin-top: var(--sp-5); text-align: left; font-size: 0.92rem; }
.result-breakdown li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.45rem 0; border-bottom: 1px dashed var(--teal-200); }
.result-breakdown li:last-child { border-bottom: none; font-weight: 700; color: var(--teal-900); }

.slider-wrap { margin-block: var(--sp-5); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-3); }
.slider-val { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--teal-800); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--r-full); background: var(--teal-100); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-700); border: 4px solid #fff; box-shadow: var(--shadow-md); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-700);
  border: 4px solid #fff; box-shadow: var(--shadow-md); cursor: grab;
}
.slider-scale { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text-faint); margin-top: 0.4rem; font-variant-numeric: tabular-nums; }

.emi-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: var(--sp-3); }
/* Flex column, not inline spans — as inline they overlapped each other. */
.emi-cell {
  display: flex; flex-direction: column; gap: 0.15rem; align-items: center;
  padding: var(--sp-4) var(--sp-3); border: 1px solid var(--border);
  border-radius: var(--r-md); text-align: center; background: var(--white);
  transition: all var(--dur-fast) var(--ease);
}
.emi-cell.best { border-color: var(--terra-400); background: var(--terra-100); }
.emi-cell .t {
  display: block; font-size: 0.72rem; color: var(--text-faint); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3;
}
.emi-cell.best .t { color: var(--terra-700); }
.emi-cell .v {
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  font-weight: 600; color: var(--teal-900); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.emi-cell .s { display: block; font-size: 0.76rem; color: var(--text-faint); line-height: 1.3; }

/* Editable amount field — typed entry alongside the slider. */
.amt-field {
  display: inline-flex; align-items: center; gap: 0.08rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 0.2rem 0.65rem; background: var(--white);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.amt-field:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.amt-field .amt-prefix {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  color: var(--teal-800); line-height: 1;
}
.amt-field input {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  color: var(--teal-800); border: none; outline: none; background: transparent;
  width: 5.4em; padding: 0; text-align: right; font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.amt-field input::-webkit-outer-spin-button,
.amt-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amt-hint { display: block; font-size: 0.76rem; color: var(--text-faint); text-align: right; margin-top: 0.2rem; }

.disclaimer {
  font-size: 0.85rem; color: var(--ink-600); background: var(--sand-100);
  border: 1px dashed var(--sand-300); border-radius: var(--r-md); padding: var(--sp-4);
}
.disclaimer strong { color: var(--ink-800); }

/* triage urgency */
.urgency { padding: var(--sp-5); border-radius: var(--r-lg); border: 1.5px solid; }
.urgency h4 { margin-bottom: var(--sp-2); }
.urgency-now { background: #fdeceb; border-color: #f0b3ad; }
.urgency-now h4 { color: #96271b; }
.urgency-soon { background: #fdf5e3; border-color: var(--sand-300); }
.urgency-soon h4 { color: #8a6410; }
.urgency-routine { background: #eefaf3; border-color: #9fd9bd; }
.urgency-routine h4 { color: #1d6344; }

/* ==========================================================================
   forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 620; font-size: 0.92rem; color: var(--ink-800); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 0.72rem 0.9rem; border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--white); width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); outline: none;
}
.field .hint { font-size: 0.82rem; color: var(--text-faint); }
.field .err { font-size: 0.82rem; color: var(--danger); font-weight: 550; }
.field-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--teal-700); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { padding: var(--sp-4); border-radius: var(--r-md); font-weight: 550; display: none; }
.form-status.show { display: block; animation: fadeUp var(--dur) var(--ease-out); }
.form-status.ok { background: #eefaf3; border: 1px solid #9fd9bd; color: #1d6344; }
.form-status.bad { background: #fdeceb; border: 1px solid #f0b3ad; color: #96271b; }

/* ==========================================================================
   doctor / team
   ========================================================================== */
.doc-card { display: grid; gap: var(--sp-5); grid-template-columns: 128px 1fr; align-items: start; }
@media (max-width: 620px) { .doc-card { grid-template-columns: 1fr; } }
.doc-photo {
  width: 128px; height: 128px; border-radius: var(--r-lg); object-fit: cover;
  background: var(--teal-100); border: 1px solid var(--border);
}
.doc-avatar { display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--teal-700); }
.credential {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem;
  padding: 0.25rem 0.65rem; border-radius: var(--r-full);
  background: var(--teal-50); border: 1px solid var(--teal-200);
  color: var(--teal-800); font-weight: 620; font-variant-numeric: tabular-nums;
}
.reviewed-by {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--sand-100); border: 1px solid var(--sand-300); font-size: 0.9rem;
}
.reviewed-by strong { color: var(--ink-900); }

/* ==========================================================================
   map / contact
   ========================================================================== */
.map-embed { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--ink-100); }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }
.nap-list { list-style: none; padding: 0; }
.nap-list li { display: flex; gap: var(--sp-3); padding-block: 0.65rem; border-bottom: 1px solid var(--ink-100); }
.nap-list li:last-child { border-bottom: none; }
.nap-list .ic { color: var(--teal-600); flex-shrink: 0; margin-top: 3px; }
.nap-list .k { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); font-weight: 700; }
.nap-list .v { font-weight: 550; color: var(--ink-900); }

/* ==========================================================================
   smile explorer
   ========================================================================== */
.arch-wrap { display: grid; gap: var(--sp-5); grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 820px) { .arch-wrap { grid-template-columns: 1fr; } }
.tooth { fill: #fff; stroke: var(--teal-300); stroke-width: 1.6; cursor: pointer; transition: fill var(--dur-fast) var(--ease), stroke var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); transform-origin: center; }
.tooth:hover { fill: var(--terra-200); stroke: var(--terra-500); }
.tooth[aria-pressed="true"] { fill: var(--terra-300); stroke: var(--terra-600); stroke-width: 2.2; }
.tooth-label { font-size: 8px; fill: var(--ink-500); pointer-events: none; text-anchor: middle; font-weight: 600; }
.arch-info { padding: var(--sp-5); background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-lg); min-height: 190px; }

/* ==========================================================================
   sticky mobile bar
   ========================================================================== */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: none; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  padding: 0.5rem max(0.5rem, env(safe-area-inset-left)) max(0.5rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(27,26,24,0.09);
}
.mobile-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.16rem;
  padding: 0.5rem 0.2rem; border-radius: var(--r-md); text-decoration: none;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-700);
}
.mobile-bar a .ic { width: 22px; height: 22px; }
.mobile-bar a.wa { color: var(--whatsapp-dark); }
.mobile-bar a.call { color: var(--teal-800); }
.mobile-bar a.dir { color: var(--terra-600); }
.mobile-bar a:active { background: var(--teal-50); }
@media (max-width: 780px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 4.6rem; }
}

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer { background: var(--teal-900); color: var(--teal-200); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-8); }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: var(--sp-4); font-weight: 700; }
.site-footer a { color: var(--teal-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.footer-links { list-style: none; padding: 0; font-size: 0.92rem; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: 0.84rem; color: var(--teal-300);
}
.partner-note { font-size: 0.9rem; line-height: 1.6; }
.partner-note a { text-decoration: underline; text-decoration-color: var(--teal-600); }

/* ==========================================================================
   breadcrumbs
   ========================================================================== */
.crumbs { font-size: 0.85rem; color: var(--text-faint); padding-block: var(--sp-4) 0; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--ink-300); }
.crumbs a { text-decoration: none; color: var(--text-muted); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-800); font-weight: 550; }

/* ==========================================================================
   review strip
   ========================================================================== */
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  padding: 0.5rem 0.95rem; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast) var(--ease);
}
.rating-badge:hover { border-color: var(--teal-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rating-badge .stars { color: #e8a83a; letter-spacing: 0.05em; font-size: 0.95rem; }
.rating-badge .score { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.rating-badge .cnt { font-size: 0.84rem; color: var(--text-faint); }

/* ==========================================================================
   motion
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,125,92,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(47,125,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,125,92,0); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 70ms; }
.reveal-d2 { transition-delay: 140ms; }
.reveal-d3 { transition-delay: 210ms; }
.reveal-d4 { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card-link:hover, .opt:hover { transform: none; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .tool, .nav { display: none !important; }
  body { background: #fff; padding: 0; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
