﻿/* ==========================================================================
   base.css — cores, tipografia, botões e estrutura comum
   ATENÇÃO: o index.html tem uma CÓPIA deste arquivo inline no <head>
   (CSS crítico). Ao mudar algo aqui, copie também para lá.
   ========================================================================== */
:root {
  --bg: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #16384A;
  --ink-2: #2B5266;
  --muted: #5A6270;
  --line: #E6E0D2;
  --cta: #C9472F;        /* coral da marca (#E2583E) escurecido para contraste AA com texto branco */
  --cta-hover: #B23C26;
  --coral: #E2583E;      /* coral original, usado só em detalhes gráficos */
  --hl: #CDEBC0;         /* marca-texto */
  --ok: #23663F;
  --err: #B42318;
  --a1: #DCEBF5; --a2: #B5D4EA; --b1: #7FAFD3; --b2: #3E7DAE; --c1: #1D4E78;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 56, 74, .06), 0 6px 20px rgba(22, 56, 74, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 7.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 .08em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra superior */
.topbar { background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; text-align: center; padding: 8px 12px; }
.topbar span { white-space: nowrap; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand-tag { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 5px; letter-spacing: .04em; }

/* Botões (área de toque mínima de 48px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 12px;
  font: 700 17px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 0 #9E3522; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-cta[disabled] { opacity: .7; cursor: progress; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.micro { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.price-ref { text-decoration: line-through; color: var(--muted); }
