/* Corretor Digital — estilos compartilhados */
:root {
  --navy: #10284a;
  --navy-2: #173761;
  --teal: #0f9d8a;
  --teal-2: #0b7f70;
  --teal-soft: #e2f5f1;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #0f2238;
  --muted: #546a80;
  --line: #d9e2ea;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.eyebrow {
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Cabeçalho */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--teal); display: grid; place-items: center; font-size: 15px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #c9d7e6; text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding-block: 56px 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 56px solid rgba(15,157,138,.18); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 20px; }
.hero .lede { color: #c9d7e6; }

/* Portas da home */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: -40px; position: relative; z-index: 2; }
.door {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 14px; align-content: start;
  box-shadow: 0 10px 30px rgba(16,40,74,.08);
}
.door .tag { justify-self: start; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-2); }
.door ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.door .btn { justify-self: start; margin-top: 6px; }

/* Seções */
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.card p { color: var(--muted); }
.step-num { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: .95rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Regra da comissão */
.rule { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.rule-big { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 700; color: #5fe0cb; line-height: 1; }
.rule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rule-list div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px; }
.rule-list b { display: block; font-family: var(--display); }
.rule-list span { color: #c9d7e6; font-size: .95rem; }
table.examples { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.examples th, table.examples td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
table.examples th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb3c8; font-weight: 600; }

/* Preço */
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } }
.price-box { background: var(--surface); border: 2px solid var(--teal); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Formulário de cotação */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } .quote form.quote-form { order: -1; } }
form.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; box-shadow: 0 10px 30px rgba(16,40,74,.08); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="number"], select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; background: var(--bg);
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices input:checked + span { color: var(--teal-2); font-weight: 600; }
.choices label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .two { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-error { color: #b42318; font-weight: 600; font-size: .95rem; }
.form-note { font-size: .85rem; color: var(--muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
details + details { margin-top: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 10px; color: var(--muted); }

/* Aviso */
.notice { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--teal); padding: 6px 0 6px 14px; max-width: 75ch; }

/* Rodapé */
.site-footer { background: var(--navy); color: #c9d7e6; padding-block: 36px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer a { color: #fff; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.legal { font-size: .82rem; color: #8ea4bb; max-width: 90ch; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #25d366; color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 20;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
