/* Norteia — páginas da consulta. Cores, tipos e raios do design system Norteia. */
:root {
  --verde: #173b34;
  --laranja: #e7652b;
  --carvao: #101713;
  --nevoa: #a8b9ae;
  --surface: #f6f5f0;
  --raised: #ffffff;
  --ink-muted: #567069;
  --line: #c5ccc6;
  --line-soft: #e4e5e0;
  --erro: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--verde);
  font-family: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--verde); }
a:hover { color: var(--carvao); }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--laranja);
}
h1, h2 { font-family: Outfit, system-ui, sans-serif; font-weight: 500; margin: 0; }
h1 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
h1:focus { outline: none; }
h2 { font-size: 20px; line-height: 26px; }
p { margin: 0; }
.muted { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.small { font-size: 13px; line-height: 18px; }
.center { text-align: center; }

/* Topo */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--raised); border-bottom: 1px solid var(--line-soft);
}
.top .logo { width: 104px; height: auto; display: block; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--verde); }
.secure { width: 64px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }

.wrap { max-width: 480px; margin: 0 auto; padding: 20px 20px 48px; }
main > section { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; }
.intro { display: flex; flex-direction: column; gap: 8px; }

/* Etapas */
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.steps li[data-etapa] { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.steps .line { flex: 1; height: 1px; background: var(--line); }
.steps .dot { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps li.is-current { color: var(--verde); font-weight: 600; }
.steps li.is-current .dot { background: var(--verde); border-color: var(--verde); color: #fff; }
.steps li.is-done .dot { background: var(--laranja); border-color: var(--laranja); color: var(--carvao); font-size: 0; }
.steps li.is-done .dot::before { content: ""; width: 10px; height: 5px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.steps .line.is-done { background: var(--laranja); }

/* Cartões e campos */
.card { background: var(--raised); border: 1px solid var(--line-soft); border-radius: 12px; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.summary > div { display: flex; flex-direction: column; gap: 2px; }
.summary-title { font-size: 15px; line-height: 20px; font-weight: 600; }
.price { font-family: Outfit, system-ui, sans-serif; font-size: 20px; line-height: 26px; font-weight: 500; white-space: nowrap; }

form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--raised); color: var(--verde); font-size: 16px;
}
.field textarea { min-height: 112px; padding: 12px 14px; line-height: 22px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--erro); }
.help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.err { font-size: 13px; line-height: 18px; color: var(--erro); font-weight: 500; }
.form-error { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--erro); font-size: 14px; line-height: 20px; }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: 14px; line-height: 20px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--verde); }
.consent a { font-weight: 600; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--nevoa); font-size: 14px; line-height: 20px; }
.mark { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 999px; background: var(--laranja); }

/* Botões */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px;
  border: 0; border-radius: 999px; background: var(--laranja); color: var(--carvao);
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary:hover { color: var(--carvao); filter: brightness(0.96); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-dark { flex: none; min-width: 96px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--verde); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-link { align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--verde); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Pagamento */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-soft); }
.segmented button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--verde); font-size: 15px; font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--verde); color: #fff; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px; }
.qr { align-self: center; width: 200px; height: 200px; border-radius: 12px; image-rendering: pixelated; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; background: var(--surface); color: var(--ink-muted); font-size: 14px; }
.status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-soft); font-size: 14px; line-height: 20px; }
.typing { flex: none; display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--laranja); animation: nt-type 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nt-type { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* Estados finais */
.hero-state { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 8px; }
.hero-state .muted { max-width: 320px; }
.badge { width: 72px; height: 72px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.badge.ok { background: var(--laranja); color: var(--carvao); animation: nt-pop 600ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both; }
.badge.wait { background: var(--nevoa); color: var(--verde); }
@keyframes nt-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.code-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; border-radius: 20px; text-align: center; }
.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.code { font-family: Outfit, system-ui, sans-serif; font-size: 34px; line-height: 40px; font-weight: 500; letter-spacing: 0.04em; }
.bullets { margin: 0; padding: 16px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 20px; }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--laranja); }
.help-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
