/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF7;
  --bg-alt: #F0EFE9;
  --fg: #1A1A18;
  --fg-muted: #5A5A54;
  --green: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #40916C;
  --green-tint: #A7D7C5;
  --amber: #D97706;
  --white: #FFFFFF;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 24, 0.08);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 5px 12px;
  border-radius: 100px;
}

/* === HERO === */
.hero {
  padding: 80px 32px 72px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--green);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

.stats-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 26, 24, 0.1);
}

.stat-item:first-child {
  border-top: 1px solid rgba(26, 26, 24, 0.1);
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--green);
  letter-spacing: 0.01em;
  min-width: 80px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* === FEATURES === */
.features {
  background: var(--green);
  padding: 80px 32px;
}

.features-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.feature-card {
  background: var(--green-mid);
  padding: 36px 32px;
}

.feature-card--primary {
  background: rgba(255,255,255,0.07);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.375rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--green-tint);
  line-height: 1.65;
}

/* === PROCESS === */
.process {
  background: var(--bg-alt);
  padding: 80px 32px;
}

.process-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--green-tint);
  opacity: 0.6;
  line-height: 1;
}

.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: 0.03em;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === GUARANTEE === */
.guarantee {
  background: var(--bg);
  padding: 80px 32px;
}

.guarantee-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.guarantee-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.guarantee-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.guarantee-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.guarantee-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.guarantee-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 500;
}

.detail-check {
  color: var(--green-light);
  font-weight: 700;
  font-size: 1.1rem;
}

/* === CLOSING === */
.closing {
  background: var(--green);
  padding: 96px 32px;
}

.closing-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.closing-content {
  max-width: 640px;
}

.closing-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1.0625rem;
  color: var(--green-tint);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-revenue {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rev-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rev-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--amber);
  letter-spacing: 0.01em;
}

.rev-label {
  font-size: 0.8125rem;
  color: var(--green-tint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.rev-divider {
  width: 1px;
  height: 40px;
  background: rgba(167, 215, 197, 0.3);
}

/* === FOOTER === */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(26, 26, 24, 0.08);
  padding: 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: var(--green);
  letter-spacing: 0.02em;
}

.footer-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  border-left: 1px solid rgba(26,26,24,0.15);
  padding-left: 16px;
}

.footer-links {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* === BUTTONS === */
.btn-primary{display:inline-block;background:var(--green);color:var(--white);font-weight:600;font-size:.9375rem;padding:12px 24px;border-radius:8px;text-decoration:none;transition:background .2s;}
.btn-primary:hover{background:var(--green-mid);}
.btn-secondary{display:inline-block;background:var(--bg-alt);color:var(--fg);font-weight:500;font-size:.9375rem;padding:12px 24px;border-radius:8px;text-decoration:none;border:1px solid rgba(26,26,24,.12);transition:background .2s;}
.btn-secondary:hover{background:var(--bg);}
.btn-large{font-size:1rem;padding:14px 32px;}
.cta-row{margin-top:32px;text-align:center;}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px;}

/* === PHONE MOCKUP === */
.demo-phone{background:#1a1a18;border-radius:32px;padding:12px;box-shadow:0 20px 60px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.08);max-width:280px;margin-left:auto;}
.phone-header{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:4px;}
.phone-dots{display:flex;gap:5px;}
.phone-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.2);}
.phone-clinic{color:rgba(255,255,255,.6);font-size:.75rem;font-weight:500;margin-left:auto;margin-right:auto;}
.chat-window{background:#252523;border-radius:16px 16px 4px 4px;padding:14px;min-height:280px;display:flex;flex-direction:column;gap:10px;}
.chat-msg{display:flex;gap:8px;align-items:flex-end;animation:msgIn .3s ease;}
.chat-msg.user{flex-direction:row-reverse;}
.chat-avatar{width:28px;height:28px;border-radius:50%;background:var(--green);color:white;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:flex-end;}
.chat-bubble{background:rgba(255,255,255,.08);color:rgba(255,255,255,.9);padding:10px 14px;border-radius:16px;font-size:.875rem;line-height:1.5;max-width:200px;}
.chat-bubble.user{background:var(--green);color:white;border-bottom-right-radius:4px;}
.chat-msg.bot .chat-bubble{border-bottom-left-radius:4px;}
.phone-input{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#252523;border-radius:4px 4px 12px 12px;margin-top:4px;}
.phone-input span{color:rgba(255,255,255,.3);font-size:.8125rem;flex:1;}
.phone-send{background:var(--green);color:white;border:none;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:1rem;}

/* === LIVE CHATBOT === */
.process{background:var(--bg-alt);}
.section-title--dark{color:var(--green)!important;}
.process-sub{font-size:1.0625rem;color:var(--fg-muted);max-width:600px;margin:-30px 0 40px;}
.chatbot-demo-wrapper{display:grid;grid-template-columns:380px 1fr;gap:32px;align-items:start;}
.chatbot-frame{background:white;border-radius:20px;box-shadow:0 8px 40px rgba(0,0,0,.12);overflow:hidden;border:1px solid rgba(26,26,24,.08);}
.chatbot-header{background:var(--green);padding:16px 20px;display:flex;align-items:center;gap:12px;}
.chatbot-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);color:white;font-family:'Bebas Neue',sans-serif;font-size:1.25rem;display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.4);}
.chatbot-info{display:flex;flex-direction:column;}
.chatbot-name{color:white;font-weight:600;font-size:.9375rem;}
.chatbot-status{color:var(--green-tint);font-size:.75rem;}
.chatbot-body{padding:20px;min-height:320px;display:flex;flex-direction:column;gap:12px;}
.quick-replies{display:flex;flex-direction:column;gap:8px;}
.quick-reply{background:var(--bg-alt);border:1px solid rgba(26,26,24,.12);border-radius:20px;padding:10px 16px;font-size:.875rem;font-weight:500;color:var(--fg);cursor:pointer;text-align:left;transition:all .15s;}
.quick-reply:hover{background:var(--green);color:white;border-color:var(--green);}
.chatbot-input-area{display:flex;gap:8px;padding:14px 16px;border-top:1px solid rgba(26,26,24,.08);background:white;}
#chat-input{flex:1;border:1px solid rgba(26,26,24,.12);border-radius:24px;padding:10px 16px;font-size:.9375rem;font-family:'DM Sans',sans-serif;outline:none;color:var(--fg);background:var(--bg-alt);}
#chat-input:focus{border-color:var(--green);}
#chat-send{background:var(--green);color:white;border:none;width:40px;height:40px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
#chat-send:hover{background:var(--green-mid);}
.typing-dots{display:flex;gap:4px;padding:4px 0;}
.typing-dots span{width:6px;height:6px;border-radius:50%;background:rgba(26,26,24,.3);animation:dot-pulse 1.2s infinite;}
.typing-dots span:nth-child(2){animation-delay:.2s;}
.typing-dots span:nth-child(3){animation-delay:.4s;}
@keyframes dot-pulse{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}

/* === FLOW SIDEBAR === */
.flow-sidebar{background:white;border-radius:20px;padding:24px;box-shadow:0 4px 20px rgba(0,0,0,.08);border:1px solid rgba(26,26,24,.08);}
.flow-title{font-family:'Bebas Neue',sans-serif;font-size:1.25rem;color:var(--green);letter-spacing:.03em;margin-bottom:20px;}
.flow-step{display:flex;align-items:center;gap:14px;padding:16px;border-radius:12px;margin-bottom:10px;background:var(--bg-alt);transition:all .3s;}
.flow-step.active{background:var(--green-tint);transform:scale(1.02);}
.flow-step.completed{background:#d4edda;}
.flow-icon{font-size:1.5rem;flex-shrink:0;}
.flow-content{flex:1;}
.flow-step-title{font-weight:600;font-size:.9375rem;color:var(--fg);}
.flow-step-sub{font-size:.8125rem;color:var(--fg-muted);margin-top:2px;}
.flow-check{color:var(--green-light);font-weight:700;font-size:1.1rem;opacity:.3;}
.hubspot-badge{display:inline-flex;align-items:center;gap:6px;background:#FFF4F1;border:1px solid #FFD5C8;color:#D4501E;font-size:.8125rem;font-weight:600;padding:8px 14px;border-radius:20px;margin-top:16px;}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .chatbot-demo-wrapper { grid-template-columns: 1fr; }
  .demo-phone { margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero { padding: 56px 20px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .features { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }

  .process { padding: 56px 20px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }

  .guarantee { padding: 56px 20px; }
  .guarantee-details { grid-template-columns: 1fr; }

  .closing { padding: 64px 20px; }
  .closing-revenue { flex-direction: column; align-items: flex-start; gap: 16px; }
  .rev-divider { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-tag { border-left: none; padding-left: 0; }
  .nav-inner { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 3rem; }
  .avail-btn { font-size: .8125rem; padding: 8px 12px; }
}