:root {
  --off-black: #121212;
  --ivory: #f9f7f5;
  --white: #ffffff;
  --card: #efedeb;
  --stone: #e3e1dc;
  --text: #535353;
  --muted-dark: #bababa;
  --indigo: #4f32ff;
  --violet: #3d2276;
  --pink: #b950c8;
  --mauve: #583f54;
  --header-button-dark: #303030;
  --clinical-card: rgba(23, 23, 23, 0.82);
  --line-light: rgba(18, 18, 18, 0.12);
  --line-dark: rgba(249, 247, 245, 0.16);
  --success: #17875a;
  --warning: #a46400;
  --danger: #b83232;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--off-black);
  font-family: "SF Pro Text", "Ek Modena", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 52px;
  padding: 0 24px;
  background: rgba(249, 247, 245, 0.9);
  color: var(--off-black);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--indigo);
  border-right-color: var(--pink);
  border-radius: 50%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(18, 18, 18, 0.06);
  border-radius: var(--radius-pill);
}

.top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
}

.top-nav a.active,
.top-nav a[aria-current="page"],
.top-nav a:focus-visible {
  color: var(--off-black);
  background: var(--white);
  outline: 0;
}

.section-dark,
.section-light {
  padding: 88px 28px;
}

.section-dark {
  background: var(--ivory);
  color: var(--off-black);
}

.section-light {
  background: var(--ivory);
  color: var(--off-black);
}

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(540px, 1.22fr);
  gap: 56px;
  align-items: center;
  max-width: none;
  padding-top: 72px;
}

.hero-copy,
.section-intro,
.hero-product,
.patient-stage,
.chair-layout,
.dashboard-shell,
.rollout-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
  margin-right: 0;
}

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.section-dark .label {
  color: var(--indigo);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: "SF Pro Display", "Unica77", system-ui, sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-family: "SF Pro Display", "Unica77", system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.07;
  font-weight: 650;
  letter-spacing: 0;
}

h3 {
  font-size: 28px;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: 0;
}

h4 {
  font-size: 18px;
  line-height: 1.24;
  font-weight: 700;
}

.hero-lede,
.section-intro p {
  max-width: 760px;
  color: var(--text);
  font-size: 21px;
}

.section-dark .hero-lede,
.section-dark .section-intro p {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.home-hero .hero-actions {
  width: min(100%, 320px);
  display: grid;
  justify-items: start;
  gap: 14px;
}

.home-hero .hero-actions a,
.home-hero .product-link {
  width: 100%;
  color: var(--indigo);
  background: transparent;
  border: 1px solid currentColor;
}

.home-hero .hero-actions a:hover,
.home-hero .hero-actions a:focus-visible,
.home-hero .product-link:hover,
.home-hero .product-link:focus-visible {
  color: var(--white);
  background: var(--indigo);
  border-color: var(--indigo);
}

.button-primary,
.button-secondary,
.product-window button,
.mobile-pay,
.desktop-continue,
.case-panel button,
.dash-header button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button-primary,
.product-window button,
.mobile-pay,
.desktop-continue,
.case-panel button,
.dash-header button {
  padding: 0 22px;
  color: var(--white);
  background: var(--indigo);
}

.button-secondary {
  padding: 0 22px;
  color: var(--indigo);
  background: transparent;
  border: 1px solid currentColor;
}

.button-secondary.dark {
  color: var(--indigo);
}

.button-primary:active,
.button-secondary:active,
.product-window button:active,
.mobile-pay:active,
.desktop-continue:active,
.case-panel button:active,
.dash-header button:active {
  transform: scale(0.96);
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.hero-product {
  max-width: 860px;
  margin-left: 0;
}

.product-window,
.desktop-shell,
.tablet-shell,
.dashboard-shell {
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--off-black);
}

.product-window {
  border-radius: 24px;
}

.window-bar,
.browser-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text);
  background: var(--card);
}

.window-bar span,
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone);
  opacity: 0.8;
}

.window-bar span:nth-child(2) {
  background: var(--pink);
}

.window-bar span:nth-child(3) {
  background: var(--indigo);
}

.window-bar p,
.browser-bar p {
  margin: 0 0 0 10px;
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  padding: 18px;
}

.xray-panel,
.plan-panel,
.case-panel,
.work-panel,
.desktop-section,
.estimate-box,
.mobile-card {
  border: 1px solid var(--line-light);
}

.xray-panel,
.plan-panel {
  background: var(--white);
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
}

.xray-panel {
  padding: 18px;
}

.xray-scan,
.large-xray {
  position: relative;
  overflow: hidden;
  background: #18202a;
  border-radius: var(--radius-lg);
}

.xray-scan svg,
.large-xray svg {
  display: block;
  width: 100%;
  height: auto;
}

.xray-scan rect,
.large-xray rect {
  fill: #18202a;
}

.jaw,
.bone-line,
.tooth {
  fill: none;
  stroke: rgba(249, 247, 245, 0.72);
  stroke-width: 13;
  stroke-linecap: round;
}

.jaw.lower {
  stroke: rgba(249, 247, 245, 0.42);
}

.bone-line {
  stroke: rgba(185, 80, 200, 0.88);
  stroke-width: 4;
}

.tooth {
  stroke-width: 9;
}

.ai-ring {
  fill: rgba(79, 50, 255, 0.15);
  stroke: var(--indigo);
  stroke-width: 4;
}

.annotation-stack {
  margin-top: 16px;
}

.annotation-stack span,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  color: var(--white);
  background: var(--violet);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.annotation-stack strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.annotation-stack p,
.plan-panel p {
  color: var(--text);
}

.plan-panel {
  padding: 22px;
}

.plan-panel h2 {
  margin: 18px 0 10px;
  font-size: 36px;
}

.plan-row {
  display: grid;
  gap: 2px;
  padding: 14px;
  margin-top: 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
}

.plan-row.selected {
  border-color: var(--indigo);
  background: rgba(79, 50, 255, 0.18);
}

.plan-row span {
  font-size: 22px;
  font-weight: 700;
}

.plan-row small {
  color: var(--text);
}

.product-window button {
  width: 100%;
  margin-top: 18px;
}

.product-link {
  width: 100%;
  margin-top: 18px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.proof-strip div {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border-right: 1px solid var(--line-light);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.proof-strip span {
  max-width: 340px;
  color: var(--text);
}

.experience {
  min-height: 100vh;
}

.section-intro {
  margin-bottom: 56px;
}

.page-main .section-intro h1 {
  max-width: 940px;
  font-size: clamp(36px, 4.5vw, 60px);
}

.single-page-experience {
  min-height: calc(100vh - 52px);
  padding-top: 56px;
  padding-bottom: 56px;
}

body[data-page="provider"] .section-intro,
body[data-page="coordinator"] .section-intro {
  display: block;
  margin-bottom: 32px;
}

body[data-page="provider"] .section-intro p,
body[data-page="coordinator"] .section-intro p {
  max-width: 720px;
  margin-bottom: 4px;
  font-size: 18px;
}

.experience-index {
  min-height: auto;
}

.experience-link-grid {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.experience-link-card {
  min-height: 300px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 160ms ease, transform 160ms ease;
}

.experience-link-card:hover,
.experience-link-card:focus-visible {
  border-color: var(--indigo);
  transform: translateY(-2px);
  outline: 0;
}

.experience-link-card span {
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-link-card h3 {
  margin: 0;
  font-size: 30px;
}

.experience-link-card p {
  margin: 0;
  color: var(--text);
}

.patient-stage {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(540px, 1fr);
  gap: 32px;
  align-items: center;
}

.phone-shell {
  width: min(100%, 390px);
  min-height: 832px;
  margin: 0 auto;
  padding: 12px;
  scroll-margin-top: 76px;
  color: var(--off-black);
  background: var(--off-black);
  border: 1px solid rgba(18, 18, 18, 0.4);
  border-radius: 58px;
  box-shadow: inset 0 0 0 2px #050505;
}

.phone-screen {
  position: relative;
  height: 808px;
  padding: 62px 18px 18px;
  background: var(--ivory);
  border-radius: 46px;
}

.mobile-prototype {
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 124px;
  height: 36px;
  transform: translateX(-50%);
  background: #0c0c0d;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mobile-status {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.mobile-screen {
  display: none;
}

.mobile-screen.is-active {
  display: block;
  max-height: 728px;
  overflow-y: auto;
  animation: fade-up 260ms ease both;
  scrollbar-width: none;
}

.mobile-screen.is-active::-webkit-scrollbar {
  display: none;
}

.message-header {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}

.message-header strong {
  font-size: 28px;
  line-height: 1;
}

.message-header small {
  color: var(--text);
}

.sms-thread {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 16px;
}

.thread-date,
.prototype-hint {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.sms-bubble {
  max-width: 260px;
  padding: 14px;
  color: var(--off-black);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 18px 18px 18px 5px;
}

.sms-bubble p {
  margin-bottom: 12px;
}

.message-link {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: var(--white);
  background: var(--indigo);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 13px;
}

.safari-chrome {
  display: grid;
  gap: 8px;
  margin: -4px -2px 12px;
}

.safari-topbar {
  min-height: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.safari-topbar button {
  justify-self: start;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  color: var(--indigo);
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 13px;
}

.safari-topbar strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.safari-address {
  overflow: hidden;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  font-size: 11px;
}

.safari-address span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safari-lock {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 8px;
  border: 1.5px solid var(--text);
  border-radius: 2px;
  opacity: 0.8;
}

.safari-lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -7px;
  width: 5px;
  height: 7px;
  border: 1.5px solid var(--text);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.clinic-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.clinic-line small {
  color: var(--text);
  font-weight: 500;
}

.mobile-card {
  background: var(--white);
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.mobile-card.treatment {
  padding: 14px;
}

.mobile-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.mini-xray {
  height: 92px;
  position: relative;
  overflow: hidden;
  background: #17202a;
  border-radius: 12px;
}

.mini-xray span {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(249, 247, 245, 0.72);
}

.mini-xray span:nth-child(1) {
  width: 142px;
  height: 78px;
  left: 54px;
  top: 28px;
}

.mini-xray span:nth-child(2) {
  width: 36px;
  height: 36px;
  left: 124px;
  top: 30px;
  border-color: var(--indigo);
  background: rgba(79, 50, 255, 0.22);
}

.mini-xray span:nth-child(3) {
  width: 74px;
  height: 20px;
  left: 104px;
  top: 58px;
  border-color: var(--pink);
}

.balance-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 10px 0;
}

.balance-block div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-light);
}

.balance-block small {
  color: var(--text);
}

.mobile-card.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.mobile-card.plan p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.mobile-card.plan small {
  color: var(--text);
}

.mobile-card.plan.selected {
  border: 2px solid var(--indigo);
}

.mobile-card.plan > span {
  min-width: max-content;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
}

.mobile-pay {
  width: 100%;
  margin-top: 12px;
}

.payment-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
}

.payment-summary .label {
  margin: 0;
}

.payment-summary strong,
.desktop-payment-card > strong {
  font-size: 22px;
  line-height: 1.1;
}

.payment-summary small {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.apple-pay-button {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: pay;
  -apple-pay-button-style: black;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: #000000;
  cursor: pointer;
  font-weight: 700;
}

.apple-pay-button span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.or-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text);
  font-size: 12px;
}

.or-line::before,
.or-line::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-light);
}

.card-form {
  display: grid;
  gap: 10px;
}

.card-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.card-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--off-black);
  background: var(--white);
  font: inherit;
  font-size: 15px;
}

.card-form input:focus {
  border-color: var(--indigo);
  outline: 2px solid rgba(79, 50, 255, 0.18);
}

.card-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirmation-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 58px auto 22px;
  color: var(--white);
  background: var(--success);
  border-radius: 50%;
  font-size: 38px;
  font-weight: 700;
}

.mobile-screen[data-mobile-screen="done"] h3,
.mobile-screen[data-mobile-screen="done"] > p {
  text-align: center;
}

.next-step {
  margin-top: 24px;
}

.next-step strong,
.next-step small {
  display: block;
}

.next-step small {
  margin-top: 8px;
  color: var(--text);
}

.fine-print {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.desktop-shell {
  border-color: var(--line-light);
  border-radius: 24px;
  background: var(--white);
  color: var(--off-black);
}

.desktop-shell .browser-bar {
  border-bottom-color: var(--line-light);
  color: var(--text);
  background: var(--card);
}

.desktop-content {
  padding: 28px;
}

.desktop-screen.is-active {
  animation: fade-up 260ms ease both;
}

.desktop-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: stretch;
}

.desktop-hero h3 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: 36px;
}

.desktop-hero p {
  max-width: 640px;
  color: var(--text);
}

.estimate-box {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 20px;
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  color: var(--off-black);
}

.estimate-box small,
.estimate-box span {
  color: var(--text);
}

.estimate-box strong {
  font-size: 42px;
  line-height: 1;
}

.desktop-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 20px;
  margin-top: 22px;
}

.desktop-section {
  flex: 1 1 320px;
  max-width: 460px;
  min-height: 250px;
  padding: 20px;
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--ivory);
}

.desktop-plan {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.desktop-plan.active {
  border: 2px solid var(--indigo);
}

.desktop-plan span {
  font-size: 25px;
  font-weight: 700;
}

.desktop-plan small {
  color: var(--text);
}

.desktop-continue {
  width: 100%;
  margin-top: 16px;
}

.desktop-payment-card {
  display: grid;
  align-content: start;
}

.desktop-payment-card > strong {
  display: block;
  margin-bottom: 14px;
}

.desktop-apple-pay {
  margin-top: 2px;
}

.compact-card-form {
  gap: 12px;
}

.prototype-status {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 13px;
}

.desktop-confirmation-screen {
  min-height: 572px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 8px 34px 28px;
}

.desktop-confirmation-hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.desktop-confirmation-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  font-size: 42px;
}

.desktop-confirmation-hero .label {
  margin-bottom: 10px;
}

.desktop-confirmation-hero h3 {
  margin-bottom: 12px;
  font-size: 42px;
}

.desktop-confirmation-hero p:not(.label) {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text);
  font-size: 20px;
}

.desktop-confirmation-grid {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 auto;
}

.desktop-next-step,
.desktop-reservation-summary {
  max-width: none;
  min-height: 176px;
  background: var(--ivory);
}

.desktop-next-step strong,
.desktop-next-step small {
  display: block;
}

.desktop-next-step strong {
  font-size: 22px;
  line-height: 1.16;
}

.desktop-next-step small {
  margin-top: 14px;
  color: var(--text);
}

.desktop-reservation-summary dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.desktop-reservation-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
}

.desktop-reservation-summary dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.desktop-reservation-summary dt {
  color: var(--text);
}

.desktop-reservation-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.desktop-reset {
  width: min(100%, 320px);
  margin: 0 auto;
}

.chair-layout {
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
  gap: 36px;
  align-items: center;
}

.tablet-shell {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 680px;
  border-radius: 28px;
  background: var(--white);
}

.tablet-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 14px;
  background: var(--card);
  border-right: 1px solid var(--line-light);
}

.tablet-sidebar strong {
  margin-bottom: 18px;
  color: var(--off-black);
}

.tablet-sidebar button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.tablet-sidebar button.active {
  color: var(--white);
  background: var(--indigo);
}

.tablet-main {
  padding: 24px;
}

.tablet-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.tablet-header h3 {
  margin: 0;
}

.tablet-header > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--indigo);
  background: rgba(79, 50, 255, 0.08);
  border: 1px solid rgba(79, 50, 255, 0.24);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.provider-view {
  display: none;
}

.provider-view.is-active {
  display: block;
}

.exam-workspace,
.payment-plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.tooth-gallery,
.exam-findings,
.coverage-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.tooth-gallery {
  overflow: hidden;
}

.tooth-slide {
  display: none;
}

.tooth-slide.is-active {
  display: grid;
}

.tooth-slide svg {
  display: block;
  width: 100%;
  min-height: 430px;
  background: #18202a;
}

.tooth-slide rect {
  fill: #18202a;
}

.angle-line {
  fill: none;
  stroke: rgba(185, 80, 200, 0.82);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
}

.occlusal {
  fill: none;
  stroke: rgba(249, 247, 245, 0.68);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tooth-fill {
  fill: rgba(249, 247, 245, 0.14);
  stroke: rgba(249, 247, 245, 0.76);
  stroke-width: 7;
  stroke-linejoin: round;
}

.slide-caption {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-top: 1px solid var(--line-light);
}

.slide-caption h4,
.slide-caption p {
  margin: 0;
}

.slide-caption span {
  color: var(--text);
}

.gallery-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line-light);
}

.gallery-controls button {
  min-height: 38px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  color: var(--off-black);
  background: var(--white);
  cursor: pointer;
}

.gallery-controls button:last-child {
  background: var(--indigo);
  border-color: var(--indigo);
}

.gallery-controls span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.exam-findings {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.exam-findings h4 {
  margin: 0;
}

.exam-findings > div {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.exam-findings span,
.coverage-card span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.exam-findings strong {
  color: var(--off-black);
  line-height: 1.25;
}

.coverage-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.coverage-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: start;
  padding: 18px;
}

.coverage-card.primary,
.coverage-card.wide {
  grid-column: span 2;
}

.coverage-card h4,
.coverage-card p {
  margin: 0;
}

.coverage-card strong {
  color: var(--off-black);
  font-size: 22px;
  line-height: 1.1;
}

.coverage-card small,
.coverage-card p {
  color: var(--text);
}

.payment-plan-panel {
  min-height: 0;
}

.payment-options-panel {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.clinical-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
}

.large-xray {
  min-height: 484px;
  display: grid;
  align-content: center;
}

.xray-callout {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 280px;
  padding: 12px 14px;
  color: var(--ivory);
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.case-panel {
  display: grid;
  align-content: start;
  padding: 20px;
  background: var(--white);
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
}

.case-panel h4 {
  margin: 18px 0 4px;
}

.case-panel p {
  color: var(--text);
}

.case-panel button {
  width: 100%;
}

.provider-finance {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.payment-options-panel > button[data-provider-send] {
  margin-top: 16px;
}

.case-panel .provider-plan {
  width: 100%;
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 12px;
  color: var(--off-black);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.case-panel .provider-plan.selected {
  border-color: var(--indigo);
  background: rgba(79, 50, 255, 0.2);
}

.case-panel .provider-plan span {
  font-weight: 700;
}

.case-panel .provider-plan small {
  color: var(--text);
}

.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--text);
}

.cost-line strong {
  color: var(--off-black);
}

.cost-line.total {
  margin-bottom: 18px;
  color: var(--off-black);
  border-bottom: 0;
}

.cost-line.total strong {
  font-size: 26px;
}

.flow-copy {
  display: grid;
  gap: 24px;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.flow-step span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--indigo);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.flow-step h3 {
  margin-bottom: 8px;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--text);
}

.coordinator {
  padding-bottom: 104px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 760px;
  border-color: var(--line-light);
  border-radius: 28px;
  background: var(--white);
  color: var(--off-black);
}

.dash-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  background: var(--card);
  color: var(--off-black);
  border-right: 1px solid var(--line-light);
}

.dash-nav strong {
  margin-bottom: 22px;
}

.dash-nav > button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.dash-nav > button.active {
  color: var(--white);
  background: var(--indigo);
}

.dash-main {
  padding: 28px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dash-header h3 {
  margin: 0;
  font-size: 38px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metrics-row div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--ivory);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
}

.metrics-row span {
  color: var(--text);
  font-size: 13px;
}

.metrics-row strong {
  font-size: 34px;
  line-height: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.work-panel {
  min-height: 270px;
  padding: 20px;
  border-color: var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--ivory);
}

.work-panel.wide {
  grid-column: 1 / -1;
  min-height: 196px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h4 {
  margin: 0;
}

.panel-title span,
.reconciled {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--success);
  border: 1px solid rgba(23, 135, 90, 0.28);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.case-row,
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
}

.case-row {
  cursor: pointer;
}

.case-row small {
  display: block;
  color: var(--text);
}

.case-row > span {
  min-width: max-content;
  font-size: 12px;
  font-weight: 700;
}

.case-row.approved > span {
  color: var(--success);
}

.case-row.pending > span {
  color: var(--warning);
}

.case-row.reviewing > span {
  color: var(--indigo);
}

.case-row.is-selected {
  padding-inline: 10px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
}

.ledger-row span {
  color: var(--text);
}

.ledger-row strong {
  font-size: 20px;
}

.reconciled {
  width: max-content;
  margin-top: 20px;
  color: var(--white);
  background: var(--success);
  border-color: var(--success);
}

.sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sequence div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
}

.sequence small {
  color: var(--indigo);
  font-weight: 700;
  text-transform: uppercase;
}

.sequence p {
  margin: 8px 0 0;
  color: var(--text);
}

.chat-panel,
.nav-case-assistant {
  display: grid;
  gap: 14px;
}

.nav-case-assistant {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.nav-assistant-title {
  display: grid;
  gap: 8px;
}

.nav-assistant-title h4 {
  margin: 0;
}

.nav-assistant-title span {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--success);
  border: 1px solid rgba(23, 135, 90, 0.28);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-suggestions button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.prompt-suggestions button:hover,
.prompt-suggestions button:focus-visible {
  color: var(--indigo);
  border-color: rgba(79, 50, 255, 0.45);
  outline: 0;
}

.prompt-suggestions button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.nav-case-assistant .chat-log {
  max-height: 360px;
}

.nav-case-assistant .chat-message {
  max-width: 100%;
}

.nav-case-assistant .chat-form {
  grid-template-columns: 1fr;
}

.nav-case-assistant .chat-form button {
  width: 100%;
}

.nav-case-assistant .prototype-status {
  margin-top: 0;
}

.chat-log {
  max-height: 240px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
}

.chat-message {
  max-width: min(86%, 760px);
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  background: var(--ivory);
  font-size: 14px;
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--indigo);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.chat-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.chat-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  color: var(--off-black);
  background: var(--white);
  font: inherit;
  font-size: 15px;
}

.chat-form input:focus {
  border-color: var(--indigo);
  outline: 2px solid rgba(79, 50, 255, 0.16);
}

.chat-form button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: var(--indigo);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.chat-form button:disabled,
.chat-form input:disabled {
  cursor: progress;
  opacity: 0.68;
}

.rollout {
  min-height: 72vh;
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.rollout-grid div {
  min-height: 320px;
  padding: 30px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.rollout-grid span {
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.rollout-grid h3 {
  margin: 18px 0 12px;
}

.rollout-grid p {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 28px;
  background: var(--ivory);
  border-top: 1px solid var(--line-light);
  color: var(--text);
  font-size: 13px;
}

.site-footer p {
  max-width: 740px;
  margin: 0;
}

.site-footer a {
  color: var(--indigo);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: fade-up 520ms ease both;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy,
  .hero-product {
    margin-left: auto;
    margin-right: auto;
  }

  .patient-stage,
  .chair-layout {
    grid-template-columns: 1fr;
  }

  .flow-copy {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .product-grid,
  .desktop-hero,
  .exam-workspace,
  .payment-plans-layout,
  .coverage-disclosure-grid,
  .clinical-grid,
  .dashboard-shell,
  .work-grid,
  .sequence,
  .rollout-grid,
  .experience-link-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tablet-shell {
    grid-template-columns: 1fr;
  }

  .tablet-sidebar {
    grid-template-columns: repeat(4, max-content);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .tablet-sidebar strong {
    margin: 0 12px 0 0;
    align-self: center;
  }

  .coverage-card.primary,
  .coverage-card.wide {
    grid-column: auto;
  }

  .large-xray {
    min-height: 360px;
  }

  .work-panel.wide {
    grid-column: auto;
  }

  .flow-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    height: 56px;
    padding: 0 14px;
  }

  .section-dark,
  .section-light,
  .hero {
    padding: 56px 16px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .section-intro p {
    font-size: 18px;
  }

  .proof-strip,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 128px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .patient-stage {
    gap: 24px;
  }

  .phone-shell {
    min-height: auto;
    padding: 10px;
    border-radius: 48px;
  }

  .phone-screen {
    height: 780px;
    min-height: auto;
    padding: 62px 16px 16px;
    border-radius: 40px;
  }

  .phone-screen::before {
    width: 112px;
    height: 32px;
  }

  .mobile-screen.is-active {
    max-height: 702px;
  }

  .desktop-content,
  .tablet-main,
  .dash-main {
    padding: 18px;
  }

  .tablet-sidebar {
    padding: 14px;
  }

  .tablet-sidebar button {
    padding: 0 12px;
  }

  .dash-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-x: visible;
    padding: 14px;
  }

  .dash-nav strong {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .nav-case-assistant {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dash-header {
    align-items: start;
    flex-direction: column;
  }

  .dash-header h3 {
    font-size: 30px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }

  .sequence div {
    min-height: 138px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }
}
