/* ==========================================================================
   KontextIQ — Dental Patient Reactivation
   "Clinical Trust" design system. Light, calm, founder-credible.
   Single source of truth for design tokens lives in :root.
   ========================================================================== */

:root {
  /* Canvas + surfaces */
  --bg: #FBFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F3F8F8;      /* subtle teal-tinted section background */
  --surface-ink: #0E2632;      /* dark sections (footer / final CTA) */

  /* Text */
  --ink: #0F2A3A;              /* deep navy-slate, primary text */
  --ink-soft: #51626D;        /* secondary text */
  --ink-faint: #7C8A93;       /* captions / sources */
  --on-dark: #EAF2F2;
  --on-dark-soft: #9FB6BC;

  /* Accent — clinical teal, used sparingly (CTAs + key numbers) */
  --accent: #0E8E8A;
  --accent-dark: #0B6E6B;
  --accent-soft: #E4F3F2;
  --accent-ring: rgba(14, 142, 138, 0.18);

  /* Guarantee / positive */
  --green: #1C9C6B;
  --green-soft: #E5F5EE;

  /* Lines + shadows */
  --border: #E6ECEF;
  --border-strong: #D4DDE1;
  --shadow-sm: 0 1px 2px rgba(15, 42, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 42, 58, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 42, 58, 0.10);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;

  /* Type */
  --font-head: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--ink-soft); }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-alt { background: var(--surface-alt); }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.12rem; margin-top: 16px; }
.lead { font-size: 1.16rem; color: var(--ink-soft); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-ring);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-ring); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-on-dark { background: #fff; color: var(--surface-ink); }
.btn-on-dark:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Navbar ----------------------------------------------------------------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(251, 252, 253, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.wordmark .iq { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.97rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* Hamburger / mobile drawer */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
#navbar.drawer-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar.drawer-open .hamburger span:nth-child(2) { opacity: 0; }
#navbar.drawer-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transform: translateY(-130%); transition: transform .3s ease;
  padding: 18px 24px 28px;
}
.mobile-drawer.open { transform: translateY(0); box-shadow: var(--shadow-lg); }
.mobile-drawer a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-drawer .btn { width: 100%; margin-top: 18px; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 150px 0 70px; position: relative; }
.hero-wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent-text { color: var(--accent); }
.hero-sub { font-size: 1.24rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 30px; display: flex; gap: 12px 26px; justify-content: center; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--ink-faint);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Stat strip ------------------------------------------------------------- */
.stat-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-cell { padding: 40px 28px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 1rem; color: var(--ink); font-weight: 500; }
.stat-src { margin-top: 6px; font-size: 0.78rem; color: var(--ink-faint); }

/* Generic cards ---------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Problem ---------------------------------------------------------------- */
.problem-quote {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4; color: var(--ink); max-width: 820px; margin: 0 auto 14px; text-align: center;
}
.problem-quote .hl { color: var(--accent-dark); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent-dark); font-size: 1.3rem;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }

/* Steps (how it works) --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.05rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.96rem; }

/* Offer + guarantee ------------------------------------------------------ */
.offer-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: stretch; }
.offer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.offer-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.offer-card .price .per { font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); }
.offer-card .anchor { color: var(--ink-faint); text-decoration: line-through; font-size: 1.05rem; margin-left: 8px; }
.offer-line { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--border); font-size: 1rem; color: var(--ink); }
.offer-line:first-of-type { border-top: 0; }
.offer-line .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.included-list { margin-top: 18px; }
.included-list .offer-line .v { margin-left: auto; color: var(--ink-faint); font-size: 0.9rem; }

.guarantee {
  background: var(--green-soft); border: 1px solid #BFE6D4; border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; justify-content: center;
}
.guarantee .seal { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.guarantee h3 { font-size: 1.5rem; margin-bottom: 12px; }
.guarantee p { color: #2A5A45; font-size: 1.05rem; }
.guarantee .fine { margin-top: 14px; font-size: 0.88rem; color: #4A7A63; }

/* Founder ---------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; max-width: 880px; margin: 0 auto; }
.founder-photo { width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.founder blockquote { font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; line-height: 1.4; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.founder .name { font-weight: 600; color: var(--ink); }
.founder .role { color: var(--ink-soft); font-size: 0.98rem; }
.founder .epic { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.92rem; color: var(--accent-dark); background: var(--accent-soft); padding: 7px 13px; border-radius: 100px; }

/* Proof tiles ------------------------------------------------------------ */
.proof-tile { text-align: left; }
.proof-tile .big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; }
.proof-tile p { margin-top: 8px; font-size: 0.96rem; }
.proof-tile .src { margin-top: 10px; font-size: 0.78rem; color: var(--ink-faint); }
.proof-open {
  border: 1px dashed var(--border-strong); background: transparent; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.proof-open .tag { font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.proof-open p { color: var(--ink-soft); }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink);
  padding: 22px 40px 22px 0; position: relative; display: block;
}
.faq-q::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 22px; font-size: 1rem; }

/* Final CTA -------------------------------------------------------------- */
.cta-final { background: var(--surface-ink); border-radius: 0; }
.cta-final .container { text-align: center; }
.cta-final h2 { color: #fff; max-width: 640px; margin: 0 auto 16px; }
.cta-final p { color: var(--on-dark-soft); font-size: 1.12rem; max-width: 560px; margin: 0 auto 30px; }
.cta-final .guarantee-restate { margin-top: 22px; font-size: 0.95rem; color: var(--on-dark-soft); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 960px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field textarea { resize: vertical; min-height: 110px; }

/* Footer ----------------------------------------------------------------- */
footer { background: var(--surface-ink); color: var(--on-dark-soft); padding: 56px 0 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
footer .wordmark { color: #fff; }
.footer-tagline { margin-top: 10px; max-width: 320px; font-size: 0.95rem; color: var(--on-dark-soft); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--on-dark-soft); font-size: 0.95rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-data { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; color: var(--on-dark-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: 0; }
  .offer-wrap { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
  .founder .epic { margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 120px 0 50px; }
}
@media (min-width: 901px) {
  .proof-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
