/* =========================================================
   NOVA Dental — styles
   Palette: mint, cream, pale blue, butter accent, near-black ink
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   ========================================================= */

:root {
  --mint: #DCEFE3;
  --mint-2: #C3E5D2;
  --mint-ink: #1E6A50;        /* accessible mint for text/icons */
  --cream: #FBF6EC;
  --cream-2: #F3EBDB;
  --blue: #E1ECF7;
  --blue-ink: #2B5680;
  --butter: #F6DF8F;
  --butter-2: #FBEFC4;
  --ink: #151A19;
  --ink-2: #48524F;           /* body copy, ~7:1 on cream */
  --ink-3: #66706C;           /* fine print, ~4.9:1 on cream */
  --line: #E6DDCB;
  --line-2: #D9D0BD;
  --white: #FFFFFF;
  --danger: #A8321E;

  --font-display: "Bricolage Grotesque", "Inter Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-media: 32px;
  --r-card: 22px;
  --r-field: 12px;
  --shadow-float: 0 18px 40px -18px rgba(21, 26, 25, .28);
  --shadow-card: 0 1px 0 rgba(21, 26, 25, .04), 0 12px 30px -20px rgba(21, 26, 25, .22);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type scale (1.25 ratio, display tightened) ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 20ch;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 36ch; color: var(--ink-2); }
.body-lg { font-size: 1.15rem; line-height: 1.6; max-width: 52ch; }
.fine { font-size: .9rem; color: var(--ink-3); line-height: 1.55; }
.fine a { color: var(--ink); }
.kicker { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--mint-ink); margin-bottom: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em;
  padding: 7px 13px; border-radius: 999px;
  color: var(--ink);
}
.badge-butter { background: var(--butter); }
.badge-blue { background: var(--blue); color: var(--blue-ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(21, 26, 25, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary:hover { --btn-bg: #26302E; }
.btn-butter { --btn-bg: var(--butter); --btn-fg: var(--ink); }
.btn-butter:hover { --btn-bg: #F9E7A9; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--white); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.text-link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--mint-2); text-decoration-thickness: 3px; text-underline-offset: 5px;
  transition: text-decoration-color .18s ease;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 246, 236, .95); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 22px; height: 22px; fill: var(--butter); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.logo-sub { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink-3); letter-spacing: -.01em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: var(--mint); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--white);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.mobile-menu { border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.mobile-menu nav > a {
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu-ctas { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }
.nav-actions .btn-sm { white-space: nowrap; }
@media (max-width: 480px) {
  .logo-word, .logo-sub { font-size: 1.15rem; }
  .logo-mark { width: 18px; height: 18px; }
  .nav { gap: 12px; }
  .nav-actions .btn-sm { padding-inline: 14px; font-size: .9rem; }
  .receipt-lines { font-size: .98rem; }
}
@media (max-width: 360px) { .nav-actions .btn-sm { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 0 var(--section-y); }
.section-mint { background: var(--mint); }
.section-blue { background: var(--blue); }
.section-cream { background: var(--cream-2); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .h2 { margin-inline: auto; }
.section-sub { margin-top: 16px; font-size: 1.1rem; max-width: 56ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .badge { margin-bottom: 24px; }
.hero-copy .display { max-width: 11.5ch; text-wrap: balance; }
.hero-copy .lede { margin-top: 22px; }

.hero-price { margin-top: 32px; padding-top: 24px; border-top: 1.5px dashed var(--line-2); max-width: 420px; }
.hero-price .price-per { font-size: 1.5rem; }
.price-line, .receipt-price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.price-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.price-per { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink-2); }

/* Pricing stack: 82¢/day hook with billing terms always directly beneath.
   Disclosure sizes have floors so they never become fine print. */
.price-stack { display: flex; flex-direction: column; gap: 6px; }
.price-stack .price-line, .price-stack .receipt-price { margin-bottom: 4px; }
.price-billed {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem); letter-spacing: -.01em; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.price-term { font-weight: 500; color: var(--ink-2); font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.price-stack-compact { gap: 4px; }
.price-stack-compact .price-billed { font-size: 1.15rem; }

.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }

.hero-media { position: relative; padding: 0 0 28px 28px; }
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--mint); isolation: isolate; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media-hero { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--r-media) var(--r-media); }
.media-wide { aspect-ratio: 14 / 11; }

.ph { position: absolute; inset: 0; }
.ph svg { width: 100%; height: 100%; }
.ph-label {
  position: absolute; right: 14px; top: 14px;
  font-size: .72rem; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .78); padding: 5px 10px; border-radius: 999px;
}
.media-hero .ph-label { top: auto; bottom: 14px; }

.float-card {
  position: absolute; left: 0; bottom: 64px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 18px; padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow-float); max-width: 290px;
}
.float-card strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.float-card small { display: block; color: var(--ink-3); font-size: .82rem; }
.float-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--butter); color: var(--ink); flex: none; }
.float-label {
  position: absolute; right: 18px; top: 22%; z-index: 2;
  background: var(--ink); color: var(--white);
  font-size: .85rem; font-weight: 600; padding: 9px 14px; border-radius: 999px;
  box-shadow: var(--shadow-float);
}

/* Single orchestrated load moment (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media .media { animation: rise 900ms cubic-bezier(.2, .7, .2, 1) both; }
  .js .float-card { animation: rise 700ms 380ms cubic-bezier(.2, .7, .2, 1) both; }
  .js .float-label { animation: rise 700ms 560ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .display { max-width: 14ch; }
  .hero-media { max-width: 520px; width: 100%; margin-inline: auto; padding: 0 0 24px 16px; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { padding: 26px 24px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.trust-list span { font-size: .95rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li { padding: 20px 0 20px 18px; }
  .trust-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-left: 0; padding-left: 0; }
  .trust-list li + li { border-top: 1px solid var(--line); }
}

/* ---------- Value callout (about 82¢ a day) ---------- */
.value-section { padding-block: clamp(56px, 8vw, 96px) 0; }
.value {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.5vw, 36px);
  background: var(--butter-2); border-radius: var(--r-media); padding: clamp(28px, 5vw, 56px);
}
.value-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.value-copy .h2 { max-width: 15ch; }
.value-price { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.value-list li {
  display: flex; align-items: center; gap: 12px; min-height: 72px;
  background: var(--white); border-radius: 16px; padding: 12px 14px;
  color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.3;
}
.value-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--ink); }
.value-icon .icon { width: 21px; height: 21px; }
.value-icon.tone-butter { background: var(--butter); }
.value-foot { font-size: .88rem; line-height: 1.5; color: var(--ink-2); font-style: italic; }
@media (max-width: 600px) {
  .value-copy, .value-price { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .value-list { grid-template-columns: 1fr; }
  .value-list li { min-height: 60px; }
}

/* ---------- Benefits ---------- */
/* 12-col grid: 2 features (6+6), then 4 small (3 each), then 3 small (4 each) — no orphans */
.benefits { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.benefit {
  grid-column: span 3;
  background: var(--white); border-radius: var(--r-card); padding: 26px;
  border: 1px solid var(--line);
}
.benefit h3 { margin-top: 18px; }
.benefit p { margin-top: 8px; font-size: 1rem; }
.benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--ink); }
.benefit-icon .icon { width: 24px; height: 24px; }
.tone-mint { background: var(--mint); }
.tone-blue { background: var(--blue); }
.tone-butter { background: var(--butter-2); }

.benefit:nth-child(n+7) { grid-column: span 4; }
.benefit-feature { grid-column: span 6; border: 0; padding: clamp(28px, 4vw, 40px); min-height: 260px; display: flex; flex-direction: column; }
.benefit-feature .benefit-icon { background: var(--white); width: 56px; height: 56px; border-radius: 16px; }
.benefit-feature h3 { margin-top: auto; padding-top: 40px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.benefit-feature p { font-size: 1.08rem; max-width: 40ch; }
.benefit-feature.tone-butter { background: var(--butter); }

@media (max-width: 1080px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit, .benefit:nth-child(n+7), .benefit-feature { grid-column: span 1; }
  .benefit:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit:last-child { grid-column: auto; }
  .benefit-feature { min-height: 0; }
  .benefit-feature h3 { padding-top: 28px; }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: center; }
.split-copy .h2 { margin-bottom: 20px; }
.split-copy .badge { margin-bottom: 20px; }
.split-copy .btn { margin-top: 28px; }
#dentists .split { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 900px) {
  .split, #dentists .split { grid-template-columns: 1fr; }
}

.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.ticks .icon { width: 28px; height: 28px; padding: 5px; border-radius: 999px; background: var(--white); color: var(--mint-ink); stroke-width: 2.4; }
.ticks-compact .icon { background: rgba(255, 255, 255, .7); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px 32px; }
.step-num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--mint-2);
  margin-bottom: 28px; font-variant-numeric: tabular-nums;
}
.step:nth-child(2) .step-num { color: #BFD5EC; }
.step:nth-child(3) .step-num { color: #EED27A; }
.step p { margin-top: 8px; }
.note-strong {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink);
}
.note-strong .icon { color: var(--mint-ink); width: 26px; height: 26px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step-num { margin-bottom: 18px; font-size: 2.8rem; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border-radius: var(--r-card); padding: clamp(26px, 4vw, 40px); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 22px; }
.compare-col h3 .logo-mark { width: 24px; height: 24px; }
.compare-col ul { display: grid; gap: 0; }
.compare-col li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.compare-col li .icon { margin-top: 1px; }
.compare-nova { background: var(--white); box-shadow: var(--shadow-card); }
.compare-nova li { color: var(--ink); }
.compare-nova li .icon { color: var(--mint-ink); stroke-width: 2.4; }
.compare-ins { background: transparent; border: 1.5px solid #C7D6E6; }
.compare-ins li { border-top-color: #CDDAE8; }
.compare-ins li .icon { color: var(--blue-ink); fill: currentColor; stroke: none; }
.disclaimer { margin-top: 24px; font-size: .95rem; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Additional treatment ---------- */
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.treatments li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; color: var(--ink); font-weight: 600;
}
.treatments em {
  font-style: normal; font-size: .78rem; font-weight: 600; white-space: nowrap;
  color: var(--blue-ink); background: var(--blue); padding: 4px 10px; border-radius: 999px;
}
#additional-care .fine { margin-top: 20px; }
@media (max-width: 900px) { .treatments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .treatments { grid-template-columns: 1fr; } }

/* ---------- Pricing receipt (the signature element) ---------- */
.receipt {
  --notch: 14px;
  position: relative; max-width: 560px; margin-inline: auto;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 44px) 36px;
  box-shadow: 0 30px 60px -36px rgba(21, 26, 25, .45);
  /* zig-zag tear at the bottom */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--notch)) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--notch) * 2) var(--notch) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--notch)) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--notch) * 2) var(--notch) repeat-x;
  padding-bottom: calc(36px + var(--notch));
}
.receipt-top { text-align: center; padding-bottom: 26px; border-bottom: 1.5px dashed var(--line-2); }
.receipt-top .badge { margin-bottom: 18px; }
.receipt-top .price-stack { align-items: center; }
.receipt-top .price-term { text-wrap: balance; }
.receipt-price { justify-content: center; }
.receipt-price .price-num { font-size: clamp(4.2rem, 11vw, 6rem); }
.receipt-price .price-per { font-size: 1.6rem; }
.price-billed-lg { font-size: clamp(1.5rem, 3vw, 1.75rem); }
.receipt-math {
  display: flex; justify-content: space-between; gap: 12px; padding-top: 10px;
  font-size: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums;
}

.receipt-lines { padding-block: 22px; display: grid; gap: 12px; }
.receipt-lines li { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.receipt-lines span { flex: 0 1 auto; }
.receipt-lines i { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); }
.receipt-lines b { font-weight: 600; font-size: .9rem; color: var(--mint-ink); white-space: nowrap; }

.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-block: 18px; border-block: 1.5px solid var(--ink);
  color: var(--ink); font-weight: 600;
}
.receipt-total strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.receipt-cta { margin-top: 26px; text-align: center; }
.receipt-cta p { margin-top: 12px; font-weight: 500; color: var(--ink); font-size: .98rem; }
.receipt-foot { margin-top: 22px; font-size: .82rem; line-height: 1.5; color: var(--ink-3); font-style: italic; }

/* ---------- Dentists: roles ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.role { border-radius: var(--r-card); padding: clamp(26px, 4vw, 36px); }
.role h3 { font-size: 1.35rem; margin-bottom: 18px; }
.role ul { columns: 2; column-gap: 24px; }
.role li { break-inside: avoid; padding: 9px 0 9px 18px; position: relative; color: var(--ink); font-size: 1rem; }
.role li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 999px; }
.role-nova { background: var(--mint); }
.role-nova li::before { background: var(--mint-ink); }
.role-practice { background: var(--blue); }
.role-practice li::before { background: var(--blue-ink); }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .role ul { columns: 1; } }

/* ---------- Economics ---------- */
.econ { background: var(--ink); color: #C9D1CE; border-radius: var(--r-media); padding: clamp(32px, 6vw, 64px); }
.econ .h2 { color: var(--white); max-width: 18ch; }
.econ-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.25fr; gap: 14px; margin-top: 40px; }
.econ-item { border: 1px solid #2E3735; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.econ-item dt { font-size: .95rem; color: #AEB8B4; font-weight: 500; }
.econ-num { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; }
.econ-note { font-size: .92rem; color: #AEB8B4; }
.econ-text { color: var(--white); font-size: 1.05rem; line-height: 1.5; }
.econ-item-hl { background: #1F2826; border-color: #3B4744; }
.econ-item-hl .econ-num { color: var(--butter); }
.econ-small { margin-top: 20px; font-size: .92rem; color: #AEB8B4; max-width: 70ch; }
.econ-foot {
  margin-top: 32px; padding-top: 28px; border-top: 1px solid #2E3735;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.econ-foot p { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.econ-foot .icon { color: var(--butter); }
.econ :focus-visible { outline-color: var(--butter); }
@media (max-width: 900px) { .econ-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.form-intro .h2 { margin-bottom: 18px; }
.form-intro .fine { margin-top: 16px; }
@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; }
  .form-intro { position: static; }
}

.card-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-card);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 26px; }
.field-full { grid-column: 1 / -1; }
/* Subgrid keeps inputs in a row aligned even when one label wraps */
@supports (grid-template-rows: subgrid) {
  .field-grid > div.field { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 7px; align-content: start; }
  .field-grid > div.field > label { align-self: end; }
}
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35; padding: 0; }
.opt { font-weight: 500; color: var(--ink-3); font-size: .85rem; margin-left: 4px; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-field);
  background: var(--white); color: var(--ink); font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151A19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA29F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BDB39E; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--mint);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #F6DED8; }
.error { font-size: .86rem; color: var(--danger); font-weight: 500; min-height: 0; }
.error:empty { display: none; }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px;
  border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 600; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease;
}
.choice:hover span { border-color: #BDB39E; }
.choice input:checked + span { background: var(--mint); border-color: var(--mint-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--danger); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 4px 0 22px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; cursor: pointer; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: .92rem; font-weight: 500; color: var(--danger); }
.form-status:empty { display: none; }

.card-form-compact .field { margin-bottom: 16px; }
.card-form-compact .fine { margin-top: 14px; }

/* Success state */
.form-success { text-align: center; padding: clamp(20px, 4vw, 32px) 8px; }
.form-success:focus { outline: none; }
.success-mark {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 999px; background: var(--mint); color: var(--mint-ink);
}
.success-mark .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.form-success p { margin: 10px auto 0; max-width: 40ch; }
.preview-note {
  margin: 18px auto 0 !important; display: inline-block; font-size: .85rem;
  background: var(--butter-2); color: var(--ink); padding: 8px 12px; border-radius: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .form-success .success-mark { animation: pop 420ms cubic-bezier(.2, .9, .3, 1.4) both; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Early access */
.early { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.early-copy .h2 { margin-bottom: 18px; max-width: 14ch; }
@media (max-width: 860px) { .early { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq-head .h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--mint-ink); }
.faq details p { padding: 0 48px 24px 0; max-width: 62ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 28px; font-size: .88rem; line-height: 1.6; color: var(--ink-3); max-width: 90ch; }
.copyright { margin-top: 16px; font-size: .85rem; color: var(--ink-3); }

/* ---------- Simple pages (privacy / terms) ---------- */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc .container { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.doc h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 36px 0 10px; letter-spacing: -.015em; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc .draft { background: var(--butter-2); color: var(--ink); padding: 14px 16px; border-radius: 14px; margin: 20px 0 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Office banner (How It Works) ---------- */
.media-banner { aspect-ratio: 16 / 7; max-width: 100%; margin-top: 16px; border-radius: var(--r-card); background: var(--blue); }
.media-banner img { object-position: 55% 55%; }
@media (max-width: 700px) { .media-banner { aspect-ratio: 4 / 3; } .media-banner img { object-position: 70% 50%; } }

/* Photo framing */
.media-hero img { object-position: 50% 30%; }
.media img { background: var(--mint); }

/* Keep the floating label off the face in the hero photo */
.float-label { top: auto; right: 0; bottom: 176px; }
@media (max-width: 900px) { .float-label { bottom: 168px; right: 4px; } }
