/* ============================================================
   FLC — premium finish. Loaded last.
   Quieter glow, finer lines, more air, and the floating
   call and booking cards in the hero.
   ============================================================ */

:root {
  --orange: #F4863A;
  --orange-light: #FFA466;
  --orange-hover: #FFB988;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.14);
}

/* Fine film grain over everything, so dark areas never look flat or banded. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h2, .heading-2 {
  background: linear-gradient(180deg, #FFFFFF 30%, #B9B4AE 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.03em; padding-bottom: var(--s-50);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100); margin-bottom: var(--s-300);
  border: 1px solid var(--hair-strong); border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.03);
  color: #E8D9CC; letter-spacing: 0.14em; font-weight: 500;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.section-head p.lead, .lead { color: #A8A29C; }
.section { padding: 128px 0; }
.section-head { margin-bottom: var(--s-800); }

/* ---------- Navigation ---------- */
.site-header .container::before { background: rgba(14, 14, 14, 0.66); border-color: var(--hair-strong); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.nav-links > a, .has-dropdown > button { letter-spacing: 0.01em; }
.dropdown { background: rgba(18, 18, 18, 0.96); border-color: var(--hair-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }

/* ---------- Buttons: jewel finish, quiet glow ---------- */
.btn { border-radius: var(--r-xl); padding: var(--s-75) var(--s-200); letter-spacing: -0.005em; }
.btn-primary {
  background: linear-gradient(180deg, #FFA35E 0%, #F27A24 100%); color: #1A0D03;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 -1px 0 rgba(0, 0, 0, 0.18) inset, 0 10px 30px -14px rgba(244, 134, 58, 0.75);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #FFB274 0%, #F78732 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(0, 0, 0, 0.18) inset, 0 16px 36px -14px rgba(244, 134, 58, 0.9);
}
.btn-outline { border-color: var(--hair-strong); background: rgba(255, 255, 255, 0.03); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
.hero-3d .btn-primary { padding: var(--s-100) var(--s-300); }

/* ---------- Hero ---------- */
.hero-3d { background: radial-gradient(110% 80% at 74% 46%, #150D07 0%, #070605 48%, #000 100%); }
.hero-glow { background: radial-gradient(closest-side, rgba(244, 134, 58, 0.16), rgba(244, 134, 58, 0.04) 55%, transparent 72%); }
.hero-3d h1 { font-size: 72px; line-height: 72px; letter-spacing: -0.04em; background: linear-gradient(180deg, #FFFFFF 35%, #A9A39D 125%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-3d .lead { font-size: 18px; line-height: 28px; color: #B5AFA9; }
.hero-3d .eyebrow { margin-bottom: var(--s-400); }
.hero-note { color: #86807A; }
.compliance-badges span { border-color: var(--hair); color: #A8A29C; background: rgba(255, 255, 255, 0.025); letter-spacing: 0.02em; }

/* Floating cards: what the AI front desk is doing right now */
.hero-cards { position: absolute; inset: 0; z-index: -1; pointer-events: none; perspective: 1200px; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: var(--s-100);
  padding: var(--s-100) var(--s-200); min-width: 248px;
  background: linear-gradient(160deg, rgba(34, 30, 27, 0.72), rgba(14, 13, 12, 0.72));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--hair-strong); border-radius: var(--r-2xl);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 40px 70px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  translate: calc(var(--px, 0) * var(--d, 14) * 1px) calc(var(--py, 0) * var(--d, 14) * -1px);
  animation: card-in 900ms var(--ease) forwards, card-float 7s ease-in-out infinite;
}
.hero-ready .hero-card { animation-play-state: running; }
.hero-card b { display: block; color: #F4F1EE; font-size: 14px; line-height: 20px; font-weight: 500; }
.hero-card small { display: block; color: #8F8983; font-size: 12px; line-height: 16px; }
.hc-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--r-lg); background: linear-gradient(145deg, #3B2414, #1A1512); border: 1px solid rgba(255, 164, 102, 0.3);
  color: var(--orange-light); font-size: 18px;
}
.hc-status {
  position: absolute; right: var(--s-200); top: -12px; display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  background: #10231A; border: 1px solid rgba(74, 222, 128, 0.35); color: #86EFAC;
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.hc-status i { width: 6px; height: 6px; border-radius: var(--r-full); background: #4ADE80; box-shadow: 0 0 10px #4ADE80; animation: live-dot 1.6s ease-in-out infinite; }
.hc-1 { right: 4%; top: 20%; --d: 22; rotate: -3deg; animation-delay: 500ms, 0s; }
.hc-2 { right: 34%; top: 61%; --d: 30; rotate: 2deg; animation-delay: 900ms, -2.4s; }
.hc-3 { right: 5%; top: 75%; --d: 16; rotate: -1.5deg; animation-delay: 1300ms, -4.6s; }
@keyframes card-in { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes live-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Cards ---------- */
.feature-card, .clinic-card, .process-step, .stat-item, .impact-item, .demo-panel {
  padding: var(--s-400); border-radius: var(--r-3xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%);
  border-color: var(--hair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}
.section-alt .feature-card, .section-alt .clinic-card, .section-alt .process-step,
.section-alt .stat-item, .section-alt .impact-item, .section-alt .demo-panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%);
}
.feature-card::before, .clinic-card::before, .process-step::before, .stat-item::before, .impact-item::before, .demo-panel::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 134, 58, 0.13), transparent 62%);
}
.tilting { border-color: rgba(255, 164, 102, 0.3) !important; }
.demo-panel { padding: var(--s-700); }
.feature-card h3, .clinic-card h3, .process-step h3 { letter-spacing: -0.015em; margin-bottom: var(--s-100); }
.feature-card p, .clinic-card p, .process-step p, .stat-item p, .impact-item p { color: #9A948E; }
.icon, .feature-card .icon {
  width: 44px; height: 44px; margin-bottom: var(--s-300); border-radius: var(--r-xl);
  background: linear-gradient(145deg, #33200F, #171412); border-color: rgba(255, 164, 102, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 12px 24px -12px rgba(244, 134, 58, 0.45);
}
.card-tag { border-color: rgba(255, 164, 102, 0.3); background: rgba(244, 134, 58, 0.08); }
.step-num { background: linear-gradient(180deg, #FFA35E, #F27A24); color: #1A0D03; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 24px -8px rgba(244, 134, 58, 0.6); }
.stat-number, .impact-number { font-size: 60px; line-height: 60px; letter-spacing: -0.04em; background: linear-gradient(180deg, #FFFFFF 25%, #F7A367 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-list li { background: rgba(255, 255, 255, 0.03); border-color: var(--hair); border-radius: var(--r-2xl); }

/* ---------- Sections ---------- */
.section-alt { background: radial-gradient(80% 60% at 50% 0%, #17110C 0%, #0D0C0B 55%, #080808 100%); }
.section-alt::before, .cta-section::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(720px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 164, 102, 0.55), transparent);
}
.tagline { letter-spacing: -0.03em; }
.faq-item { background: rgba(255, 255, 255, 0.025) !important; border-color: var(--hair); border-radius: var(--r-2xl); }
.faq-item[open] { border-color: rgba(255, 164, 102, 0.28); }
.faq-item summary { padding: var(--s-300) var(--s-400); }
.faq-item p { padding: 0 var(--s-400) var(--s-300); color: #A8A29C; }
.cta-section { background: radial-gradient(60% 110% at 50% 115%, #2E1707 0%, #0E0906 48%, #000 100%); }
.site-footer { border-top-color: var(--hair); }
.page-hero::before, .notfound::before { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; opacity: 1; }
  .hc-status i { animation: none; }
}
@media (max-width: 1180px) {
  .hc-2 { display: none; }
}
@media (max-width: 959px) {
  .hero-3d { align-items: flex-end; text-align: center; padding-top: 340px; padding-bottom: var(--s-800); }
  .hero-3d h1, .hero-3d .lead, .hero-3d .compliance-badges { margin-left: auto; margin-right: auto; }
  .hero-3d .hero-buttons, .hero-3d .compliance-badges { justify-content: center; }
  .hero-stacked::before { height: 58%; }
}
@media (max-width: 960px) {
  .hero-cards { display: none; }
  .hero-3d h1 { font-size: 48px; line-height: 48px; }
  .section { padding: var(--s-900) 0; }
  .demo-panel { padding: var(--s-400); }
}
@media (max-width: 640px) {
  .hero-3d { padding-top: 264px; padding-bottom: var(--s-600); }
  .hero-3d h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; }
  .hero-3d .lead { font-size: 16px; line-height: 24px; }
  .section { padding: var(--s-800) 0; }
  .section-head { margin-bottom: var(--s-600); }
  .feature-card, .clinic-card, .process-step, .stat-item, .impact-item { padding: var(--s-300); }
  .stat-number, .impact-number { font-size: 48px; line-height: 48px; }
  .faq-item summary { padding: var(--s-200) var(--s-300); }
  .faq-item p { padding: 0 var(--s-300) var(--s-200); }
}

/* ---------- Doctors page ---------- */
.doc-stage { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.doc-browser {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, #1B1714 0%, #0D0B0A 70%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 164, 102, 0.05), 0 0 120px -50px rgba(244, 134, 58, 0.35);
}
.doc-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.doc-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.doc-url {
  margin-left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Geist Mono', monospace; font-size: 12px; line-height: 16px; color: var(--text-dim);
}
.doc-url i { color: var(--orange-light); font-size: 13px; }
.doc-body { padding: 44px 40px 32px; }
.doc-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 14px; }
.doc-name { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.035em; color: var(--text); margin-bottom: 14px; }
.doc-line { font-size: 16px; line-height: 24px; color: #A8A19A; max-width: 44ch; }
.doc-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.doc-facts > div { padding: 18px 0; }
.doc-facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.doc-facts dt { font-size: 12px; line-height: 16px; color: var(--text-faint); margin-bottom: 6px; }
.doc-facts dd { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.doc-rows { list-style: none; margin: 0; padding: 0; }
.doc-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--text-dim); }
.doc-rows li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.doc-rows li i:first-child { font-size: 18px; color: var(--orange-light); }
.doc-rows li i:last-child { margin-left: auto; color: var(--text-faint); }
.doc-caption { padding: 12px 40px 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; line-height: 16px; color: var(--text-faint); }
.doc-copy h2 { margin: 16px 0 20px; }
.doc-copy > p { color: #A8A19A; font-size: 16px; line-height: 26px; margin-bottom: 16px; }
.doc-ask { margin-top: 28px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(255, 164, 102, 0.18); background: linear-gradient(145deg, rgba(244, 134, 58, 0.08), rgba(255, 255, 255, 0.015)); }
.doc-ask-q { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.doc-ask-q i { color: var(--orange-light); font-size: 18px; margin-top: 2px; }
.doc-ask-a { font-size: 14px; line-height: 21px; color: #9A948E; padding-left: 28px; }
.doc-standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; max-width: 980px; margin: 0 auto; }
.doc-standard { display: flex; gap: 18px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.doc-standard > i { font-size: 26px; color: var(--orange-light); flex: none; margin-top: 2px; }
.doc-standard h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; color: var(--text); letter-spacing: -0.015em; }
.doc-standard p { font-size: 14px; line-height: 22px; color: #9A948E; }
@media (max-width: 960px) {
  .doc-stage { grid-template-columns: 1fr; gap: 40px; }
  .doc-standards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc-body { padding: 28px 22px 20px; }
  .doc-caption { padding: 12px 22px 14px; }
  .doc-name { font-size: 30px; line-height: 36px; }
  .doc-facts dd { font-size: 15px; }
  .doc-facts > div + div { padding-left: 12px; }
}

/* Doctors page: AI recommendation framing */
.doc-llms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px auto 0; padding: 0; }
.doc-llms li { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-dim); }
.doc-chat {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, #1B1714 0%, #0D0B0A 70%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(244, 134, 58, 0.4);
}
.doc-chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-dim); }
.doc-chat-head i { color: var(--orange-light); font-size: 16px; }
.doc-chat-body { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.doc-chat-user { align-self: flex-end; max-width: 85%; padding: 14px 18px; border-radius: 18px 18px 4px 18px; background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 15px; line-height: 22px; }
.doc-chat-ai { max-width: 94%; padding: 20px 22px; border-radius: 18px 18px 18px 4px; border: 1px solid rgba(255, 164, 102, 0.2); background: linear-gradient(145deg, rgba(244, 134, 58, 0.09), rgba(255, 255, 255, 0.015)); }
.doc-chat-ai > p { font-size: 15px; line-height: 23px; color: #C9C2BB; }
.doc-chat-ai strong { color: #fff; font-weight: 600; }
.doc-chat-ai ul { list-style: none; margin: 14px 0; padding: 0; }
.doc-chat-ai li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; line-height: 21px; color: #A8A19A; }
.doc-chat-ai li i { color: var(--orange-light); margin-top: 3px; }
.doc-chat-ai .doc-chat-src { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); font-family: 'Geist Mono', monospace; font-size: 12px; line-height: 16px; color: var(--text-dim); }
.doc-chat .doc-caption { padding: 12px 24px 16px; }
.doc-copy .text-link { margin-top: 12px; }
.section-head > p.doc-sub { color: #A8A19A; font-size: 16px; line-height: 26px; max-width: 62ch; margin: 16px auto 0; }
.doc-check { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 0 auto; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; background: linear-gradient(165deg, #171412, #0E0C0B); }
.doc-check-col { padding: 36px 32px; }
.doc-check-col + .doc-check-col { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.doc-check-col i { font-size: 28px; color: var(--orange-light); }
.doc-check-col h3 { font-size: 18px; line-height: 26px; margin: 16px 0 6px; color: var(--text); letter-spacing: -0.015em; }
.doc-check-col p { font-size: 14px; line-height: 22px; color: #9A948E; }
.doc-stage-rev { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 960px) {
  .doc-stage-rev { grid-template-columns: 1fr; }
  .doc-check { grid-template-columns: 1fr; }
  .doc-check-col + .doc-check-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 640px) {
  .doc-chat-body { padding: 20px 16px 18px; }
  .doc-chat-ai { padding: 16px; max-width: 100%; }
  .doc-check-col { padding: 26px 22px; }
}
