:root {
  --ink: #171714;
  --paper: #f6f3ed;
  --paper-2: #eee8de;
  --surface: #fffdf9;
  --accent: #75424d;
  --accent-soft: #e4c9ca;
  --line: rgba(23, 23, 20, 0.14);
  --muted: #69675f;
  --shadow: 0 28px 80px rgba(35, 27, 24, 0.14);
  --radius: 2rem;
  --max: 1240px;
  --header-h: 74px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-dental {
  --ink: #10272b;
  --paper: #f1f7f6;
  --paper-2: #dfebe9;
  --surface: #fbfefe;
  --accent: #0c6971;
  --accent-soft: #b9d8d5;
  --line: rgba(16, 39, 43, 0.14);
  --muted: #5c6d6d;
  --shadow: 0 28px 80px rgba(10, 45, 52, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 9rem) 0; position: relative; }
.section-tight { padding: clamp(3.5rem, 6vw, 6rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { width: 1.9rem; height: 1px; content: ""; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: .98; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.2rem, 7vw, 7.1rem); font-weight: 660; }
h2 { margin-bottom: 1.2rem; font-size: clamp(2.5rem, 5vw, 5.6rem); font-weight: 630; }
h3 { font-size: clamp(1.45rem, 2vw, 2.2rem); font-weight: 650; }
.lede { max-width: 42rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; }
.micro { color: var(--muted); font-size: .82rem; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .95rem; font-weight: 780; letter-spacing: -.025em; }
.brand-mark { position: relative; width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; border-radius: 50%; background: var(--accent); }
.brand-mark::before { width: 9px; height: 9px; top: 6px; left: 6px; }
.brand-mark::after { width: 5px; height: 5px; right: 6px; bottom: 6px; }
.brand-sub { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { text-decoration: none; font-size: .86rem; font-weight: 650; }
.nav-links a:not(.button):hover { color: var(--accent); }
.nav-switch { display: flex; padding: .22rem; border: 1px solid var(--line); border-radius: 999px; }
.nav-switch a { padding: .42rem .7rem; border-radius: 999px; color: var(--muted); }
.nav-switch a[aria-current="page"] { color: var(--surface); background: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; color: inherit; padding: .55rem; }
.menu-button span { display: block; width: 23px; height: 1.5px; margin: 5px 0; background: currentColor; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 720;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: transparent; }
.button-accent { border-color: var(--accent); background: var(--accent); color: white; }
.button-inverse { border-color: rgba(255,255,255,.7); background: white; color: #111; }
.button-arrow::after { content: "↗"; font-size: 1rem; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); }
.hero-copy { position: relative; z-index: 3; padding-bottom: clamp(1rem, 5vw, 4rem); }
.hero-copy h1 { max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-proof { display: flex; align-items: center; gap: .75rem; margin-top: 2.25rem; color: var(--muted); font-size: .86rem; }
.status-dot { width: .62rem; height: .62rem; border-radius: 50%; background: #56a778; box-shadow: 0 0 0 5px rgba(86,167,120,.13); }
.hero-visual { position: relative; min-height: min(75vh, 760px); }
.hero-frame {
  position: absolute;
  inset: 0 0 0 6%;
  overflow: hidden;
  border-radius: 2rem 2rem 7rem 2rem;
  box-shadow: var(--shadow);
}
.theme-dental .hero-frame { border-radius: 2rem 7rem 2rem 2rem; }
.hero-frame::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(17,17,16,.1), transparent 35%); pointer-events: none; }
.hero-frame img { height: 100%; object-fit: cover; object-position: 58% center; }
.theme-dental .hero-frame img { object-position: 56% center; }
.hero-phone { position: absolute; z-index: 2; width: clamp(230px, 22vw, 330px); right: -2%; bottom: -1.5rem; transform: rotate(2.5deg); }

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18.8;
  padding: 10px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 3.1rem;
  background: #171719;
  box-shadow: 0 35px 80px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone::before { position: absolute; z-index: 4; top: 18px; left: 50%; width: 34%; height: 25px; transform: translateX(-50%); border-radius: 999px; background: #111; content: ""; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 2.55rem; background: #eae5dc; }
.theme-dental .phone-screen { background: #e7efee; }
.phone-bar { display: flex; align-items: center; gap: .65rem; height: 72px; padding: 23px 14px 8px; color: white; background: var(--accent); }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .72rem; font-weight: 800; }
.phone-title { line-height: 1.15; }
.phone-title strong { display: block; font-size: .72rem; }
.phone-title span { opacity: .75; font-size: .58rem; }
.messages { display: flex; height: calc(100% - 72px); flex-direction: column; gap: .5rem; padding: 16px 10px 12px; overflow: hidden; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 12px 12px; }
.bubble { max-width: 86%; padding: .65rem .7rem .55rem; border-radius: .9rem; background: white; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: .72rem; line-height: 1.4; animation: bubbleIn .45s both; }
.bubble.patient { align-self: flex-end; border-bottom-right-radius: .25rem; background: #d7eecb; }
.bubble.ai { align-self: flex-start; border-bottom-left-radius: .25rem; }
.bubble small { display: block; margin-top: .25rem; color: #777; text-align: right; font-size: .5rem; }
.bubble:nth-child(2) { animation-delay: .35s; }
.bubble:nth-child(3) { animation-delay: .75s; }
.bubble:nth-child(4) { animation-delay: 1.1s; }
.bubble:nth-child(5) { animation-delay: 1.45s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } }

.trust-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-item { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; background: var(--paper); }
.trust-item strong { font-size: 1.12rem; letter-spacing: -.025em; }
.trust-item span { color: var(--muted); font-size: .8rem; }

.intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: end; }
.problem-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.problem-row span:first-child { color: var(--accent); font-variant-numeric: tabular-nums; }
.problem-row strong { font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.problem-row em { color: var(--muted); font-size: .82rem; font-style: normal; }

.demo-section { color: #f7f5f1; background: #151513; overflow: hidden; }
.theme-dental .demo-section { background: #0d262a; }
.demo-section .eyebrow { color: var(--accent-soft); }
.demo-section .lede { color: rgba(255,255,255,.62); }
.demo-grid { display: grid; grid-template-columns: minmax(270px,.8fr) minmax(0,1.2fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.demo-phone-wrap { width: min(100%, 345px); margin-inline: auto; position: sticky; top: calc(var(--header-h) + 3rem); }
.demo-phone-wrap::before { position: absolute; inset: 12% -28%; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .25; content: ""; }
.scenario-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2.2rem 0; }
.scenario-tab { padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.68); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 650; }
.scenario-tab[aria-selected="true"] { color: #111; background: white; }
.capture-card { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-top: 1.8rem; }
.capture-card div { padding: 1rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1rem; background: rgba(255,255,255,.04); }
.capture-card span { display: block; color: rgba(255,255,255,.5); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.capture-card strong { display: block; margin-top: .25rem; font-size: .88rem; }

.editorial-photo { position: relative; overflow: hidden; min-height: min(75vw, 830px); }
.editorial-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(16,15,13,.78) 0%, rgba(16,15,13,.25) 50%, transparent 75%); }
.photo-copy { position: absolute; z-index: 2; left: max(20px, calc((100vw - var(--max))/2)); bottom: clamp(2.5rem, 8vw, 8rem); max-width: 520px; color: white; }
.photo-copy h2 { max-width: 9ch; }
.photo-copy p { max-width: 34rem; color: rgba(255,255,255,.75); }
.use-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.use-pills span { padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .76rem; }

.comparison-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.comparison-head h2 { max-width: 10ch; }
.journeys { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.journey { position: relative; overflow: hidden; min-height: 540px; padding: clamp(1.5rem, 3vw, 3rem); border-radius: 2rem; }
.journey-before { color: #f4f1eb; background: #282725; }
.journey-after { color: white; background: var(--accent); }
.journey-label { display: flex; justify-content: space-between; color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.journey-time { margin: 4.5rem 0 2.5rem; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 640; letter-spacing: -.06em; }
.journey-step { display: flex; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.17); }
.journey-step i { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: .65rem; font-style: normal; }
.journey-step strong { display: block; font-size: .95rem; }
.journey-step span { color: rgba(255,255,255,.58); font-size: .78rem; }

.control-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.control-image { position: relative; overflow: hidden; min-height: 620px; border-radius: 2rem; }
.control-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.handoff { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,.5); border-radius: 1.4rem; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.handoff-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.handoff-badge { padding: .32rem .55rem; border-radius: 999px; color: var(--accent); background: color-mix(in srgb,var(--accent) 12%,white); font-size: .68rem; font-weight: 800; }
.handoff p { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.principles { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.principle { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.principle strong { display: block; }
.principle span { color: var(--muted); font-size: .84rem; }

.implementation { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 3.2rem; border-block: 1px solid var(--line); }
.step { min-height: 280px; padding: 1.5rem; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-num { color: var(--accent); font-size: .75rem; letter-spacing: .12em; }
.step h3 { margin: 4.5rem 0 .8rem; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .85rem; }
.sample-quote { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.quote-art { width: 130px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--surface); background: var(--ink); font-size: 3rem; }
.sample-label { display: inline-block; margin-bottom: .75rem; padding: .32rem .52rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.sample-quote blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
.sample-quote cite { display: block; margin-top: 1rem; color: var(--muted); font-size: .8rem; font-style: normal; }

.final-cta { overflow: hidden; color: white; background: var(--ink); }
.final-cta-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 4rem; align-items: center; }
.final-cta h2 { max-width: 9ch; }
.final-cta p { color: rgba(255,255,255,.62); }
.final-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mini-phone { width: min(290px, 75%); margin-inline: auto; transform: translateY(5rem) rotate(-3deg); }

.site-footer { color: #e9e7e2; background: #0e0e0d; }
.theme-dental .site-footer { background: #071b1e; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; padding: 4.5rem 0; }
.footer-brand { max-width: 26rem; }
.footer-brand p { color: rgba(255,255,255,.55); }
.footer-links { display: grid; align-content: start; gap: .65rem; }
.footer-links strong { margin-bottom: .5rem; color: rgba(255,255,255,.4); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .87rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: .72rem; }

.modal { position: fixed; z-index: 200; inset: 0; display: none; place-items: center; padding: 1rem; }
.modal[open] { display: grid; }
.modal::backdrop { background: rgba(8,8,7,.72); backdrop-filter: blur(8px); }
.modal-card { width: min(100%, 760px); max-height: min(92svh, 920px); overflow: auto; padding: clamp(1.25rem, 4vw, 3rem); border: 0; border-radius: 1.5rem; color: var(--ink); background: var(--surface); box-shadow: 0 40px 100px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.modal-head h2 { margin-bottom: .55rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.modal-head p { color: var(--muted); }
.close-button { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: inherit; background: transparent; cursor: pointer; font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .42rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .77rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--paper); }
.field textarea { min-height: 96px; resize: vertical; }
.field-hp { position: absolute; left: -9999px; }
.field-error { min-height: 1.1em; color: #aa2e37; font-size: .7rem; }
.form-consent { margin: 1rem 0; color: var(--muted); font-size: .72rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
.form-status { min-height: 1.5rem; color: var(--muted); font-size: .78rem; }
.success-state { display: none; padding: 4rem 1rem; text-align: center; }
.success-state.active { display: block; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: white; background: #3d9362; font-size: 1.6rem; }

.legal { padding: calc(var(--header-h) + 5rem) 0 7rem; }
.legal-wrap { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.legal h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.legal h2 { margin-top: 3rem; font-size: 1.7rem; }
.legal p, .legal li { color: var(--muted); }

.sticky-mobile-cta { display: none; }

@media (max-width: 980px) {
  .hero-grid, .intro-grid, .demo-grid, .control-grid, .final-cta-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-copy { padding-top: 6rem; }
  .hero-visual { min-height: 690px; }
  .hero-frame { inset: 0; }
  .hero-phone { right: 2%; }
  .demo-phone-wrap { position: relative; top: auto; }
  .comparison-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mini-phone { transform: translateY(4rem) rotate(-3deg); }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; --radius: 1.25rem; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; display: none; padding: 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
  .nav-links.open { display: grid; }
  .nav-switch { justify-self: start; }
  .menu-button { display: block; }
  .desktop-cta { display: none; }
  h1 { font-size: clamp(3.05rem, 15vw, 4.8rem); }
  h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-copy { padding-top: 3.5rem; }
  .hero-copy h1 { max-width: 9ch; }
  .hero-actions .button { flex: 1; }
  .hero-visual { min-height: 600px; margin: 0 -14px; }
  .hero-frame { border-radius: 1.25rem 1.25rem 0 0; }
  .theme-dental .hero-frame { border-radius: 1.25rem 1.25rem 0 0; }
  .hero-frame img { object-position: 62% center; }
  .theme-dental .hero-frame img { object-position: 58% center; }
  .hero-phone { width: 220px; right: -2%; bottom: -3rem; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 98px; padding: 1rem; }
  .problem-row { grid-template-columns: 42px 1fr; }
  .problem-row em { grid-column: 2; }
  .demo-grid { gap: 4rem; }
  .demo-phone-wrap { width: 265px; }
  .capture-card { grid-template-columns: 1fr; }
  .editorial-photo { min-height: 760px; }
  .editorial-photo img { object-position: 60% center; }
  .editorial-photo::after { background: linear-gradient(0deg, rgba(12,12,11,.86) 0%, rgba(12,12,11,.18) 72%); }
  .photo-copy { left: 20px; right: 20px; bottom: 2.5rem; }
  .journeys { grid-template-columns: 1fr; }
  .journey { min-height: 470px; }
  .control-image { min-height: 580px; }
  .control-image img { object-position: 57% center; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 2.7rem; }
  .sample-quote { grid-template-columns: 1fr; }
  .quote-art { width: 74px; }
  .final-cta-grid { text-align: center; }
  .final-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .4rem; padding-bottom: 6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 94svh; border-radius: 1.5rem 1.5rem 0 0; }
  .sticky-mobile-cta { position: fixed; z-index: 45; left: .75rem; right: .75rem; bottom: .75rem; display: flex; gap: .5rem; padding: .5rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(18,18,17,.88); box-shadow: 0 12px 35px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
  .sticky-mobile-cta .button { flex: 1; min-height: 43px; padding: .55rem .7rem; border-color: transparent; }
  .sticky-mobile-cta .button-light { color: white; }
}

@media (max-width: 390px) {
  .brand-sub { display: none; }
  .hero-visual { min-height: 540px; }
  .hero-phone { width: 196px; bottom: -2rem; }
  .phone { border-radius: 2.6rem; }
  .phone-screen { border-radius: 2.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Visual direction v2: layered clinic editorial, glass product signals and restrained motion */
body {
  background:
    radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--accent-soft) 24%, transparent), transparent 27rem),
    var(--paper);
}

.site-header { padding-top: .55rem; }
.site-header .nav-wrap {
  height: 58px;
  padding: 0 .55rem 0 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { border-color: transparent; background: transparent; backdrop-filter: none; }
.site-header.scrolled .nav-wrap {
  border-color: color-mix(in srgb, var(--line) 70%, white 30%);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 16px 45px rgba(23,23,20,.09);
  backdrop-filter: blur(24px) saturate(1.35);
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 51px;
  padding-inline: 1.35rem;
  box-shadow: 0 10px 28px rgba(20,20,18,.12);
}
.button::before {
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 35%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  content: "";
  transition: left .55s ease;
}
.button:hover::before { left: 120%; }
.button-accent {
  border-color: transparent;
  background: linear-gradient(135deg, color-mix(in srgb,var(--accent) 78%,#bc7f86), var(--accent) 62%, color-mix(in srgb,var(--accent) 80%,#25191d));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}
.theme-dental .button-accent {
  background: linear-gradient(135deg, #36a7a3, #0c6971 58%, #083b47);
}

.hero {
  isolation: isolate;
  min-height: max(760px, 100svh);
  padding-top: calc(var(--header-h) + 4.5rem);
  background:
    radial-gradient(circle at 74% 25%, color-mix(in srgb,var(--accent-soft) 50%,transparent), transparent 28rem),
    linear-gradient(145deg, var(--paper), color-mix(in srgb,var(--surface) 86%,var(--accent-soft)));
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 28%, transparent 90%);
  content: "";
}
.hero-grid { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(2.5rem,5vw,6rem); }
.hero-copy { padding-bottom: clamp(2rem,4vw,3.5rem); }
.hero-copy h1 {
  max-width: 13ch;
  margin-bottom: 1.65rem;
  font-size: clamp(3.25rem,5.2vw,5.45rem);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero-copy .lede { max-width: 35rem; }
.hero-proof {
  width: fit-content;
  padding: .72rem 1rem;
  border: 1px solid color-mix(in srgb,var(--line) 70%,white);
  border-radius: 999px;
  background: color-mix(in srgb,var(--surface) 65%,transparent);
  box-shadow: 0 12px 35px rgba(0,0,0,.055);
  backdrop-filter: blur(12px);
}
.hero-visual { min-height: min(72vh,720px); perspective: 1200px; }
.hero-aura {
  position: absolute;
  inset: 10% -10% -5% 15%;
  border-radius: 50%;
  background: color-mix(in srgb,var(--accent) 22%,transparent);
  filter: blur(90px);
  animation: auraDrift 9s ease-in-out infinite alternate;
}
.hero-frame {
  inset: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 4rem 1.5rem 4rem 1.5rem;
  box-shadow: 0 40px 100px rgba(39,26,23,.2), inset 0 0 0 8px rgba(255,255,255,.08);
  transform: rotateY(-2deg) rotateX(.5deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .8s ease;
}
.theme-dental .hero-frame { border-radius: 1.5rem 4rem 1.5rem 4rem; }
.hero-visual:hover .hero-frame { transform: rotateY(0) rotateX(0) translateY(-4px); box-shadow: 0 50px 120px rgba(39,26,23,.25); }
.hero-frame::after {
  background: linear-gradient(105deg, rgba(17,17,16,.2), transparent 38%, rgba(255,255,255,.05));
}
.hero-frame picture, .hero-frame img { height: 100%; }
.hero-frame img {
  object-position: 58% center;
  transform: translate3d(0,var(--parallax-offset,0),0) scale(1.065);
  transition: transform .15s linear;
}
.theme-dental .hero-frame img { object-position: 53% center; }
.hero-phone {
  width: clamp(210px,18vw,270px);
  right: auto;
  left: -5.5%;
  bottom: 5%;
  transform: rotate(-5deg) translateZ(70px);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.24));
  animation: phoneFloat 5.5s ease-in-out infinite;
}
.hero-phone .phone { border-color: rgba(255,255,255,.75); }
.hero-visual-note {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: 9%;
  min-width: 190px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.74);
  box-shadow: 0 24px 55px rgba(33,24,22,.18);
  backdrop-filter: blur(22px) saturate(1.25);
}
.hero-visual-note span, .hero-visual-note small { display: block; color: var(--muted); font-size: .7rem; }
.hero-visual-note strong { display: block; margin: .2rem 0; font-size: .95rem; }

@keyframes phoneFloat { 0%,100% { transform: rotate(-5deg) translate3d(0,0,70px); } 50% { transform: rotate(-3.5deg) translate3d(0,-12px,70px); } }
@keyframes auraDrift { from { transform: translate3d(-2%,2%,0) scale(.94); } to { transform: translate3d(4%,-3%,0) scale(1.08); } }

.trust-strip {
  position: relative;
  z-index: 6;
  margin-top: -1.5rem;
  border: 0;
  background: transparent;
}
.trust-row {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 1.5rem;
  background: color-mix(in srgb,var(--surface) 72%,transparent);
  box-shadow: 0 25px 65px rgba(26,20,18,.1);
  backdrop-filter: blur(22px) saturate(1.35);
}
.trust-item {
  position: relative;
  min-height: 132px;
  background: transparent;
  transition: background .3s ease, transform .3s ease;
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item:hover { z-index: 2; transform: translateY(-4px); background: color-mix(in srgb,var(--accent-soft) 20%,white); }
.trust-item b { position: absolute; top: 1rem; right: 1rem; color: color-mix(in srgb,var(--accent) 55%,transparent); font-size: .68rem; letter-spacing: .12em; }

.problem-section { isolation: isolate; overflow: hidden; padding-top: clamp(7rem,10vw,11rem); }
.problem-glow, .comparison-orb {
  position: absolute;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: color-mix(in srgb,var(--accent-soft) 36%,transparent);
  filter: blur(110px);
}
.problem-glow { top: 10%; left: -18rem; }
.problem-heading { position: relative; }
.problem-heading h2 { max-width: 9ch; }
.night-message {
  width: min(100%,340px);
  margin-top: 3rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.4rem;
  color: white;
  background: linear-gradient(145deg,#201f1d,#34312d);
  box-shadow: 0 24px 60px rgba(15,15,14,.18);
  transform: rotate(-2deg);
}
.night-message span, .night-message i { display: block; color: rgba(255,255,255,.5); font-size: .7rem; font-style: normal; }
.night-message strong { display: block; margin: .65rem 0 1rem; font-size: 1.05rem; }
.night-message i { color: #e6ae8e; }
.problem-list { border: 0; gap: 1rem; perspective: 900px; }
.problem-row {
  min-height: 105px;
  grid-template-columns: 58px 1fr auto;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb,var(--line) 70%,white);
  border-radius: 1.35rem;
  background: color-mix(in srgb,var(--surface) 76%,transparent);
  box-shadow: 0 15px 45px rgba(27,22,20,.06);
  backdrop-filter: blur(12px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.problem-row:nth-child(2) { transform: translateX(1.5rem); }
.problem-row:nth-child(3) { transform: translateX(3rem); }
.problem-row:hover { transform: translateX(.5rem) translateY(-4px); border-color: color-mix(in srgb,var(--accent) 40%,white); box-shadow: 0 24px 55px rgba(27,22,20,.12); }

.demo-section {
  isolation: isolate;
  border-radius: 4rem 4rem 0 0;
  background:
    radial-gradient(circle at 18% 45%, color-mix(in srgb,var(--accent) 38%,transparent), transparent 26rem),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.08), transparent 22rem),
    #151513;
}
.theme-dental .demo-section { background: radial-gradient(circle at 18% 45%,rgba(31,155,157,.28),transparent 27rem),radial-gradient(circle at 82% 10%,rgba(255,255,255,.08),transparent 22rem),#0d262a; }
.demo-beam {
  position: absolute;
  top: -10%;
  left: 48%;
  width: 1px;
  height: 120%;
  transform: rotate(17deg);
  background: linear-gradient(transparent,rgba(255,255,255,.22),transparent);
  box-shadow: 0 0 70px 24px color-mix(in srgb,var(--accent) 26%,transparent);
}
.demo-phone-wrap { transform: rotate(-2deg); transition: transform .6s ease; }
.demo-phone-wrap:hover { transform: rotate(0) scale(1.025); }
.demo-phone-wrap::before { opacity: .42; animation: auraDrift 8s ease-in-out infinite alternate; }
.scenario-tab { backdrop-filter: blur(10px); transition: transform .2s ease,background .2s ease,color .2s ease; }
.scenario-tab:hover { transform: translateY(-2px); }
.scenario-tab[aria-selected="true"] { box-shadow: 0 9px 25px rgba(255,255,255,.12); }
.capture-card div { background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(12px); }

.editorial-photo { min-height: min(78vw,900px); }
.editorial-photo img {
  transform: translate3d(0,var(--parallax-offset,0),0) scale(1.08);
  transition: transform .15s linear;
}
.editorial-photo::after { background: linear-gradient(90deg,rgba(12,11,10,.82),rgba(12,11,10,.2) 57%,rgba(12,11,10,.15)); }
.photo-copy {
  padding: clamp(1.4rem,3vw,2.2rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.8rem;
  background: rgba(15,14,13,.38);
  box-shadow: 0 28px 70px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}
.service-signals {
  position: absolute;
  z-index: 3;
  right: max(24px,calc((100vw - var(--max))/2));
  bottom: clamp(3rem,7vw,7rem);
  width: min(390px,34vw);
  display: grid;
  gap: .75rem;
}
.service-signal {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 1.2rem;
  color: #171714;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 40px rgba(0,0,0,.17);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: transform .3s ease, background .3s ease;
}
.service-signal:nth-child(2) { transform: translateX(-1.5rem); }
.service-signal:hover { transform: translateX(-.5rem) scale(1.02); background: rgba(255,255,255,.9); }
.service-signal b { color: var(--accent); font-size: .65rem; }
.service-signal strong, .service-signal span { display: block; }
.service-signal strong { font-size: .88rem; }
.service-signal span { color: #6d6a64; font-size: .72rem; }
.service-signal em { padding: .34rem .5rem; border-radius: 999px; color: white; background: var(--accent); font-size: .62rem; font-style: normal; white-space: nowrap; }

.comparison-section { isolation: isolate; overflow: hidden; }
.comparison-orb { right: -17rem; bottom: -13rem; }
.journey {
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 28px 70px rgba(28,24,21,.13);
  transition: transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease;
}
.journey:hover { transform: translateY(-10px) rotateX(1deg); box-shadow: 0 42px 90px rgba(28,24,21,.2); }
.journey-before { background: linear-gradient(150deg,#1e1e1c,#393633); }
.journey-after { background: linear-gradient(145deg,color-mix(in srgb,var(--accent) 76%,#bb7d84),var(--accent) 62%,color-mix(in srgb,var(--accent) 78%,#21171a)); }
.theme-dental .journey-after { background: linear-gradient(145deg,#27979a,#0c6971 57%,#083b47); }

.control-section {
  background: linear-gradient(165deg,color-mix(in srgb,var(--surface) 80%,var(--accent-soft)),var(--paper));
}
.control-image {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 4rem 1.5rem 4rem 1.5rem;
  box-shadow: 0 32px 80px rgba(32,24,22,.16);
}
.theme-dental .control-image { border-radius: 1.5rem 4rem 1.5rem 4rem; }
.control-image img { transform: translate3d(0,var(--parallax-offset,0),0) scale(1.06); transition: transform .15s linear; }
.handoff { background: rgba(255,255,255,.78); backdrop-filter: blur(22px) saturate(1.3); }
.handoff-route { display: flex; align-items: center; gap: .55rem; margin-top: .95rem; color: var(--muted); font-size: .68rem; }
.handoff-route i { height: 1px; flex: 1; background: linear-gradient(90deg,var(--accent),transparent); }

.implementation { background: linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--paper) 82%,var(--accent-soft))); }
.steps { gap: 1rem; border: 0; }
.step {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid color-mix(in srgb,var(--line) 68%,white);
  border-radius: 1.6rem;
  background: rgba(255,255,255,.58);
  box-shadow: 0 14px 38px rgba(30,24,21,.055);
  backdrop-filter: blur(12px);
  transition: transform .35s ease,box-shadow .35s ease,background .35s ease;
}
.step:last-child, .step { border-right: 1px solid color-mix(in srgb,var(--line) 68%,white); }
.step::after { position: absolute; right: -35%; bottom: -45%; width: 190px; height: 190px; border-radius: 50%; background: color-mix(in srgb,var(--accent-soft) 42%,transparent); filter: blur(12px); content: ""; }
.step:hover { transform: translateY(-9px); background: rgba(255,255,255,.84); box-shadow: 0 28px 62px rgba(30,24,21,.12); }
.step-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 18px; color: white; background: linear-gradient(145deg,var(--accent),color-mix(in srgb,var(--accent) 64%,#181716)); box-shadow: 0 12px 28px color-mix(in srgb,var(--accent) 22%,transparent); font-size: 1.3rem; }
.step h3 { margin-top: 2.8rem; }
.sample-quote { padding: 2.2rem; border: 1px solid var(--line); border-radius: 1.75rem; background: rgba(255,255,255,.55); box-shadow: 0 18px 50px rgba(20,18,16,.06); }

.final-cta {
  isolation: isolate;
  background: linear-gradient(135deg,#111211 0%,color-mix(in srgb,var(--accent) 48%,#111) 58%,#111 100%);
}
.theme-dental .final-cta { background: linear-gradient(135deg,#071719,#0c4b50 58%,#071719); }
.cta-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(85px); opacity: .58; }
.cta-glow-one { width: 34rem; height: 34rem; top: -16rem; left: -8rem; background: var(--accent); }
.cta-glow-two { width: 28rem; height: 28rem; right: -8rem; bottom: -14rem; background: var(--accent-soft); }
.final-cta::after { position: absolute; z-index: -1; inset: 0; opacity: .1; background-image: radial-gradient(white 1px,transparent 1px); background-size: 22px 22px; content: ""; }
.mini-phone { filter: drop-shadow(0 42px 50px rgba(0,0,0,.42)); animation: phoneFloat 6.5s ease-in-out infinite; }

body.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1);
}
body.motion-ready [data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .service-signals { width: min(360px,38vw); }
  .hero-visual-note { right: 1%; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 12ch; }
  .hero-visual { min-height: 720px; }
  .hero-phone { left: 2%; width: 235px; }
  .hero-visual-note { right: 3%; }
  .service-signals { width: min(390px,42vw); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb,var(--line) 68%,white); }
}

@media (max-width: 760px) {
  .site-header { padding-top: .35rem; }
  .site-header .nav-wrap { height: 56px; }
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .hero-copy { padding-top: 2rem; }
  .hero-copy h1 { max-width: 12ch; font-size: clamp(2.8rem,12.8vw,3.75rem); line-height: 1.01; }
  .hero-visual { min-height: 610px; margin-inline: -14px; }
  .hero-frame, .theme-dental .hero-frame { inset: 0; border-radius: 2.5rem 1rem 0 0; transform: none; }
  .hero-frame img { object-position: 58% center; }
  .theme-dental .hero-frame img { object-position: 52% center; }
  .hero-phone { left: 3%; right: auto; bottom: -1.5rem; width: 190px; }
  .hero-visual-note { right: 3%; bottom: 2rem; min-width: 160px; }
  .trust-strip { margin-top: -1rem; }
  .trust-row { grid-template-columns: 1fr 1fr; border-radius: 1.15rem; }
  .trust-item { min-height: 112px; }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .intro-grid { gap: 3rem; }
  .night-message { margin-top: 2rem; }
  .problem-row,.problem-row:nth-child(2),.problem-row:nth-child(3) { transform: none; }
  .demo-section { border-radius: 2.5rem 2.5rem 0 0; }
  .editorial-photo { min-height: 900px; }
  .photo-copy { left: 14px; right: 14px; bottom: 1rem; }
  .service-signals { top: 1rem; right: 14px; bottom: auto; width: calc(100% - 28px); }
  .service-signal { padding: .85rem .9rem; }
  .service-signal:nth-child(2) { transform: none; }
  .service-signal:nth-child(3) { display: none; }
  .control-image,.theme-dental .control-image { border-radius: 2.5rem 1rem 2.5rem 1rem; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 250px; }
  .sample-quote { padding: 1.3rem; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 2.72rem; }
  .hero-visual { min-height: 560px; }
  .hero-phone { width: 176px; }
  .hero-visual-note { min-width: 146px; padding: .8rem; }
  .hero-visual-note strong { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
