/* TeethMantra site styles. Light and dark themes follow the visitor's device setting. */
:root{
  --bg:#FFFFFF;
  --surface:#F8F4FF;
  --ink:#1F1236;
  --muted:#5A4B78;
  --line:#E4DAF5;
  --brand:#6D28D9;
  --brand-ink:#FFFFFF;
  --rose:#5B21B6;
  --tint:#EFE6FD;
  --display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --body:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --picked:#FAF7EE;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#130B26;
    --surface:#1C1237;
    --ink:#F1EBFF;
    --muted:#B9ABDA;
    --line:#33244F;
    --brand:#A78BFA;
    --brand-ink:#170B30;
    --rose:#D4BFFF;
    --tint:#261849;
  }
}
:root[data-theme="dark"]{
  --bg:#130B26;
  --surface:#1C1237;
  --ink:#F1EBFF;
  --muted:#B9ABDA;
  --line:#33244F;
  --brand:#A78BFA;
  --brand-ink:#170B30;
  --rose:#D4BFFF;
  --tint:#261849;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.6}
img,svg{max-width:100%}
a{color:var(--brand)}
h1,h2,h3{font-family:var(--display);line-height:1.12;margin:0;letter-spacing:-0.015em}
p{margin:0}
:focus-visible{outline:3px solid var(--rose);outline-offset:3px;border-radius:6px}
.wrap{width:min(1120px,100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:1rem;top:1rem;z-index:60;background:var(--surface);color:var(--ink);padding:.6rem 1rem;border-radius:8px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:48px;padding:.7rem 1.4rem;border-radius:999px;
  font:700 1rem var(--body);text-decoration:none;
  border:2px solid transparent;cursor:pointer;
}
.btn-call{background:var(--brand);color:var(--brand-ink)}
.btn-call:hover{filter:brightness(1.08)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn-ghost:hover{background:var(--tint)}
.btn-inv{background:var(--brand-ink);color:var(--brand)}
.btn-inv:hover{filter:brightness(.95)}
.btn-line{background:transparent;color:var(--brand-ink);border-color:var(--brand-ink)}

/* Header */
.site{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:1.5rem;min-height:68px}
.brand{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);line-height:1.1;margin-right:auto}
.brand-name{font:800 1.45rem var(--display);letter-spacing:-0.02em}
.brand-sub{font-size:.8rem;color:var(--muted)}
.site nav{display:flex;gap:1.4rem}
.site nav a{color:var(--ink);text-decoration:none;font-weight:500}
.site nav a:hover,.site nav a[aria-current="page"]{color:var(--brand);text-decoration:underline;text-underline-offset:5px}
.menu{display:none}
.menu summary{list-style:none;cursor:pointer;font-weight:700;padding:.55rem 1rem;border:2px solid var(--ink);border-radius:999px}
.menu summary::-webkit-details-marker{display:none}
.menu-panel{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:.5rem 1.25rem 1.25rem;display:grid}
.menu-panel a{padding:.85rem 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:500}

/* Breadcrumbs */
.crumbs{padding:1.1rem 0 0;font-size:.92rem;color:var(--muted)}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:.4rem}
.crumbs a{color:var(--muted)}

/* Home hero */
.hero{padding:3.5rem 0 4.5rem}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:3.5rem;align-items:center}
.hero h1{font-size:clamp(2.3rem,5.4vw,4.1rem);font-weight:750;max-width:15ch}
.lede{margin-top:1.4rem;font-size:1.18rem;color:var(--muted);max-width:56ch}
.cta-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2rem}
.hero-note{margin-top:1.25rem;font-size:.95rem;color:var(--muted)}

/* Inner page hero */
.page-hero{padding:1.6rem 0 2.4rem}
.page-hero h1{font-size:clamp(2rem,4.8vw,3.4rem);font-weight:750;max-width:20ch}
.page-hero .lede{margin-top:1.1rem}
.page-hero .cta-row{margin-top:1.6rem}

/* Shade guide */
.shade{background:var(--tint);border-radius:28px 28px 120px 28px;padding:2rem 1rem 1.6rem;text-align:center}
.tooth-wrap{width:190px;margin:0 auto}
.tooth{fill:var(--picked);stroke:var(--ink);stroke-opacity:.35;stroke-width:2;transition:fill .35s ease}
.tooth-shine{fill:none;stroke:#fff;stroke-opacity:.65;stroke-width:5;stroke-linecap:round}
.fan{display:flex;justify-content:center;align-items:flex-end;height:150px;margin-top:.4rem;padding-top:1rem}
.tab{
  --r:0deg;
  position:relative;width:46px;height:118px;margin-inline:-7px;
  background:var(--c);border:1px solid rgba(60,45,20,.28);
  border-radius:10px 10px 26px 26px;
  transform-origin:50% 100%;transform:rotate(var(--r));
  transition:transform .25s ease, box-shadow .25s ease;
  animation:fan .9s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay:calc(var(--i) * 70ms + 250ms);
  cursor:pointer;color:#3A2E18;font:700 .85rem var(--body);padding:0;
}
.tab span{position:absolute;bottom:10px;left:0;right:0}
.tab::before{content:"";position:absolute;top:0;left:0;right:0;height:14px;background:rgba(60,45,20,.16);border-radius:10px 10px 0 0}
.tab:hover{transform:rotate(var(--r)) translateY(-8px)}
.tab[aria-pressed="true"]{transform:rotate(var(--r)) translateY(-16px);box-shadow:0 8px 18px rgba(0,0,0,.18);z-index:2}
@keyframes fan{from{transform:rotate(0deg) translateY(12px);opacity:0}to{transform:rotate(var(--r)) translateY(0);opacity:1}}
.shade-caption{margin:1.2rem auto 0;max-width:30ch;font-size:.95rem;color:var(--muted)}
.shade.inline{max-width:420px;margin:2rem 0}

/* Sections */
.section{padding:4.5rem 0}
.section.alt{background:var(--surface);border-block:1px solid var(--line)}
.section h2{font-size:clamp(1.7rem,3.6vw,2.6rem);font-weight:700;max-width:24ch}
.section-lede{margin-top:1rem;color:var(--muted);max-width:60ch}

/* Doctor / treatment groups */
.groups{margin-top:2.5rem}
.group{display:grid;grid-template-columns:minmax(230px,310px) 1fr;gap:2rem;padding:2rem 0;border-top:1px solid var(--line)}
.group:last-child{border-bottom:1px solid var(--line)}
.group-head{display:flex;gap:1rem;align-items:flex-start}
.mono{
  flex:none;width:58px;height:68px;display:grid;place-items:center;
  background:var(--tint);color:var(--brand);font:800 1.15rem var(--display);
  border:1.5px solid var(--brand);border-radius:48% 48% 44% 44% / 38% 38% 62% 62%;
}
.group-head h3{font-size:1.2rem;font-weight:700}
.group-head p{font-size:.93rem;color:var(--muted);margin-top:.2rem}
.group-head .focus{color:var(--rose);font-weight:700;font-size:.98rem;margin-top:.55rem}
.tx-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.4rem 2.2rem;align-content:start}
.tx-list strong{display:block;font:650 1.08rem var(--display);margin-bottom:.15rem}
.tx-list span{color:var(--muted);font-size:.96rem}
.tx-list a{color:var(--ink);text-decoration-color:var(--brand);text-underline-offset:4px}

/* Steps */
.steps{list-style:none;counter-reset:s;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:2rem}
.steps li{counter-increment:s;border-top:3px solid var(--brand);padding-top:1rem;margin:0}
.steps li::before{content:counter(s);display:block;font:800 2.6rem/1 var(--display);color:var(--brand);margin-bottom:.6rem}
.steps h3{font-size:1.2rem;font-weight:700;margin-bottom:.4rem}
.steps p{color:var(--muted);font-size:.98rem;margin:0}

/* Treatment hub rows */
.rows{margin-top:2.2rem}
.row{display:grid;grid-template-columns:1fr auto;gap:1.5rem;align-items:center;padding:1.5rem 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.rows .row:last-child{border-bottom:1px solid var(--line)}
.row h3{font-size:1.3rem;font-weight:700}
.row p{color:var(--muted);margin-top:.3rem;max-width:62ch;font-size:.98rem}
.row .go{font-weight:700;color:var(--brand);text-decoration:underline;text-underline-offset:5px}
.row:hover h3{color:var(--brand)}

/* Two column prose + aside */
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:3.5rem;align-items:start;padding:1rem 0 4.5rem}
.prose h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;margin:2.8rem 0 .7rem;max-width:none}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.15rem;font-weight:700;margin:1.4rem 0 .3rem}
.prose p{margin:.8rem 0;max-width:68ch}
.prose ul,.prose ol.plain{max-width:68ch;padding-left:1.2rem;margin:.8rem 0}
.prose li{margin:.45rem 0}
.prose a{text-underline-offset:3px}
.prose .steps{margin-top:1.4rem}
.prose .steps li{margin:0}
.aside-card{
  position:sticky;top:92px;background:var(--surface);border:1px solid var(--line);
  border-radius:20px 20px 20px 64px;padding:1.5rem;
}
.aside-card h2{font-size:1.25rem;font-weight:700;max-width:none}
.aside-card p{color:var(--muted);font-size:.95rem;margin-top:.5rem}
.aside-card .btn{width:100%;margin-top:.8rem}
.aside-card address{font-style:normal;font-size:.95rem;margin-top:1rem;color:var(--muted)}
.lead{display:flex;gap:.9rem;align-items:center;margin-top:1rem}
.lead .mono{width:46px;height:54px;font-size:1rem}
.lead strong{display:block;line-height:1.2}
.lead span{font-size:.88rem;color:var(--muted)}

/* FAQ */
.faq{margin-top:1.6rem;max-width:760px}
.faq details{border-top:1px solid var(--line);padding:1.05rem 0}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;font:650 1.13rem var(--display)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.5rem;line-height:1;color:var(--brand)}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin-top:.7rem;color:var(--muted);max-width:62ch}
.faq-note{margin-top:1rem;font-size:.9rem;color:var(--muted)}
.section .faq{margin-top:2.2rem}

/* Callout */
.callout{background:var(--tint);border-left:4px solid var(--rose);border-radius:4px 16px 16px 4px;padding:1.1rem 1.3rem;margin:1.6rem 0;max-width:68ch}
.callout strong{display:block;margin-bottom:.2rem}

/* Two link panels */
.areas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:2.2rem}
.area{display:block;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:24px 24px 24px 72px;padding:1.6rem 1.6rem 1.8rem}
.area h3{font-size:1.3rem;font-weight:700}
.area p{color:var(--muted);margin-top:.5rem;font-size:.98rem}
.area .go{display:inline-block;margin-top:.9rem;font-weight:700;color:var(--brand);text-decoration:underline;text-underline-offset:5px}

/* CTA band */
.band{background:var(--brand);color:var(--brand-ink);padding:3.4rem 0}
.band h2{font-size:clamp(1.6rem,3.4vw,2.3rem);font-weight:700;max-width:24ch}
.band p{margin-top:.7rem;max-width:56ch;opacity:.95}
.band .cta-row{margin-top:1.5rem}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin-top:2.4rem;align-items:start}
.contact-grid address{font-style:normal;font-size:1.15rem;line-height:1.55}
.contact-lines{margin-top:1.3rem;display:grid;gap:.5rem}
.contact-lines a{font-weight:700;text-underline-offset:3px}
.areas{margin-top:1.3rem;color:var(--muted);font-size:.98rem;max-width:44ch}
.contact-grid .cta-row{margin-top:1.5rem}
.panel{background:var(--bg);border:1px solid var(--line);border-radius:24px 24px 24px 80px;padding:1.8rem}
.section.alt .panel{background:var(--bg)}
.panel h3{font-size:1.35rem;font-weight:700}
.panel p.hint{margin-top:.4rem;color:var(--muted);font-size:.95rem}
.field{margin-top:1rem}
.field label{display:block;font-weight:700;font-size:.95rem;margin-bottom:.3rem}
.field input,.field select{
  width:100%;min-height:48px;padding:.6rem .9rem;background:var(--surface);color:var(--ink);
  border:1.5px solid var(--line);border-radius:12px;font:inherit;
}
.panel .btn{margin-top:1.4rem;width:100%}

/* Footer */
footer{border-top:1px solid var(--line);padding:3rem 0 6.5rem;color:var(--muted);font-size:.95rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem}
footer strong{color:var(--ink)}
footer h2{font:700 1rem var(--display);color:var(--ink);margin-bottom:.6rem;letter-spacing:0}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
footer a{color:var(--muted);text-underline-offset:3px}
footer a:hover{color:var(--brand)}
footer address{font-style:normal;margin-top:.6rem}
.fine{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1.4rem;font-size:.88rem}

.mbar{display:none}

@media (max-width:860px){
  .hero-grid,.contact-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:minmax(0,1fr)}
  .two-col{gap:2rem}
  .aside-card{position:static}
  .hero{padding:2.2rem 0 3rem}
  .group{grid-template-columns:1fr;gap:1.4rem}
  .site nav{display:none}
  .bar .btn-call{display:none}
  .menu{display:block}
  .foot-grid{grid-template-columns:1fr;gap:1.8rem}
  .row{grid-template-columns:1fr;gap:.6rem}
}
@media (max-width:700px){
  .mbar{
    display:grid;grid-template-columns:1fr 1fr;gap:.6rem;position:fixed;left:0;right:0;bottom:0;z-index:30;
    padding:.6rem .9rem calc(.6rem + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .tab{animation:none}
  .tab,.tooth{transition:none}
}

/* Why strip */
.why{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2rem;margin-top:2.2rem}
.why>div{border-top:3px solid var(--brand);padding-top:1rem}
.why h3{font-size:1.2rem;font-weight:700;margin-bottom:.4rem}
.why p{color:var(--muted);font-size:.98rem}

/* Tables */
.table-wrap{overflow-x:auto;margin:1.2rem 0;max-width:100%}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:.98rem}
th,td{text-align:left;padding:.85rem 1rem;border-top:1px solid var(--line);vertical-align:top}
thead th{border-top:0;border-bottom:2px solid var(--brand);font-family:var(--display)}
tbody th{font-weight:700;width:34%}
tbody td{color:var(--muted)}
.site nav{gap:1.2rem}

/* Step lists inside article columns: two by two */
.prose .steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6rem 2rem}
@media (max-width:560px){.prose .steps{grid-template-columns:1fr}}

/* Dentist profile pages */
.profile-hero{display:flex;gap:2.2rem;align-items:center}
.profile-hero h1{max-width:22ch}
.profile-hero .role{margin-top:.7rem;color:var(--rose);font-weight:700}
.mono.big{width:132px;height:154px;font-size:2.4rem}
.glance{display:grid;grid-template-columns:max-content 1fr;gap:.6rem 1.6rem;margin:1rem 0;max-width:68ch}
.glance dt{font-weight:700;color:var(--muted)}
.glance dd{margin:0}
.group-head h3 a{color:var(--ink);text-decoration-color:var(--brand);text-underline-offset:4px}
@media (max-width:640px){
  .profile-hero{flex-direction:column;align-items:flex-start;gap:1.2rem}
  .mono.big{width:96px;height:112px;font-size:1.8rem}
  .glance{grid-template-columns:1fr;gap:.1rem}
  .glance dd{margin-bottom:.7rem}
}

/* Purple and white theme, matching the clinic signboard */
.hero,.band{--band-a:#4C1D95;--band-b:#7C3AED;color:#fff}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .hero,:root:not([data-theme="light"]) .band{--band-a:#2E1065;--band-b:#5B34C4}
  :root:not([data-theme="light"]) .brand-logo{background:#fff;border-radius:12px;padding:3px}
}
:root[data-theme="dark"] .hero,:root[data-theme="dark"] .band{--band-a:#2E1065;--band-b:#5B34C4}
:root[data-theme="dark"] .brand-logo{background:#fff;border-radius:12px;padding:3px}
.hero,.band{background:linear-gradient(135deg,var(--band-a),var(--band-b))}
.hero h1{color:#fff}
.hero .lede,.hero .hero-note,.hero .hero-note strong{color:rgba(255,255,255,.93)}
.hero .btn-call{background:#fff;color:#4C1D95}
.hero .btn-call:hover{filter:none;background:#F1EBFF}
.hero .btn-ghost{color:#fff;border-color:#fff}
.hero .btn-ghost:hover{background:rgba(255,255,255,.16)}
.hero .shade{--ink:#1F1236;--muted:#5A4B78;background:#F5EFFF}
.btn-inv{background:#fff;color:#4C1D95}
.btn-line{color:#fff;border-color:#fff}
.band h2,.band p{color:#fff}
.page-hero{background:linear-gradient(180deg,var(--surface),var(--bg))}
footer{background:var(--surface)}
.brand{flex-direction:row;align-items:center;gap:.7rem}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-logo{width:44px;height:44px;object-fit:contain;flex:none}
.brand-name{color:var(--brand)}

/* Social icons in the footer */
.social-row{display:flex;gap:.6rem;margin-top:.9rem}
.social-row a{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;
  background:var(--tint);color:var(--brand);
  transition:background .15s ease,color .15s ease;
}
.social-row a:hover{background:var(--brand);color:var(--brand-ink)}
.social-row svg{fill:currentColor}
