:root {
  --bg: #ffffff;
  --bg-alt: #f0f9f8;
  --bg-dark: #0e2d2a;
  --fg: #0d1f1e;
  --fg-mid: #3d5c59;
  --muted: #6b8c89;
  --accent: #0d9488;
  --accent-hover: #0a7a70;
  --accent-light: #ccfbf1;
  --border: #e0f0ee;
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(13,148,136,0.08), 0 4px 16px rgba(13,148,136,0.06);
  --shadow-lg: 0 8px 40px rgba(13,148,136,0.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; line-height: 1.15; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 0 32px; }
.nav-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-logo { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--fg); font-weight: 500; }
.nav-logo span { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.nav-cta:hover { background: var(--accent-hover); }

/* ── Hero ── */
.hero { background: var(--bg); padding: 80px 0 72px; }
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero-headline { font-size: clamp(2.4rem, 4.2vw, 3.8rem); color: var(--fg); margin-bottom: 20px; }
.hero-sub { font-size: 1.08rem; color: var(--fg-mid); line-height: 1.75; max-width: 480px; margin-bottom: 36px; }
.hero-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 440px; }
.hero-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  color: var(--fg);
  transition: border-color 0.15s;
}
.hero-form input[type="email"]:focus { border-color: var(--accent); }
.hero-form input[type="email"]::placeholder { color: var(--muted); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.hero-form-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.hero-form-note a { color: var(--accent); }
.hero-visual { display: flex; justify-content: flex-end; align-items: center; }
.hero-img { width: 100%; max-width: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* thank you state */
.form-thankyou { display: none; background: var(--accent-light); border: 1.5px solid var(--accent); border-radius: 12px; padding: 16px 20px; }
.form-thankyou.visible { display: block; }
.form-thankyou p { font-size: 0.95rem; color: var(--accent); font-weight: 600; }

/* ── Wake-up section ── */
.wakeup { background: var(--bg-dark); padding: 88px 0; }
.wakeup-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.wakeup-text .section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.wakeup-text h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: #fff; margin-bottom: 24px; }
.wakeup-text p { font-size: 1.0rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 16px; }
.wakeup-results { display: flex; flex-direction: column; gap: 16px; }
.result-row { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; transition: background 0.2s; }
.result-row:hover { background: rgba(255,255,255,0.09); }
.result-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; color: #5eead4; min-width: 80px; }
.result-label { font-size: 0.92rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.result-sub { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── Features ── */
.features { background: var(--bg-alt); padding: 96px 0; }
.features-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--fg); margin-bottom: 16px; }
.section-header p { font-size: 1.0rem; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; background: var(--accent-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.feature-icon svg { color: var(--accent); }
.feature-title { font-size: 1.15rem; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.feature-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ── Credibility / Founder ── */
.credibility { background: var(--bg); padding: 88px 0; }
.credibility-inner { max-width: 760px; margin: 0 auto; padding: 0 32px; text-align: center; }
.founder-badge { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; padding: 6px 16px; margin-bottom: 28px; }
.credibility h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: var(--fg); margin-bottom: 20px; }
.credibility p { font-size: 1.0rem; color: var(--fg-mid); line-height: 1.8; max-width: 600px; margin: 0 auto; }

/* ── CTA bottom ── */
.cta-bottom { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 80px 0; }
.cta-bottom-inner { max-width: 600px; margin: 0 auto; padding: 0 32px; text-align: center; }
.cta-bottom h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--fg); margin-bottom: 16px; }
.cta-bottom p { font-size: 1.0rem; color: var(--muted); margin-bottom: 36px; line-height: 1.7; }
.bottom-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bottom-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  color: var(--fg);
  transition: border-color 0.15s;
}
.bottom-form input[type="email"]:focus { border-color: var(--accent); }
.bottom-form input[type="email"]::placeholder { color: var(--muted); }
.bottom-thankyou { display: none; background: var(--accent-light); border: 1.5px solid var(--accent); border-radius: 12px; padding: 16px 24px; margin-top: 16px; }
.bottom-thankyou.visible { display: block; }
.bottom-thankyou p { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* ── Footer ── */
.footer { background: var(--bg-dark); padding: 48px 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.3rem; color: #fff; }
.footer-logo span { color: #5eead4; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-right { display: flex; gap: 24px; align-items: center; }
.footer-link { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-built { font-size: 0.75rem; color: rgba(255,255,255,0.22); margin-top: 16px; width: 100%; text-align: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07); }

/* ── Demo widget ── */
.demo-section { background: var(--bg); padding: 96px 0; border-top: 1px solid var(--border); }
.demo-inner { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.demo-scenarios { display: flex; gap: 12px; margin: 40px 0 32px; flex-wrap: wrap; }
.demo-btn {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.demo-btn:hover { border-color: var(--accent); box-shadow: var(--shadow); background: var(--bg); }
.demo-btn.active { border-color: var(--accent); background: var(--accent-light); box-shadow: var(--shadow); }
.demo-btn-icon { font-size: 1.4rem; flex-shrink: 0; }
.demo-btn-text { display: flex; flex-direction: column; gap: 3px; }
.demo-btn-text > :first-child { font-size: 0.95rem; font-weight: 600; color: var(--fg); }
.demo-btn-sub { font-size: 0.77rem; color: var(--muted); font-weight: 400; }

.demo-output {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); min-height: 220px;
  box-shadow: var(--shadow);
}
.demo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 220px; color: var(--muted); padding: 40px; text-align: center; }
.demo-placeholder svg { opacity: 0.35; }
.demo-placeholder p { font-size: 0.92rem; color: var(--muted); }

.demo-messages { padding: 0; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 24px; gap: 0; }
.demo-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 14px 20px; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: inherit;
  margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
}
.demo-tab:hover { color: var(--fg); }
.demo-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.demo-pane { padding: 24px; }

/* SMS phone mockup */
.demo-phone { background: #1a1a2e; border-radius: 16px; overflow: hidden; }
.demo-phone-header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.08); }
.demo-phone-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.demo-phone-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-left: 8px; font-weight: 500; }
.demo-bubble-wrap { padding: 20px 16px; min-height: 120px; }
.demo-bubble {
  display: inline-block; max-width: 80%;
  background: #0d9488; color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 14px 18px; font-size: 0.9rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Email mockup */
.demo-email { background: var(--bg-alt); border-radius: 12px; overflow: hidden; }
.demo-email-header { padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.demo-email-field { font-size: 0.85rem; display: flex; gap: 8px; align-items: baseline; }
.demo-email-label { font-weight: 600; color: var(--fg-mid); flex-shrink: 0; }
.demo-email-header #demo-email-subject { color: var(--fg); font-weight: 500; }
.demo-email-body { padding: 20px; font-size: 0.9rem; color: var(--fg-mid); line-height: 1.75; white-space: pre-wrap; min-height: 100px; }

.demo-cta-inline { text-align: center; padding: 18px 24px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); background: var(--bg-alt); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.demo-cta-link { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 4px; }
.demo-cta-link:hover { text-decoration: underline; }

/* ── Founding Dentist section ── */
.founding-section {
  background: var(--bg-dark);
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.founding-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.founding-badge {
  display: inline-block;
  background: rgba(94,234,212,0.15);
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(94,234,212,0.25);
}
.founding-section h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
}
.founding-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}
.founding-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.founding-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.founding-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #5eead4;
}
.founding-list li strong { color: #fff; }
.founding-counter {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  display: inline-block;
  padding: 8px 24px;
  margin-bottom: 32px;
  font-size: 0.88rem;
}
.founding-counter-claimed {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5eead4;
}
.founding-counter-sep,
.founding-counter-total,
.founding-counter-label {
  color: rgba(255,255,255,0.55);
}
.founding-cta-btn {
  display: inline-block;
  background: #5eead4;
  color: #0e2d2a;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 14px;
  width: 100%;
  max-width: 380px;
}
.founding-cta-btn:hover { background: #99f6e4; transform: translateY(-1px); }
.founding-cta-btn:active { transform: translateY(0); }
.founding-cta-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.founding-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.founding-error {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #fca5a5;
}
.founding-error a { color: #fca5a5; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; order: -1; }
  .wakeup-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
  .demo-scenarios { flex-direction: column; }
  .demo-btn { min-width: 0; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero-inner, .wakeup-inner, .features-inner, .credibility-inner, .cta-bottom-inner { padding: 0 20px; }
  .section-inner { padding: 0 20px; }
  .wakeup, .features, .credibility, .cta-bottom { padding: 64px 0; }
  .hero-form { flex-direction: column; }
  .btn-primary { width: 100%; }
  .bottom-form { flex-direction: column; align-items: center; }
  .bottom-form input[type="email"] { max-width: 100%; }
  .demo-section { padding: 64px 0; }
  .demo-inner { padding: 0 20px; }
  .demo-bubble { max-width: 95%; }
  .founding-section { padding: 64px 0; }
  .founding-inner { padding: 0 20px; }
}
