*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .6rem; }
h2 { font-size: 1.45rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.small { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(640px, 100% - 2rem); margin-inline: auto; }

.privacy-strip {
  background: var(--primary-dark);
  color: #fff;
  font-size: .82rem;
  text-align: center;
  padding: .45rem 1rem;
}
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand-dot { color: var(--accent); }
.header-nav { display: flex; gap: 1.1rem; font-size: .92rem; }
.header-nav a { color: var(--text); text-decoration: none; }
.header-nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--primary); color: #fff; border: 0; border-radius: var(--radius);
  padding: .8rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.4rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-small { padding: .45rem .8rem; font-size: .88rem; }
.btn-danger { background: #b42318; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  padding: 1.4rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* --- Formulário --- */
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=tel],
.field input[type=password], .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary);
}
.field .errorlist { list-style: none; padding: 0; margin: .25rem 0 0; color: #b42318; font-size: .85rem; }
.field-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; margin-bottom: .8rem; }
.field-check input { margin-top: .25rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
legend { font-weight: 800; font-size: 1rem; margin-bottom: .7rem; padding: 0; }
.radio-cards { display: grid; gap: .5rem; }
.radio-cards label {
  display: flex; gap: .6rem; align-items: center; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .65rem .8rem; font-weight: 500; cursor: pointer; background: #fff;
}
.radio-cards label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, #fff); }
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .9rem; }
.toggle-row label {
  border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; text-align: center;
  cursor: pointer; font-weight: 600; font-size: .9rem; background: #fff;
}
.toggle-row label:has(input:checked) { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, #fff); }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.form-errors { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
details.extra summary { cursor: pointer; font-size: .9rem; color: var(--primary); margin-bottom: .7rem; }

.price-box {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: color-mix(in srgb, var(--primary) 6%, #fff); border: 1px dashed color-mix(in srgb, var(--primary) 40%, #fff);
  border-radius: var(--radius); padding: .8rem 1rem; margin: .4rem 0 1rem;
}
.price-box strong { font-size: 1.35rem; }
.price-box .small { max-width: 60%; }

/* --- Landing A (padrão de mercado) --- */
.hero-a { padding: 2.2rem 0 2.5rem; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-a-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: start; }
.hero-a .sub { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: .45rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.trust-line { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: .7rem; }
.form-card { position: sticky; top: 1rem; }
.form-card h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.section { padding: 2.6rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); padding: 1.2rem; }
.step::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: .6rem;
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare .card h3 { margin-bottom: .6rem; }
.faq details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }
.who-pays {
  border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem;
}
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proof blockquote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; font-size: .95rem; }

/* --- Landing B (mínima) --- */
.b-shell { padding: 2rem 0 3rem; }
.b-shell h1 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.b-shell .sub { text-align: center; color: var(--muted); margin-bottom: 1.4rem; }
.stepper { display: flex; justify-content: center; gap: .4rem; margin-bottom: 1rem; }
.stepper span { width: 2.4rem; height: .3rem; border-radius: 99px; background: var(--border); }
.stepper span.on { background: var(--primary); }
.b-actions { display: flex; gap: .6rem; justify-content: space-between; margin-top: .6rem; }
[data-steps="on"] fieldset[data-step]:not(.active) { display: none; }
.b-mini-faq { margin-top: 1.4rem; }

/* --- Pagamento / obrigado / acompanhamento --- */
.page { padding: 2rem 0 3rem; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.summary-list li span:first-child { color: var(--muted); }
.pix-box { text-align: center; }
.pix-box textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { padding: 0 0 .9rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 99px; font-size: .82rem; font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-dark); }
.status-pill.warn { background: #fffaeb; color: #b54708; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.alert-warn { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.alert-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.alert-err { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.home-grid a { text-decoration: none; color: var(--text); }
.home-grid .card:hover { border-color: var(--primary); }
.legal { padding: 2rem 0 3rem; }
.legal h2 { margin-top: 1.8rem; font-size: 1.15rem; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer-brand { font-weight: 800; margin: 0 0 .4rem; }
.footer-title { font-weight: 700; margin: 0 0 .4rem; font-size: .92rem; }

.consent {
  position: fixed; inset: auto 1rem 1rem 1rem; max-width: 720px; margin-inline: auto; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .15); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center;
}
.consent p { margin: 0; font-size: .88rem; }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }

@media (max-width: 880px) {
  .hero-a-grid, .compare, .footer-grid, .steps, .proof { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .form-card { position: static; }
  .consent { flex-direction: column; align-items: stretch; }
  .header-nav { gap: .7rem; font-size: .85rem; }
}
@media (max-width: 520px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
}
