/* ==========================================================================
   LeadBix — design system
   Paleta tirada do logo (ciano → azul → azul-marinho). Tipografia: Inter
   (interface) e Montserrat (marca).
   ========================================================================== */
:root {
    --cyan: #00A8FF;
    --brand: #1E6BFF;
    --brand-600: #1655D6;
    --brand-700: #0F3FAE;
    --grad: linear-gradient(135deg, #00A8FF 0%, #1E6BFF 48%, #0F3FAE 100%);
    --navy-950: #070E2B;
    --navy-900: #0B1437;
    --navy-800: #101C4A;
    --ink: #0F1B3D;
    --muted: #5B6B8C;
    --line: #E3E9F6;
    --bg: #F5F8FF;
    --bg-soft: #EEF3FF;
    --card: #FFFFFF;
    --ok: #0F8A55;   --ok-bg: #E8F8F0;   --ok-line: #BDEBD3;
    --warn: #8A5A05; --warn-bg: #FEF3E2; --warn-line: #F3D9A3;
    --err: #C4281C;  --err-bg: #FEECEB;  --err-line: #F6C4C0;
    --info: #1E4FBF; --info-bg: #EAF1FF; --info-line: #C9DAFF;
    --r-sm: 10px; --r: 14px; --r-lg: 20px;
    --sh-sm: 0 1px 2px rgba(15, 27, 61, .06), 0 1px 3px rgba(15, 27, 61, .05);
    --sh: 0 4px 16px rgba(15, 27, 61, .07);
    --sh-lg: 0 18px 50px rgba(30, 80, 200, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo-text { font-family: "Montserrat", "Inter", sans-serif; font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; color: var(--navy-900); }
.logo-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.on-dark .logo-text { color: #fff; }
.logo.on-dark .logo-text b { background: linear-gradient(135deg, #38BDFF, #3B82FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- botoes ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; box-shadow: 0 6px 18px rgba(30, 107, 255, .32); background-image: linear-gradient(135deg, #2A7BFF, #1655D6); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(30, 107, 255, .42); }
.btn-outline { background: #fff; color: var(--ink); border-color: #CFD9EE; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn-danger { background: #E5484D; color: #fff; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { background: #B7C3E0; background-image: none; box-shadow: none; cursor: not-allowed; transform: none; color: #fff; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--err); text-decoration: underline; }

/* ---------- formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field > label, .label { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.input, .select, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field select {
    height: 46px; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }
.field select { appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B8C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.field.has-ic input, .field.has-ic select { padding-left: 40px; }
.field.has-ic > .ic { position: absolute; left: 13px; bottom: 14px; color: #8A98BA; pointer-events: none; width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: .92rem; cursor: pointer; user-select: none; }
.check input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.6px solid #B4C2E2; border-radius: 6px; background: #fff; display: grid; place-content: center; cursor: pointer; transition: all .12s; flex: none; }
.check input:hover { border-color: var(--brand); }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.hint { font-size: .8rem; color: var(--muted); }

/* ---------- cards / tags / alertas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h2 { font-size: 1.08rem; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-err { background: var(--err-bg); color: var(--err); }
.tag-info { background: var(--info-bg); color: var(--info); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: .92rem; margin-bottom: 16px; }
.alert .ic { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.alert-err { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid #EEF2FA; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFCFF; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .masked { color: #98A6C6; font-style: italic; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }

/* ---------- indicadores ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--sh-sm); }
.stat-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--info-bg); color: var(--brand); display: grid; place-items: center; flex: none; }
.stat-ic.g { background: var(--ok-bg); color: var(--ok); }
.stat-ic.o { background: var(--warn-bg); color: #C77800; }
.stat b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- autocomplete (static/autocomplete.js) ---------- */
.ac-wrap { position: relative; }
.ac-list {
    position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(560px, 90vw);
    max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 27, 61, .18);
}
.ac-item { padding: 10px 14px; cursor: pointer; font-size: .9rem; line-height: 1.3; }
.ac-item.ativo { background: var(--info-bg); color: var(--brand-700); }
.ac-mais { padding: 9px 14px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); background: #FAFCFF; position: sticky; bottom: 0; }

/* ==========================================================================
   Paginas publicas
   ========================================================================== */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.pub-header .container { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pub-nav { display: flex; gap: 6px; }
.pub-nav a { color: var(--ink); font-weight: 500; font-size: .94rem; padding: 8px 14px; border-radius: 10px; }
.pub-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand); }
.pub-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding: 58px 0 46px;
    background: radial-gradient(900px 480px at 88% -8%, #D6E5FF 0%, rgba(214, 229, 255, 0) 62%), radial-gradient(700px 400px at -5% 20%, #E6F0FF 0%, rgba(230, 240, 255, 0) 60%), linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%); }
.hero-grid { display: block; max-width: 1040px; margin: 0 auto; text-align: center; }
.hero .pills { justify-content: center; }
.hero-sub { margin-left: auto; margin-right: auto; }
.busca-card { text-align: left; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: #EAF1FF; color: var(--info); border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 20px auto 30px; font-size: 1.12rem; color: var(--muted); max-width: 680px; }

.busca-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 30px; }
.busca-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.busca-linha { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.busca-linha .grp { display: flex; flex-direction: column; gap: 8px; }
.busca-linha .btn { flex: 1 1 190px; }
.busca-card .field.has-ic input, .busca-card .field.has-ic select { font-size: 1rem; padding-left: 38px; padding-right: 30px; }
.busca-card .field.has-ic > .ic { left: 12px; width: 17px; height: 17px; }
.resultado { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-weight: 600; font-size: .95rem; flex-wrap: wrap; }
.resultado .resto { font-weight: 500; font-size: .82rem; color: #3D8F69; }
.resultado.carregando { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }
.resultado.zero { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* mockup do produto (lado direito da landing) */
.mock { position: relative; padding: 26px 30px 38px 0; }
.mock-window { display: grid; grid-template-columns: 158px minmax(0, 1fr); background: #fff; border: 1px solid #DCE6FA; border-radius: 18px; box-shadow: 0 34px 80px rgba(20, 50, 140, .22); overflow: hidden; }
.mock-side { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); padding: 16px 12px; color: #B8C5EA; font-size: .72rem; min-height: 330px; }
.mock-side .logo-text { font-size: 1.05rem; }
.mock-side .logo img { height: 22px; }
.mock-menu { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.mock-menu div { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; }
.mock-menu .on { background: rgba(59, 130, 255, .22); color: #fff; }
.mock-menu .ic { width: 14px; height: 14px; }
.mock-main { padding: 16px 18px; min-width: 0; }
.mock-main h4 { margin: 0; font-size: .92rem; }
.mock-main .sub { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-btn { background: #16A34A; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.mock-table { width: 100%; border-collapse: collapse; font-size: .62rem; }
.mock-table th { text-align: left; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table td { padding: 7px 4px; border-bottom: 1px solid #F0F3FA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.float { position: absolute; display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 12px 15px; box-shadow: 0 16px 44px rgba(20, 50, 140, .2); border: 1px solid #E6EDFB; }
.float b { display: block; font-size: 1rem; line-height: 1.15; }
.float span { font-size: .7rem; color: var(--muted); }
.float .ic-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #E7F8F0; color: #10A063; flex: none; }
.float .ic-box.b { background: var(--info-bg); color: var(--brand); }
.float.f1 { top: 0; left: 12%; } .float.f2 { top: 6px; right: 0; } .float.f3 { bottom: 0; left: 6%; } .float.f4 { bottom: 12px; right: 0; }

.strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item .ic-box { width: 46px; height: 46px; border-radius: 14px; background: var(--info-bg); color: var(--brand); display: grid; place-items: center; flex: none; }
.strip-item b { display: block; font-size: 1.02rem; }
.strip-item span { font-size: .84rem; color: var(--muted); }

.section { padding: 76px 0; }
.section.soft { background: linear-gradient(180deg, #F5F8FF, #FFFFFF); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.04rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.step .n { position: absolute; top: -13px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(30, 107, 255, .35); }
.step .ic-box { width: 54px; height: 54px; border-radius: 16px; background: var(--info-bg); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); }

.planos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.plano-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.plano-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.plano-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.plano-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.plano-card li .ic { color: #10A063; margin-top: 2px; }
.plano-destaque { background: var(--navy-900); border-color: var(--navy-900); color: #DCE6FF; position: relative; overflow: hidden; }
.plano-destaque::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 168, 255, .35), transparent); }
.plano-destaque h3, .plano-destaque li { color: #fff; }
.plano-destaque .big { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 14px 0 6px; background: linear-gradient(135deg, #38BDFF, #7AA8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dados-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.dados-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-top: 18px; }
.dados-lista div { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink); }
.dados-lista .ic { color: var(--brand); width: 18px; height: 18px; }
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 34px; background: var(--grad); color: #fff; box-shadow: var(--sh-lg); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cta-card::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-card h3 { font-size: 1.55rem; font-weight: 800; }
.cta-card p { color: rgba(255, 255, 255, .88); max-width: 360px; margin-bottom: 12px; }
.cta-card .btn { align-self: flex-start; background: #fff; color: var(--brand-700); box-shadow: 0 10px 26px rgba(8, 25, 90, .3); position: relative; z-index: 1; }

.pub-footer { background: var(--navy-950); color: #A8B6DC; padding: 56px 0 28px; }
.pub-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pub-footer h4 { color: #fff; margin: 0 0 14px; font-size: .9rem; }
.pub-footer a { display: block; color: #A8B6DC; padding: 4px 0; font-size: .9rem; }
.pub-footer a:hover { color: #fff; text-decoration: none; }
.pub-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #7F8FBA; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #33436B; }
.prose ul { padding-left: 20px; }
.page-hero { padding: 54px 0 30px; background: linear-gradient(180deg, #F3F7FF, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.025em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { color: var(--brand); margin-bottom: 8px; }
.faq details p { color: #33436B; }

/* ==========================================================================
   Login / cadastro
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.auth-brand { position: relative; overflow: hidden; padding: 44px 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(700px 420px at 100% 0%, rgba(0, 168, 255, .45), transparent 60%), radial-gradient(600px 500px at 0% 100%, rgba(30, 107, 255, .5), transparent 60%), linear-gradient(160deg, #0B1437 0%, #0F2A7A 100%); }
.auth-brand h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; max-width: 460px; }
.auth-brand h2 em { font-style: normal; color: #52C1FF; }
.auth-brand ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-brand li { display: flex; gap: 12px; align-items: center; color: #CFDBFF; }
.auth-brand li .ic-box { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #7CD0FF; flex: none; }
.auth-brand small { color: #8FA3D6; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.auth-box { width: 100%; max-width: 410px; }
.auth-box h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.auth-box form { display: grid; gap: 16px; }
.auth-box .foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 26px; }

/* ==========================================================================
   Area logada (sidebar)
   ========================================================================== */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px; color: #B7C4E8;
    background: radial-gradient(400px 260px at 0% 0%, rgba(30, 107, 255, .22), transparent 70%), linear-gradient(180deg, #0B1437 0%, #0C1745 100%); z-index: 70; overflow-y: auto; }
.sidebar .logo { padding: 0 10px 22px; }
.side-sec { margin: 18px 12px 8px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6F81B3; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #B7C4E8; font-weight: 500; font-size: .93rem; transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.side-link.ativo { background: rgba(59, 130, 255, .2); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.side-foot { margin-top: auto; padding-top: 18px; }
.side-user { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.side-user .who { min-width: 0; line-height: 1.25; }
.side-user .who b { display: block; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: .74rem; color: #8FA0CF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.side-out { margin-top: 10px; }
.side-out button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: #93A4D3; font: inherit; font-size: .9rem; cursor: pointer; }
.side-out button:hover { background: rgba(255, 90, 90, .12); color: #FF9A9A; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; position: sticky; top: 0; z-index: 30; background: rgba(245, 248, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(227, 233, 246, .7); }
.app-top .left { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.app-top .right { display: flex; align-items: center; gap: 12px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .88rem; box-shadow: var(--sh-sm); }
.credit-pill:hover { text-decoration: none; border-color: var(--brand); }
.credit-pill .ic { color: var(--brand); }
.app-content { padding: 14px 36px 64px; width: 100%; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 24px; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; border: 1px solid #C9D6F2; background: #fff; color: var(--brand); cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
.menu-btn:hover { background: #EAF1FF; border-color: var(--brand); }
.menu-btn b { font-size: .84rem; font-weight: 700; margin-left: 4px; }
.menu-btn .ic { width: 20px; height: 20px; }
.menu-btn .mb-desk { display: inline-flex; align-items: center; }
.menu-btn .mb-mob, .menu-btn .mb-exp { display: none; }
body.side-min .menu-btn .mb-rec { display: none; }
body.side-min .menu-btn .mb-exp { display: inline-flex; }
.scrim { display: none; }

/* busca (area logada) */
.filtros { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.filtros .c3 { grid-column: span 3; } .filtros .c4 { grid-column: span 4; } .filtros .c6 { grid-column: span 6; } .filtros .c12 { grid-column: span 12; }
.resumo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.resumo .num { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--brand); }
.resumo .desc { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.resumo .desc b { color: var(--ink); }

/* passo a passo da compra */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.kv > div { padding: 13px 0; border-bottom: 1px solid #EEF2FA; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--muted); font-weight: 600; font-size: .88rem; }
.kv .v div { padding: 2px 0; }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, #EAF1FF, #F4F8FF); border: 1px solid var(--info-line); }
.download-box .ic-box { width: 52px; height: 52px; border-radius: 15px; background: #E7F8F0; color: #10A063; display: grid; place-items: center; flex: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .mock { padding-right: 0; max-width: 640px; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
    .strip .container { grid-template-columns: repeat(2, 1fr); }
    .strip-item:nth-child(2) { border-right: 0; }
    .planos, .dados-wrap { grid-template-columns: 1fr; }
    .filtros .c3 { grid-column: span 6; }
}
@media (max-width: 960px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
    .sidebar.aberto { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
    .app-top .tag { display: none; }
    .scrim.aberto { display: block; position: fixed; inset: 0; background: rgba(7, 14, 43, .5); z-index: 65; }
    .menu-btn { width: 42px; height: 42px; padding: 0; color: var(--ink); border-color: var(--line); }
    .menu-btn .mb-desk, body.side-min .menu-btn .mb-exp { display: none; }
    .menu-btn .mb-mob { display: inline-flex; }
    .app-top { padding: 0 18px; } .app-content { padding: 10px 18px 56px; }
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .pub-nav { display: none; }
    .pub-nav.aberto { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 12px 24px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
    .nav-toggle { display: grid; }
    .pub-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .hero { padding: 34px 0 30px; }
    .busca-grid { grid-template-columns: 1fr; }
    .busca-linha { align-items: stretch; flex-direction: column; }
    .busca-linha .btn { width: 100%; flex: none; height: 52px; }
    .steps, .strip .container { grid-template-columns: 1fr; }
    .strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .dados-lista { grid-template-columns: 1fr 1fr; }
    .mock-window { grid-template-columns: 1fr; } .mock-side { display: none; }
    .float.f1, .float.f3 { display: none; }
    .filtros .c3, .filtros .c4, .filtros .c6 { grid-column: span 12; }
    .kv { grid-template-columns: 1fr; } .kv .k { padding-bottom: 0; border-bottom: 0; }
    .pub-actions .btn-outline { display: none; }
    .pub-footer .cols { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 1.45rem; }
}

/* barra de progresso (geracao da lista em segundo plano) */
.progress { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s ease; min-width: 6px; }

/* menu lateral recolhido (desktop): so icones */
.app { transition: grid-template-columns .2s ease; }
body.side-min .app { grid-template-columns: 76px minmax(0, 1fr); }
body.side-min .sidebar { padding: 22px 10px 16px; overflow: hidden; }
body.side-min .sidebar .logo { padding: 0 0 22px; justify-content: center; }
body.side-min .sidebar .logo-text, body.side-min .side-link span, body.side-min .side-user .who, body.side-min .side-out button span { display: none; }
body.side-min .side-sec { font-size: 0; height: 1px; margin: 14px 12px; background: rgba(255, 255, 255, .1); }
body.side-min .side-link { justify-content: center; padding: 12px 0; }
body.side-min .side-user { justify-content: center; padding: 8px 0; background: transparent; }
body.side-min .side-out button { justify-content: center; padding: 10px 0; }
@media (max-width: 960px) { body.side-min .app { grid-template-columns: 1fr; } }

/* cabecalho publico em telas estreitas: logo nunca e coberta pelo botao */
.pub-header .logo { flex: none; }
.pub-actions { flex: none; }
@media (max-width: 520px) {
    .pub-header .container { gap: 8px; }
    .pub-header .logo img { height: 28px; }
    .pub-header .logo-text { font-size: 1.3rem; }
    .pub-actions { gap: 6px; }
    .pub-actions .btn-sm { padding: 0 12px; }
    .pub-actions .btn svg.ic-sm { display: none; }
    .so-desktop { display: none; }
}
