/* Site público Festa das Milhas — mesma identidade do CRM (azul #0B1B5B, verde #7FBF00, Jost). */
:root {
  --navy: #0B1B5B; --navy-700: #13236E; --navy-900: #070F3A;
  --green: #7FBF00; --green-ink: #4A7300; --green-soft: #EEF7DC;
  --bg: #F7F7F7; --surface: #FFFFFF; --ink: #0E1638; --ink-2: #4A5170; --ink-3: #7A809A; --line: #E6E8EF;
  --crit: #B42318; --crit-bg: #FDE7E5;
  --radius: 16px; --shadow: 0 1px 2px rgba(11,27,91,.06), 0 6px 20px rgba(11,27,91,.06);
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--green-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
em { font-style: normal; color: var(--green); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.section { padding: 48px 20px; }
.sec-title { margin-bottom: 20px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* Topo */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { display: block; height: 40px; width: auto; }
.mainnav { display: flex; gap: 22px; margin-left: auto; }
.mainnav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; }
.mainnav a:hover { color: #fff; }
.topcta { padding: 9px 16px; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 55%, #2F5A1A 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; background: url("/static/brand/symbol.svg") no-repeat center / contain; opacity: .07; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero-tight .hero-in, .hero-tight > .wrap { padding-top: 40px; padding-bottom: 40px; }
.hero .lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 640px; }
.hero .lead a { color: var(--green); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; }
.hero-stats strong { display: block; font-size: 26px; }
.hero-stats span { color: rgba(255,255,255,.75); font-size: 14px; }
.crumb { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.hero .checks li::before { background: var(--green); }

.checks { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--navy); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

/* Tiles da home */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); }
.tile p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; flex: 1; }
.tile-ico { font-size: 28px; }
.tile-soon { opacity: .75; }
.pill { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #EEF0F6; color: var(--ink-2); }
.pill-green { background: var(--green-soft); color: var(--green-ink); }

.band { background: var(--navy-900); color: #fff; }
.band-in { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.band h2 b { color: var(--green); font-weight: 600; }
.band p { color: rgba(255,255,255,.78); max-width: 680px; margin: 0; }

/* Formulários */
.formcard { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 12px; }
.formcard h2 { margin: 0; }
.formcard .muted { margin: 0 0 4px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.fld input { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(127,191,0,.2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-ink); flex: none; }
.err { color: var(--crit); font-weight: 500; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert { background: var(--crit-bg); color: var(--crit); padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }

/* Quiz */
.quiz { max-width: 680px; padding-top: 32px; padding-bottom: 64px; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--green); width: 0; transition: width .25s; }
.quiz-count { margin: 10px 0 18px; font-size: 14px; }
.q { border: 0; padding: 0; margin: 0 0 28px; }
.q legend { padding: 0; }
.q-title { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
.q-missing .q-title { color: var(--crit); }
.opts { display: grid; gap: 10px; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 17px; font-weight: 500; transition: border-color .12s, background .12s; }
.opt:hover span { border-color: var(--navy); }
.opt input:checked + span { border-color: var(--green); background: var(--green-soft); }
.opt input:focus-visible + span { outline: 3px solid rgba(127,191,0,.35); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.js-steps .q[hidden] { display: none; }

/* Cartão visual */
.ctile { position: relative; aspect-ratio: 1.586; border-radius: 14px; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(11,27,91,.18); overflow: hidden; width: 100%; max-width: 300px; }
.ctile-inicio { background: linear-gradient(135deg, #1B1F2E, #3B4256); }
.ctile-alta_renda { background: linear-gradient(135deg, #0B1B5B, #1E2A6E 60%, #8C7A3E); }
.ctile-cia_aerea { background: linear-gradient(135deg, #0B1B5B, #13236E 55%, #2F5A1A); }
.ctile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; background: url("/static/brand/symbol.svg") no-repeat center / contain; opacity: .12; }
.ctile-bank { font-size: 12px; opacity: .75; }
.ctile-name { font-weight: 600; font-size: 16px; line-height: 1.2; max-width: 85%; }
.ctile-chip { width: 34px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #E9D79A, #B8A05A); margin-top: auto; }
.ctile-net { position: absolute; right: 14px; bottom: 12px; font-size: 12px; font-weight: 600; opacity: .9; }
.ctile.sm { max-width: 220px; }
.ctile.sm .ctile-name { font-size: 14px; }
.ctile.lg { max-width: 340px; }

/* Resultado */
.rec { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 20px; }
.rec-best { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.rec-badge { position: absolute; top: -12px; left: 24px; background: var(--green); color: var(--navy); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.rec-body h2 { margin: 4px 0 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.facts div { background: #F6F7FA; border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: 12.5px; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts-light div { background: rgba(255,255,255,.1); }
.facts-light dt { color: rgba(255,255,255,.7); }
.note { background: var(--green-soft); border-radius: 12px; padding: 10px 14px; color: var(--ink); }
.answers { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-top: 20px; }
.answers summary { cursor: pointer; font-weight: 600; }
.answers dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.answers dd { margin: 0; font-weight: 500; text-align: right; }

/* Catálogo */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chips a { text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 99px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chips a.on { background: var(--navy); color: #fff; box-shadow: none; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cardbox { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .15s; }
.cardbox:hover { transform: translateY(-2px); }
.cardbox h2 { font-size: 17px; margin: 10px 0 0; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 0; }
.mini dt { font-size: 11.5px; color: var(--ink-3); }
.mini dd { margin: 0; font-size: 13.5px; font-weight: 600; }

/* Detalhe do cartão */
.card-hero { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; padding-top: 40px; padding-bottom: 40px; position: relative; z-index: 1; }
.card-detail { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.detail-sec { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 14px; }
.detail-sec h2, .detail-sec h3 { font-size: 18px; color: var(--navy); }
.tree { margin: 4px 0; padding-left: 18px; }
.tree li { margin: 3px 0; }
.tree-0 { padding-left: 18px; }
.tree-k { font-weight: 600; }
.side-cta { position: sticky; top: 90px; background: var(--navy); color: #fff; border-radius: 20px; padding: 22px; }
.side-cta p { color: rgba(255,255,255,.8); }
.related { padding-left: 18px; }
.related a { color: #fff; }
.guide-grid { columns: 2 380px; column-gap: 16px; margin-bottom: 28px; }
.guide-grid .detail-sec { break-inside: avoid; }

/* Gestão */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.steps span { font-size: 32px; font-weight: 700; color: var(--green); }
.steps p { color: var(--ink-2); margin: 0; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cases article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cases strong { font-size: 32px; color: var(--green-ink); }
.cases p { margin: 0 0 6px; color: var(--ink-2); flex: 1; }
.two-col { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }

/* Rodapé */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-in { display: flex; justify-content: space-between; gap: 28px; padding-top: 40px; padding-bottom: 24px; flex-wrap: wrap; }
.footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

@media (max-width: 900px) {
  .hero-in, .two-col, .card-hero, .card-detail, .rec { grid-template-columns: 1fr; }
  .tiles, .steps, .cases { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .side-cta { position: static; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .mainnav { gap: 16px; font-size: 15px; }
}
@media (max-width: 560px) {
  .tiles, .steps, .cases { grid-template-columns: 1fr; }
  .section { padding: 32px 16px; }
  .wrap { padding: 0 16px; }
  .hero-in { padding-top: 36px; padding-bottom: 36px; }
  .footer nav { grid-template-columns: 1fr; }
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 8px 12px; }
  .brand img { height: 34px; }
  .topcta { margin-left: auto; padding: 8px 14px; font-size: 15px; }
  .mainnav { order: 3; width: 100%; margin: 0 -16px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .rec { padding: 20px; }
}
