/* ─── Smile Essentials · brand tokens ─── */
@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Prata';
  src: url('assets/fonts/prata-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #FDF7F5;
  --cream-2: #F6EEE9;
  --teal: #3D5A5C;
  --teal-deep: #2C4547;
  --gold: #CCAB83;
  --gold-deep: #B8945F;
  --ink: #141414;
  --body: #5b5654;
  --serif: 'Prata', 'Playfair Display', Georgia, serif;
  --sans: 'Nunito', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  color: var(--teal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Canvas stage ─── */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  mix-blend-mode: normal;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
}
.brand-img { height: 42px; width: auto; display: block; }
@media (max-width: 720px) { .brand-img { height: 34px; } }

/* ─── HUD · Smile Confidence Meter ─── */
.hud {
  position: fixed;
  top: 5.2rem; right: 2rem;
  z-index: 50;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(253, 247, 245, .82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(61, 90, 92, .14);
  border-radius: 999px;
  padding: .45rem .95rem .45rem .5rem;
  box-shadow: 0 8px 30px rgba(44, 69, 71, .1);
  transition: opacity .4s;
}
.hud-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.hud-track, .hud-fill { fill: none; stroke-width: 6; }
.hud-track { stroke: rgba(61, 90, 92, .15); }
.hud-fill {
  stroke: var(--gold-deep);
  stroke-linecap: round;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 169.6;
}
.hud-text { display: flex; flex-direction: column; line-height: 1.15; }
.hud-pct { font-weight: 800; font-size: .95rem; color: var(--teal-deep); }
.hud-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }

/* ─── Cinematic scenes ─── */
.scene { position: relative; height: 380vh; z-index: 1; }
.scene-tall { height: 760vh; }
.scene-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.copy {
  position: relative;
  max-width: 34rem;
  padding: 0 2.5rem;
  z-index: 2;
}
.copy-left  { margin-right: auto; margin-left: 6vw; }
.copy-right { margin-left: auto;  margin-right: 6vw; }
.copy-center { margin: 0 auto; text-align: center; }

[data-reveal], .treat-card { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }

.kicker {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--teal-deep); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.06; margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 1.2rem; }
.lede { font-size: 1.15rem; line-height: 1.65; color: var(--body); max-width: 30rem; }
.copy-center .lede { margin: 0 auto; }
.note { margin-top: 1.4rem; font-size: .98rem; color: var(--body); font-style: italic; }

.pain-list, .edu-list { list-style: none; margin-top: .4rem; }
.pain-list li, .edu-list li {
  font-size: 1.12rem; line-height: 1.5; color: var(--teal);
  padding: .65rem 0 .65rem 1.6rem;
  position: relative;
}
.pain-list li::before { content: '✕'; position: absolute; left: 0; color: #b2705f; font-weight: 800; }
.edu-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.edu-list b { color: var(--teal-deep); }

.scroll-hint { margin-top: 2.2rem; font-size: .85rem; letter-spacing: .1em; color: var(--body); }

/* Copy cards — readable over the full-bleed film */
#scene-neglect .copy, #scene-decision .copy {
  background: rgba(253, 247, 245, .8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 171, 131, .3);
  border-radius: 22px;
  padding: 2rem 2.3rem;
  box-shadow: 0 24px 70px rgba(44, 69, 71, .16);
}

/* Readability scrims over the photoreal bookend clips */
#scene-problem .scene-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253,247,245,.9) 0%, rgba(253,247,245,.55) 38%, rgba(253,247,245,0) 68%);
  pointer-events: none;
}
@media (max-width: 720px) {
  #scene-problem .scene-pin::before {
    background: linear-gradient(180deg, rgba(253,247,245,.88) 0%, rgba(253,247,245,.45) 55%, rgba(253,247,245,0) 85%);
  }
}
#scene-result .copy-center {
  background: rgba(253, 247, 245, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 171, 131, .3);
  border-radius: 22px;
  padding: 2.4rem 2.8rem;
  box-shadow: 0 24px 70px rgba(44, 69, 71, .18);
}

/* Treatment cards */
.treat-card {
  background: rgba(253, 247, 245, .88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 171, 131, .35);
  border-radius: 18px;
  padding: 1.5rem 1.7rem;
  margin: 0;
  position: absolute;
  top: 50%; right: 6vw; left: auto;
  width: min(30rem, calc(100vw - 2rem));
  transform: translateY(-40%);
  box-shadow: 0 20px 60px rgba(44, 69, 71, .12);
}
.treat-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.treat-card p { color: var(--body); line-height: 1.6; }
.treat-head {
  position: absolute; top: 14vh; left: 6vw;
  max-width: min(26rem, calc(100vw - 2rem));
  background: rgba(253, 247, 245, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 171, 131, .3);
  border-radius: 18px;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 16px 50px rgba(44, 69, 71, .14);
}
.treat-head .kicker { margin-bottom: .35rem; }
.treat-title { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; }
#scene-treatment .copy {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: .95rem 2rem;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--cream); box-shadow: 0 14px 34px rgba(44,69,71,.28); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 14px 34px rgba(184,148,95,.32); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-line { border: 2px solid var(--teal); color: var(--teal); }
.btn-lg { font-size: 1.05rem; padding: 1.1rem 2.5rem; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.copy-center .cta-row { justify-content: center; }
.header-cta { padding: .7rem 1.5rem; font-size: .82rem; }

/* ─── Flow sections (after the film) ─── */
.flow { position: relative; z-index: 3; background: var(--cream); padding: 7rem 0; }
.flow .wrap { max-width: 72rem; margin: 0 auto; padding: 0 2.5rem; }
.flow-dark { background: var(--teal-deep); }
.flow-dark h2, .flow-dark h3 { color: var(--cream); }
.flow-dark p { color: rgba(253, 247, 245, .75); }
.flow-dark .kicker { color: var(--gold); }

.svc-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.svc {
  background: #fff;
  border: 1px solid rgba(204, 171, 131, .25);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 40px rgba(44,69,71,.06);
  transition: transform .3s, box-shadow .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(44,69,71,.12); }
.svc-num {
  display: inline-block;
  font-weight: 800; font-size: .85rem; letter-spacing: .1em;
  color: var(--gold-deep);
  background: rgba(204,171,131,.14);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-bottom: 1.1rem;
}
.svc h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.svc p { color: var(--body); line-height: 1.6; }
.svc-price { background: linear-gradient(140deg, #fff, var(--cream-2)); }

.trust-item { border-left: 2px solid var(--gold); padding-left: 1.4rem; }
.trust-item h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.trust-item p { line-height: 1.6; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .lede { margin: 0 auto; }
.final-cta .cta-row { justify-content: center; margin-top: 2.2rem; }
/* ─── Lead form ─── */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
  max-width: 46rem;
  margin: 2.6rem auto 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(204, 171, 131, .3);
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 24px 70px rgba(44, 69, 71, .1);
}
.lf-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.lf-field input, .lf-field select { width: 100%; min-width: 0; }
.lf-wide { grid-column: 1 / -1; }
.lf-field label {
  font-size: .82rem; font-weight: 800;
  letter-spacing: .04em;
  color: var(--teal-deep);
}
.lf-field label span { font-weight: 600; color: var(--body); }
.lf-field input, .lf-field select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--teal-deep);
  background: var(--cream);
  border: 1px solid rgba(61, 90, 92, .2);
  border-radius: 12px;
  padding: .8rem .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lf-field input:focus, .lf-field select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(204, 171, 131, .22);
}
.lf-note {
  font-size: .88rem;
  color: var(--body);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: .9rem;
}
.lf-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.lf-actions .btn { cursor: pointer; border: 2px solid transparent; }
.lf-actions .btn-line { border-color: var(--teal); }
.lf-error {
  display: none;
  background: rgba(178, 112, 95, .12);
  border: 1px solid rgba(178, 112, 95, .4);
  color: #8a4a3a;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-size: .92rem;
}
.lf-error a { color: inherit; font-weight: 700; }
.lead-success {
  display: none;
  max-width: 34rem;
  margin: 2.6rem auto 0;
  background: #fff;
  border: 1px solid rgba(204, 171, 131, .35);
  border-radius: 24px;
  padding: 2.4rem 2.6rem;
  box-shadow: 0 24px 70px rgba(44, 69, 71, .1);
}
.lead-success h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.lead-success p { color: var(--body); line-height: 1.6; }
.lead-success a { color: var(--teal-deep); font-weight: 700; }
@media (max-width: 720px) {
  .lead-form { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; }
}

.contact-line { margin-top: 2.6rem; font-weight: 700; }
.contact-line a { color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid rgba(61,90,92,.3); }
.contact-line a:hover { color: var(--gold-deep); }
.addr { margin-top: .6rem; color: var(--body); font-size: .95rem; }

.site-footer {
  position: relative; z-index: 3;
  background: var(--cream);
  border-top: 1px solid rgba(61,90,92,.1);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
  color: var(--body);
}

/* Scroll-reveal for flow sections */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.on { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .site-header { padding: .9rem 1.1rem; }
  #scene-neglect .copy, #scene-decision .copy {
    margin: 0 1rem;
    padding: 1.5rem 1.3rem;
  }
  .treat-head { left: 1rem; right: 1rem; max-width: none; padding: .9rem 1.1rem; }
  .treat-card { left: 1rem; right: 1rem; width: auto; }
  .header-cta { display: none; }
  .hud { top: auto; bottom: 1.1rem; right: 1.1rem; }
  .copy { padding: 0 1.4rem; }
  .copy-left, .copy-right { margin-left: 0; margin-right: 0; }
  .treat-kicker { left: 1.4rem; }
  .scene { height: 300vh; }
  .scene-tall { height: 560vh; }
  .flow { padding: 4.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
}
