@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #003DA5;
  --primary-light: #002D7A;
  --charcoal: #1B2332;
  --slate: #64748B;
  --cool-white: #F8FAFC;
  --white: #FFFFFF;
  --amber: #E2862A;
  --amber-soft: #FEF3E2;
  --green: #16A34A;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  z-index: 100;
  padding: 16px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--slate); font-family: var(--font-body); font-size: 0.85rem; font-weight: 300; margin-left: 4px; }
nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul li a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover { color: var(--charcoal); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: #CC7422; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-text {
  background: none;
  color: var(--primary);
  padding: 12px 0;
  font-weight: 500;
}
.btn-text:hover { color: var(--primary-light); }

/* HERO */
.hero {
  padding: 100px 0 80px;
  background: var(--cool-white);
  text-align: center;
}
.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--charcoal);
  max-width: 720px;
  margin: 0 auto 24px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* COMPARISON */
.comparison {
  padding: 80px 0;
}
.comparison h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.comparison-card {
  border-radius: 12px;
  padding: 40px;
}
.comparison-card.old {
  background: var(--red-soft);
  border: 1px solid #FECACA;
}
.comparison-card.new {
  background: var(--amber-soft);
  border: 1px solid #FDE68A;
}
.comparison-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--charcoal);
}
.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comparison-card ul li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
  padding-left: 28px;
  position: relative;
}
.comparison-card.old ul li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.comparison-card.new ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* FEATURES */
.features {
  padding: 80px 0;
  background: var(--cool-white);
}
.features h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}
.features > .container > p {
  text-align: center;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid #E2E8F0;
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--amber-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* BILLING */
.billing {
  padding: 80px 0;
  background: var(--charcoal);
  color: var(--white);
}
.billing h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  max-width: 560px;
  margin: 0 auto 24px;
  text-align: center;
}
.billing > .container > p {
  text-align: center;
  color: #94A3B8;
  max-width: 540px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.billing-stat {
  background: rgba(226,134,42,0.15);
  border: 1px solid rgba(226,134,42,0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.billing-stat .number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--amber);
}
.billing-stat .label {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* EMOTIONAL */
.emotional {
  padding: 100px 0;
  text-align: center;
}
.emotional h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  max-width: 560px;
  margin: 0 auto 24px;
}
.emotional p {
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ROI CALCULATOR */
.roi {
  padding: 80px 0;
  background: var(--cool-white);
}
.roi h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}
.roi > .container > p.subtitle {
  text-align: center;
  color: var(--slate);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.roi-calc {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.roi-inputs {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid #E2E8F0;
}
.roi-inputs label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  margin-top: 20px;
}
.roi-inputs label:first-child { margin-top: 0; }
.roi-inputs input, .roi-inputs select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cool-white);
}
.roi-results {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roi-results h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 24px;
}
.roi-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.roi-line.total {
  border-top: 2px solid var(--amber);
  border-bottom: none;
  margin-top: 16px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 1.1rem;
}
.roi-line.total .value { color: var(--amber); font-family: var(--font-heading); font-size: 1.4rem; }
.roi-line .label-text { color: #94A3B8; }
.roi-line .value { color: var(--white); font-weight: 600; }

/* PATIENT EXPERIENCE */
.patient-exp {
  padding: 80px 0;
}
.patient-exp h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}
.patient-exp > .container > p.subtitle {
  text-align: center;
  color: var(--slate);
  margin-bottom: 48px;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.patient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.patient-card {
  text-align: center;
  padding: 36px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: var(--white);
}
.patient-card .icon {
  width: 56px;
  height: 56px;
  background: var(--amber-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}
.patient-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.patient-card p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CONTACT / DEMO */
.contact {
  padding: 80px 0;
  background: var(--cool-white);
}
.contact-inner {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.contact-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}
.contact-inner p.subtitle {
  text-align: center;
  color: var(--slate);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.contact-inner label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  margin-top: 16px;
}
.contact-inner label:first-of-type { margin-top: 0; }
.contact-inner input, .contact-inner select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cool-white);
}
.contact-inner input:focus, .contact-inner select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,110,0.1);
}
.contact-inner .btn { width: 100%; text-align: center; margin-top: 24px; }
.contact-inner .micro {
  text-align: center;
  color: var(--slate);
  font-size: 0.8rem;
  margin-top: 12px;
}

/* CHAT WIDGET */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}
.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,110,110,0.3);
  transition: background 0.2s;
}
.chat-toggle:hover { background: var(--primary-light); }
.chat-box {
  display: none;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.chat-box.open { display: block; }
.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.chat-messages {
  padding: 20px;
  min-height: 120px;
}
.chat-bubble {
  background: var(--cool-white);
  border-radius: 12px 12px 12px 4px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 12px;
}
.chat-bubble.suggestion {
  background: var(--amber-soft);
  font-size: 0.8rem;
  color: var(--slate);
  font-style: italic;
}
.chat-input-area {
  border-top: 1px solid #E2E8F0;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.chat-input-area button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

/* FOOTER */
footer {
  background: var(--charcoal);
  color: #94A3B8;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { color: #94A3B8; font-size: 0.85rem; margin-top: 8px; }
footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: #94A3B8; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.trust-badges { display: flex; gap: 16px; }
.trust-badge {
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .comparison-grid, .features-grid, .patient-grid, .roi-calc, .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .hero { padding: 60px 0; }
}
