/* Atenta — tokens do design system (paleta Petróleo) */
:root {
  --primary: #0F5E73;
  --primary-hover: #0A4353;
  --ink: #0E2430;
  --muted: #4A5960;
  --ground: #F5F8F9;
  --surface: #FFFFFF;
  --tint: #E0EFF3;
  --border: #D8E1E4;
  --accent: #F2A341;
  --on-dark-muted: #C6D4D9;

  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-22: 88px;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 54px); line-height: 1.06; }
h2 { font-size: clamp(28px, 4.4vw, 36px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 26px; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--accent); }
section[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 12px 16px; border-radius: var(--radius-md); z-index: 10; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { max-width: 1160px; margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }
.section { padding-top: var(--space-22); padding-bottom: var(--space-22); }
.dark { background: var(--ink); color: var(--surface); }
.dark .text-muted { color: var(--on-dark-muted); }
.tinted { background: var(--tint); }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stack { display: flex; flex-direction: column; gap: var(--space-10); }
.head { display: flex; flex-direction: column; gap: var(--space-2); max-width: 680px; }
.lead { font-size: 19px; line-height: 28px; }
.text-muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.label { font-size: 14px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.dark .label { color: var(--accent); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--surface); }
.btn-primary:hover { background: var(--primary-hover); color: var(--surface); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { color: var(--primary-hover); border-color: var(--primary); }
.btn-sm { min-height: 44px; padding: 10px 20px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Cabeçalho */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav-link { color: var(--ink); text-decoration: none; padding: 10px 0; }

/* Topo */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: var(--space-22); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.hero-copy .lead { max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.pills li { background: var(--tint); padding: 6px 14px; border-radius: var(--radius-pill); }
.hero-visual { flex: 1 1 400px; min-width: 0; background: var(--tint); border-radius: var(--radius-lg); padding: 40px var(--space-6); display: flex; justify-content: center; }

/* Exemplo de conversa */
.chat { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 48px rgba(14, 36, 48, 0.10); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.chat-who { flex: 1 1 auto; min-width: 0; }
.chat-who strong { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.chat-who span { font-size: 13px; line-height: 18px; color: var(--muted); }
.presence { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.bubble { padding: 10px 14px; font-size: 15px; line-height: 22px; }
.bubble-patient { align-self: flex-end; max-width: 82%; background: var(--tint); border-radius: 16px 16px 4px 16px; }
.bubble-assistant { align-self: flex-start; max-width: 86%; background: var(--ground); border-radius: 16px 16px 16px 4px; }
.chat-tag { align-self: center; margin-top: 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--primary); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--radius-pill); text-align: center; }

/* Grades e cartões */
.grid { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.grid > * { flex: 1 1 280px; min-width: 0; }
.grid-wide > * { flex-basis: 320px; }
.item { display: flex; flex-direction: column; gap: var(--space-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.card-ground { background: var(--ground); border: 0; }
.card-plain { border: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: var(--space-2); }
.step { align-self: flex-start; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); background: var(--tint); padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-2); }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-2); }

/* Funil */
.funnel { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.funnel-col { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.funnel-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.funnel-col.is-active .funnel-title { color: var(--primary); }
.funnel-card { background: var(--ground); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; line-height: 20px; }
.funnel-col.is-active .funnel-card { background: var(--tint); }
.funnel-card strong { display: block; }
.note { margin-top: calc(var(--space-4) - var(--space-10)); }

/* Duas colunas */
.split { display: flex; flex-wrap: wrap; gap: var(--space-10); align-items: flex-start; }
.split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.split-main { flex: 2 1 480px; min-width: 0; }
.split-center { align-items: center; }
.limits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.limits li { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.limits li:last-child { padding-bottom: 0; border-bottom: 0; }

/* Lista de espera */
.waitlist-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.waitlist-copy .lead { max-width: 480px; }
.form { flex: 1 1 380px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input { font: inherit; color: var(--ink); background: var(--surface); padding: 12px 16px; min-height: 48px; border: 1px solid var(--muted); border-radius: var(--radius-sm); }
.form .text-muted { color: var(--muted); }
.form-status { font-size: 14px; line-height: 20px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--primary); }
.form-status.is-error { color: var(--ink); background: var(--tint); padding: 12px 16px; border-radius: var(--radius-sm); }

/* Dúvidas */
.faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-6); }
.faq-item { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); }
.faq-item:last-child { padding-bottom: 0; border-bottom: 0; }

/* Rodapé */
.site-footer { color: var(--on-dark-muted); font-size: 14px; line-height: 20px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-10); padding-bottom: var(--space-10); }
.site-footer img { height: 26px; width: auto; display: block; }

@media (max-width: 760px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: var(--space-10); }
  .nav-link { display: none; }
  .hero-visual { padding: var(--space-6) var(--space-4); }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
