:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5a6678;
  --line: #dce3ea;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #2563eb;
  --soft: #eaf6f4;
  --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: var(--brand);
  background: var(--brand);
  color: white;
}

.button.primary:hover { background: var(--brand-strong); }

.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;
}

.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(24, 33, 47, 0.08);
  overflow: hidden;
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  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: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.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;
}

.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;
  }

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

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

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