/* Smile Lab public site. Builds on base.css + tokens.css. */

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--mist-2); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav .wordmark { font-size: 22px; }
.nav-menu { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--mist); }
.nav-menu a { display: inline-block; padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--slate-2); text-decoration: none; }
.nav-menu a:hover { background: var(--white); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .login { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--slate); }
.nav-menu .only-mobile { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; }
@media (max-width: 900px) {
  .nav-menu, .nav-right .login { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .nav-menu { display: flex; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 8px; background: var(--white); box-shadow: var(--shadow-panel); border: 1px solid var(--mist-2); border-radius: var(--r-panel); }
  .nav.open .nav-menu a { padding: 12px 16px; }
  .nav-menu .only-mobile { display: block; border-top: 1px solid var(--mist-2); margin-top: 4px; padding-top: 12px; }
}

/* Sections */
section.block { padding: var(--section) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { font-size: var(--lead); color: var(--ash); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lead { font-size: var(--lead); color: var(--slate-2); max-width: 46ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-lines { display: flex; gap: 22px; margin-top: 18px; font-size: var(--small); color: var(--ash); }
.hero-lines span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 2px; }

.stats { margin-top: clamp(32px, 4vw, 48px); background: var(--slate); color: var(--white); border-radius: var(--r-feature); padding: 28px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats div { border-left: 1px solid var(--slate-3); padding-left: 18px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; white-space: nowrap; font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; color: var(--teal); letter-spacing: -0.02em; }
.stats small { display: block; margin-top: 8px; font-size: 13px; color: var(--ash-2); line-height: 1.35; }
.stats-src { margin-top: 10px; font-size: 12px; color: var(--ash); }

.hero-demo { position: relative; }
.hero-demo .frame { background: var(--mist); border-radius: var(--r-feature); padding: 60px clamp(16px, 2.5vw, 32px) clamp(20px, 3vw, 40px); display: flex; justify-content: center; }
.hero-demo .frame > div { width: 100%; max-width: 420px; }
.hero-demo .frame-note { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--teal-ink); background: var(--white); padding: 6px 10px; border-radius: var(--r-pill); }

/* The one load animation on the page */
.hero-copy > *, .hero-demo { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }
.hero-demo { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Treatments ribbon */
.treat { background: var(--mist); }
.treat .ribbon { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tabs { display: grid; gap: 6px; }
.tab { text-align: left; background: transparent; border: 0; border-left: 3px solid transparent; padding: 18px 20px; border-radius: 0 var(--r-panel) var(--r-panel) 0; transition: background .15s, border-color .15s; }
.tab b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 22px; }
.tab span { display: block; margin-top: 4px; color: var(--ash); font-size: 15px; }
.tab[aria-selected="true"] { background: var(--white); border-left-color: var(--teal-deep); }
.tab:hover { background: rgba(255,255,255,.6); }
.treat-note { margin-top: 24px; padding-left: 23px; color: var(--ash); font-size: var(--small); max-width: 40ch; }

.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-feature); overflow: hidden; background: var(--slate); box-shadow: var(--shadow-feature); --split: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare .chip { position: absolute; top: 16px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: rgba(32,42,44,.7); color: #fff; }
.compare .chip.l { left: 16px; } .compare .chip.r { right: 16px; background: var(--teal); color: var(--slate); }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--split); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--slate); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .ai { position: absolute; left: 16px; bottom: 16px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: rgba(32,42,44,.7); color: #fff; }
@media (max-width: 900px) { .treat .ribbon { grid-template-columns: 1fr; } .tabs { grid-template-columns: 1fr; } }

/* Leads section */
.leads .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.leads .sec-head { margin-bottom: 0; }
.leads ul.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.leads ul.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-2); }
.leads ul.points svg { flex: none; margin-top: 3px; color: var(--teal-deep); }
@media (max-width: 900px) { .leads .container { grid-template-columns: 1fr; } }

/* Dashboard mini mock */
.dash-mock { display: grid; grid-template-columns: 148px 1fr; border-radius: var(--r-feature); overflow: hidden; box-shadow: var(--shadow-feature); border: 1px solid var(--mist-2); background: var(--mist); font-size: 12px; text-align: left; }
.dash-mock .side { background: var(--slate); color: var(--white); padding: 16px 10px 12px; display: flex; flex-direction: column; }
.dash-mock .side .wordmark { font-size: 16px; padding: 2px 8px 14px; color: var(--white); }
.dash-mock .side nav { display: grid; gap: 2px; }
.dash-mock .side nav i { font-style: normal; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ash-2); font-weight: 600; }
.dash-mock .side nav i svg { flex: none; }
.dash-mock .side nav i.on { background: var(--slate-2); color: var(--white); box-shadow: inset 2px 0 0 var(--teal); }
.dash-mock .side nav em { font-style: normal; margin-left: auto; font-size: 10px; background: var(--teal); color: var(--slate); padding: 1px 6px; border-radius: var(--r-pill); font-weight: 700; }
.dash-mock .side .usage { margin: 12px 2px; padding: 9px 10px; background: var(--slate-2); border-radius: 10px; font-size: 10.5px; color: var(--ash-2); }
.dash-mock .side .usage b { color: var(--white); }
.dash-mock .side .usage .bar { height: 3px; border-radius: 3px; background: var(--slate-3); margin-top: 6px; overflow: hidden; }
.dash-mock .side .usage .bar i { display: block; height: 100%; background: var(--teal); }
.dash-mock .side .bottom { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--slate-3); font-size: 10.5px; color: var(--ash-2); }
.dash-mock .side .bottom b { display: block; color: var(--white); font-size: 11px; }
.dash-mock .main { padding: 18px 18px 14px; min-width: 0; }
.dash-mock .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.dash-mock .top .h { display: block; font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.dash-mock .top small { color: var(--ash); font-size: 11px; }
.dash-mock .search { border: 1px solid var(--mist-2); background: var(--white); border-radius: var(--r-pill); padding: 6px 12px; color: var(--ash); font-size: 10.5px; white-space: nowrap; }
.dash-mock .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.dash-mock .chips span { border: 1px solid var(--mist-2); background: var(--white); color: var(--slate-2); border-radius: var(--r-pill); padding: 4px 9px; font-weight: 600; font-size: 11px; }
.dash-mock .chips span.on { background: var(--slate); border-color: var(--slate); color: var(--white); }
.dash-mock .chips em { font-style: normal; margin-left: 3px; opacity: .7; font-weight: 400; }
.dash-mock .group { font-size: 10.5px; font-weight: 700; color: var(--ash); margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; }
.dash-mock .group::after { content: ''; flex: 1; height: 1px; background: var(--mist-2); }
.dash-mock .lead { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--white); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.dash-mock .lead .av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; background: var(--mist); color: var(--slate-2); }
.dash-mock .lead.unread .av { background: var(--teal); color: var(--slate); }
.dash-mock .lead b { display: block; font-weight: 700; font-size: 12.5px; }
.dash-mock .lead small { display: block; color: var(--ash); font-size: 11px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-mock .lead .when { color: var(--ash); font-size: 11px; white-space: nowrap; }
.dash-mock .lead .contact { display: flex; gap: 4px; }
.dash-mock .lead .contact span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mist); color: var(--slate); }
@media (max-width: 620px) {
  .dash-mock { grid-template-columns: 1fr; }
  .dash-mock .side { display: none; }
  .dash-mock .search, .dash-mock .lead .when { display: none; }
}

/* How it works */
.how .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.how .col { border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); }
.how .col.a { background: var(--mist); }
.how .col.b { background: var(--slate); color: var(--white); }
.how .col h3 { font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.how ol li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.how ol li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 500; font-size: 15px; background: var(--white); color: var(--slate); }
.how .col.b ol li::before { background: var(--teal); }
.how ol b { display: block; font-weight: 700; margin-bottom: 2px; }
.how ol span { color: var(--ash); font-size: 15px; }
.how .col.b ol span { color: var(--ash-2); }
.install-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border: 1px solid var(--mist-2); border-radius: var(--r-panel); }
.install-line p { font-size: 17px; }
.install-line p b { font-weight: 700; }
@media (max-width: 800px) { .how .cols { grid-template-columns: 1fr; } }

/* Trust */
.trust { background: var(--mist); }
.trust .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.trust .pt svg { color: var(--teal-deep); margin-bottom: 16px; }
.trust .pt h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.trust .pt p { color: var(--ash); font-size: 15px; max-width: 34ch; }
@media (max-width: 800px) { .trust .three { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--slate); color: var(--white); }
.pricing .sec-head p { color: var(--ash-2); }
.toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--slate-2); margin: 0 auto 40px; }
.toggle button { border: 0; background: transparent; color: var(--ash-2); padding: 9px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.toggle button[aria-pressed="true"] { background: var(--teal); color: var(--slate); }
.toggle .save { font-size: 12px; margin-left: 6px; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.plan { background: var(--slate-2); border-radius: var(--r-panel); padding: 30px 28px; border: 1px solid var(--slate-3); }
.plan.pop { background: var(--white); color: var(--slate); border-color: transparent; border-radius: var(--r-feature); padding: 38px 32px; box-shadow: var(--glow-teal); transform: translateY(-14px); }
.plan .nm { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 24px; font-weight: 500; }
.plan .tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: var(--teal); color: var(--slate); }
.plan .desc { color: var(--ash-2); font-size: 14px; margin-top: 4px; }
.plan.pop .desc { color: var(--ash); }
.plan .price { margin: 22px 0 4px; font-family: var(--font-head); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--font-body); font-size: 15px; color: var(--ash-2); margin-left: 4px; letter-spacing: 0; }
.plan.pop .price small { color: var(--ash); }
.plan .per { font-size: 13px; color: var(--ash-2); min-height: 18px; }
.plan.pop .per { color: var(--ash); }
.plan .quota { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 700; }
.plan.pop .quota { background: var(--mist); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--teal); }
.plan.pop li svg { color: var(--teal-deep); }
.plan li.off { color: var(--ash); } .plan li.off svg { color: var(--ash); }
.plan .btn { width: 100%; justify-content: space-between; }
.plan .hourly { font-size: 12.5px; color: var(--ash-2); margin: 10px 0 22px; }
.plan.pop .hourly { color: var(--ash); }
.pricing .btn-ghost { border-color: rgba(255,255,255,.5); }
.all-in { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 900px; font-size: 14px; color: var(--ash-2); }
.all-in li { display: inline-flex; align-items: center; gap: 8px; }
.all-in li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.plan .btn-ghost { justify-content: center; }
.pricing .fine { text-align: center; color: var(--ash-2); font-size: 13px; margin-top: 28px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.pop { transform: none; order: -1; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--mist); border: 1px solid transparent; border-radius: var(--r-panel); transition: background .3s ease, border-color .3s ease; }
.faq-item h3 { margin: 0; font-size: 19px; font-weight: 500; }
.faq-q { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: inherit; color: inherit; border-radius: var(--r-panel); }
.faq-q .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--slate); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s ease; }
.faq-item.open { background: var(--white); border-color: var(--mist-2); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--teal); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.faq-a > .ans { overflow: hidden; min-height: 0; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > .ans { opacity: 1; transform: none; transition-delay: .1s; }
.faq-list .ans { padding: 0 24px; color: var(--slate-2); max-width: 64ch; }
.faq-list .ans::after { content: ''; display: block; height: 22px; }

/* Final CTA */
.final { padding: var(--section) 0 0; }
.final .box { background: var(--mist); border-radius: var(--r-feature); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.final h2 { max-width: 16ch; }
.final p { color: var(--ash); font-size: var(--lead); margin-top: 12px; max-width: 40ch; }
.final .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 800px) { .final .box { grid-template-columns: 1fr; } .final .acts { justify-content: flex-start; } }

/* Footer */
footer { padding: 56px 0 40px; }
footer .row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--mist-2); }
footer .wordmark { font-size: 22px; }
footer p, footer a { font-size: 14px; color: var(--ash); }
footer p { margin-top: 10px; line-height: 1.6; }
footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--slate); }
footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 13px; color: var(--ash); }
@media (max-width: 700px) { footer .row { grid-template-columns: 1fr; } }

/* Legal and text pages */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; }
  .doc h1 { font-size: var(--h2); margin-bottom: 8px; }
  .doc .upd { color: var(--ash); font-size: 14px; margin-bottom: 36px; }
  .doc h2 { font-size: 24px; margin: 40px 0 12px; }
  .doc h3 { font-size: 17px; font-weight: 600; font-family: var(--font-body); margin: 22px 0 6px; }
  .doc p, .doc li { color: var(--slate-2); line-height: 1.65; }
  .doc p { margin-bottom: 12px; }
  .doc ul { padding-left: 20px; margin: 0 0 12px; }
  .doc li { margin-bottom: 6px; }
  .brief { background: var(--mist); border-radius: var(--r-panel); padding: 22px 26px; margin-bottom: 8px; }
  .brief h2 { margin-top: 0; font-size: 20px; }
  .brief ul { margin: 0; }
  .doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 12px; }
  .doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist-2); vertical-align: top; color: var(--slate-2); }
  .doc th { color: var(--ash); font-weight: 600; font-size: 13px; }
  .todo { background: #F7EEDC; color: #6E4A10; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
