/* Dental landing page: scoped extensions to the Riyog design system. */
.dental-page {
  --dental-red: #9d4050;
  --dental-rose: #d296a5;
  --dental-green: #74c69d;
}

.dental-page h1.font-pixel,
.dental-page h2.font-pixel,
.dental-page h3.font-pixel {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.theme-punch {
  color: #d7a0ad;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 0 24px rgba(200, 138, 156, 0.16);
}

.safety-punch {
  white-space: nowrap;
}

.dental-page main {
  position: relative;
  z-index: 2;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.dental-page :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dental-page section[id] {
  scroll-margin-top: 110px;
}

.dental-nav-links .nav-link {
  padding-inline: 10px;
}

.dental-section {
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 20%, rgba(74, 38, 56, 0.16), transparent 30%),
    #000;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.dental-section::before,
.dental-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dental-section > .dental-video-bg {
  z-index: 0;
}

.dental-bg-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.62;
  filter: brightness(0.72) contrast(1.08) saturate(0.82);
}

.dental-video-tint {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0.48) 65%, rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(22, 5, 11, 0.22), transparent 48%, rgba(35, 17, 45, 0.2));
}

.integrations-section .dental-bg-video {
  object-position: 70% center;
  opacity: 0.56;
}

.roi-section .dental-bg-video {
  transform: scaleX(-1);
  filter: brightness(0.68) contrast(1.12) saturate(0.72) hue-rotate(-8deg);
}

.fit-section .dental-bg-video {
  object-position: center 65%;
  filter: brightness(0.66) contrast(1.1) saturate(0.7) hue-rotate(8deg);
}

.safety-section .dental-bg-video {
  transform: scale(1.08);
  object-position: 72% center;
  opacity: 0.54;
}

.pilot-section .dental-bg-video {
  transform: scaleX(-1);
  object-position: 35% center;
  filter: brightness(0.65) contrast(1.12) saturate(0.76);
}

.faq-section .dental-bg-video {
  object-position: 28% center;
  filter: brightness(0.64) contrast(1.08) saturate(0.66) hue-rotate(-12deg);
}

.dental-section::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46) 42%, rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at var(--section-glow-x, 78%) var(--section-glow-y, 42%), var(--section-glow, rgba(157, 64, 80, 0.22)), transparent 34%),
    radial-gradient(circle at calc(100% - var(--section-glow-x, 78%)) 75%, rgba(118, 101, 143, 0.13), transparent 28%);
}

.dental-section::after {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: 84px 84px, 84px 84px, 180px 180px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

#problem { --section-glow-x: 12%; --section-glow-y: 34%; --section-glow: rgba(74, 38, 56, 0.25); }
#system { --section-glow-x: 50%; --section-glow-y: 58%; --section-glow: rgba(118, 101, 143, 0.2); }
#demo { --section-glow-x: 82%; --section-glow-y: 48%; --section-glow: rgba(157, 64, 80, 0.22); }
#process { --section-glow-x: 18%; --section-glow-y: 68%; --section-glow: rgba(118, 101, 143, 0.18); }
.journey-section { --section-glow-x: 50%; --section-glow-y: 50%; --section-glow: rgba(157, 64, 80, 0.18); }
#intelligence { --section-glow-x: 78%; --section-glow-y: 54%; --section-glow: rgba(118, 101, 143, 0.2); }
.integrations-section { --section-glow-x: 16%; --section-glow-y: 45%; --section-glow: rgba(74, 38, 56, 0.24); }
#roi { --section-glow-x: 76%; --section-glow-y: 52%; --section-glow: rgba(157, 64, 80, 0.24); }
.fit-section { --section-glow-x: 50%; --section-glow-y: 75%; --section-glow: rgba(118, 101, 143, 0.17); }
#safety { --section-glow-x: 15%; --section-glow-y: 50%; --section-glow: rgba(157, 64, 80, 0.19); }
#proof { --section-glow-x: 82%; --section-glow-y: 45%; --section-glow: rgba(74, 38, 56, 0.28); }
#faq { --section-glow-x: 72%; --section-glow-y: 35%; --section-glow: rgba(118, 101, 143, 0.17); }
#audit { --section-glow-x: 50%; --section-glow-y: 25%; --section-glow: rgba(157, 64, 80, 0.26); }

.journey-section::after {
  background-image: repeating-linear-gradient(90deg, transparent 0 95px, rgba(210, 150, 165, 0.12) 96px 97px), linear-gradient(90deg, transparent, rgba(157, 64, 80, 0.2), transparent);
  background-size: auto;
}

.integrations-section::after {
  background-image: repeating-radial-gradient(circle at 78% 50%, transparent 0 46px, rgba(170, 160, 197, 0.1) 47px 48px);
  background-size: auto;
}

.roi-section::after {
  background-image: linear-gradient(120deg, transparent 30%, rgba(157, 64, 80, 0.12) 50%, transparent 70%), repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, 0.025) 33px 34px);
  background-size: auto;
}

.fit-section::after {
  background-image: linear-gradient(90deg, rgba(116, 198, 157, 0.07) 0 49.9%, rgba(210, 150, 165, 0.07) 50.1% 100%);
  background-size: auto;
}

.safety-section::after {
  background-image: repeating-linear-gradient(45deg, transparent 0 58px, rgba(210, 150, 165, 0.055) 59px 60px), repeating-linear-gradient(-45deg, transparent 0 58px, rgba(170, 160, 197, 0.04) 59px 60px);
  background-size: auto;
}

.pilot-section::after {
  background-image: radial-gradient(ellipse at 50% 50%, rgba(157, 64, 80, 0.2), transparent 58%);
  background-size: auto;
}

.faq-section::after {
  background-image: repeating-linear-gradient(0deg, transparent 0 72px, rgba(255, 255, 255, 0.04) 73px 74px), radial-gradient(circle at 80% 25%, rgba(118, 101, 143, 0.18), transparent 34%);
  background-size: auto;
}

.dental-hero .hero-bg-video {
  opacity: 0.62;
  filter: brightness(0.72) contrast(1.08) saturate(0.85);
}

.dental-hero-video-tint {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.3) 58%, rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
}

.dental-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dental-rose);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.dental-eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.dental-heading .section-title {
  max-width: 900px;
}

.dental-heading .single-line-title {
  max-width: none;
  font-size: clamp(40px, 4vw, 56px);
  white-space: nowrap;
}

.dental-heading.center .dental-eyebrow {
  justify-content: center;
}

/* Hero */
.dental-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 40%, rgba(157, 64, 80, 0.17), transparent 34%),
    radial-gradient(circle at 80% 45%, rgba(118, 101, 143, 0.2), transparent 32%),
    #000;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 68%);
}

.dental-hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -100px;
  top: 20%;
  border-radius: 50%;
  background: rgba(157, 64, 80, 0.12);
  filter: blur(110px);
}

.dental-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
  gap: clamp(36px, 4vw, 60px);
  align-items: center;
}

.dental-h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(46px, 4vw, 56px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
  margin-bottom: 24px;
}

.dental-h1 > span {
  display: block;
}

.dental-hero-lead {
  max-width: 650px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.dental-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 28px;
}

.channel-line {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.channel-line span {
  color: var(--dental-rose);
  margin: 0 5px;
}

.hero-reception-frame,
.demo-shell,
.dental-dashboard,
.roi-calculator,
.pilot-card,
.audit-form-wrap {
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 50px rgba(157, 64, 80, 0.08);
  backdrop-filter: blur(22px);
}

.hero-reception-frame {
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-2deg);
}

.interface-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.interface-topbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dental-green);
  box-shadow: 0 0 10px var(--dental-green);
  flex: 0 0 auto;
}

.illustrative-label,
.dashboard-date {
  padding: 4px 8px;
  border: 1px solid rgba(210, 150, 165, 0.28);
  border-radius: 999px;
  color: var(--dental-rose);
  white-space: nowrap;
}

.hero-interface-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 470px;
}

.hero-conversation {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-message,
.demo-message {
  max-width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-message small,
.demo-message span {
  display: block;
  margin-bottom: 5px;
  color: var(--dental-rose);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-message p,
.demo-message p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.patient-message,
.demo-user {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: rgba(157, 64, 80, 0.17);
  border-color: rgba(210, 150, 165, 0.2);
}

.patient-message small,
.demo-user span {
  color: var(--lavender);
}

.hero-system-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 15px;
  background: rgba(255, 255, 255, 0.012);
}

.system-event {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1px 8px;
  padding: 11px 9px;
  border-left: 1px solid rgba(210, 150, 165, 0.4);
  background: rgba(255, 255, 255, 0.025);
}

.system-event span {
  grid-row: 1 / 3;
  color: var(--text-dim);
  font-size: 9px;
}

.system-event p {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.3;
}

.system-event b {
  color: var(--dental-green);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.stage-1,
.stage-2,
.stage-3,
.stage-4,
.stage-5 {
  opacity: 0;
  animation: stagedReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage-1 { animation-delay: 0.2s; }
.stage-2 { animation-delay: 0.9s; }
.stage-3 { animation-delay: 1.7s; }
.stage-4 { animation-delay: 2.5s; }
.stage-5 { animation-delay: 3.3s; }

@keyframes stagedReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Revenue leakage and shared cards */
.leakage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.leakage-card,
.dental-system-card,
.fit-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  transition: var(--transition-smooth);
}

.leakage-card:hover,
.dental-system-card:hover,
.fit-panel:hover {
  border-color: rgba(210, 150, 165, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.leakage-card {
  min-height: 260px;
  padding: 25px;
}

.card-number {
  color: var(--dental-rose);
  font-size: 11px;
}

.leakage-symbol {
  margin: 34px 0 25px;
  color: rgba(210, 150, 165, 0.38);
  font-family: var(--font-display);
  font-size: 42px;
}

.leakage-card h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 10px;
}

.leakage-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.closing-statement {
  max-width: 850px;
  margin: 46px auto 0;
  padding: 22px 25px;
  border-top: 1px solid rgba(210, 150, 165, 0.25);
  color: var(--lavender);
  font-size: clamp(18px, 2vw, 26px);
  text-align: center;
}

/* Connected system */
.system-section {
  background:
    radial-gradient(circle at 50% 50%, rgba(118, 101, 143, 0.12), transparent 36%),
    #000;
}

.dental-system-grid {
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  align-items: center;
  gap: 18px 0;
}

.dental-system-card {
  align-self: stretch;
  padding: clamp(26px, 3.5vw, 38px);
}

.system-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.system-card-head span {
  color: var(--dental-rose);
  font-size: 11px;
}

.system-card-head b {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dental-system-card h3 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 12px;
}

.dental-system-card > p {
  min-height: 68px;
  color: var(--text-muted);
  font-size: 14px;
}

.dental-system-card ul,
.pilot-action ul,
.fit-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 23px;
}

.dental-system-card li,
.pilot-action li,
.fit-panel li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.dental-system-card li::before,
.pilot-action li::before,
.fit-panel li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--dental-rose);
}

.system-connector {
  display: grid;
  place-items: center;
}

.system-connector span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dental-rose);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 25px rgba(210, 150, 165, 0.25);
}

.system-connector-down {
  grid-column: 1 / -1;
}

/* Demo */
.demo-section {
  background:
    radial-gradient(circle at 75% 48%, rgba(157, 64, 80, 0.16), transparent 30%),
    #000;
}

.demo-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.demo-copy {
  position: sticky;
  top: 130px;
  align-self: start;
}

.demo-title {
  font-size: clamp(43px, 4vw, 56px);
  line-height: 1.04;
}

.demo-title > span {
  display: block;
}

.demo-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.demo-capabilities span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.demo-shell {
  border-radius: 26px;
  overflow: hidden;
}

.text-button {
  min-height: 34px;
  padding: 5px 8px;
  color: var(--dental-rose);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-transcript {
  height: 410px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  scrollbar-color: var(--burgundy) transparent;
}

.demo-message {
  animation: messageIn 0.3s ease both;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(6px); }
}

.demo-system {
  align-self: stretch;
  max-width: 100%;
  border-radius: 8px;
  border-color: rgba(116, 198, 157, 0.22);
  background: rgba(116, 198, 157, 0.08);
}

.demo-system span,
.demo-system p {
  color: var(--dental-green);
}

.demo-alert {
  align-self: stretch;
  max-width: 100%;
  border-radius: 8px;
  border-color: rgba(210, 150, 165, 0.35);
  background: rgba(157, 64, 80, 0.16);
}

.demo-choices {
  min-height: 93px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-choice {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  text-align: left;
  transition: var(--transition-smooth);
}

.demo-choice:hover,
.demo-choice:focus-visible {
  border-color: var(--dental-rose);
  background: rgba(157, 64, 80, 0.15);
}

.demo-disclaimer {
  padding: 11px 22px 17px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.5;
}

/* Process and patient journey */
.dental-process .process-step {
  min-height: 380px;
}

.dental-process .step-title {
  font-size: 22px;
  line-height: 1.25;
}

.dental-process .step-desc {
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
}

.journey-section {
  overflow: visible;
}

.patient-journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
}

.patient-journey::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--dental-red), var(--lavender), var(--dental-red));
  box-shadow: 0 0 14px rgba(210, 150, 165, 0.3);
}

.patient-journey li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  text-align: center;
}

.patient-journey li span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  z-index: 1;
  border: 1px solid rgba(210, 150, 165, 0.42);
  border-radius: 50%;
  background: #09080c;
  color: var(--dental-rose);
  font-family: var(--font-display);
  box-shadow: 0 0 20px rgba(157, 64, 80, 0.18);
}

.patient-journey li b {
  max-width: 130px;
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.journey-copy {
  max-width: 760px;
  margin: 50px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
}

/* Dashboard */
.intelligence-section {
  background:
    radial-gradient(circle at 50% 55%, rgba(118, 101, 143, 0.14), transparent 42%),
    #000;
}

.dental-dashboard {
  border-radius: 26px;
  padding: clamp(16px, 2.5vw, 28px);
}

.dental-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dental-metric-grid > div {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.dental-metric-grid span {
  color: var(--text-dim);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.dental-metric-grid strong {
  color: #fff;
  font-size: 21px;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  margin-bottom: 18px;
}

.treatment-chart,
.source-chart {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 9px;
  color: var(--text-soft);
}

.chart-title span {
  color: var(--text-dim);
}

.chart-row {
  display: grid;
  grid-template-columns: 130px 1fr 24px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.chart-row i {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dental-red) var(--bar), rgba(255, 255, 255, 0.06) var(--bar));
}

.chart-row b {
  color: var(--text-soft);
}

.source-chart {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 15px;
}

.source-chart .chart-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.source-ring {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--dental-red) 0 44%, var(--purple) 44% 72%, var(--dental-rose) 72% 89%, #4d4955 89%);
  position: relative;
}

.source-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0a090d;
}

.source-ring > span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.source-ring small {
  display: block;
  color: var(--text-dim);
  font-size: 7px;
}

.source-chart ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 9px;
  color: var(--text-muted);
}

.source-chart li {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 5px;
}

.source-chart li > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.source-a { background: var(--dental-red); }
.source-b { background: var(--purple); }
.source-c { background: var(--dental-rose); }
.source-d { background: #4d4955; }

.dental-kanban {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.dashboard-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 10px;
}

/* Integrations */
.integrations-layout,
.safety-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.integration-grid span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 13px;
}

.integration-grid span::before {
  content: "::";
  margin-right: 12px;
  color: var(--dental-rose);
  font-family: var(--font-display);
}

.technical-note,
.safety-note {
  margin-top: 17px;
  color: var(--text-dim);
  font-size: 11px;
}

/* ROI */
.roi-section {
  background:
    radial-gradient(circle at 70% 50%, rgba(157, 64, 80, 0.15), transparent 35%),
    #000;
}

.roi-calculator {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border-radius: 28px;
  overflow: hidden;
}

.roi-inputs {
  padding: clamp(25px, 4vw, 45px);
}

.range-field {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 12px 18px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.range-field:first-child {
  padding-top: 0;
}

.range-field > div {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.range-field label {
  color: var(--text-soft);
  font-size: 13px;
}

.range-field output {
  color: var(--dental-rose);
  font-size: 13px;
  font-weight: 600;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--dental-rose);
}

.number-edit {
  width: 76px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.roi-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(157, 64, 80, 0.14), rgba(118, 101, 143, 0.06));
}

.result-label {
  color: var(--dental-rose);
  font-size: 11px;
}

.primary-result {
  margin: 22px 0 27px;
}

.primary-result span,
.secondary-results span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.primary-result strong {
  display: block;
  color: #fff;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.1;
}

.secondary-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-results > div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.secondary-results strong {
  color: var(--text-soft);
  font-size: 23px;
}

.calculator-method,
.roi-disclaimer {
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.55;
}

.calculator-method { margin-top: 18px; }
.roi-disclaimer { margin: 7px 0 23px; }
.roi-results .btn-primary { align-self: flex-start; }

/* Fit, safety, pilot */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fit-panel {
  padding: clamp(25px, 4vw, 40px);
}

.fit-panel h3 {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 17px;
}

.best-fit {
  border-top-color: var(--dental-green);
}

.best-fit h3 { color: var(--dental-green); }
.not-fit { border-top-color: var(--dental-rose); }
.not-fit h3 { color: var(--dental-rose); }

.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#safety-title {
  font-size: clamp(44px, 4vw, 58px);
}

.safeguard-grid > div {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.safeguard-grid span {
  color: var(--dental-rose);
  font-family: var(--font-display);
  font-size: 11px;
}

.safeguard-grid p {
  color: var(--text-soft);
  font-size: 13px;
}

.pilot-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(35px, 7vw, 90px);
  align-items: center;
  padding: clamp(30px, 6vw, 70px);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.pilot-card::before {
  content: "PILOT / PUNE";
  position: absolute;
  right: -20px;
  top: 15px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 100px);
  pointer-events: none;
}

.pilot-action {
  position: relative;
  z-index: 1;
}

.pilot-action .btn-primary {
  margin-top: 28px;
}

.pilot-action > p {
  margin-top: 15px;
  color: var(--text-dim);
  font-size: 10px;
}

/* FAQ */
.faq-layout {
  align-items: start;
}

.faq-layout > .dental-heading {
  position: sticky;
  top: 130px;
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-list summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 5px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer !important;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary i {
  width: 20px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
}

.faq-list summary i::before,
.faq-list summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
  background: var(--dental-rose);
}

.faq-list summary i::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary i::after {
  transform: rotate(0);
}

.faq-list details p {
  max-width: 680px;
  padding: 0 45px 22px 5px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Audit form */
.audit-section {
  min-height: 90vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(157, 64, 80, 0.2), transparent 38%),
    #000;
}

.audit-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(118, 101, 143, 0.14);
  filter: blur(100px);
}

.audit-intro {
  max-width: 900px;
  margin: 0 auto 45px;
  position: relative;
  text-align: center;
}

.audit-intro .dental-eyebrow {
  justify-content: center;
}

.audit-intro .section-lead {
  margin-inline: auto;
}

.audit-form-wrap {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(25px, 5vw, 48px);
}

.audit-form-grid {
  margin-bottom: 22px;
}

.audit-form .form-field input:not([type="checkbox"]),
.audit-form .form-field select,
.audit-form .form-field textarea {
  min-height: 48px;
}

.audit-form textarea {
  resize: vertical;
}

.channel-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-field legend {
  margin-bottom: 8px;
  color: var(--lavender);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.checkbox-grid label,
.consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer !important;
}

.checkbox-grid label {
  min-height: 34px;
  align-items: center;
}

.checkbox-grid input,
.consent-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--dental-rose);
}

.checkbox-grid input {
  margin-top: 0;
}

.consent-field {
  margin: 12px 0 27px;
}

.consent-field label {
  font-size: 13px;
  line-height: 1.55;
}

.consent-field a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-error {
  min-height: 0;
  color: #ff9aa8;
  font-size: 11px;
}

.field-error:not(:empty) {
  min-height: 17px;
}

.audit-form [aria-invalid="true"] {
  border-color: #ff7d91 !important;
}

.error-summary {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 125, 145, 0.45);
  border-radius: 12px;
  background: rgba(157, 64, 80, 0.15);
  color: #ffd9df;
  font-size: 13px;
}

.error-summary ul {
  margin: 7px 0 0 18px;
}

.error-summary a {
  text-decoration: underline;
}

.audit-actions .form-privacy {
  max-width: 540px;
  text-align: right;
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait !important;
}

.audit-feedback {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid rgba(116, 198, 157, 0.35);
  border-radius: 12px;
  background: rgba(116, 198, 157, 0.1);
  color: #a8e4c3;
  font-size: 13px;
}

.audit-feedback.is-error {
  border-color: rgba(255, 125, 145, 0.4);
  background: rgba(157, 64, 80, 0.14);
  color: #ffd9df;
}

.botcheck {
  position: absolute;
  left: -9999px;
}

.dental-page .footer-meta-pill,
.dental-page .copy-text {
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .dental-nav-links .nav-link {
    font-size: 12px;
    padding-inline: 7px;
  }

  .dental-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
    gap: 30px;
  }

  .dental-h1 {
    font-size: clamp(40px, 4.3vw, 48px);
  }

  .leakage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .dental-hero {
    padding-top: 125px;
  }

  .dental-hero-grid,
  .demo-layout,
  .integrations-layout,
  .safety-layout,
  .faq-layout,
  .pilot-card,
  .roi-calculator {
    grid-template-columns: 1fr;
  }

  .dental-hero-copy {
    max-width: 760px;
  }

  .dental-h1 {
    font-size: clamp(43px, 7.5vw, 68px);
  }

  .hero-reception-frame {
    max-width: 760px;
    width: 100%;
    transform: none;
  }

  .demo-copy,
  .faq-layout > .dental-heading {
    position: static;
  }

  .patient-journey {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 0;
  }

  .patient-journey::before {
    display: none;
  }

  .dashboard-insights {
    grid-template-columns: 1fr;
  }

  .roi-results {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
}

@media (max-width: 768px) {
  .dental-section {
    padding-block: 75px;
  }

  .dental-heading .single-line-title {
    font-size: clamp(36px, 9vw, 50px);
    white-space: normal;
  }

  .dental-h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .dental-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dental-hero-actions a {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .hero-interface-body {
    grid-template-columns: 1fr;
  }

  .hero-conversation {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero-system-events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .dental-system-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .dental-system-card {
    width: 100%;
  }

  .system-connector span {
    transform: rotate(90deg);
  }

  .system-connector-down span {
    transform: none;
  }

  .dental-process .process-step {
    min-height: auto;
  }

  .dental-dashboard .dashboard-topbar {
    align-items: flex-start;
  }

  .dental-kanban {
    display: flex;
  }

  .audit-actions .form-privacy {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .dental-hero {
    min-height: auto;
    padding: 115px 0 65px;
  }

  .dental-h1 {
    font-size: clamp(35px, 10.5vw, 47px);
    line-height: 1.05;
  }

  #safety-title {
    font-size: 40px;
  }

  .channel-line {
    font-size: 9px;
  }

  .hero-reception-frame {
    border-radius: 19px;
  }

  .interface-topbar {
    align-items: flex-start;
    font-size: 8px;
  }

  .hero-conversation {
    padding: 15px;
  }

  .hero-system-events {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .leakage-grid,
  .fit-grid,
  .integration-grid,
  .safeguard-grid,
  .secondary-results,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .leakage-card {
    min-height: 220px;
  }

  .dental-system-card > p {
    min-height: 0;
  }

  .demo-transcript {
    height: 390px;
    padding: 15px;
  }

  .demo-choices {
    padding: 13px 15px;
  }

  .demo-choice {
    width: 100%;
    border-radius: 12px;
  }

  .patient-journey {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .patient-journey::before {
    display: block;
    top: 25px;
    bottom: 25px;
    left: 26px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .patient-journey li {
    min-height: 80px;
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }

  .patient-journey li span {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
  }

  .patient-journey li b {
    max-width: none;
  }

  .dental-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-date {
    white-space: normal;
  }

  .chart-row {
    grid-template-columns: 90px 1fr 22px;
  }

  .source-chart {
    grid-template-columns: 90px 1fr;
  }

  .source-ring {
    width: 82px;
    height: 82px;
  }

  .range-field {
    grid-template-columns: 1fr 68px;
  }

  .primary-result strong {
    font-size: 38px;
  }

  .roi-results .btn-primary {
    align-self: stretch;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .pilot-card {
    padding: 28px 20px;
  }

  .faq-list summary {
    font-size: 14px;
  }

  .audit-form-wrap {
    padding: 23px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dental-page .stage-1,
  .dental-page .stage-2,
  .dental-page .stage-3,
  .dental-page .stage-4,
  .dental-page .stage-5 {
    opacity: 1;
    transform: none;
  }

  .dental-page .binary-canvas {
    display: none;
  }

  .dental-page .hero-video-bg,
  .dental-page .dental-video-bg {
    display: none;
  }
}
