:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --wa: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--wa { background: var(--wa); box-shadow: 0 8px 20px rgba(22, 163, 74, .25); }
.btn--light { background: #fff; color: var(--brand); box-shadow: none; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 1.35rem; font-weight: 500; }
.logo strong { font-weight: 800; color: var(--brand); }
.logo--light { color: #fff; }
.logo--light strong { color: #a5b4fc; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, rgba(79, 70, 229, .12), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--wa); font-weight: 800; margin-right: 6px; }

.term { background: #0f172a; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(15, 23, 42, .25); overflow: hidden; transform: rotate(1.5deg); }
.term__bar { display: flex; gap: 6px; padding: 12px 14px; background: #1e293b; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.term__bar i:nth-child(1) { background: #f87171; }
.term__bar i:nth-child(2) { background: #fbbf24; }
.term__bar i:nth-child(3) { background: #34d399; }
.term pre { margin: 0; padding: 22px; color: #e2e8f0; font: 500 .92rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; }
.term .c { color: #64748b; }
.term .k { color: #a5b4fc; }
.term .ok { color: #34d399; }

/* Seções */
.section { padding: 88px 0; scroll-margin-top: 68px; }
.section--alt { background: var(--bg-alt); }
.section h2 { text-align: center; }
.section__sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: #eef2ff; border-radius: 12px; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Formulário */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form-intro h2, .form-intro .section__sub { text-align: left; margin-left: 0; }
.form-intro .section__sub { margin-bottom: 24px; }
.form-intro .checks { flex-direction: column; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1; }
.row { display: flex; gap: 16px; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea {
  font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.invalid { border-color: #dc2626; }
textarea { resize: vertical; }
.form__error { color: #dc2626; font-weight: 600; margin: 0 0 12px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1; min-width: 200px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA final + rodapé */
.cta-final { padding: 80px 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--brand), #7c3aed 60%, var(--brand-2)); }
.cta-final p { font-size: 1.15rem; opacity: .9; margin: 0 0 28px; }
.footer { background: #0f172a; color: #94a3b8; padding: 40px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer p { margin: 0; }
.footer__copy { font-size: .85rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 25px rgba(22, 163, 74, .4);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* Responsivo */
@media (max-width: 960px) {
  .hero__inner, .form-wrap { grid-template-columns: 1fr; }
  .hero__card { max-width: 480px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
