/* ==========================================================================
   Revenue Reclaimer — High-End Clinical Dental Theme & 3D Interactive Layer
   ========================================================================== */

:root {
  /* High-Contrast Clinical Dental Palette */
  --bg: #f3fafb;
  --bg-2: #e8f5f7;
  --surface: #ffffff;
  --surface-2: #f8fcfd;
  --surface-3: #d9eef2;
  --mint: #cbf0e8;
  --sand: #edf7f8;

  /* Crisp Dental Teal & Mint Accents */
  --green: #00a896;
  --green-2: #02c39a;
  --green-3: #028090;
  --green-glow: rgba(2, 195, 154, 0.28);

  /* Deep Contrast Typography */
  --text: #0d2538;
  --text-2: #214358;
  --muted: #4e6b7c;

  /* Leaks & High-Priority Warnings */
  --leak: #e63946;
  --leak-2: #c52233;
  --amber: #f4a261;
  --gold: #028090;
  --gold-2: #00a896;

  /* Structural Variables */
  --line: rgba(13, 37, 56, 0.12);
  --line-2: rgba(13, 37, 56, 0.22);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 16px 45px rgba(13, 37, 56, 0.08), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* Allow native sticky pinning across all browsers */
html, body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--bg-2);
}

main#main,
section#dashboard-showcase,
.section-dashboard {
  overflow: visible !important;
}

body {
  color: var(--text);
  font-family: var(--font);
}

h1, h2, h3, h4, .brand .brand-text b, .btn, .eyebrow, .app-title {
  font-family: var(--font-display);
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.2;
}

.lead {
  color: var(--text-2) !important;
  font-weight: 500;
}

.muted {
  color: var(--muted) !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(13, 37, 56, 0.05);
}

.brand .brand-text {
  color: var(--text);
}

.nav-links {
  color: var(--text-2);
}

.nav-links > a:not(.btn):hover {
  color: var(--green-3);
}


/* Quiz Section Background Image & Theme Tint Overlay */
.quiz-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(7, 18, 15, 0.78) 0%, rgba(3, 8, 6, 0.94) 100%),
    linear-gradient(180deg, rgba(2, 195, 154, 0.12) 0%, rgba(0, 168, 150, 0.25) 100%),
    url('../img/gen/Smiling Dental Team in Modern Clinic.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

/* Quiz section header text — override dark theme defaults so text is legible over the dark overlay */
#quiz .center h2,
#quiz .center p.lead,
#quiz .center .eyebrow {
  color: #ffffff !important;
}

#quiz .center p.lead {
  color: rgba(210, 235, 228, 0.88) !important;
}

#quiz .center .eyebrow {
  color: #02c39a !important; /* keep brand green for the eyebrow */
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
  background: linear-gradient(135deg, #00bfa5 0%, #00897b 100%);
  color: #ffffff !important;
  border: 1px solid #00796b;
  box-shadow: 0 12px 30px rgba(0, 191, 165, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #02d4b8 0%, #009688 100%);
  box-shadow: 0 16px 40px rgba(0, 191, 165, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--green);
  color: var(--green-3);
}

/* ==========================================================================
   Hero: Dark Theme + Background Picture Reveal & Pure 1:1 Hollow Text
   ========================================================================== */

.hero-centered {
  position: relative;
  text-align: center;
  padding-block: clamp(5.5rem, 10vw, 8.5rem) clamp(4.5rem, 7.5vw, 7rem) !important;
  background: radial-gradient(70% 140% at 50% 100%, rgba(66, 200, 143, 0.18), transparent 60%),
              linear-gradient(180deg, #07120f 0%, #030806 100%) !important;
  color: #ffffff !important;
  overflow: hidden;
}

/* Background video: covers the full hero, dimmed so text stays readable.
   The cursor spotlight circle reveals it at full brightness via canvas. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

/* Canvas sits behind text & buttons so content reads normally inside the radius */
.hero-spotlight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none !important;
}

.hero-wrap-center {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered h1,
.hero-centered h1 .word,
.hero-centered .lead,
.hero-centered .eyebrow,
.hero-centered .trust-line {
  color: #ffffff !important;
}

.hero-centered h1 .hl {
  background: linear-gradient(90deg, #6ae1ac 0%, #d8b46b 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hero-centered .lead {
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 680px;
  margin: 1.2rem auto 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

/* Action CTA Button: Positioned cleanly ABOVE radius ring (z-index 3) and BELOW cursor (z-index 999999) */
.hero-centered .hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 50 !important;
}

.hero-centered .hero-cta .btn {
  position: relative;
  z-index: 51 !important;
}

.hero-centered .trust-line {
  color: rgba(255, 255, 255, 0.75) !important;
}

.hero-centered .trust-line .shield {
  color: var(--green-2) !important;
}

.hero-centered .trust-line .dot {
  background: rgba(255, 255, 255, 0.4) !important;
}

.hero-centered .bridge {
  margin: 2.2rem auto 0;
  border-left: 0;
  border-bottom: 2px solid var(--green-2);
  padding: 0 0 0.5rem;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.05rem;
}

.hero-centered .tooth-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(106, 225, 172, 0.4) !important;
  color: var(--green-2) !important;
}

/* ==========================================================================
   Section 2: Sticky 3D Rotation (Dashboard -> VSL)
   ========================================================================== */

.section-dashboard {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) !important;
  border-bottom: 1px solid var(--line);
  padding: 0 !important;
  overflow: visible !important;
}

.dashboard-scroll-track {
  position: relative;
  height: 350vh; /* Extended runway: dashboard holds longer, flip triggers later */
  overflow: visible !important;
}

.dashboard-sticky-viewport {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  z-index: 20;
  box-sizing: border-box;
  padding: clamp(0.75rem, 2vh, 1.5rem) 0 !important;
}

/* Restored Section Heading & Operational Subtitle */
.dashboard-header-block {
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.dashboard-header-block h2 {
  color: var(--text) !important;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.25;
  margin: 0.35rem 0;
  text-wrap: balance;
}

.dashboard-header-block .lead {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  color: var(--text-2) !important;
  max-width: 660px;
  margin: 0.2rem auto 0;
}

/* Dashboard section: bg-grid override — full coverage, centered fade */
.section-dashboard {
  position: relative; /* ensure bg-grid absolute positions against section */
}

.dashboard-bg-grid {
  /* override hero mask: fill the section evenly, fade at edges */
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 30%, transparent 85%) !important;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 30%, transparent 85%) !important;
  opacity: 0.38 !important;
  background-size: 48px 48px !important; /* slightly tighter grid for mid-section */
}

/* ==========================================================================
   Two-Column Dashboard / VSL Layout
   40% left (text states) + 60% right (3D flip scene)
   ========================================================================== */

.dashboard-two-col-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

/* Left column: 38% — text states stacked on top of each other */
.dashboard-left-panel {
  flex: 0 0 38%;
  position: relative;
  min-height: clamp(380px, 60vh, 600px);
  display: flex;
  align-items: center;
}

/* Right column: fills remaining space */
.dashboard-right-panel {
  flex: 1;
  min-width: 0; /* prevent flex blowout */
}

/* Each text state: absolutely stacked, transitions in/out */
.left-text-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* prevent badge/pill children from stretching full width */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.left-text-state.is-hidden {
  opacity: 0;
  transform: translateY(-22px);
  pointer-events: none;
}

/* Dashboard state (default visible) */
#leftStateDash .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.75rem;
}

#leftStateDash h2 {
  color: var(--text) !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.22;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

#leftStateDash .lead {
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  color: var(--text-2) !important;
  line-height: 1.65;
  max-width: 40ch;
}

/* VSL state (hidden initially, fades in during flip) */
#leftStateVsl {
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
}

#leftStateVsl.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#leftStateVsl .tooth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: 99px;
  background: rgba(2, 195, 154, 0.1);
  border: 1px solid rgba(2, 195, 154, 0.35);
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

#leftStateVsl .tooth-icon {
  width: 16px;
  height: 16px;
  fill: var(--green-2);
  flex-shrink: 0;
}

#leftStateVsl h2 {
  color: var(--text) !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.22;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

#leftStateVsl .lead {
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  color: var(--text-2) !important;
  line-height: 1.65;
  max-width: 40ch;
}

/* 3D Scene Container — fills right column, 16:9 aspect */
.dashboard-3d-scene {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 75vh; /* increased — card fills more of the viewport */
  margin: 0 auto;
  perspective: 2400px;
  position: relative;
}

.dashboard-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.flipper-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  transition: opacity 0.15s ease-out;
}

/* Front Face: Live Operations Dashboard */
.flipper-front {
  z-index: 2;
  transform: rotateY(0deg);
}

/* Back Face: VSL Container — revealed by rotateY flip */
.flipper-back {
  transform: rotateY(180deg);
  z-index: 1;
}

.flipper-face .app {
  width: 100%;
  height: 100%;
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(0, 168, 150, 0.3) !important;
  box-shadow: 0 24px 70px rgba(13, 37, 56, 0.1), 0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* VSL Clean Frame: Borderless Edge-to-Edge Container */
.vsl-clean-frame {
  position: relative;
  background: #000000 !important;
  border: 2px solid rgba(0, 168, 150, 0.5) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 35px rgba(2, 195, 154, 0.25) !important;
}

.vsl-native-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full 16:9 frame, no cropping */
  background: #000000;
  display: block;
}

/* In-Video Content Overlay (Title, Subtitle, and Play Button) */
.vsl-inside-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(7, 18, 14, 0.72) 0%, rgba(3, 8, 6, 0.88) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.8rem;
  text-align: center;
  z-index: 10;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.vsl-inside-overlay.is-playing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vsl-inside-overlay .tooth-badge {
  background: rgba(2, 195, 154, 0.12) !important;
  border-color: rgba(2, 195, 154, 0.4) !important;
  color: var(--green-2) !important;
}

.vsl-overlay-title {
  color: #ffffff !important;
  font-size: clamp(1.3rem, 2.4vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.3rem !important;
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.vsl-overlay-sub {
  color: #b3cec2 !important;
  font-size: clamp(0.82rem, 1.1vw, 1rem) !important;
  margin-bottom: 1.4rem !important;
  max-width: 48ch;
}

/* Center Play Button */
.vsl-center-play-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 195, 154, 0.95), rgba(0, 168, 150, 0.95));
  border: 2px solid #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 35px rgba(2, 195, 154, 0.75), 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.vsl-center-play-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.vsl-center-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(2, 195, 154, 0.95), 0 12px 35px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #02d4b8, #00bfa5);
}

/* ==========================================================================
   Dashboard – Dark Navy Premium Theme
   ========================================================================== */

/* Outer card: dark gradient base */
.flipper-face .app {
  background: linear-gradient(160deg, #0a1e2b 0%, #0f2d3f 100%) !important;
  border: 1.5px solid rgba(2, 195, 154, 0.22) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(2, 195, 154, 0.06) inset !important;
}

/* Title bar */
.app-bar {
  background: rgba(2, 195, 154, 0.06) !important;
  border-bottom: 1px solid rgba(2, 195, 154, 0.14) !important;
  padding: 0.55rem 1rem !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Traffic-light dots */
.app-bar .dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.app-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.app-bar .dots i:nth-child(1) { background: #ff6058; }
.app-bar .dots i:nth-child(2) { background: #ffbd2e; }
.app-bar .dots i:nth-child(3) { background: #29c940; }

.app-title {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 700;
  font-size: 0.73rem;
  flex: 1;
}

/* Live pill */
.live {
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #02c39a !important;
  background: rgba(2, 195, 154, 0.12) !important;
  border: 1px solid rgba(2, 195, 154, 0.35) !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.55rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}
.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #02c39a;
  display: block;
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* App body */
.app-body {
  padding: 0.8rem !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
}

/* ---- KPI row ---- */
.flipper-face .kpis {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  margin-bottom: 0 !important;
}

.flipper-face .kpi-t {
  padding: 0.5rem 0.65rem !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(2, 195, 154, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.06rem !important;
  backdrop-filter: blur(6px) !important;
}

.flipper-face .kpi-t span {
  font-size: 0.58rem !important;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
}

.flipper-face .kpi-t b {
  font-size: 1.3rem !important;
  color: #6ae1ac !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

.flipper-face .kpi-t i {
  font-size: 0.6rem !important;
  font-style: normal !important;
  color: rgba(255,255,255,0.38) !important;
}

.flipper-face .kpi-t i.up {
  color: #02c39a !important;
  font-weight: 700 !important;
}

/* ---- Main grid: board + feed ---- */
.flipper-face .app-grid {
  display: grid !important;
  grid-template-columns: 1.55fr 1fr !important;
  gap: 0.7rem !important;
  align-items: start !important;
  flex: 1;
}

/* Pipeline columns */
.flipper-face .board {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}

.flipper-face .col h5 {
  margin: 0 0 0.3rem !important;
  font-size: 0.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255,255,255,0.4) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-weight: 700 !important;
}

.flipper-face .col h5 em {
  font-style: normal !important;
  background: rgba(2, 195, 154, 0.14) !important;
  border-radius: 999px !important;
  padding: 0.05rem 0.45rem !important;
  color: #6ae1ac !important;
  font-weight: 800 !important;
}

/* Patient cards */
.flipper-face .pc {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 3px solid rgba(255,255,255,0.18) !important;
  padding: 0.42rem 0.52rem !important;
  border-radius: 8px !important;
  margin-bottom: 0.35rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.18rem !important;
}

.flipper-face .pc.good { border-left-color: #02c39a !important; }
.flipper-face .pc.warn { border-left-color: #f5a623 !important; }

.flipper-face .pc b {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.9) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.flipper-face .pc small {
  font-size: 0.6rem !important;
  line-height: 1.3 !important;
  color: rgba(255,255,255,0.4) !important;
}

/* Source badges */
.src {
  font-size: 0.52rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 0.08rem 0.38rem !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}
.src.meta   { background: rgba(99,80,238,0.25) !important; color: #b3a4ff !important; border: 1px solid rgba(99,80,238,0.35) !important; }
.src.google { background: rgba(66,133,244,0.22) !important; color: #7eb8ff !important; border: 1px solid rgba(66,133,244,0.32) !important; }
.src.web    { background: rgba(2,195,154,0.18) !important; color: #6ae1ac !important; border: 1px solid rgba(2,195,154,0.3) !important; }
.src.ref    { background: rgba(245,166,35,0.18) !important; color: #ffd07a !important; border: 1px solid rgba(245,166,35,0.3) !important; }

/* ---- Activity feed ---- */
.flipper-face .feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  min-width: 0 !important;
}

.flipper-face .feed h5 {
  margin: 0 !important;
  font-size: 0.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255,255,255,0.4) !important;
  font-weight: 700 !important;
}

.flipper-face .lane {
  height: 118px !important;
  padding: 0.55rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(2, 195, 154, 0.12) !important;
  background: rgba(0,0,0,0.25) !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(2,195,154,0.25) transparent !important;
}

/* ---- Bar chart ---- */
.flipper-face .chart {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(2, 195, 154, 0.12) !important;
  border-radius: 10px !important;
  padding: 0.55rem !important;
}

.flipper-face .chart span {
  font-size: 0.58rem !important;
  color: rgba(255,255,255,0.35) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 0.35rem !important;
}

.flipper-face .bars {
  display: flex !important;
  align-items: flex-end !important;
  gap: 0.32rem !important;
  height: 40px !important;
}

.flipper-face .bars i {
  flex: 1 !important;
  background: rgba(2,195,154,0.18) !important;
  border-radius: 3px 3px 0 0 !important;
  height: var(--h) !important;
  transition: background 0.2s !important;
}

.flipper-face .bars i.hi {
  background: linear-gradient(180deg, #02c39a, #018f6e) !important;
  box-shadow: 0 0 10px rgba(2,195,154,0.45) !important;
}

/* ==========================================================================
   Solution Section & High-Visibility Ending Statement
   ========================================================================== */

.solution-stylish {
  position: relative;
  background: radial-gradient(85% 75% at 50% 0%, #0d222b 0%, #071318 60%, #050e12 100%) !important;
  color: #ffffff;
  padding-block: clamp(5rem, 9vw, 8rem) !important;
  overflow: hidden;
}

.solution-stylish h2 {
  color: #ffffff !important;
  max-width: 24ch;
  margin-inline: auto;
}

.solution-stylish .lead {
  color: #a4c2cd !important;
  max-width: 620px;
}

.solution-stylish .solution-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-card {
  position: relative;
  background: rgba(16, 36, 44, 0.85);
  border: 1px solid rgba(0, 210, 180, 0.18);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.15), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

/* Continuous Light Sweep Beam Animation across Card Top Border */
.solution-card .sol-top-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #02c39a, #ffffff, #00d2b4, transparent);
  animation: sweepLight 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.solution-card:nth-child(2) .sol-top-bar { animation-delay: 0.8s; }
.solution-card:nth-child(3) .sol-top-bar { animation-delay: 1.6s; }
.solution-card:nth-child(4) .sol-top-bar { animation-delay: 2.4s; }
.solution-card:nth-child(5) .sol-top-bar { animation-delay: 3.2s; }
.solution-card:nth-child(6) .sol-top-bar { animation-delay: 4.0s; }

@keyframes sweepLight {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.solution-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(2, 195, 154, 0.65);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6), 0 0 35px rgba(2, 195, 154, 0.25);
}

.sol-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 195, 154, 0.18), rgba(0, 168, 150, 0.05));
  border: 1px solid rgba(2, 195, 154, 0.35);
  color: var(--green-2);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(2, 195, 154, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover .sol-icon-box {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 12px 28px rgba(2, 195, 154, 0.35);
}

.sol-icon-box svg {
  width: 26px;
  height: 26px;
}

.sol-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.solution-card h3 {
  font-size: 1.35rem;
  color: #ffffff !important;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.solution-card p {
  color: #b5ced8 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.sol-metric {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.9rem;
  font-size: 0.85rem;
  color: #8da4b0;
}

.sol-metric b {
  color: var(--green-2);
  font-weight: 700;
}

.solution-footer-statement {
  margin-top: 3.5rem;
  text-align: center;
}

.solution-footer-statement .statement {
  color: #ffffff !important;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 32ch;
  margin-inline: auto;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.solution-footer-statement .statement .green {
  color: #02c39a !important;
  text-shadow: 0 0 25px rgba(2, 195, 154, 0.45);
}

/* ==========================================================================
   3D Revolver Drum Cylinder
   ========================================================================== */

.problem-revolver-wrap {
  width: 100%;
  max-width: 960px;
  margin: 3.5rem auto 1.5rem;
  perspective: 1400px;
  overflow: visible;
  position: relative;
}

.problem-drum-viewport {
  width: 100%;
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.revolver-card {
  position: absolute;
  width: min(540px, 86vw);
  background: linear-gradient(165deg, #ffffff 0%, #f4fbfd 100%);
  border: 2px solid rgba(0, 168, 150, 0.25);
  border-radius: 22px;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px rgba(13, 37, 56, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.85, 0.32, 1.15),
              filter 0.65s ease,
              opacity 0.65s ease;
  user-select: none;
}

.revolver-card.pos-center {
  transform: translate3d(0, 0, 160px) rotateY(0deg) scale(1);
  filter: blur(0px);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  border-color: rgba(0, 168, 150, 0.65);
  box-shadow: 0 30px 70px rgba(2, 128, 144, 0.22);
}

.revolver-card.pos-left {
  transform: translate3d(-62%, 0, -40px) rotateY(38deg) scale(0.84);
  filter: blur(4.5px);
  opacity: 0.62;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.revolver-card.pos-right {
  transform: translate3d(62%, 0, -40px) rotateY(-38deg) scale(0.84);
  filter: blur(4.5px);
  opacity: 0.62;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.revolver-card.pos-back {
  transform: translate3d(0, 0, -280px) rotateY(180deg) scale(0.68);
  filter: blur(8px);
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.revolver-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leak-2);
  background: rgba(230, 57, 70, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.revolver-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.revolver-card p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.revolver-card .leak-calc {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px dashed var(--line-2);
  padding-top: 0.8rem;
  width: 100%;
}

.revolver-card .leak-calc b {
  color: var(--leak);
}

.revolver-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.rev-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(13, 37, 56, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.rev-arrow:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  transform: scale(1.1);
}

.rev-dots {
  display: flex;
  gap: 0.6rem;
}

.rev-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rev-dot.active {
  background: var(--green);
  width: 32px;
  border-radius: 8px;
}

/* ==========================================================================
   Clinical Dental Elements
   ========================================================================== */

.tooth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 168, 150, 0.08);
  border: 1px solid rgba(0, 168, 150, 0.25);
  color: var(--green-3);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tooth-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(13, 37, 56, 0.04);
}

.card:hover {
  border-color: rgba(0, 168, 150, 0.4);
  box-shadow: 0 18px 45px rgba(0, 168, 150, 0.12);
}

.card h3 { color: var(--text); }
.card p { color: var(--text-2); }
.card-leak { border-left: 4px solid var(--leak); }
.card-good { border-left: 4px solid var(--green); }

.input, .select, .textarea {
  background: #ffffff !important;
  color: var(--text) !important;
  border-color: var(--line-2) !important;
  font-weight: 600;
}

.input::placeholder {
  color: var(--muted) !important;
}

.field label {
  color: var(--text) !important;
  font-weight: 700;
}

.site-footer {
  background: #091a27;
  color: #b0c6d4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 { color: #ffffff; }
.site-footer a { color: #cbdce6; }
.site-footer a:hover { color: var(--green-2); }

/* ==========================================================================
   3D Hover Movement & Luxe Cursor Engine
   ========================================================================== */

@media (hover:hover) and (pointer:fine) {
  html.has-luxe-cursor,
  html.has-luxe-cursor body,
  html.has-luxe-cursor a,
  html.has-luxe-cursor button,
  html.has-luxe-cursor input,
  html.has-luxe-cursor select,
  html.has-luxe-cursor summary {
    cursor: none !important;
  }
}

.luxe-cursor-dot,
.luxe-cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999 !important;
  pointer-events: none !important;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, left, top, opacity;
}

.luxe-cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 12px rgba(2, 195, 154, 0.8);
}

.luxe-cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(106, 225, 172, 0.7);
  background: radial-gradient(circle, rgba(2, 195, 154, 0.15), transparent 70%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s, background 0.22s, opacity 0.2s;
}

.luxe-cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: var(--gold-2);
  background: radial-gradient(circle, rgba(2, 195, 154, 0.25), transparent 60%);
}

.luxe-cursor-ring.is-pressing {
  width: 26px;
  height: 26px;
  background: rgba(0, 168, 150, 0.35);
}

.rr-3d-target {
  --rr-perspective: 1100px;
  --rr-rx: 0deg;
  --rr-ry: 0deg;
  --rr-lift: 0px;
  --rr-depth: 0px;
  transform-style: preserve-3d !important;
  transform: perspective(var(--rr-perspective)) rotateX(var(--rr-rx)) rotateY(var(--rr-ry)) translate3d(0, var(--rr-lift), var(--rr-depth)) !important;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.rr-3d-target.rr-3d-active {
  transition: transform 0.08s linear, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rr-3d-target > h2,
.rr-3d-target > h3,
.rr-3d-target > p,
.rr-3d-target > .badge,
.rr-3d-target > .ic,
.rr-3d-target > .btn {
  transform: translateZ(16px);
  transition: transform 0.35s ease;
}

.rr-3d-target.rr-3d-active > h2,
.rr-3d-target.rr-3d-active > h3,
.rr-3d-target.rr-3d-active > p,
.rr-3d-target.rr-3d-active > .badge,
.rr-3d-target.rr-3d-active > .ic,
.rr-3d-target.rr-3d-active > .btn {
  transform: translateZ(24px);
}

@media (max-width: 960px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .flipper-face .app-grid {
    grid-template-columns: 1fr !important;
  }
  .flipper-face .board {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .revolver-card.pos-left {
    transform: translate3d(-50%, 0, -40px) scale(0.82);
  }
  .revolver-card.pos-right {
    transform: translate3d(50%, 0, -40px) scale(0.82);
  }
  .rr-3d-target {
    transform: none !important;
  }
}

/* Stack two-column layout below 768px */
@media (max-width: 768px) {
  /* Drastically shorten the scroll runway on mobile — no flip animation */
  .dashboard-scroll-track {
    height: auto !important;
    min-height: unset !important;
  }
  /* Un-stick the viewport on mobile so it flows naturally */
  .dashboard-sticky-viewport {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding-block: 2rem !important;
  }
  .dashboard-two-col-wrap {
    flex-direction: column;
    gap: 1.5rem;
    padding-inline: 1rem;
  }
  .dashboard-left-panel {
    flex: none;
    width: 100%;
    min-height: unset;
    position: relative;
  }
  .dashboard-right-panel {
    width: 100%;
  }
  .left-text-state {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
  }
  .left-text-state.is-hidden {
    display: none;
  }
  /* On mobile show VSL state by default (dashboard is hidden anyway) */
  #leftStateDash {
    display: flex;
  }
  #leftStateVsl {
    display: none;
  }
  /* Disable 3D flip on mobile — just show VSL face directly */
  .dashboard-3d-scene {
    perspective: none !important;
  }
  .dashboard-flipper {
    transform: none !important;
    transform-style: flat !important;
  }
  .flipper-front {
    display: none !important;
  }
  .flipper-back {
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
  }
}

@media (max-width: 600px) {
  .dashboard-3d-scene {
    width: 96vw;
    /* aspect-ratio 16/9 inherited; height resolves automatically */
    max-height: 56vw; /* = 96vw * 9/16 ~ correct for mobile */
  }
  .solution-grid {
    grid-template-columns: 1fr !important;
  }
  .flipper-face .kpis {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .flipper-face .board {
    grid-template-columns: 1fr !important;
  }
  .problem-drum-viewport {
    height: 440px;
  }
  .revolver-card {
    padding: 1.6rem 1.2rem;
  }
}

/* ── Dental SVG additions ──────────────────────────────────────────────── */

/* Problem-card dental icons */
.revolver-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 195, 154, 0.14), rgba(0, 168, 150, 0.04));
  border: 1px solid rgba(2, 195, 154, 0.30);
  color: var(--green-2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.revolver-card-icon svg {
  width: 22px;
  height: 22px;
}

/* How-it-works inline SVG icons */
.hiw-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(2, 195, 154, 0.16), rgba(0, 168, 150, 0.05));
  border: 1px solid rgba(2, 195, 154, 0.28);
  color: var(--green-2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.hiw-icon svg {
  width: 28px;
  height: 28px;
}
.card .hiw-icon { margin-top: 0.25rem; }

/* Solution card dental icons (replaces generic) */
.sol-icon-box svg.dental-icon { width: 26px; height: 26px; }

/* Dental guarantee badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(2, 195, 154, 0.08);
  border: 1px solid rgba(2, 195, 154, 0.28);
  border-radius: 14px;
  margin-top: 1.5rem;
  max-width: 420px;
}
.guarantee-badge svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--green-2);
}
.guarantee-badge p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
.guarantee-badge strong { color: var(--text); }

/* Dental accent for section eyebrows */
.dental-eyebrow-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.8;
}

/* ── Enhanced Premium Calculator ─────────────────────────────────────────── */
#calculator {
  background: var(--bg);
}

#calculator .calc {
  background: #ffffff;
  border: 1.5px solid rgba(0, 168, 150, 0.18);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(13, 37, 56, 0.09), 0 2px 0 rgba(255,255,255,0.9) inset;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Input section */
#calculator .field {
  margin-bottom: 1.6rem;
}

#calculator .field:last-of-type {
  margin-bottom: 0.4rem;
}

#calculator .field label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

#calculator .field .hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

#calculator .range-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Premium teal range sliders */
#calculator input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-2) 0%, var(--green-2) 35%, var(--surface-3) 35%, var(--surface-3) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}

#calculator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--green-2);
  box-shadow: 0 2px 12px rgba(2, 195, 154, 0.38);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calculator input[type="range"]:hover::-webkit-slider-thumb,
#calculator input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 18px rgba(2, 195, 154, 0.55);
}

#calculator input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
}

#calculator input[type="range"]::-moz-range-progress {
  background: var(--green-2);
  border-radius: 99px;
}

#calculator input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--green-2);
  box-shadow: 0 2px 12px rgba(2, 195, 154, 0.38);
  cursor: pointer;
}

/* Output value display */
#calculator output {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green-3);
  min-width: 4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: rgba(2, 195, 154, 0.08);
  border: 1px solid rgba(2, 195, 154, 0.2);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

#calculator .calc-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.55;
  border-left: 3px solid rgba(2, 195, 154, 0.3);
  padding-left: 0.75rem;
}

/* ── Output Panel: Dark Premium Card ──────────────────────────────────── */
#calculator .calc-out {
  background: linear-gradient(160deg, #0d2538 0%, #1a3a54 100%);
  border: 1.5px solid rgba(2, 195, 154, 0.25);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 20px 55px rgba(13, 37, 56, 0.22), 0 0 0 1px rgba(2, 195, 154, 0.08) inset;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

#calculator .calc-out::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(2, 195, 154, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#calculator .calc-out .kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#calculator .calc-out .kpi .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

#calculator .calc-out .kpi .val {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

#calculator .calc-out .kpi .val.leak {
  color: #ff8585;
}

#calculator .calc-out .kpi .val.good {
  color: #6ae1ac;
}

#calculator .calc-out .kpi .sub {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  margin-top: 0.1rem;
}

#calculator .calc-out .btn-block {
  background: linear-gradient(135deg, var(--green-2), var(--green-3)) !important;
  border: none !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9rem 1.5rem;
  box-shadow: 0 8px 25px rgba(2, 195, 154, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  margin-top: 0.25rem;
}

#calculator .calc-out .btn-block:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 35px rgba(2, 195, 154, 0.6) !important;
}

/* Responsive: single column below 700px */
@media (max-width: 700px) {
  #calculator .calc {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.4rem !important;
    border-radius: 20px !important;
  }
  #calculator .calc-out {
    border-radius: 18px;
  }
  #calculator .calc-out .kpi .val {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  #calculator .calc {
    padding: 1.1rem !important;
    border-radius: 16px !important;
  }
  #calculator output {
    font-size: 0.88rem;
  }
}

/* ── Calendar / Slot Booking (Step 4) ──────────────────────────────────── */
.cal-wrap {
  border: 1.5px solid var(--border, rgba(0,0,0,.12));
  border-radius: 14px;
  overflow: hidden;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .9rem;
  background: var(--bg-2, #f6faf9);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}
.cal-month-label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
}
.cal-nav {
  background: none;
  border: none;
  padding: .2rem .5rem;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
  transition: background .15s;
}
.cal-nav:hover { background: var(--border, rgba(0,0,0,.1)); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: .6rem;
  background: var(--surface, #fff);
}
.cal-hd {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-2);
  padding-bottom: .25rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: .82rem;
  cursor: default;
  color: var(--text-2);
  transition: background .12s, color .12s;
}
.cal-day--past { opacity: .3; }
.cal-day--avail {
  cursor: pointer;
  color: var(--text);
  background: rgba(2,195,154,.09);
  font-weight: 500;
}
.cal-day--avail:hover { background: rgba(2,195,154,.2); }
.cal-day--sel,
.cal-day--avail.cal-day--sel {
  background: var(--green-2, #02c39a) !important;
  color: #fff !important;
  font-weight: 700;
}
.cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.4rem 0;
  font-size: .84rem;
  color: var(--text-2);
}
.slot-date-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  margin: 0 0 .6rem;
}
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.slot-btn {
  padding: .38rem .85rem;
  border: 1.5px solid var(--border, rgba(0,0,0,.15));
  border-radius: 8px;
  background: var(--bg-2, #f6faf9);
  font-size: .83rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
}
.slot-btn:hover {
  border-color: var(--green-2, #02c39a);
  background: rgba(2,195,154,.07);
}
.slot-btn--sel {
  background: var(--green-2, #02c39a) !important;
  border-color: var(--green-2, #02c39a) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ── Dentist Trust Strip (between reframe & quiz) ───────────────────────── */
.dentist-trust-strip {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.dentist-strip-photo {
  position: relative;
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dentist-strip-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.45) saturate(0.8);
}

.dentist-strip-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.75rem;
}

.dentist-strip-copy .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2) !important;
}

.dentist-strip-copy p {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.45;
  max-width: 700px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.dentist-strip-copy p strong {
  color: #6ae1ac;
}

@media (max-width: 600px) {
  .dentist-strip-photo img,
  .dentist-strip-photo {
    height: 280px;
    max-height: 280px;
  }
  .dentist-strip-copy p {
    font-size: 1rem;
  }
}

/* ── Solution Section Team Photo ────────────────────────────────────────── */
.solution-team-photo {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 1rem;
}

.solution-team-photo img {
  width: 100%;
  height: clamp(220px, 30vw, 380px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.4) saturate(0.7);
}

.solution-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.solution-photo-overlay .statement {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}

/* ── Guarantee Section Photo ────────────────────────────────────────────── */
.guarantee-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.guarantee-dentist-photo {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 55px rgba(13, 37, 56, 0.18);
}

.guarantee-dentist-photo img {
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.guarantee-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(13, 37, 56, 0.75));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 860px) {
  .guarantee-right-col {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .guarantee-dentist-photo {
    max-width: 340px;
  }
}

@media (max-width: 600px) {
  .guarantee-dentist-photo {
    display: none; /* hide on smallest screens, seal remains */
  }
}