:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #617083;
  --line: #d9e0e7;
  --brand: #1769e0;
  --brand-strong: #1155b4;
  --accent: #1769e0;
  --soft: #f0f7ff;
  --warn: #fff7ed;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}

.button.primary {
  border-color: #b8d0f2;
  background: #e8f1ff;
  color: #0b4f9c;
}

.button.primary:hover { border-color: #a6c3ee; background: #d7e7ff; color: #0b4f9c; }
.nav-links a.button.primary:hover { color: #0b4f9c; }

.button.secondary:hover { border-color: #b9c5d1; }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.26);
}

.whatsapp-float:hover {
  background: #15803d;
}

.whatsapp-float svg {
  flex: 0 0 auto;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-weight: 750;
  font-size: 14px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  max-width: 780px;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
}

h3 { font-size: 20px; }

.lead {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
  overflow: hidden;
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.demo-panel-title { font-weight: 750; }
.demo-panel-sub { color: var(--muted); font-size: 13px; }

.appointment-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.appointment {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: 0 2px 5px rgba(23, 32, 42, 0.04);
}

.demo-panel-note {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 12px;
}

.demo-panel-link {
  display: block;
  padding: 0 16px 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.demo-panel-link:hover { color: var(--brand-strong); text-decoration: underline; }

.time { font-weight: 750; color: var(--accent); }
.patient { font-weight: 700; }
.small { color: var(--muted); font-size: 13px; }

.status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.ok { background: #dcfce7; color: #166534; }
.pending { background: #fef3c7; color: #92400e; }
.change { background: #dbeafe; color: #1e40af; }

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.alt .card { background: #fbfcfd; }

.card p,
.text-block p,
.faq p {
  color: var(--muted);
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  font-weight: 850;
  margin-bottom: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.step::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pricing-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-label,
.setup-price,
.monthly-price,
.pricing-note {
  margin: 0;
}

.demo-form {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading h2,
.form-intro,
.form-note {
  margin: 0;
}

.form-heading .eyebrow { margin: 0 0 10px; }

.form-heading h2 { font-size: 28px; }

.form-intro,
.form-note {
  color: var(--muted);
}

.form-note { font-size: 13px; }

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.demo-form label {
  font-weight: 700;
  color: var(--ink);
}

.demo-form label span {
  color: var(--muted);
  font-weight: 400;
}

.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.demo-form input:focus,
.demo-form select:focus {
  outline: 3px solid rgba(30, 112, 173, 0.18);
  border-color: var(--brand);
}

.form-honeypot { display: none; }

.contact-page .whatsapp-float { display: none; }

@media (max-width: 600px) {
  .page-hero h1 { font-size: 38px; overflow-wrap: anywhere; }
  .form-fields { grid-template-columns: 1fr; }
  .demo-form { padding: 24px 18px; }
  .demo-form input { box-sizing: border-box; }
  .appointment { grid-template-columns: 58px 1fr; }
  .appointment .status { grid-column: 2; justify-self: start; }
}

.contact-alternative {
  margin: 22px auto 0;
  text-align: center;
}

.contact-alternative-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-size: 16px;
}

.pricing-label {
  color: var(--muted);
  font-weight: 700;
}

.setup-price {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.monthly-price {
  margin-top: 18px;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}

.price-prefix {
  margin: 18px 0 -10px;
  color: var(--muted);
  font-weight: 700;
}

.monthly-price span {
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}

.pricing-benefit {
  margin: 10px 0 0;
  color: var(--brand);
  font-weight: 800;
}

.pricing-includes {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pricing-includes h3 {
  margin: 0;
}

.pricing-includes ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.pricing-includes li + li { margin-top: 8px; }

.pricing-actions { margin-top: 28px; }

.pricing-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.keyword {
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
}

.cta {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta p {
  color: #cbd5e1;
  margin: 12px 0 0;
}

.cta .button.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
}

.site-footer {
  padding: 34px 0;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
}

.page-hero {
  padding: 58px 0 34px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.text-block {
  max-width: 820px;
}

.text-block ul {
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 0 44px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-fields { grid-template-columns: 1fr; }

  .demo-form { padding: 26px 20px; }

  .appointment {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .whatsapp-float {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }
}
