/* ===== Identidade visual Somari ===== */
:root {
  --primary: #620f30;        /* bordô Somari */
  --primary-dark: #4a0b24;
  --primary-light: #802249;
  --primary-soft: #f5eaee;
  --ink: #2a1520;            /* títulos */
  --text: #2f2a2d;
  --muted: #6b6168;
  --bg: #ffffff;
  --bg-alt: #faf6f7;
  --border: #ecdfe4;
  --green: #17724a;          /* ≥4.5:1 com texto branco */
  --gold: #8a6212;
  --red: #b3332a;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(98, 15, 48, .10);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E");
}

::selection { background: var(--primary); color: #fff; }
input, select, textarea { caret-color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }
.header :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: #fff; }
.nowrap { white-space: nowrap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
p { color: var(--muted); }
section[id], #planos, #consulta { scroll-margin-top: 90px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; background: var(--primary); color: #fff;
  border: 2px solid var(--primary); cursor: pointer; font: inherit; font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(98,15,48,.25); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-dark); }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; white-space: nowrap; }
.btn--full { width: 100%; }

.hl { color: var(--primary); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ===== Cabeçalho ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.logo { display: block; padding: 4px 0; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 1.6rem; }
.nav a { font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s; }
.nav a:hover { color: #fff; }
.header__acoes { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.menu-btn:hover { background: var(--primary-dark); }

/* ===== Topo ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(98,15,48,.10), transparent 45%),
    linear-gradient(180deg, #fbf7f8, #fff);
  padding: clamp(3rem, 7vw, 5rem) 0;
}
/* align-items: start: o título não "pula" quando o resultado da consulta aparece */
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.hero__text { padding-top: 1.5rem; }
.hero__text h1 { text-wrap: balance; }
.hero__lead { font-size: 1.12rem; margin: 1.25rem 0 1.75rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__checks { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: 1.75rem; }
.hero__checks li { font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero__checks li::before, .price li::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45rem; vertical-align: -.15em;
  background: var(--green); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.hero__note { display: block; margin: .1rem 0 0 1.45rem; color: var(--muted); font-size: .82rem; font-weight: 400; }

/* ===== Consulta grátis ===== */
.consulta { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.consulta__titulo { font-size: 1.4rem; margin-bottom: .3rem; }
.consulta__sub { font-size: .92rem; margin-bottom: 1rem; }
.consulta__abas { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: .4rem; }
.consulta__abas button {
  border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  min-height: 40px; padding: .4rem 1.1rem; border-radius: 999px; cursor: pointer;
}
.consulta__dica { font-size: .82rem; margin-bottom: .75rem; }
.consulta__abas button.ativa { background: var(--primary); color: #fff; }
.consulta__linha { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.consulta__linha input {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1.1rem; letter-spacing: .04em; color: var(--text);
}
.consulta__linha .btn { border-radius: 12px; padding: .85rem 1.2rem; }
.consulta__linha .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.consulta__erro { color: var(--red); font-size: .88rem; margin-top: .5rem; }
.consulta__fonte { display: block; margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.consulta__resultado:not(:empty) { margin-top: 1rem; display: grid; gap: .75rem; }

/* O único momento animado da página: o resultado da consulta entrando */
.res { border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid var(--border); background: var(--bg-alt); animation: res-entra .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes res-entra { from { opacity: .4; transform: translateY(8px); filter: blur(2px); } }
.res__dica { font-size: .85rem; margin: -.25rem 0 .75rem; }
.res h3 { font-size: 1rem; margin: .4rem 0 .5rem; text-transform: capitalize; }
.res__topo { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.res__selo { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .65rem; border-radius: 999px; background: var(--muted); color: #fff; }
.res__cnes { font-size: .8rem; color: var(--muted); font-weight: 600; }
.res dl { display: grid; gap: .25rem; font-size: .85rem; margin-bottom: .5rem; }
.res dl div { display: flex; justify-content: space-between; gap: 1rem; }
.res dt { color: var(--muted); }
.res dd { color: var(--ink); font-weight: 600; text-align: right; text-transform: capitalize; }
.res dl .res__fatal { border-top: 1px dashed var(--border); padding-top: .35rem; margin-top: .15rem; }
.res__fatal dt { color: var(--ink); font-weight: 700; }
.res__fatal dd { text-transform: none; font-weight: 800; }
.res__fatal--vencida dd { color: var(--red, #c0392b); }
.res__texto { font-size: .88rem; color: var(--ink); margin-bottom: .75rem; }
.res__fora { font-size: .85rem; font-style: italic; }
.res .btn { padding: .7rem 1rem; font-size: .92rem; }
.res--ok { background: #ecf7f1; border-color: #bfe3cf; }
.res--ok .res__selo { background: var(--green); }
.res--alerta { background: #fdf6e7; border-color: #f0dcae; }
.res--alerta .res__selo { background: var(--gold); }
.res--ruim { background: #fcefee; border-color: #f2c9c4; }
.res--ruim .res__selo { background: var(--red); }
.res__carregando, .res__falha, .res__mais { font-size: .88rem; }
.res__falha a { color: var(--primary); font-weight: 700; text-decoration: underline; }

.aviso { border: 1px dashed var(--primary-light); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; display: grid; gap: .6rem; }
.aviso__titulo { color: var(--ink); font-size: .95rem; font-weight: 700; }
.aviso--recolhido { display: block; border-style: solid; border-color: var(--border); padding: 0; }
.aviso--recolhido summary { list-style: none; cursor: pointer; padding: .85rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .9rem; color: var(--primary); }
.aviso--recolhido summary::-webkit-details-marker { display: none; }
.aviso--recolhido summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.aviso--recolhido[open] summary::after { transform: rotate(45deg); }
.aviso__corpo { display: grid; gap: .6rem; padding: 0 1.1rem 1rem; }
.aviso__campos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.aviso input:not([type]) , .aviso input[name="whatsapp"], .aviso input[name="nome"] {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: .92rem;
}
.aviso__ok { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--muted); cursor: pointer; }
.aviso__ok input { margin-top: .2rem; accent-color: var(--primary); }
.aviso__msg { font-size: .85rem; }
.aviso__msg.erro { color: var(--red); }
.aviso__msg.ok { color: var(--green); font-weight: 600; }

/* ===== Faixa de confiança ===== */
.trust { background: var(--ink); padding: 1.5rem 0; }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust__inner > div { display: flex; flex-direction: column; gap: .15rem; border-left: 1px solid rgba(255,255,255,.22); padding-left: .9rem; }
.trust strong { color: #fff; font-size: .95rem; }
.trust span { color: rgba(255,255,255,.7); font-size: .85rem; line-height: 1.4; }

/* ===== Seções ===== */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }

/* Método: título à esquerda, três compromissos em lista à direita (sem cards) */
.metodo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem 4rem; align-items: start; }
.metodo__head h2 { text-wrap: balance; }
.metodo__head p { font-size: 1.05rem; max-width: 34em; }
.metodo__lista { display: grid; }
.metodo__lista > div { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.metodo__lista > div:last-child { border-bottom: 1px solid var(--border); }
.metodo__lista dt { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.metodo__lista dd { color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 1rem; }

.deadline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.deadline__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.deadline__label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.deadline__item strong { display: block; font-size: 1.5rem; color: var(--ink); margin: .2rem 0; }
.deadline__item p { font-size: .92rem; }
.deadline__note { text-align: center; font-size: .85rem; margin-top: 1rem; }

/* ===== Preços: um card (cadastro ou atualização) + simulador ===== */
.pricing { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.25rem; align-items: stretch; max-width: 940px; margin-inline: auto; }
.price { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 2rem 1.75rem; }
.price--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price h3 { font-size: 1.25rem; }
.price__desc { font-size: .92rem; }
.price__value { font-size: 2.8rem; font-weight: 800; color: var(--ink); margin: .9rem 0 .2rem; line-height: 1.1; }
.price__value small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-right: .2rem; }
.price__sub { font-size: .88rem; color: var(--primary); font-weight: 600; margin-bottom: 1.25rem; }
.price ul { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.75rem; flex: 1; align-content: start; }
.price li { font-size: .95rem; }
.price__bonus { font-size: .88rem; color: var(--ink); background: #fbf3e2; border: 1px solid #ecd9ae; border-radius: 10px; padding: .6rem .8rem; margin: -.5rem 0 1.25rem; }
.pricing__note { text-align: center; margin-top: 1.75rem; color: var(--ink); font-weight: 500; }

.calc { background: var(--primary-soft); border-color: transparent; }
.calc__label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin: 1rem 0 .35rem; }
.calc__input, .calc__stepper input {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
.calc__stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: .5rem; }
.calc__stepper input { text-align: center; font-weight: 700; -moz-appearance: textfield; }
.calc__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc__stepper button { border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.calc__stepper button:hover { background: var(--primary-dark); }
.calc__result { margin: 1.25rem 0; font-size: 1rem; color: var(--ink); flex: 1; }
.calc__result strong { display: block; font-size: 2rem; color: var(--primary); }

/* ===== Planos (opção abaixo dos preços) ===== */
.planos { display: grid; gap: .75rem; margin-top: 3.5rem; }
.planos__intro { text-align: center; margin-bottom: 1rem; }
.planos__intro h3 { font-size: 1.3rem; }
.plano { grid-template-columns: 1.3fr 1fr .9fr 120px; gap: 1rem; }
.plano {
  position: relative; display: grid; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.4rem;
}
.plano--destaque { border: 2px solid var(--primary); background: var(--primary-soft); }
.plano__selo {
  position: absolute; top: -11px; left: 1.2rem; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: .2rem .7rem; border-radius: 999px;
}
.plano__nome strong { display: block; color: var(--ink); font-size: 1.1rem; }
.plano__nome small, .plano__para { color: var(--muted); font-size: .88rem; }
.plano__valor b { font-size: 1.5rem; color: var(--ink); }
.plano__valor small { color: var(--muted); font-weight: 600; }
.plano__valor em { display: block; font-style: normal; font-size: .84rem; color: var(--muted); }
.plano .btn { width: 100%; }
.planos__nota { font-size: .85rem; padding: .25rem 1.4rem 0; }

input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

/* ===== Dúvidas ===== */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.faq details > :not(summary) { margin-inline: 1.25rem; }
.faq details[open] { padding-bottom: 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; min-height: 48px; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .25rem; }
.faq details p + p, .faq__lista + p { margin-top: .6rem; }
.faq__lista { margin: .5rem 0 0 1.2rem; color: var(--muted); display: grid; gap: .25rem; }
.faq__lista b { color: var(--ink); }

/* ===== Contato ===== */
.contact { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { color: #fff; }
.contact__info p { color: rgba(255,255,255,.85); }
.contact__list { list-style: none; margin-top: 1.5rem; display: grid; gap: .7rem; color: #fff; font-weight: 500; }
.contact__list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact__list a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
.contact__list a:hover { text-decoration-color: #fff; }
.ico { flex: none; width: 20px; height: 20px; margin-top: .15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.form { background: #fff; border-radius: 18px; padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.form__row { margin-bottom: 1rem; }
.form__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 1rem; }
.form label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form input, .form select { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: #fff; }
.form__error { color: var(--red); font-size: .9rem; margin-bottom: .75rem; }

/* ===== Rodapé ===== */
.footer { background: #1d0b14; padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer img { height: 36px; width: auto; }
.footer__small { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .5rem; }

/* ===== WhatsApp flutuante ===== */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .25s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp--oculto { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }

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

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--primary-dark); padding: .5rem 16px 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.18);
  }
  .nav.aberto { display: flex; }
  .nav a { padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
  .nav a:last-child { border-bottom: 0; }
  .hero__inner, .contact__inner, .metodo { grid-template-columns: 1fr; }
  /* Celular/tablet: a consulta sobe para logo abaixo do título */
  .hero__inner { gap: 0; }
  .hero__text { display: contents; }
  .hero__text h1 { order: 1; }
  .hero__visual { order: 2; margin-top: 1.25rem; }
  .hero__lead { order: 3; margin-top: 1.75rem; }
  .hero__actions { order: 4; }
  .hero__checks { order: 5; }
  .consulta { max-width: 560px; }
  .steps, .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .deadline { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 1.75rem; }  .plano { grid-template-columns: 1fr auto; }
  .plano__para { grid-column: 1 / -1; grid-row: 2; }
  .plano__valor { grid-row: 1; grid-column: 2; text-align: right; }
  .plano > .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps, .trust__inner, .form__grid { grid-template-columns: 1fr; }
  .header .btn--small { padding: .55rem .9rem; font-size: .88rem; min-height: 44px; }
  .logo img { height: 44px; }
  .hero { padding-top: 2rem; }
  .hero__lead { font-size: 1.02rem; }
  .hero__actions .btn { width: 100%; }
  .consulta, .form { padding: 1.25rem; }
  .aviso__campos { grid-template-columns: 1fr; }
  .consulta__linha { grid-template-columns: 1fr; }
  .res__topo { flex-wrap: wrap; }
  .res__selo, .res__cnes, .res__fatal dd { white-space: nowrap; }
  .res dl .res__fatal { flex-wrap: wrap; gap: 0 1rem; }
}

/* =====================================================================
   Tema "Timbrado" (17/11/2026): cores e faixas diagonais do papel
   timbrado oficial, iguais ao site institucional. Só aparência: nenhuma
   regra aqui mexe em links, formulários ou scripts.
   ===================================================================== */
:root {
  --primary: #5c0030; --primary-dark: #45001f; --primary-light: #78214c; --primary-soft: #f6eef2;
  --grafite: #2f3334; --rosa: #e7b6cb;
  --ink: #232627; --text: #34393a; --muted: #585e60; --bg-alt: #f7f7f6; --border: #e4e3e1;
  --radius: 4px; --shadow: 0 14px 32px rgba(35, 38, 39, .12);
}
html { scrollbar-color: var(--primary) var(--bg-alt); }
body { font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -.01em; }
h1 { font-weight: 800; } h2 { font-weight: 700; }
.consulta__titulo { font-family: "Playfair Display", Georgia, serif; }
section[id], #planos, #consulta { scroll-margin-top: 110px; }
:focus-visible { border-radius: 0; }
.header :focus-visible { outline-color: var(--primary-light); }

/* Botões com corte diagonal, como no timbrado */
.btn { border-radius: 0; border: 0; padding: .95rem 1.7rem; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.btn:hover { transform: none; box-shadow: none; background: var(--primary-light); }
.btn--ghost { background: var(--grafite); color: #fff; }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--grafite); }
.btn--light:hover { background: var(--bg-alt); color: var(--primary); }
.btn--small { padding: .6rem 1.3rem; }

/* Cabeçalho branco, logo colorido grande, barra grafite com faixa vinho */
.header { background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(115deg, var(--grafite) 0 62%, var(--primary) 62% 78%, var(--primary-light) 78% 84%, var(--grafite) 84%); }
.header__inner { height: 96px; }
.logo img { height: 76px; }
.nav a { color: var(--grafite); font-weight: 600; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); border-bottom-color: var(--primary-light); }
.header .btn--light { background: var(--primary); color: #fff; }
.header .btn--light:hover { background: var(--primary-light); color: #fff; }
.menu-btn { border-radius: 0; background: var(--grafite); color: #fff; }
.menu-btn:hover { background: var(--primary); }

/* Topo grafite com faixas diagonais no canto */
.hero { position: relative; overflow: hidden; background: var(--grafite); }
.hero::before, .hero::after { content: ""; position: absolute; bottom: 0; transform: skewX(-45deg); pointer-events: none; }
.hero::before { left: -80px; width: 70px; height: 150px; background: var(--primary); }
.hero::after { left: 10px; width: 30px; height: 100px; background: var(--primary-light); }
.hero__inner { position: relative; z-index: 1; }
.hero__text h1 { color: #fff; }
.hero .hl { color: var(--rosa); }
.hero__lead { color: #d7dadb; }
.hero__checks li { color: #fff; }
.hero__checks li::before { background: #7fd3a6; }
.hero__note { color: #b9bebf; }
.hero .btn--ghost { background: #fff; color: var(--grafite); }
.hero .btn--ghost:hover { background: var(--bg-alt); color: var(--primary); }
.hero :focus-visible { outline-color: #fff; }
.hero .consulta :focus-visible { outline-color: var(--primary-light); }
.consulta { border-radius: 4px; border: 0; box-shadow: 0 22px 46px rgba(0,0,0,.35); }
.consulta__abas { border-radius: 0; }
.consulta__abas button { border-radius: 0; }
.consulta__linha input { border-radius: 0; }
.consulta__linha .btn { border-radius: 0; }
.res, .aviso { border-radius: 4px; }

/* Faixa de confiança em vinho */
.trust { background: var(--primary); }
.trust__inner > div { border-left-color: rgba(255,255,255,.25); }
.trust span { color: #f0d3df; }

/* Cartões e listas mais secos (cantos retos) */
.step, .deadline__item, .price, .plano, .faq details, .form, .calc__input, .calc__stepper input, .calc__stepper button, .form input, .form select, .aviso input { border-radius: 4px; }
.step__num { background: var(--grafite); }
.price--featured { border-color: var(--primary); }
.calc { background: var(--bg-alt); border: 1px solid var(--border); }
.plano__selo { border-radius: 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: .2rem .9rem; }
.metodo__lista > div:first-child { border-top: 2px solid var(--grafite); }
.faq details[open] { border-color: var(--grafite); }

/* Contato em grafite com faixas */
.contact { position: relative; overflow: hidden; background: var(--grafite); }
.contact::before, .contact::after { content: ""; position: absolute; top: 0; bottom: 0; transform: skewX(-45deg); pointer-events: none; }
.contact::before { right: -60px; width: 90px; background: var(--primary); }
.contact::after { right: 60px; width: 30px; background: var(--primary-light); }
.contact__inner { position: relative; z-index: 1; }
.contact__info p { color: #d7dadb; }
.form { box-shadow: 0 22px 46px rgba(0,0,0,.35); }

/* Rodapé branco, no padrão do timbrado */
.footer { position: relative; background: #fff; border-top: 1px solid var(--border); padding: 2.2rem 0 2.8rem; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(115deg, var(--grafite) 0 40%, var(--primary) 40% 55%, var(--primary-light) 55% 60%, var(--grafite) 60%); }
.footer img { height: 72px; }
.footer__small { color: var(--muted); }
.footer :focus-visible { outline-color: var(--primary-light); }

@media (max-width: 960px) {
  .nav { top: 100%; background: var(--grafite); }
  .nav a { color: #fff; font-size: .9rem; padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.12); }
  .contact::before { right: -120px; }
  .contact::after { right: 0; }
}
@media (max-width: 560px) {
  .header__inner { height: 80px; }
  .logo img { height: 60px; }
  section[id], #planos, #consulta { scroll-margin-top: 90px; }
  .hero::before { left: -60px; width: 46px; height: 60px; }
  .hero::after { left: -10px; width: 20px; height: 40px; }
}

/* Foto de fundo do topo (gerada por IA, sem rostos) */
.hero { background-image: linear-gradient(90deg, var(--grafite) 0 22%, rgba(47,51,52,.72) 45%, rgba(47,51,52,.45)), url(assets/cnes-1600.webp); background-size: cover; background-position: center; }
@media (max-width: 960px) {
  .hero { background-image: linear-gradient(180deg, rgba(47,51,52,.9), rgba(47,51,52,.82)), url(assets/cnes-900.webp); background-position: 70% center; }
}

/* Ícone do WhatsApp nos botões que abrem o WhatsApp (só CSS) */
#form-contato button[type="submit"]::before,
a.btn[href*="wa.me/"]::before,
a.btn[href="#contato"]::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.8-1.2.2-.6.2-1.1.1-1.2l-.4-.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.8-1.2.2-.6.2-1.1.1-1.2l-.4-.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--small[href]::before { width: 16px; height: 16px; }
/* Alvos de toque no celular (44px) */
.consulta__abas button, .plano .btn { min-height: 44px; }
.calc__hint { margin: .6rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.deadline__note strong { color: var(--ink); }
.deadline__note { font-size: .95rem; line-height: 1.6; max-width: 760px; margin-left: auto; margin-right: auto; }
/* Consulta CNES: consequencia, oferta e pedido de contato em destaque */
.res__risco { margin: .2rem 0 .8rem; padding: .7rem .85rem; background: #fbf1f5; border-left: 3px solid var(--primary); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.res__oferta { margin: .2rem 0 .8rem; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.aviso--contato { border-style: solid; border-color: var(--primary); background: #fff; }
.aviso--contato .aviso__titulo { color: var(--primary); }
