/* Estrutura e componentes. Valores visuais vêm de tokens.css. Mobile primeiro. */

/* ---------- Base ---------- */
*, *::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-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--heading); line-height: 1.2; margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
mark.ph { background: var(--ph); color: var(--ink); padding: 0 .2em; border-radius: 3px; font-family: ui-monospace, monospace; font-size: .9em; }

.skip { position: absolute; left: var(--s-2); top: -100px; background: var(--surface); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip:focus { top: var(--s-2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gap-top { margin-top: var(--s-5); }
.gap-top-sm { margin-top: var(--s-3); }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: var(--s-6); }
.report--flush { margin-top: 0; }
.consent label { font-weight: 400; }
.hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: var(--s-4); background: var(--olive); border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.section { padding-block: var(--section); }
.section--soft { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark a { color: var(--on-dark); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.eyebrow {
  display: inline-block; margin-bottom: var(--s-4);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em;
  color: var(--azure); background: var(--soft-ok);
  padding: var(--s-1) var(--s-3); border-radius: var(--r-sm);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); border: 2px solid transparent;
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  width: 100%;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); color: var(--secondary); border-color: var(--secondary); }
.btn--secondary:hover { background: var(--soft-ok); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.link-quiet { font-weight: 700; }
@media (min-width: 768px) {
  .btn { width: auto; }
  .btn-row { display: flex; flex-wrap: wrap; }
}

/* ---------- Topo ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: var(--s-4); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--azure); text-decoration: none; letter-spacing: .06em; line-height: 1.1; padding-bottom: 4px; border-bottom: 3px solid var(--olive); }
.brand small { display: block; font: 400 .6875rem/1.3 var(--font-body); letter-spacing: .02em; color: var(--slate); }
.topbar__cta { display: none; }
@media (min-width: 768px) { .topbar__cta { display: inline-flex; width: auto; min-height: 44px; padding-block: var(--s-2); } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero__sub { margin-top: var(--s-4); }
.hero__note { margin-top: var(--s-4); display: flex; gap: var(--s-2); align-items: flex-start; }
.hero__note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--azure); }
@media (min-width: 1024px) {
  .hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-8); align-items: center; }
}
.hero__aside { display: none; }
@media (min-width: 1024px) { .hero__aside { display: block; } }

/* ---------- Cartões e grades ---------- */
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout { margin-top: var(--s-6); background: var(--paper); border-left: 4px solid var(--olive); border-radius: var(--r-sm); padding: var(--s-5); font-size: var(--fs-lead); }
.callout p:last-child { margin: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: var(--s-3); }
.checklist li svg { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; color: var(--olive); }

/* Relatório de exemplo */
.report { position: relative; margin-top: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.report__label { display: block; padding: var(--s-3) var(--s-4); background: var(--soft-warn); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.report th, .report td { text-align: left; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); vertical-align: top; }
.report th { font-weight: 700; }
.prio { display: inline-block; padding: 0 var(--s-2); border-radius: var(--r-pill); font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.prio--alta { background: var(--soft-alert); color: var(--alert-ink); }
.prio--media { background: var(--soft-warn); color: var(--ink); }
.prio--baixa { background: var(--soft-ok); color: var(--azure); }
/* No celular a tabela vira lista empilhada */
@media (max-width: 599px) {
  .report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report tr { display: block; border-top: 1px solid var(--line); padding: var(--s-3) var(--s-4); }
  .report td { display: block; border: 0; padding: 0 0 var(--s-1); }
  .report td::before { content: attr(data-th) ": "; font-weight: 700; }
}

/* Pacotes */
.plans { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.plan--featured { border: 2px solid var(--azure); border-top: 6px solid var(--olive); box-shadow: var(--shadow); }
.plan__badge { align-self: flex-start; background: var(--azure); color: var(--paper); font-size: var(--fs-small); font-weight: 700; padding: 2px var(--s-3); border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.plan__price { font-size: var(--fs-h3); font-weight: 700; margin: var(--s-4) 0 var(--s-1); }
.plan__meta { list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-small); color: var(--ink-muted); }
.plan .btn { margin-top: auto; }

/* Passos */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: var(--s-7); }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: #fff; font-weight: 700; font-size: 1.25rem; font-family: var(--font-display);
}
.banner { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); text-align: center; }

/* Garantia */
.guarantee { background: var(--dark); color: var(--on-dark); border-left: 4px solid var(--sage); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); }
.guarantee h2 { color: var(--on-dark); }
.guarantee .checklist li svg { color: var(--sage); }
.guarantee .muted { color: var(--sage); }
.guarantee__no { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgb(247 245 239 / .3); }

/* Quem faz */
.about { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .about { grid-template-columns: 240px 1fr; align-items: start; } }
.about__photo { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; border-radius: var(--r-md); object-fit: cover; }
.about__initials { display: grid; place-items: center; background: var(--azure); color: var(--paper); font: 700 4rem/1 var(--font-display); }
.quote { font-style: italic; font-size: var(--fs-lead); line-height: 1.55; color: var(--azure); border-left: 3px solid var(--olive); padding-left: var(--s-4); margin: var(--s-5) 0; }

/* Também fazemos */
.services { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); } }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.services strong { display: block; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s-4) 40px var(--s-4) 0; position: relative;
  font-weight: 700; min-height: var(--tap); display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--azure); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: var(--s-4); }

/* ---------- Formulário ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 768px) { .form-wrap { padding: var(--s-7); } }
.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: var(--s-1); }
.field .hint { display: block; font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: var(--s-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: var(--tap); padding: var(--s-3);
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.field input[type="file"] { width: 100%; font: inherit; font-size: var(--fs-small); padding: var(--s-3) 0; }
.field input[aria-invalid="true"] { border: 2px solid var(--error); }
.error { display: block; color: var(--error); font-size: var(--fs-small); font-weight: 700; margin-top: var(--s-1); }
.error:empty { display: none; }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--azure); }
.form-status { margin-top: var(--s-4); font-weight: 700; }
.form-status[data-kind="error"] { color: var(--error); }
.hp { position: absolute; left: -9999px; }

/* ---------- Barra fixa no celular ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: rgb(247 245 239 / .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-fast);
}
.stickybar.is-visible { transform: none; }
@media (min-width: 768px) { .stickybar { display: none; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy); color: var(--paper); padding-block: var(--s-7) calc(var(--s-7) + 72px); font-size: var(--fs-small); }
.footer a { color: var(--paper); }
.footer__brand { font: 700 1rem/1.3 var(--font-display); letter-spacing: .04em; }
.footer__tagline { font-style: italic; color: var(--sage); }
.footer p { margin-bottom: var(--s-2); }
@media (min-width: 768px) { .footer { padding-bottom: var(--s-7); } }

/* Páginas simples (obrigado, privacidade, descadastro, 404) */
.page { padding-block: var(--s-7) var(--s-8); }
.page h2 { font-size: var(--fs-h3); margin-top: var(--s-6); }
.page ol { padding-left: 1.5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Hero por gancho (js/hook.js marca <html data-hook>) ---------- */
html[data-hook="cal"] div[data-hook="geral"], html[data-hook="ppp"] div[data-hook="geral"] { display: none; }
html[data-hook="cal"] div[data-hook="cal"], html[data-hook="ppp"] div[data-hook="ppp"] { display: block; }

/* ======================================================================
   v2 (21/10/2026): páginas por gancho, valores, confiança
   ====================================================================== */
.section--tight-top { padding-top: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.hero--short { padding-block: var(--s-7) var(--s-6); }
.btn--ghost { background: transparent; color: var(--primary); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover { text-decoration-thickness: 2px; }
.link-more { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; text-decoration: none; margin-top: auto; }
.link-more svg { width: 18px; height: 18px; }
.link-more:hover { text-decoration: underline; }

/* Navegação do topo */
.topnav { display: none; }
@media (min-width: 1024px) {
  .topnav { display: flex; gap: var(--s-5); margin-left: auto; margin-right: var(--s-5); }
  .topnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
  .topnav a:hover { color: var(--primary); text-decoration: underline; }
}

/* Provas curtas sob o CTA */
.proof { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.proof li { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--azure); }
.proof svg { width: 18px; height: 18px; color: var(--olive); flex: none; }

/* Portas (cartões-link) */
.door { display: flex; flex-direction: column; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.door:hover { border-color: var(--azure); box-shadow: var(--shadow); }
.door > svg { width: 36px; height: 36px; color: var(--olive); }
.door__kicker { font-size: var(--fs-small); font-weight: 700; color: var(--olive-ink, #5c5c00); text-transform: uppercase; letter-spacing: .04em; }
.door__title { font: 700 var(--fs-h3)/1.3 var(--font-display); color: var(--heading); }
.door__price { font-weight: 700; color: var(--azure); }
.door__link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--primary); margin-top: var(--s-2); }
.door__link svg { width: 18px; height: 18px; }

/* Números do Censo */
.stats { display: grid; gap: var(--s-4); margin: var(--s-6) 0 var(--s-3); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 4px solid var(--olive); background: var(--surface); border-radius: 0 0 var(--r-md) var(--r-md); padding: var(--s-5); }
.stat__n { display: block; font: 700 2.5rem/1 var(--font-display); color: var(--azure); margin-bottom: var(--s-2); }
.stat__t { display: block; }

/* Ofertas com valor */
.offers { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.offer { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.offer > svg { width: 32px; height: 32px; color: var(--olive); margin-bottom: var(--s-3); }
.offer h3 { margin-bottom: var(--s-2); }
.offer--featured { border: 2px solid var(--azure); border-top: 6px solid var(--olive); box-shadow: var(--shadow); }
.offer__price { font: 700 var(--fs-h3)/1.2 var(--font-display); color: var(--azure); margin: var(--s-3) 0 var(--s-1); }
.offer__meta { font-size: var(--fs-small); color: var(--ink-muted); }
.also { margin-top: var(--s-6); }
.also h3 { margin-bottom: var(--s-4); }

/* Caixa de preço nas páginas de serviço */
.price-box { display: grid; gap: var(--s-4); align-items: center; margin-top: var(--s-6); background: var(--surface); border: 2px solid var(--azure); border-radius: var(--r-md); padding: var(--s-5); }
@media (min-width: 768px) { .price-box { grid-template-columns: 1fr auto; padding: var(--s-6); } }
.price-box__label { font-weight: 700; margin-bottom: var(--s-1); }
.price-box__value { font: 700 1.75rem/1.2 var(--font-display); color: var(--azure); margin-bottom: var(--s-2); }
.price-box p:last-child { margin-bottom: 0; }

/* Coordenação: texto + âncora */
.split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.anchor { background: var(--dark); color: var(--on-dark); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); }
.anchor__label { font-weight: 700; color: var(--sage); margin-bottom: var(--s-2); }
.anchor__value { font: 700 2rem/1.1 var(--font-display); margin-bottom: var(--s-4); }
.anchor__value small { font-size: 1rem; font-weight: 400; }
.anchor__note { font-size: var(--fs-small); }
.anchor .btn--primary { background: var(--paper); color: var(--azure); margin-top: var(--s-3); }
.anchor .btn--primary:hover { background: #fff; }

/* Escola fundadora */
.founder { border: 2px dashed var(--olive); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); background: var(--surface); max-width: 52rem; }
.founder__tag { display: inline-block; background: var(--soft-warn); color: var(--ink); font-weight: 700; font-size: var(--fs-small); padding: 2px var(--s-3); border-radius: var(--r-pill); }

/* Cartões com ícone */
.card--icon > svg { width: 28px; height: 28px; color: var(--olive); margin-bottom: var(--s-3); }

/* Folha de exemplo e tabelas de dados */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); position: relative; box-shadow: var(--shadow); }
@media (min-width: 768px) { .sheet { padding: var(--s-7); } }
.sheet__tag { display: inline-block; background: var(--soft-warn); font-weight: 700; font-size: var(--fs-small); padding: 2px var(--s-3); border-radius: var(--r-pill); }
.sheet__next { margin-top: var(--s-5); padding: var(--s-4); background: var(--soft-ok); border-radius: var(--r-sm); }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin: var(--s-4) 0; }
.data th, .data td { text-align: left; padding: var(--s-3); border-top: 1px solid var(--line); vertical-align: top; }
.data th { font-weight: 700; background: var(--bg); }
@media (max-width: 599px) {
  .sheet .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet .data tr { display: block; border-top: 1px solid var(--line); padding: var(--s-3) 0; }
  .sheet .data td { display: block; border: 0; padding: 0 0 var(--s-1); }
  .sheet .data td::before { content: attr(data-th) ": "; font-weight: 700; }
}
.prose h2 { margin-top: var(--s-6); }
.prose .data { min-width: 640px; }

/* Formulário: select e garantias */
.field select { width: 100%; min-height: var(--tap); padding: var(--s-3); font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.form-assurance { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); color: var(--ink-muted); }
.form-assurance li { display: flex; gap: var(--s-2); align-items: flex-start; }
.form-assurance svg { width: 18px; height: 18px; color: var(--olive); flex: none; margin-top: 3px; }

/* Rodapé em colunas */
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer__head { font-weight: 700; color: var(--sage); }

/* Barra fixa com dois botões */
.stickybar { display: flex; gap: var(--s-2); }
.stickybar .btn { flex: 1 1 auto; width: auto; min-width: 0; padding-inline: var(--s-3); white-space: nowrap; }
.stickybar .btn--icon { flex: 0 0 auto; }
@media (min-width: 768px) { .stickybar { display: none; } }
.stickybar .btn { font-size: 1rem; }
@media (max-width: 389px) {
  .stickybar .btn--icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stickybar .btn--icon { padding-inline: var(--s-4); }
}
