/* =========================================================
   Aligners.com.pk — site styles
   ========================================================= */

/* Outfit (headings) and Figtree (text) — variable fonts, self-hosted, SIL Open Font Licence */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/outfit-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }

:root {
  --ink:      #111633;   /* headings, dark surfaces */
  --ink-800:  #1B2252;
  --brand:    #3346D3;   /* primary — white text passes AA */
  --brand-dk: #2535B0;   /* hover */
  --brand-100:#DDE1FB;
  --brand-75: #E6E9FF;   /* condition-tile hover */
  --brand-50: #EEF0FF;
  --mint:     #7FE0C4;
  --mint-600: #1A9270;   /* mint outlines on light tiles, 3.4:1 on --brand-50 */
  --mint-50:  #E6F8F2;
  --mint-900: #0C3D30;
  --text:     #1A1F3A;
  --muted:    #545A78;
  --line:     #E1E4F2;
  --line-strong: #8A90B2; /* form-control boundaries, 3.1:1 on white */
  --bg:       #FFFFFF;
  --tint:     #F6F7FD;
  --focus:    var(--brand); /* focus-ring colour; mint on dark surfaces */

  --r-sm: 10px;           /* inputs */
  --r-md: 12px;           /* icon tiles, answer rows, badges, factor tiles */
  --radius: 18px;         /* cards and panels */
  --radius-lg: 24px;      /* VS cards, price card, form card */
  --shadow: 0 1px 2px rgba(17, 22, 51, .05), 0 8px 24px rgba(17, 22, 51, .07);
  --shadow-lg: 0 24px 60px rgba(17, 22, 51, .18);
  --max: 1160px;
  --header-h: 72px;

  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 600ms;
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1rem; --fs-md: 1.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html.is-ready { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }

img, svg { max-width: 100%; }
h1, h2, h3 { font-family: "Outfit", "Figtree", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.25rem + 3.6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:where(:focus-visible) { border-radius: 6px; }   /* 0 specificity: pills keep 999px, nav links 8px */
.match, .site-footer { --focus: var(--mint); }
.match-form { --focus: var(--brand); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.skip-link:hover { color: #fff; }

.preview-bar { background: #FFF4D6; color: #5B4200; font-size: .85rem; text-align: center; padding: 6px 12px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8em; }
.eyebrow-light { color: var(--mint); }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: .005em;
  white-space: nowrap; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn-lg { padding: 1.05em 2em; font-size: 1.0625rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(51, 70, 211, .28); }
.btn-primary:not(:disabled):hover { background: var(--brand-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dk); border-color: var(--line); }
.btn-ghost:not(:disabled):hover { border-color: var(--brand); color: var(--brand-dk); background: var(--brand-50); }
@media (hover: hover) { .btn:not(:disabled):hover { transform: translateY(-1px); } }
.btn:not(:disabled):active { transform: scale(.98); transition-duration: .08s; }
/* one-way sheen: hero CTA and final submit only, mouse users who allow motion only */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero .btn-primary { position: relative; overflow: hidden; }
  .hero .btn-primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transition: none;   /* jumps back off-screen on mouse-out, so it never sweeps backwards */
  }
  .hero .btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(17, 22, 51, .06); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }   /* the wordmark is currentColor; stops a:hover turning it indigo */
.logo-svg { height: 40px; width: auto; display: block; }
.logo-bar { fill: var(--brand); }
.logo-bar-mint { fill: var(--mint); }
.logo-tld { fill: #646B8F; }   /* 5.2:1, still clearly lighter than the wordmark */
.footer-logo .logo-bar { fill: #6F7DFF; }
.footer-logo .logo-tld { fill: #A3A9C9; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { white-space: nowrap; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; padding: .5em .75em; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--brand-50); color: var(--brand-dk); }
.nav-cta { flex-shrink: 0; font-size: .9rem; padding: .75em 1.25em; }   /* smaller than the hero CTA */
.site-header .nav-cta { transition: opacity .2s, visibility 0s linear 0s, background .2s, color .2s, transform .2s, box-shadow .2s; }
.site-header.at-form .nav-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s linear .2s; }
.nav-toggle { display: none; }
.nav-scrim { display: none; }   /* must stay before the 999px block */
@media (hover: hover) { .nav-toggle:hover { background: var(--brand-50); } }

@media (max-width: 999px) {
  .nav-cta { display: inline-flex; order: 2; margin-left: auto; padding: .55em 1.05em; font-size: .875rem; box-shadow: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    order: 3; flex-shrink: 0; margin-left: 0; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:active { background: var(--brand-50); }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; translate: 0 -8px;
  }
  .nav.is-open { visibility: visible; opacity: 1; translate: 0 0; }
  .nav a:not(.btn) { padding: .8em .6em; font-size: 1rem; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(17, 22, 51, .4); opacity: 0; visibility: hidden; cursor: pointer; }
  .nav-scrim.is-on { opacity: 1; visibility: visible; }
}
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .nav { transition: opacity .2s var(--ease), translate .2s var(--ease), visibility 0s linear .2s; }
  .nav.is-open { transition-delay: 0s; }
  .nav-scrim { transition: opacity .2s var(--ease), visibility 0s linear .2s; }
  .nav-scrim.is-on { transition-delay: 0s; }
}
@media (max-width: 420px) { :root { --header-h: 62px; } .logo-svg { height: 34px; } .nav-inner { gap: 8px; } }
@media (max-width: 359px) {
  .logo-svg { height: 30px; } .nav-inner { gap: 6px; }
  .nav-cta { padding: .5em .85em; font-size: .8125rem; }
  .nav-toggle { width: 40px; padding: 9px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 72px; background: var(--bg); }
.hero::before {   /* glows on a masked layer: they fade out under the header and before #start */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% 30%, var(--brand-100), transparent 60%),
    radial-gradient(600px 400px at 0% 80%, var(--mint-50), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 .hl { display: block; color: var(--brand); }   /* 'Find the right / clear aligner option / for your smile' */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 22px; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; aspect-ratio: 1 / .92;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--brand-dk), var(--ink));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 12% 8% 4%;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(60% 50% at 50% 35%, rgba(159, 231, 218, .22), transparent 70%);
}
.badge {
  position: absolute; display: flex; flex-direction: column; line-height: 1.25;
  background: #fff; border-radius: var(--r-md); padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .78rem; color: var(--muted);
}
.badge strong { color: var(--text); font-size: .95rem; }
.badge-a { top: 7%; left: -6%; }
.badge-b { top: 44%; right: -6%; }
.badge-c { bottom: 7%; left: 10%; }

@media (max-width: 719px) {
  .hero { padding: 36px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; padding: 0 16px; }
  .badge-a { left: -2%; }
  .badge-b { right: -2%; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
@media (max-width: 700px) { .section { padding: 60px 0; } }


/* cards */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; transition: border-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.card::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--mint); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }


/* cost */

/* ---------- match form ---------- */
.match {
  color: #C9CDE6;
  background:
    radial-gradient(720px 520px at 78% 45%, rgba(51, 70, 211, .38), transparent 70%),
    radial-gradient(420px 320px at 8% 100%, rgba(127, 224, 196, .10), transparent 70%),
    var(--ink);
}
.match h2 { color: #fff; }
.match-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (min-width: 901px) { .match-intro { padding-top: 32px; } }
@media (max-width: 900px) {
  .match-grid { grid-template-columns: 1fr; gap: 32px; }
  .match-intro { text-align: center; max-width: 600px; margin: 0 auto; }   /* section heads are centred */
  .match-chips { justify-content: center; }
  .match-form { max-width: 600px; width: 100%; margin: 0 auto; }
}
.match-form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); scroll-margin-top: 16px; }
@media (min-width: 901px) { .match-form { scroll-margin-top: 88px; } }
@media (max-width: 600px) { .match-form { padding: 24px 18px; } }
/* GoHighLevel's form_embed.js resizes the iframe to fit its form. */
.match-form-embed iframe { display: block; width: 100%; height: 606px; border: 0; border-radius: 8px; }

.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-50); display: grid; place-items: center; margin: 0 auto 14px; }
.done-mark svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .done-mark path { stroke-dasharray: 24; animation: draw-check .5s .2s var(--ease) backwards; }   /* the tick draws itself once */
}
@keyframes draw-check { from { stroke-dashoffset: 24; } }

/* ---------- thank-you page (GHL redirects here after a form submit) ---------- */
.thanks .done-mark { margin-bottom: 22px; }
.thanks .lead { max-width: 560px; margin: 0 auto 40px; }
.thanks-next { text-align: left; max-width: 620px; margin: 0 auto 36px; }
.thanks-next h2 { font-size: 1rem; text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.thanks-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .thanks-next ul { grid-template-columns: 1fr; } }
.thanks-next a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.thanks-next a span { color: var(--brand); transition: translate .2s var(--ease); }
.thanks-next a:hover { border-color: var(--brand); color: var(--brand); }
.thanks-next a:hover span { translate: 3px 0; }
.thanks-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { padding: 0; }
.faq details + details { border-top: 1px solid var(--line); }
.faq details[open] { background: linear-gradient(var(--brand-50), #fff 72px); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 64px 22px 24px; font-weight: 600; color: var(--text); -webkit-tap-highlight-color: transparent; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary:focus-visible { outline-offset: -4px; border-radius: 14px; }
.faq summary::before { content: ''; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--brand-50); transition: background .25s var(--ease); }
.faq details[open] summary::before { background: var(--brand); }
.faq summary::after { content: ''; position: absolute; z-index: 1; right: 29px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease), border-color .25s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: #fff; }
.faq details p { color: var(--muted); margin: 0; padding: 0 64px 22px 24px; }
@media (max-width: 600px) {
  .faq summary { padding: 20px 56px 20px 20px; }
  .faq summary::before { right: 14px; }
  .faq summary::after { right: 23px; }
  .faq details p { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}



/* ---------- prose pages ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }

/* ---------- guide pages ---------- */
.guide-hero { padding-bottom: 32px; background: var(--tint); }
.guide-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .45em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.updated { font-size: .88rem; color: var(--muted); margin: 0; }
.guide-body { padding: 48px 0 88px; }
.guide-body .prose > h2:first-child { margin-top: 0; }
.guide-cta { margin-top: 48px; padding: 32px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--line); }
.guide-cta h2 { margin-top: 0; font-size: 1.35rem; }
.guide-cta p { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.compare-table tbody th { color: var(--ink); font-weight: 600; width: 26%; }
.compare-table td { color: var(--muted); }
@media (max-width: 600px) {
  .compare-table { min-width: 0; font-size: .82rem; line-height: 1.45; }
  .compare-table th, .compare-table td { padding: 10px 9px; }
  .compare-table tbody th { width: 27%; }
}
.cond-card h4 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.cond-card h4 a:hover { color: var(--brand); text-decoration-color: var(--brand); }
/* ---------- blog ---------- */
.blog-hero { background: var(--ink); }
.blog-hero img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 18px 40px -20px rgba(17, 22, 51, .35); transform: translateY(-2px); }
.post-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; }
.post-card-body h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .5em; }
.post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body h3 a::after { content: none; }
.post-card-body h3 a:hover { color: var(--brand); }
.post-card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-card-meta { font-size: .82rem !important; margin-bottom: .6em !important; }
.post-head { background: var(--tint); padding: 48px 0 0; }
.post-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .4em; }
.post-meta { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.post-head { padding-bottom: 40px; }
.post-cover { margin-top: 28px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -24px rgba(17, 22, 51, .45); }
.post-body { padding-top: 48px; padding-bottom: 88px; }
.related .post-grid { margin-bottom: 40px; }

/* blog categories */
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand-50); color: var(--brand-dk); font-size: .75rem; }
.cat-pill.is-active .cat-count { background: rgba(255, 255, 255, .22); color: #fff; }
.cat-badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-dk); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.cat-badge:hover { background: var(--brand); color: #fff; }
.cat-badge-lg { margin-bottom: 14px; font-size: .78rem; padding: 5px 12px; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.cat-hero { background: var(--tint); padding-bottom: 40px; }
.cat-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .35em; }
.cat-hero .lead { max-width: 640px; }
@media (max-width: 640px) {
  .cat-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .cat-pills::-webkit-scrollbar { display: none; }
  .cat-pill { flex: 0 0 auto; }
}
.related-guides-head { font-size: 1.35rem; }
@media (max-width: 640px) { .post-head { padding-bottom: 24px; } .post-cover img { border-radius: var(--radius); } .post-body { padding-top: 32px; padding-bottom: 60px; } }
.affiliation-note { font-size: .82rem !important; color: var(--muted); border-left: 3px solid var(--mint); padding: 6px 0 6px 12px; margin: 0 0 24px; }
.prose .disclaimer { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .85rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.related-list .link-arrow { color: var(--brand); white-space: normal; }
@media (max-width: 700px) { .guide-body { padding: 36px 0 60px; } .guide-cta { padding: 24px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A3A9C9; padding: 56px 0 28px; font-size: .9rem; }
.site-footer a { color: #E4E8FF; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--mint); }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; color: #fff; margin-bottom: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration-line: underline; text-underline-offset: 4px; }
.disclosure { margin: 28px auto 12px; font-size: .82rem; line-height: 1.6; max-width: 640px; text-align: center; }
.disclosure strong { color: #fff; }
.copyright { margin: 0; font-size: .8rem; text-align: center; }

/* ---------- homepage components ---------- */
.tagline { font-weight: 600; color: var(--ink); }
.hero .lead { color: var(--ink); font-weight: 500; margin-bottom: .6em; font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.45; }
.hero-copy > p:not(.lead):not(.tagline):not(.eyebrow) { color: var(--muted); }
.hero-note { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero-note::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-600); box-shadow: 0 0 0 4px var(--mint-50); }
.hero-card { background: linear-gradient(160deg, var(--ink-800), var(--ink)); }
.hero-card::before { background: radial-gradient(60% 50% at 50% 35%, rgba(127, 224, 196, .18), transparent 70%); }

.subhead { margin: 48px 0 20px; font-size: 1.25rem; }
.section-cta { margin: 36px 0 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; }
.grid-4 .card::before { display: none; }
@media (max-width: 560px) {
  .grid-4 { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .grid-4 .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; border: 0; border-radius: 0; padding: 18px; }
  .grid-4 .card + .card { border-top: 1px solid var(--line); }
  .grid-4 .card:hover { box-shadow: none; }
  .grid-4 .card-icon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
  .grid-4 .card :is(h3, h4) { margin: 2px 0 4px; }
  .grid-4 .card p { font-size: .92rem; line-height: 1.5; }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  /* rows fade in place, so the dividers don't slide inside the clipped panel */
  .js-reveal .grid-4 > .reveal:not(.is-visible) { translate: none; }
  .js-reveal .grid-4 > .reveal.is-visible { animation-name: reveal-fade; }
}
@keyframes reveal-fade { from { opacity: 0; } }

.callout { max-width: 900px; margin: 40px auto 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--ink); font-size: 1.1rem; text-align: center; }
.callout::before { content: ''; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--mint); margin: 0 auto 18px; }
.callout p { max-width: 50em; margin: 0 auto; }
.callout strong { display: block; color: var(--ink); }   /* the bold claim on its own line, the reason under it */


/* #choosing: one white panel, two columns of icon + text rows */
.choose-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.choose-item { display: flex; align-items: flex-start; gap: 18px; padding: 28px 32px; border-bottom: 1px solid var(--line); transition: background var(--dur-2) var(--ease); }
.choose-item:nth-child(odd) { border-right: 1px solid var(--line); }
.choose-item:nth-last-child(-n+2) { border-bottom: 0; }
.choose-item h3 { font: 600 var(--fs-md)/1.3 'Outfit', 'Figtree', system-ui, sans-serif; letter-spacing: -.01em; margin: 2px 0 6px; }
.choose-item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.choose-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); transition: background .3s var(--ease), transform .3s var(--ease); }
.choose-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.choose-icon svg * { vector-effect: non-scaling-stroke; }
@media (hover: hover) and (pointer: fine) {
  .choose-item:hover { background: #FAFBFF; }
  .choose-item:hover .choose-icon { background: var(--brand); }
  .choose-item:hover .choose-icon svg { stroke: #fff; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .choose-item:hover .choose-icon { transform: rotate(-6deg); }
}
@media (max-width: 760px) {
  .choose-list { grid-template-columns: 1fr; }
  .choose-item { padding: 20px; gap: 16px; }
  .choose-item:nth-child(odd) { border-right: 0; }
  .choose-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

.match .eyebrow-light { color: var(--mint); }


/* hero photo fills the card */
.hero-card { aspect-ratio: 4 / 5; padding: 0; display: block; background: var(--brand-50); }
.hero-card::before { display: none; }
.hero-card picture, .hero-img { display: block; width: 100%; height: 100%; }
.hero-card picture { border-radius: inherit; overflow: hidden; }   /* a fixed frame for the photo settle; badges are siblings, never clipped */
.hero-img { object-fit: cover; border-radius: 32px; }
.hero-visual { max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 719px) { .hero-visual { justify-self: center; } }
@media (max-width: 900px) { .hero-card { box-shadow: 0 16px 36px rgba(17, 22, 51, .14); } }
/* Tablet portrait: the left-copy / right-photo layout */
@media (min-width: 720px) and (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
  .hero-visual { padding: 0; max-width: none; margin: 0; justify-self: end; }
  .hero h1 { font-size: 2.15rem; }
  .badge-a { left: -14px; } .badge-b { right: -10px; } .badge-c { left: 8%; }
}
/* Stacked, 601-719: photo on the same 20px gutters as the text */
@media (min-width: 601px) and (max-width: 719px) {
  .hero-visual { max-width: none; padding: 0; margin: 0; }
  .hero-card { aspect-ratio: 4 / 3; }
  .hero-img { object-position: 50% 25%; }
  .badge-a { left: -6px; } .badge-b { right: -6px; }
}
/* Two-column hero up to small laptops: overhanging badges stay inside the 20px gutter */
@media (min-width: 900.02px) and (max-width: 1240px) {
  .badge-a { left: -16px; } .badge-b { right: -10px; }
}
/* Phones: headline, then photo, then supporting copy and a full-width CTA */
@media (max-width: 600px) {
  .hero { padding: 20px 0 48px; }
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero-visual { order: 3; margin: 4px 0 24px; padding: 0; max-width: none; }
  .hero-copy > :nth-child(n+3) { order: 4; }
  .hero-copy > .tagline { margin-bottom: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-note { justify-content: center; }
  .hero-card { aspect-ratio: 16 / 11; border-radius: 22px; }
  .hero-img { border-radius: 22px; object-position: 50% 22%; }
  .badge { padding: 7px 11px; border-radius: 11px; font-size: .72rem; }
  .badge strong { font-size: .82rem; }
  .badge-a { top: 10px; left: 10px; }
  .badge-b { top: auto; bottom: 10px; right: 10px; }
  .badge-c { bottom: 10px; left: 10px; }
}

/* =========================================================
   Conditions, cost factors, treatment-time timeline
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }


.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .cond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .cond-grid { gap: 12px; } }
.cond-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px;
  transition: border-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.cond-card h4 { margin: 0; font: 600 1.02rem/1.3 "Outfit", sans-serif; color: var(--ink); letter-spacing: -.01em; }
.cond-icon {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; max-height: 112px;
  border-radius: var(--r-md); background: var(--brand-50); transition: background .35s var(--ease);
}
.cond-icon svg { width: 62%; max-width: 132px; height: auto; overflow: visible; }
.cond-icon svg * { vector-effect: non-scaling-stroke; }   /* same line weight at every breakpoint */
.cond-icon .gum { stroke: #C7CDEE; stroke-width: 3px; stroke-linecap: round; fill: none; transition: stroke .35s; }
.cond-icon .tooth { fill: #fff; stroke: var(--brand); stroke-width: 1.75px; transition: fill .35s, stroke .35s; }
.cond-icon .hl { fill: #fff; stroke: var(--mint-600); stroke-width: 1.75px; transition: fill .35s, stroke .35s; }
.cond-icon .hl-line { stroke: var(--mint-600); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: stroke .35s; }
@media (hover: hover) and (pointer: fine) {
  .cond-card:hover { border-color: var(--brand-100); box-shadow: 0 6px 16px rgba(17, 22, 51, .06); }   /* stays light, keeps its edge */
  .cond-card:hover .cond-icon { background: var(--brand-75); }
  .cond-card:hover .cond-icon .hl { fill: var(--mint); stroke: var(--mint-900); }   /* outline by default, mint fill on hover */
  .cond-card:hover .cond-icon .hl-line { stroke: var(--mint-900); }
}

.cond-note { background: var(--brand-50); border-color: var(--brand-100); justify-content: space-between; cursor: pointer; transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.cond-note p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.55; transition: color .35s; }
.cond-note .link-arrow { color: var(--brand); }
.cond-note .link-arrow::after { content: ''; position: absolute; inset: 0; border-radius: 17px; }   /* stretched link: the whole card is the target */
.cond-note:active { background: var(--brand-100); }
@media (hover: hover) and (pointer: fine) {
  .cond-note:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 24px 60px rgba(17, 22, 51, .3); }
  .cond-note:hover p { color: #C9CDE6; }
  .cond-note:hover .link-arrow { color: var(--mint); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .cond-note:hover { transform: translateY(-3px); } }
.cond-note:has(.link-arrow:focus-visible) { background: var(--ink); border-color: var(--ink); box-shadow: 0 24px 60px rgba(17, 22, 51, .3); }
.cond-note:has(.link-arrow:focus-visible) p { color: #C9CDE6; }
.cond-note:has(.link-arrow:focus-visible) .link-arrow { color: var(--mint); }
.cond-note .link-arrow:focus-visible { outline: none; }
.cond-note .link-arrow:focus-visible::after { outline: 2px solid var(--brand); outline-offset: 4px; }
.cond-note .link-arrow:focus-visible span { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mint); text-decoration: none; white-space: nowrap; }
.link-arrow span { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { transform: translateX(4px); } }
@media (max-width: 560px) {
  .cond-grid { grid-template-columns: 1fr; gap: 10px; }
  .cond-card { flex-direction: row; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border-radius: 16px; }
  .cond-icon { width: clamp(104px, 28vw, 120px); flex: none; aspect-ratio: 4 / 3; max-height: none; border-radius: 10px; }
  .cond-icon svg { width: 80%; }
  .cond-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .cond-note .link-arrow::after { border-radius: 15px; }
}

/* cost factors: icon tiles */


/* match section chips */
.match-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.match-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #E4E8FF; font-size: .9rem;
}
.match-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(127, 224, 196, .18); }
.match-chips li:last-child { display: block; flex-basis: 100%; background: none; border: 0; border-radius: 0; padding: 4px 0 0; color: #8C92B5; font-size: .82rem; }
.match-chips li:last-child::before { display: none; }
@media (prefers-reduced-motion: no-preference) { .match-form.is-arrived { animation: arrive .9s var(--ease); } }
@keyframes arrive {
  from { box-shadow: 0 0 0 0 rgba(127, 224, 196, .6), 0 20px 40px -20px rgba(0, 0, 0, .45); }
  to   { box-shadow: 0 0 0 16px rgba(127, 224, 196, 0), 0 20px 40px -20px rgba(0, 0, 0, .45); }
}

/* =========================================================
   Hover polish across the page
   ========================================================= */
.card-icon { transition: background .3s var(--ease), transform .3s var(--ease); }
.card-icon svg { transition: stroke .3s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--brand-100); box-shadow: 0 6px 16px rgba(17, 22, 51, .06); }   /* no lift */
  .card:hover .card-icon { background: var(--brand); }
  .card:hover .card-icon svg { stroke: #fff; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover .card-icon, .fact:hover .fact-icon { transform: rotate(-6deg); }
}
@media (min-width: 1000px) {
  .nav a:not(.btn) { position: relative; }
  .nav a:not(.btn)::after {
    content: ''; position: absolute; left: .75em; right: .75em; bottom: .3em; height: 2px; border-radius: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav a:not(.btn):hover { background: none; }
  .nav a:not(.btn):focus-visible::after, .nav a:not(.btn)[aria-current]::after { transform: scaleX(1); }
  .nav a:not(.btn)[aria-current] { color: var(--brand-dk); }
}
@media (min-width: 1000px) and (hover: hover) { .nav a:not(.btn):hover::after { transform: scaleX(1); } }
.footer-nav a { transition: color .2s, text-decoration-color .2s; }
@media (max-width: 600px), (pointer: coarse) {
  .footer-nav { row-gap: 0; margin: -10px 0; }
  .footer-nav a { padding: 10px 0; }
}

/* =========================================================
   Scroll reveal — only applies once the script has added
   .js-reveal, and never for visitors who prefer reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal:not(.is-visible) { opacity: 0; translate: 0 32px; }
  .js-reveal .reveal.is-visible { animation: reveal-in .85s var(--ease) var(--d, 0ms) both; }

  /* hero plays on load: headline and photo are painted on the first frame; only geometry moves */
  .hero-copy > * { animation: rise .6s var(--ease) both; }
  .hero-copy > h1 { animation-name: settle; }
  .hero-copy > :nth-child(2) { animation-delay: .04s; }
  .hero-copy > :nth-child(3) { animation-delay: .08s; }
  .hero-copy > :nth-child(4) { animation-delay: .12s; }
  .hero-copy > :nth-child(5) { animation-delay: .16s; }
  .hero-copy > :nth-child(6) { animation-delay: .2s; }
  .hero-img { animation: img-settle 1.1s var(--ease) both; }
  /* the three labels float continuously, each out of step with the others */
  .badge-a { animation: pop .5s .55s var(--ease-pop) both, float 5.5s 1.05s ease-in-out infinite; }
  .badge-b { animation: pop .5s .7s var(--ease-pop) both, float 6.5s 2.2s ease-in-out infinite; }
  .badge-c { animation: pop .5s .85s var(--ease-pop) both, float 6s 3.3s ease-in-out infinite; }

}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(10px); } }
@keyframes img-settle { from { transform: scale(1.06); } }
@keyframes pop { from { opacity: 0; scale: .85; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes reveal-in { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: none; } }

/* =========================================================
   Centred section heads (everything except the hero)
   ========================================================= */
.section-head { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head .eyebrow { color: var(--brand); }
.section-head .head-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--ink); font-weight: 500; }
.section-head p:last-child { margin-bottom: 0; }
.subhead { text-align: center; }
.section-cta { text-align: center; }
.section-note { text-align: center; color: var(--muted); max-width: 820px; margin: 36px auto 0; }

/* What are aligners: three short facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.fact { display: flex; gap: 16px; padding: 26px 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.fact p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.fact-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); transition: background .3s var(--ease), transform .3s var(--ease); }
.fact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
@media (hover: hover) and (pointer: fine) {
  .fact:hover .fact-icon { background: var(--brand); }
  .fact:hover .fact-icon svg { stroke: #fff; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* =========================================================
   Aligners vs braces: two cards, rows lined up across both
   ========================================================= */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: repeat(6, auto); column-gap: 0; align-items: stretch; }
.vs-card {
  grid-row: 1 / span 6; display: grid; grid-template-rows: subgrid;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.vs-aligners { grid-column: 1; border-color: var(--brand-100); box-shadow: 0 20px 50px rgba(51, 70, 211, .12); }
.vs-braces { grid-column: 3; }
.vs-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; }
.vs-head h3 { margin: 0; font-size: 1.3rem; }
.vs-aligners .vs-head { background: var(--brand); }
.vs-aligners .vs-head h3 { color: #fff; }
.vs-braces .vs-head { background: #F1F2F8; }
.vs-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); }
.vs-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg *, .fact-icon svg *, .vs-icon svg * { vector-effect: non-scaling-stroke; }
.vs-aligners .vs-icon { background: rgba(255, 255, 255, .14); }
.vs-aligners .vs-icon svg { stroke: var(--mint); }
.vs-braces .vs-icon { background: #fff; }
.vs-braces .vs-icon svg { stroke: #7C83A6; }
.vs-row { padding: 18px 28px; border-top: 1px solid var(--line); transition: background .2s; }
.vs-head + .vs-row { border-top: 0; }
.vs-row p { margin: 0; line-height: 1.5; }
.vs-label { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vs-aligners .vs-label { color: var(--brand); }
.vs-aligners .vs-row p { color: var(--ink); font-weight: 500; }
.vs-braces .vs-row p { color: var(--muted); }
.vs-badge {
  grid-column: 2; grid-row: 1 / span 6; align-self: center; z-index: 1; margin: 0 -14px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 .95rem/1 'Outfit', sans-serif; letter-spacing: .04em;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--brand-100), 0 10px 24px rgba(17, 22, 51, .22);
}
/* hovering a row lights the same row in both cards (head = child 1, rows = 2-6) */
@media (hover: hover) and (min-width: 761px) {
  .vs:has(.vs-row:nth-child(2):hover) .vs-row:nth-child(2),
  .vs:has(.vs-row:nth-child(3):hover) .vs-row:nth-child(3),
  .vs:has(.vs-row:nth-child(4):hover) .vs-row:nth-child(4),
  .vs:has(.vs-row:nth-child(5):hover) .vs-row:nth-child(5),
  .vs:has(.vs-row:nth-child(6):hover) .vs-row:nth-child(6) { background: var(--brand-50); }
  .vs:has(.vs-row:nth-child(2):hover) .vs-braces .vs-row:nth-child(2),
  .vs:has(.vs-row:nth-child(3):hover) .vs-braces .vs-row:nth-child(3),
  .vs:has(.vs-row:nth-child(4):hover) .vs-braces .vs-row:nth-child(4),
  .vs:has(.vs-row:nth-child(5):hover) .vs-braces .vs-row:nth-child(5),
  .vs:has(.vs-row:nth-child(6):hover) .vs-braces .vs-row:nth-child(6) { background: #F1F2F8; }
}
@media (max-width: 760px) {
  .vs { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0; }
  .vs-card { grid-row: auto; grid-column: 1; grid-template-rows: none; }
  .vs-badge { grid-row: auto; grid-column: 1; justify-self: center; width: 48px; height: 48px; margin: -14px 0; font-size: .85rem; }
  .vs-aligners .vs-row:last-child { padding-bottom: 34px; }
  .vs-braces .vs-head { padding-top: 34px; }
}

/* =========================================================
   Treatment time: month bar + factor steps
   ========================================================= */
.months { max-width: 960px; margin: 0 auto; }
.months-track { position: relative; height: 56px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); overflow: hidden; }
.months-track::before {   /* faint month ticks */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(51, 70, 211, .12) calc(100% / 24 - 1px) calc(100% / 24));
}
.months-range {
  position: absolute; top: 6px; bottom: 6px; left: 25%; width: 50%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #4E5FE0);   /* indigo end to end: the white label stays readable */
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(51, 70, 211, .3);
  clip-path: inset(-8px -32px -8px -32px round 999px);   /* negative insets keep the glow visible */
  transition: clip-path 1.1s var(--ease) .2s;
}
.months-range span { color: #fff; font: 600 1rem/1 'Outfit', sans-serif; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(17, 22, 51, .25); transition: opacity .3s ease .9s; }
/* labels positioned at their true month */
.months-scale { position: relative; display: block; height: 1.65em; margin-top: 12px; padding: 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.months-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.months-scale span:nth-child(1) { left: 0; transform: none; }
.months-scale span:nth-child(2) { left: 25%; }
.months-scale span:nth-child(3) { left: 50%; }
.months-scale span:nth-child(4) { left: 75%; }
.months-scale span:nth-child(5) { right: 0; transform: none; text-align: right; }
.months-scale span:nth-child(2), .months-scale span:nth-child(4) { color: var(--brand); font-weight: 600; }
.months-scale span:nth-child(2)::before, .months-scale span:nth-child(4)::before { content: ''; position: absolute; left: 50%; top: -10px; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: var(--brand); }
@media (max-width: 440px) {   /* stack '24 / months' so it never touches '18' */
  .months-scale { height: 2.7em; }
  .months-scale span:nth-child(5) { top: .2em; white-space: normal; width: min-content; line-height: 1.25; }
}

.steps-row { list-style: none; margin: 0 auto; max-width: 960px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 19px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--mint)); }
.steps-row li { counter-increment: s; position: relative; text-align: center; font-weight: 500; line-height: 1.4; color: var(--text); padding: 0 4px; }
.steps-row li::before {
  content: counter(s, decimal-leading-zero); position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-100); color: var(--brand); font: 700 .82rem/1 'Outfit', sans-serif;
  transition: background .25s, color .25s, border-color .25s;
}
@media (hover: hover) and (pointer: fine) { .steps-row li:hover::before { background: var(--brand); border-color: var(--brand); color: #fff; } }
@media (max-width: 900px) {
  .months { max-width: 520px; }
  .steps-row { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .steps-row::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--brand-100), var(--mint)); }
  .steps-row li { display: flex; align-items: center; gap: 16px; text-align: left; padding: 8px 0; }
  .steps-row li::before { margin: 0; flex-shrink: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* the 6-18 band wipes in from month 6 with a true pill end; the label fades in after */
  .js-reveal .months.reveal:not(.is-visible) .months-range { clip-path: inset(0 100% 0 0 round 999px); }
  .js-reveal .months.reveal:not(.is-visible) .months-range span { opacity: 0; }
  /* steps: the row stays put; the line draws and each step lands as the line reaches it */
  .js-reveal ol.steps-row.reveal { opacity: 1; transform: none; translate: none; animation: none; transition: none; }
  .steps-row::before { transform-origin: left center; transition: transform .9s linear var(--d, 0ms); }
  .js-reveal .steps-row.reveal:not(.is-visible)::before { transform: scaleX(0); }
  .steps-row li { transition: opacity .45s var(--ease), translate .45s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 180ms - 60ms); }
  .js-reveal .steps-row.reveal:not(.is-visible) li { opacity: 0; translate: 0 8px; }
  .steps-row li:nth-child(2) { --i: 1; } .steps-row li:nth-child(3) { --i: 2; } .steps-row li:nth-child(4) { --i: 3; }
  .steps-row li:nth-child(5) { --i: 4; } .steps-row li:nth-child(6) { --i: 5; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .steps-row::before { transform-origin: center top; }
  .js-reveal .steps-row.reveal:not(.is-visible)::before { transform: scaleY(0); }
}

/* Timeline as the mid-page dark anchor */
#duration { background: var(--ink); color: #C9CDE6; }
#duration h2, #duration .subhead { color: #fff; }
#duration .section-head p, #duration .section-note { color: #A3A9C9; }
#duration .section-head .eyebrow { color: var(--mint); }
#duration .months-track { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .10); }
#duration .months-track::before { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(255, 255, 255, .07) calc(100% / 24 - 1px) calc(100% / 24)); }
#duration .months-range { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 28px rgba(51, 70, 211, .55); }
#duration .months-scale { color: #8C92B5; }
#duration .months-scale span:nth-child(2), #duration .months-scale span:nth-child(4) { color: var(--mint); }
#duration .months-scale span:nth-child(2)::before, #duration .months-scale span:nth-child(4)::before { background: var(--mint); }
#duration .steps-row::before { background: linear-gradient(90deg, rgba(255, 255, 255, .16), var(--mint)); }
#duration .steps-row li { color: #E4E8FF; }
#duration .steps-row li::before { background: var(--ink); border-color: rgba(255, 255, 255, .18); color: var(--mint); }
@media (hover: hover) and (pointer: fine) { #duration .steps-row li:hover::before { background: var(--mint); border-color: var(--mint); color: var(--mint-900); } }
@media (max-width: 900px) { #duration .steps-row::before { background: linear-gradient(rgba(255, 255, 255, .16), var(--mint)); } }

/* =========================================================
   Type system: roles, scale, measure and line breaks
   ========================================================= */
/* hero H1 sized to its narrow two-column width (keeps 3 lines) */
@media (min-width: 901px) and (max-width: 1060px) { .hero h1 { font-size: clamp(2.875rem, -1.2rem + 7.2vw, 3.5rem); } }

/* one size per role */
.card :is(h3, h4), .fact h3 { font: 600 var(--fs-md)/1.3 'Outfit', 'Figtree', system-ui, sans-serif; letter-spacing: -.01em; }
.card h4 { margin: 0 0 .6em; color: var(--text); }
.cond-card h4 { font-size: var(--fs-base); line-height: 1.3; }
.card p, .fact p, .cond-note p { font-size: var(--fs-sm); line-height: 1.6; }
.eyebrow, .vs-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; }
.months-scale { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
h3 { line-height: 1.25; letter-spacing: -.015em; }

/* sub-section headings sit clearly between h2 and card titles */
.subhead { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.6rem); letter-spacing: -.02em; margin: 56px 0 24px; }

/* measure for centred intros; one gap after content */
.section-head p:not(.head-lead) { max-width: 50em; margin-inline: auto; }
.section-cta, .section-note, .callout { margin-top: 40px; }

/* no stranded words */
h1, h2, h3, h4, .subhead, .faq summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
@media (max-width: 600px) { .section-head .head-lead ~ p { text-wrap: pretty; } }
.steps-row li { font-size: .95rem; text-wrap: balance; }

/* =========================================================
   Reduced-motion safety net. Colour, fill and border changes
   still happen (instantly); nothing moves. Keep this block and
   the print block as the last two blocks in the file.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .btn, .btn:hover, .btn:active, .link-arrow span, .card, .card-icon, .fact-icon, .choose-icon, .cond-card, .cond-note,
  .vs-card, .hero-card, .footer-nav a, .steps-row li::before {
    transform: none !important; translate: none !important; scale: none !important; rotate: none !important;
  }
}

@media print {
  .js-reveal .reveal { opacity: 1 !important; translate: none !important; transform: none !important; animation: none !important; transition: none !important; }
  .js-reveal .steps-row li { opacity: 1 !important; translate: none !important; transition: none !important; }
  .steps-row::before { transform: none !important; transition: none !important; }
  .months-range { clip-path: none !important; transition: none !important; }
  .months-range span { opacity: 1 !important; transition: none !important; }
  .hero-copy > *, .hero-img, .badge { animation: none !important; }
  .nav-scrim { display: none !important; }
}
