/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #F5F3EE;
  --bg-warm: #EDE9E1;
  --card: #FFFFFF;
  --dark: #181B20;
  --dark-2: #22262E;
  --text: #1A1D23;
  --muted: #6B7280;
  --light: #9CA3AF;
  --border: #E5E2DC;
  --border-light: #EEECEA;
  --accent: #2E7D6F;
  --accent-2: #4ECDC4;
  --accent-soft: #E6F2EF;
  --danger: #C0392B;
  --danger-soft: #FDECEB;
  --amber: #D4880F;
  --amber-soft: #FDF5E6;
  --success: #27855A;
  --success-soft: #E6F5ED;
  --purple: #6C5CE7;
  --purple-soft: #F0EDFB;
  --blue: #1565C0;
  --blue-soft: #E3F2FD;
  --radius: 16px;
  --shadow-md: 0 12px 32px rgba(24, 27, 32, 0.08);
  --shadow-lg: 0 24px 64px rgba(24, 27, 32, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; margin: 0; line-height: 1.15; }
p { margin: 0; color: var(--muted); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow-light { background: rgba(78, 205, 196, 0.14); color: var(--accent-2); }

/* subtle grain so flat color fields don't feel sterile */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 13px; }
.btn-primary { background: linear-gradient(120deg, var(--accent), #256A5E); color: #fff; box-shadow: 0 10px 24px rgba(46,125,111,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(46,125,111,0.34); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,243,238,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 4px 24px 18px; font-size: 15px; font-weight: 500; }
.nav-mobile a { padding: 10px 4px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.nav-mobile.open { display: flex; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; right: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,205,196,0.30), rgba(78,205,196,0) 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.hero-sub { font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-actions .btn { justify-content: center; min-width: 195px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); font-weight: 500; }
.hero-points div { display: flex; align-items: center; gap: 7px; }

.hero-visual { position: relative; }
.browser-frame {
  position: relative;
  background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.browser-frame-hero { transform: rotate(0.4deg); }
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: #F3F1EC; border-bottom: 1px solid var(--border-light); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #DDD8CF; }
.browser-bar span:nth-child(1) { background: #E9897B; }
.browser-bar span:nth-child(2) { background: #E8C46B; }
.browser-bar span:nth-child(3) { background: #8FC7A6; }

.mock-app { display: flex; height: 300px; }
.mock-sidebar { width: 56px; background: var(--dark); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.mock-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 6px; }
.mock-navitem { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.mock-navitem.active { background: rgba(255,255,255,0.55); width: 30px; }
.mock-main { flex: 1; padding: 18px 20px; background: var(--bg); }
.mock-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-title { width: 110px; height: 14px; border-radius: 5px; background: #D8D3C8; }
.mock-search { width: 90px; height: 22px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.mock-calendar { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 10px; height: 220px; padding: 12px; }
.mock-cal-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.mock-cal-header span { width: 14%; height: 7px; border-radius: 3px; background: var(--border-light); }
.mock-cal-grid { position: relative; height: 170px; }
.mock-appt { position: absolute; width: 22%; border-radius: 7px; border-left: 3px solid; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.floaty {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.floaty-1 { top: -18px; left: -30px; animation-delay: 0.2s; }
.floaty-2 { bottom: -14px; right: -20px; animation-delay: 1.1s; }
.floaty-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.floaty-title { font-size: 12.5px; font-weight: 700; }
.floaty-sub { font-size: 11px; color: var(--light); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ───────────────────────── Strip ───────────────────────── */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; background: #FBFAF7; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip-item { display: flex; flex-direction: column; gap: 3px; }
.strip-item strong { font-size: 14.5px; font-weight: 700; }
.strip-item span { font-size: 12.5px; color: var(--muted); }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 100px 0; }
.section-muted { background: var(--bg-warm); }
.section-dark { background: var(--dark); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0 14px; }
.section-head p { font-size: 16px; }
.section-head-light h2 { color: #fff; }
.section-head-light p { color: rgba(255,255,255,0.55); }

/* ───────────────────────── Feature grid ───────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DAD5C9; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 16.5px; font-weight: 700; font-family: 'DM Sans', sans-serif; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; }

/* ───────────────────────── Product tour (screenshots) ───────────────────────── */
.tour { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tour-item h3 { color: #fff; font-size: 17px; margin: 20px 0 8px; }
.tour-item p { color: rgba(255,255,255,0.55); font-size: 13.5px; }
.tour .browser-frame { transform: none; }

.mock-patient { padding: 18px; background: var(--bg); height: 230px; }
.mock-patient-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mock-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex-shrink: 0; }
.mock-lines { flex: 1; }
.mock-line { height: 9px; border-radius: 4px; background: #D8D3C8; margin-bottom: 6px; }
.mock-line.muted { background: var(--border); }
.mock-line.small { height: 6px; }
.mock-line.accent { background: var(--accent); }
.mock-line.w30 { width: 30%; } .mock-line.w40 { width: 40%; } .mock-line.w50 { width: 50%; } .mock-line.w60 { width: 60%; }
.mock-stat-row { display: flex; gap: 10px; margin-bottom: 18px; }
.mock-stat { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.mock-tooth-row { display: flex; gap: 6px; justify-content: center; }
.tooth { width: 18px; height: 26px; border-radius: 40% 40% 30% 30%; background: #EFEBE3; border: 1.5px solid var(--border); }
.tooth.filled { background: var(--success-soft); border-color: var(--success); }
.tooth.crown { background: var(--amber-soft); border-color: var(--amber); }
.tooth.missing { background: transparent; border-style: dashed; }

.mock-table { padding: 18px; background: var(--bg); height: 230px; }
.mock-table-head { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mock-table-head span { flex: 1; height: 7px; border-radius: 3px; background: var(--light); opacity: 0.5; }
.mock-table-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.mock-table-row span.w30 { width: 30%; height: 9px; border-radius: 4px; background: #D8D3C8; }
.mock-table-row span.w20 { width: 18%; height: 8px; border-radius: 4px; }
.mock-table-row span.muted { background: var(--border); }
.pill { margin-left: auto; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: var(--success-soft); color: var(--success); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--danger-soft); color: var(--danger); }

.mock-orders { padding: 18px; background: var(--bg); height: 230px; display: flex; flex-direction: column; gap: 12px; }
.mock-order-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mock-chip-row { display: flex; gap: 8px; margin-top: 10px; }
.chip { font-size: 10.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff; }
.chip-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }

/* ───────────────────────── Benefits ───────────────────────── */
.benefits-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.benefits-copy h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 30px; }
.benefit-list { display: flex; flex-direction: column; gap: 24px; }
.benefit-row { display: flex; gap: 18px; }
.benefit-num { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--accent-2); background: var(--dark); width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-row h4 { font-family: 'DM Sans', sans-serif; font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.benefit-row p { font-size: 13.5px; }

.benefits-visual { display: flex; flex-direction: column; gap: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); }
.stat-card-dark { background: var(--dark); border-color: var(--dark); }
.stat-card-dark .stat-value { color: var(--accent-2); }
.stat-card-dark .stat-label { color: rgba(255,255,255,0.55); }
.stat-value { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ───────────────────────── How it works ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-family: 'Playfair Display', Georgia, serif; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 16px;
}
.step h3 { font-size: 16.5px; font-family: 'DM Sans', sans-serif; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; }

/* ───────────────────────── CTA ───────────────────────── */
.cta { background: linear-gradient(135deg, #1D3E38, var(--dark) 60%); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(78,205,196,0.18), transparent 45%), radial-gradient(circle at 80% 80%, rgba(46,125,111,0.25), transparent 45%);
}
.cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.6); font-size: 15.5px; margin-bottom: 30px; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--dark); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand-footer { color: #fff; font-size: 16px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ───────────────────────── Legal pages ───────────────────────── */
.legal { padding: 160px 0 100px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal .legal-updated { font-size: 13px; color: var(--light); margin-bottom: 48px; display: block; }
.legal h2 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 19px; color: var(--text); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ───────────────────────── Scroll reveal ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: 0.1s; }
.reveal-delay-2.in { transition-delay: 0.2s; }
.reveal-delay-3.in { transition-delay: 0.3s; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tour { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; }
  .floaty { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ───────────────────────── Get Started modal ───────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 27, 32, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border-radius: 20px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 34px 32px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg-warm); color: var(--text); }

/* ───────────────────────── Hero play overlay ───────────────────────── */
.play-overlay-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: none;
  background: rgba(24, 27, 32, 0.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}
.play-overlay-btn svg { margin-left: 3px; }
.play-overlay-btn:hover { background: rgba(24, 27, 32, 0.88); transform: translate(-50%, -50%) scale(1.06); }
.play-overlay-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ───────────────────────── Video modal ───────────────────────── */
.video-modal-overlay { background: rgba(10, 11, 13, 0.82); }
.video-modal {
  max-width: 900px; width: 100%; padding: 0; background: #000;
  border-radius: 16px; overflow: hidden; line-height: 0;
}
.video-modal-player { width: 100%; max-height: 80vh; display: block; background: #000; }
.video-modal .modal-close {
  top: -44px; right: 0; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff;
}
.video-modal .modal-close:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.inquiry-form h3 { font-size: 22px; margin: 4px 0 8px; }
.modal-sub { font-size: 13.5px; margin-bottom: 22px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: 14px; color: var(--text); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 90px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }

.form-msg { font-size: 13px; font-weight: 600; margin-bottom: 14px; min-height: 0; }
.form-msg.error { color: var(--danger); }
.form-msg.success { color: var(--success); }
