/* ==========================================================================
   IntakePilot — Dental (redesigned-v3)
   Design system: "Quiet Ink, One Signal" — cool monochrome + single cobalt accent
   See DESIGN.md for the full rationale, dial declaration, and reference sources.
   ========================================================================== */

/* Both of these endpoints serve CSS (which itself declares the real @font-face
   rules and woff2 URLs), so they are pulled in with @import, not referenced
   directly as a font src. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,401,500,600,700&display=swap');

:root {
  /* ---- Color: ink ramp (cool near-black, never pure #000) ---- */
  --ink-950: #121316;
  --ink-800: #23262b;
  --ink-700: #3f4247;
  --ink-500: #565a61;
  --ink-400: #6b6e75;
  --ink-300: #9a9da3;

  /* ---- Color: stone ramp (cool neutral base, never warm cream) ---- */
  --stone-50: #f5f6f7;
  --stone-100: #ececef;
  --stone-200: #dcdee1;
  --stone-300: #c7cace;
  --surface: #fcfcfd;

  /* ---- Color: cobalt (single accent) ---- */
  --cobalt-700: #2547b3;
  --cobalt-600: #2f5fe0;
  --cobalt-500: #4e78e8;
  --cobalt-400: #6e93ef;
  --cobalt-100: #dce6fc;

  /* ---- Color: semantic utility only (not brand accent) ---- */
  --success-700: #1f7a52;
  --success-500: #3fa372;
  --success-100: #dcf1e6;
  --danger-700: #b0261b;
  --danger-100: #f9dedb;

  /* ---- Type ---- */
  --font-display: 'Switzer', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- Space (8px rhythm, each step ≥25% larger) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---- Radius (locked scale: pill for interactive, 14px for cards, 8px for inputs) ---- */
  --radius-input: 8px;
  --radius-card: 14px;
  --radius-pill: 999px;

  /* ---- Shadow (tinted to ink hue, scaled by elevation) ---- */
  --shadow-1: 0 1px 2px rgba(18, 19, 22, 0.04), 0 1px 1px rgba(18, 19, 22, 0.03);
  --shadow-2: 0 6px 20px rgba(18, 19, 22, 0.08), 0 2px 6px rgba(18, 19, 22, 0.05);
  --shadow-3: 0 20px 48px rgba(18, 19, 22, 0.14), 0 6px 16px rgba(18, 19, 22, 0.08);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-btn: 140ms;
  --dur-toggle: 200ms;
  --dur-panel: 320ms;
  --dur-reveal: 560ms;

  /* ---- Layout ---- */
  --content-max: 1400px;
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 1.0625rem; /* 17px at default root size, rem so it still respects user zoom/font-size prefs */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
main, section { display: block; }

/* Flex/grid children: prevent text blow-out */
.grid, .flex-row, .flex-col { min-width: 0; }
.flex-col { min-height: 0; }

:focus-visible {
  outline: 2px solid var(--cobalt-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px) {
  .wrap { padding-inline: var(--sp-6); }
}
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
@media (max-width: 767px) {
  .section { padding-block: var(--sp-8); }
  .section--tight { padding-block: var(--sp-6); }
}
.section--alt { background: var(--stone-100); }
.section--ink {
  background: var(--ink-950);
  color: var(--stone-50);
}
.hairline-top { border-top: 1px solid var(--stone-200); }
.hairline-bottom { border-bottom: 1px solid var(--stone-200); }

/* ---- Section rhythm ----
   Every section previously shared one flat --sp-9 (96px) block padding
   regardless of content weight, which reads as monotonous (impeccable
   layout pass finding). Pacing now alternates tight connective beats with
   generous, important-content sections, still built from the --sp-* scale
   via clamp() rather than arbitrary values. Declared after the mobile
   media query above so these win the cascade at every width; clamp()
   already handles the mobile scale-down on its own, so no separate
   max-width override is needed per section.
   Beat, in page order: tight (trust strip) -> generous (how it works) ->
   medium (walkthrough) -> generous (why) -> medium (calculator) ->
   tight (integrations) -> medium (security) -> TIGHT (proof, one line) ->
   MOST generous (pricing, the conversion moment) -> medium (faq) ->
   generous (final CTA). */
.section--tight {
  padding-block: clamp(var(--sp-5), 4vw, var(--sp-6));
}
#how-it-works {
  padding-block: clamp(var(--sp-8), 8vw, var(--sp-9));
}
#walkthrough {
  padding-block: clamp(var(--sp-7), 6vw, var(--sp-8));
}
#why {
  padding-block: clamp(var(--sp-8), 9vw, var(--sp-9));
}
#calculator {
  padding-block: clamp(var(--sp-7), 7vw, var(--sp-8));
}
#integrations {
  padding-block: clamp(var(--sp-6), 5vw, 60px);
}
.security-section {
  padding-block: clamp(var(--sp-7), 7vw, var(--sp-8));
}
#proof {
  padding-block: clamp(var(--sp-5), 4vw, 40px);
}
#pricing {
  padding-block: clamp(72px, 9vw, 112px);
}
#faq {
  padding-block: clamp(var(--sp-7), 6vw, var(--sp-8));
}
/* .final-cta padding-block is set once, at its own rule further down. */

/* ---- Type scale ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-700);
  margin-bottom: var(--sp-4);
}
.section--ink .eyebrow { color: var(--cobalt-400); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p, .body {
  /* Matches the locked 17px body base (see body{} above) so paragraph text
     actually renders at the documented size instead of silently overriding
     it back down to the 16px root default. */
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-700);
  text-wrap: pretty;
  max-width: 68ch;
}
.section--ink p { color: var(--stone-200); line-height: 1.62; }
.lede {
  /* Was clamp(1.05rem,...,1.2rem): at narrow viewports the preferred value
     computed below the 1rem body size, inverting the intended lede > body
     hierarchy. Raised so lede reads clearly larger than body at every width. */
  font-size: clamp(1.2rem, 1.1rem + 0.3vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-700);
  text-wrap: pretty;
  max-width: 46ch;
}
.section--ink .lede { color: var(--stone-200); line-height: 1.58; }
.mono-stat {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subtle {
  font-size: 0.8rem;
  color: var(--ink-400);
}
.section--ink .subtle { color: var(--ink-300); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-btn) var(--ease-out), background var(--dur-btn) var(--ease-out), box-shadow var(--dur-btn) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--cobalt-600);
  color: var(--surface);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--cobalt-700); }
.btn-secondary {
  background: transparent;
  color: var(--ink-950);
  border: 1.5px solid var(--stone-300);
}
.btn-secondary:hover { border-color: var(--ink-500); }
.section--ink .btn-secondary { color: var(--stone-50); border-color: var(--ink-700); }
.section--ink .btn-secondary:hover { border-color: var(--stone-300); }
.btn-ghost {
  background: transparent;
  color: var(--cobalt-700);
  padding: 13px 12px;
}
.btn-ghost:hover { color: var(--cobalt-600); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---- Badges / pills ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--stone-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-700);
}
.badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--cobalt-600); }
.badge-accent {
  background: var(--cobalt-100);
  border-color: transparent;
  color: var(--cobalt-700);
}
.badge-accent svg { color: var(--cobalt-700); }

/* ---- Icons (hand-rolled minimal set, 1.5px stroke, consistent) ---- */
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Promo bar ---- */
.promo-bar {
  background: var(--ink-950);
  color: var(--stone-100);
}
.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: 10px var(--sp-5);
  font-size: 0.85rem;
  text-align: center;
}
.promo-bar__inner a { color: var(--cobalt-400); font-weight: 600; }
.promo-bar__close {
  position: absolute;
  right: var(--sp-5);
  color: var(--ink-300);
}
.promo-bar { position: relative; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 246, 247, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--stone-200);
}
/* 3-zone grid (brand · centered links · actions) — full-bleed via .nav .wrap
   below; explicit grid-column on each zone so the middle column collapsing
   (nav__links is display:none under 900px) never shoves the actions zone
   out of its right-hand track. */
.nav .wrap { max-width: none; }
.nav__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-5);
}
.nav__brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.nav__mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--ink-950);
  display: grid;
  place-items: center;
}
.nav__mark svg { width: 16px; height: 16px; stroke: var(--stone-50); }
.nav__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nav__links {
  grid-column: 2;
  justify-self: center;
  display: none;
  align-items: center;
  gap: var(--sp-6);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
}
.nav__links a:hover { color: var(--ink-950); }
.nav__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav__link-sec {
  display: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav__link-sec:hover { color: var(--cobalt-700); }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.nav__toggle:hover { background: var(--stone-100); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__link-sec { display: inline-flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 39;
  background: var(--surface);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out);
}
.mobile-menu[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.mobile-menu__links a {
  font-size: 1.3rem;
  font-weight: 600;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--stone-200);
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* ---- Hero ---- */
/* Tight padding-block (matches the Verdikt/CloseDesk hero rhythm) so the
   hero and the trust+integrations section directly below it both land
   above the fold on a standard viewport, instead of hero alone eating it. */
.hero {
  padding-block: clamp(var(--sp-4), 2.4vw, var(--sp-5)) clamp(var(--sp-5), 3.2vw, var(--sp-6));
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-7); }
}
.hero__copy h1 { margin-bottom: var(--sp-3); }
.hero__copy .lede { margin-bottom: var(--sp-4); }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.hero-voice { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.voice-btn { display: inline-flex; align-items: center; gap: .55em; padding: .55em .9em; border: 1px solid var(--stone-300); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .88rem; color: var(--ink-500); cursor: not-allowed; }
.voice-btn:not([disabled]) { border-color: var(--cobalt-600); color: var(--cobalt-700); cursor: pointer; }
.voice-btn:not([disabled]):hover { background: var(--cobalt-100); }
.voice-ic { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cobalt-100); flex: 0 0 auto; }
.voice-btn:not([disabled]) .voice-ic { background: var(--cobalt-600); }
.voice-ic svg { width: 11px; height: 11px; color: var(--ink-500); }
.voice-btn:not([disabled]) .voice-ic svg { color: #fff; }
.hero__visual { position: relative; }

/* Call/text mock card — honest depiction of the product's own interaction */
.call-card {
  background: var(--surface);
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  box-shadow: var(--shadow-3);
  padding: var(--sp-5);
  max-width: 400px;
  margin-inline: auto;
}
.call-card__status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--stone-200);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-400);
}
.call-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-500);
  flex-shrink: 0;
}
.call-card__thread {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 300px;
}
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
}
.bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.bubble--ai {
  align-self: flex-start;
  background: var(--stone-100);
  color: var(--ink-950);
  border-bottom-left-radius: 4px;
}
.bubble--caller {
  align-self: flex-end;
  background: var(--cobalt-600);
  color: var(--surface);
  border-bottom-right-radius: 4px;
}
.bubble--system {
  align-self: center;
  background: transparent;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bubble--summary {
  align-self: stretch;
  background: var(--success-100);
  color: var(--success-700);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: reduce) {
  .bubble { transition: none; opacity: 1; transform: none; }
}

/* ---- Hero flow reel — GSAP loop, dark-mode only, cobalt/ink themed ---- */
.reel {
  --reel-accent: var(--cobalt-600);
  --reel-accent2: var(--cobalt-400);
  --reel-line: rgba(255, 255, 255, 0.08);
  --reel-deep: #0a0b0d;
  position: relative;
  font-family: var(--font-display), system-ui, sans-serif;
  max-width: 400px;
  margin-inline: auto;
}
.reel-device {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  background: linear-gradient(168deg, var(--ink-800), var(--ink-950));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-3), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
  padding: 14px 14px 12px;
  color: var(--stone-50);
  overflow: hidden;
}
.reel-device::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.reel-bar { display: flex; align-items: center; gap: 9px; padding: 2px 4px 12px; border-bottom: 1px solid var(--reel-line); }
.reel-dot-set { display: flex; gap: 5px; }
.reel-dot-set i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.reel-title { font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem; color: var(--stone-200); }
.reel-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--reel-accent2); }
.reel-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--reel-accent2); animation: reelPulse 1.8s ease-out infinite; }
@keyframes reelPulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 147, 239, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(110, 147, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 147, 239, 0); }
}
.reel-stage { position: relative; height: 220px; margin-top: 12px; }
.reel-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; }
.reel-call { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.reel-phone { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--reel-accent2), var(--reel-accent)); box-shadow: 0 10px 24px -8px rgba(47, 95, 224, 0.5); }
.reel-phone svg { width: 25px; height: 25px; }
.reel-ring { position: absolute; left: 50%; top: 0; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--reel-accent2); transform: translateX(-50%); animation: reelRing 1.7s ease-out infinite; }
@keyframes reelRing {
  0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.95); opacity: 0; }
}
.reel-call .t { font-size: 1.04rem; font-weight: 600; }
.reel-call .s { font-size: 0.85rem; color: var(--ink-300); margin-top: 2px; }
.reel-who { font-family: var(--font-mono); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 6px; }
.reel-bubble { border-radius: 14px; padding: 11px 14px; font-size: 0.94rem; line-height: 1.52; max-width: 90%; }
.reel-msg-ai { align-self: flex-start; }
.reel-msg-ai .reel-who { color: var(--reel-accent2); }
.reel-msg-ai .reel-bubble { background: linear-gradient(165deg, var(--ink-700), var(--ink-800)); border: 1px solid rgba(110, 147, 239, 0.2); border-bottom-left-radius: 4px; color: var(--stone-50); }
.reel-msg-caller { align-self: flex-end; text-align: right; }
.reel-msg-caller .reel-who { text-align: right; }
.reel-msg-caller .reel-bubble { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--reel-line); border-bottom-right-radius: 4px; color: var(--stone-100); }
.reel-screen { align-items: center; }
.reel-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.reel-screen .cap { text-align: center; color: var(--ink-300); font-size: 0.85rem; }
.reel-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; padding: 0.5em 0.85em; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--reel-line); color: var(--stone-100); }
.reel-cal { align-self: center; width: min(90%, 320px); border-radius: 14px; background: linear-gradient(165deg, var(--ink-800), var(--ink-950)); border: 1px solid var(--reel-line); padding: 16px; }
.reel-cal-h { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-300); }
.reel-slot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 10px; padding: 12px 14px; background: linear-gradient(150deg, rgba(110, 147, 239, 0.24), rgba(47, 95, 224, 0.08)); border: 1px solid rgba(110, 147, 239, 0.5); }
.reel-slot-time { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; color: #fff; }
.reel-slot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--reel-accent2); }
.reel-slot-tag svg { width: 14px; height: 14px; }
.reel-toast { align-self: center; width: min(94%, 344px); display: flex; align-items: flex-start; gap: 11px; border-radius: 14px; padding: 13px 15px; background: var(--reel-deep); border: 1px solid rgba(110, 147, 239, 0.3); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.reel-toast-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, var(--reel-accent2), var(--reel-accent)); color: #fff; }
.reel-toast-ic svg { width: 16px; height: 16px; }
.reel-toast .tx { font-size: 0.9rem; line-height: 1.52; color: var(--stone-200); }
.reel-toast b { color: var(--stone-50); }
.reel-outcome { text-align: center; margin-top: 14px; font-style: italic; font-size: 1rem; color: var(--reel-accent2); }
.reel-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--reel-line); }
.reel-progress { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.reel-progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--reel-accent), var(--reel-accent2)); }
.reel-toggle { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--reel-line); color: var(--stone-200); }
.reel-toggle:hover { color: var(--stone-50); }
.reel-toggle svg { width: 14px; height: 14px; }
.reel-toggle .reel-i-play { display: none; }
.reel.paused .reel-i-play { display: block; }
.reel.paused .reel-i-pause { display: none; }
@media (max-width: 420px) {
  .reel-stage { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-live-dot, .reel-ring { animation: none; }
  .reel-foot { display: none; }
}

/* ---- Trust strip ---- */
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.trust-line {
  margin-top: var(--sp-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  font-weight: 600;
  color: var(--ink-800);
}

/* ---- Stat strip (how it works — relocated from founding-proof) ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
}
.stat-strip__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  color: var(--ink-950);
}
.stat-strip__num::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--cobalt-600);
  margin-top: var(--sp-2);
}
.stat-strip__label { color: var(--ink-500); margin-top: var(--sp-2); font-size: 0.92rem; }

/* ---- Timeline (how it works) ---- */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  position: relative;
}
@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
  .timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cobalt-600), var(--cobalt-400));
  }
}
.timeline__step { position: relative; }
.timeline__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--stone-50);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-4);
}
.timeline__step h3 { margin-bottom: var(--sp-2); }

/* ---- Cost comparison — row table (vtable/vrow), matches the Verdikt/
   Dispatch Desk comparison-table layout: bordered container, dark header
   row, accent-tinted "us" column, horizontal-scroll + reorder on mobile
   so the label and Dentl's own answer stay in the first screenful. ---- */
.vtable { position: relative; margin-top: var(--sp-6); border: 1px solid var(--stone-200); border-radius: 8px; overflow: hidden; }
.vrow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.vrow + .vrow { border-top: 1px solid var(--stone-200); }
.vrow > div { padding: var(--sp-3) var(--sp-4); font-size: 0.9rem; color: var(--ink-700); }
.vrow.head > div { font-weight: 700; background: var(--ink-950); color: var(--stone-50); }
.vrow.head > div.us { background: var(--ink-950); color: var(--cobalt-400); }
.vrow .us { background: var(--cobalt-100); font-weight: 600; color: var(--ink-800); }
.vtable-hint { display: none; }
@media (max-width: 720px) {
  .vtable { overflow-x: auto; }
  /* Lead with the row label + Dentl's own answer so both fit in the first screenful;
     the two competitor columns sit after, reachable by the scroll this cues. */
  .vrow { grid-template-columns: 1.3fr 1fr repeat(2, minmax(96px, 1fr)); min-width: 560px; }
  .vrow > div:first-child { order: 1; }
  .vrow .us { order: 2; }
  .vrow > div:nth-child(2) { order: 3; }
  .vrow > div:nth-child(3) { order: 4; }
  .vtable::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; background: linear-gradient(90deg, transparent, var(--stone-50)); pointer-events: none; }
  .vtable-hint { display: block; margin-top: var(--sp-2); color: var(--ink-400); font-size: 0.76rem; }
}

/* ---- Calculator ---- */
.calc {
  background: var(--surface);
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: var(--sp-6);
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7);
}
@media (min-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--sp-7); }
}
.calc__field { margin-bottom: var(--sp-5); min-width: 0; }
.calc__field label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.calc__field output {
  font-family: var(--font-mono);
  color: var(--cobalt-700);
  flex-shrink: 0;
}
.calc__field input[type="range"] {
  width: 100%;
  accent-color: var(--cobalt-600);
  height: 24px;
}
.calc__field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--stone-300);
  background: var(--stone-50);
  font-size: 1rem;
}
.calc__field input[type="number"]:focus { border-color: var(--cobalt-600); }
.calc__results {
  background: linear-gradient(168deg, var(--ink-800), var(--ink-950));
  color: var(--stone-50);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-700);
}
.calc__result-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.calc__result-label { font-size: 0.85rem; color: var(--ink-300); line-height: 1.6; text-wrap: pretty; }
.calc__result-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--stone-50);
}
.calc__total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-700);
}
.calc__total .calc__result-value { font-size: 2.1rem; color: var(--cobalt-400); }
.calc__form {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}
.calc__form input[type="email"] {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--ink-700);
  background: var(--ink-800);
  color: var(--stone-50);
  font-size: 0.95rem;
}
.calc__form input[type="email"]::placeholder { color: var(--ink-300); }
.calc__form-note { font-size: 0.78rem; color: var(--ink-300); margin-top: var(--sp-2); line-height: 1.6; }

/* ---- Integrations — borderless real-logo trust row ----
   Replaces the earlier bordered-tile grid (plain PMS wordmarks in cards).
   Each vendor gets its own logo mark (real vendor SVG/PNG where sourced,
   see logos/ and DESIGN.md §9) sized to a shared visual weight, plus a
   short "how it's used" line with the single cobalt accent as a micro
   affirmation, not a container. No borders, no card chrome. */
.intg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-7) var(--sp-8);
  margin-top: var(--sp-7);
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}
.tool-logo {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-logo__img { display: block; width: auto; }
/* Each vendor's source asset has its own native aspect ratio; a shared
   display height (rather than a shared width) keeps their visual weight
   even without stretching or distorting any of them. */
.tool-logo__img--dentrix { height: 24px; }
.tool-logo__img--eaglesoft { height: 42px; }
.tool-logo__img--opendental { height: 36px; }
.tool-logo__img--curve { height: 58px; }
.tool-logo__wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}
.tool-use {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.tool-use__chk {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cobalt-600);
  color: var(--surface);
  font-size: 0.64rem;
  line-height: 1;
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .intg { gap: var(--sp-6) var(--sp-5); margin-top: var(--sp-6); }
}

/* ---- Security block — borderless rows, circular cobalt icon badges ---- */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6) var(--sp-7);
  margin-top: var(--sp-7);
}
@media (min-width: 700px) {
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.security-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cobalt-100);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.security-item__icon svg { width: 19px; height: 19px; color: var(--cobalt-700); }
.security-item h3 { margin-bottom: var(--sp-2); }

/* ---- Founding proof — single full-width pull-quote (stats relocated to how-it-works) ---- */
.proof {
  text-align: center;
}
.proof-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.35rem);
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-wrap: balance;
  color: var(--ink-950);
}
.proof-by {
  color: var(--ink-400);
  margin-top: var(--sp-3);
  font-size: 0.92rem;
}

/* ---- Pricing — wide near-black accent panel (same treatment as .calc__results) ---- */
.pricing-panel {
  background: linear-gradient(168deg, var(--ink-800), var(--ink-950));
  color: var(--stone-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-3);
  padding: var(--sp-7);
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 860px) {
  .pricing-panel { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-6); }
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--cobalt-500);
  background: rgba(110, 147, 239, 0.14);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cobalt-400);
}
.pricing-panel h3 { font-size: 1.05rem; font-weight: 600; color: var(--stone-200); margin-top: var(--sp-5); }
.pricing-panel__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 2rem + 3vw, 3.8rem);
  line-height: 1;
  margin-top: var(--sp-2);
  color: var(--cobalt-400);
  letter-spacing: -0.02em;
}
.pricing-panel__price span { font-size: 1rem; color: var(--ink-300); font-weight: 500; }
.pricing-anchor { margin-top: var(--sp-3); font-size: 0.92rem; color: var(--ink-300); }
.pricing-anchor s { color: var(--ink-300); }
.pricing-value { margin-top: var(--sp-4); font-size: 1.0625rem; color: var(--stone-200); max-width: 36ch; line-height: 1.6; }
.pricing-cta { margin-top: var(--sp-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.pricing-panel .btn-primary { background: var(--cobalt-600); color: var(--stone-50); }
.pricing-panel .btn-primary:hover { background: var(--cobalt-500); }
.pricing-reserve { font-size: 0.9rem; }
.pricing-reserve a { color: var(--ink-300); border-bottom: 1px solid var(--ink-700); }
.pricing-reserve a:hover { color: var(--stone-50); }
.pricing-incl-h { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt-400); margin-bottom: var(--sp-2); }
.pricing-feats { display: flex; flex-direction: column; }
.pricing-feats li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-700);
  font-size: 0.95rem;
  color: var(--stone-200);
  line-height: 1.6;
  text-wrap: pretty;
}
.pricing-feats li:first-child { border-top: 0; }
.pricing-feats svg { flex-shrink: 0; margin-top: 2px; color: var(--cobalt-400); }

/* ---- FAQ (native details/summary) ---- */
.faq-list { max-width: 720px; margin: var(--sp-7) auto 0; }
.faq-item { border-bottom: 1px solid var(--stone-200); }
.faq-item:first-child { border-top: 1px solid var(--stone-200); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-1);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-950);
  transition: color var(--dur-toggle) var(--ease-out);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--cobalt-600); }
.faq-item[open] > summary { color: var(--cobalt-600); }
.faq-plus { position: relative; width: 15px; height: 15px; flex: 0 0 auto; }
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--cobalt-600);
  transition: transform var(--dur-toggle) var(--ease-out), opacity var(--dur-toggle) var(--ease-out);
}
.faq-plus::before { top: 6.5px; left: 0; width: 15px; height: 2px; }
.faq-plus::after { top: 0; left: 6.5px; width: 2px; height: 15px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); opacity: 0; }
.faq-a { padding: 0 var(--sp-1) var(--sp-5); color: var(--ink-500); font-size: 0.95rem; line-height: 1.6; max-width: 66ch; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  .faq-plus::before, .faq-plus::after { transition: none; }
}

/* ---- Final CTA band ---- */
.final-cta {
  text-align: center;
  padding-block: clamp(var(--sp-8), 8vw, var(--sp-9));
}
.final-cta.section--ink { background: linear-gradient(168deg, var(--ink-800), var(--ink-950)); }
.final-cta h2 { max-width: 20ch; margin-inline: auto; margin-bottom: var(--sp-3); }
.final-cta__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-6); }
/* Closing moment: let cobalt read against the deepest dark panel on the page,
   the way the pricing/calculator panels and hero reel already do, instead of
   the generic .section--ink ink-700 border used if this were any other dark
   section. */
.final-cta .btn-secondary { border-color: var(--cobalt-400); }
.final-cta .btn-secondary:hover { border-color: var(--cobalt-500); }

/* ---- Footer ---- */
.footer { padding-block: var(--sp-8) var(--sp-6); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); }
}
.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-400);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col a, .footer__col p { font-size: 0.9rem; color: var(--ink-700); }
.footer__col a:hover { color: var(--ink-950); }
.footer__brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: 1.5rem; margin-bottom: var(--sp-3); }
.footer__sources {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--stone-200);
  font-size: 0.78rem;
  color: var(--ink-400);
  line-height: 1.7;
  text-wrap: pretty;
}
.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--stone-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* ---- Scroll reveal ----
   Hiding is opt-in via the `.js` class (set by an early inline script in
   <head>), so content stays fully visible by default if JS fails to load or
   run. Never gate primary content behind a JS-only opacity state. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Count-up target ---- */
[data-count-target] { font-variant-numeric: tabular-nums; }

/* ---- Progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--cobalt-600);
  z-index: 50;
  transition: width 80ms linear;
}

/* ---- Utility ---- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute;
  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: var(--sp-3);
  top: -60px;
  background: var(--ink-950);
  color: var(--stone-50);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 60;
  transition: top var(--dur-toggle) var(--ease-out);
}
.skip-link:focus { top: var(--sp-3); }

.section-head { max-width: 640px; margin-bottom: var(--sp-2); }
.section-head--center { margin-inline: auto; text-align: center; }
