:root {
  /* Material Dark / FiscalAPI — quase preto + violeta */
  --bg: #0a0a0b;
  --bg-deep: #060607;
  --surface: #141417;
  --surface-2: #1b1b20;
  --line: #2a2a31;
  --line-soft: #1f1f24;
  --text: #ededf2;
  --text-dim: #9a9aa6;
  --text-faint: #62626d;
  --accent: #6d5ef6;
  --accent-2: #8a7bff;
  --accent-deep: #5546d6;
  --accent-glow: rgba(109, 94, 246, 0.16);
  --green: #34d399;
  --amber: #f5a623;
  --blue: #5b8def;
  --danger: #f0676b;
  --radius: 16px;
  --radius-sm: 11px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(109,94,246,0.10), transparent 60%),
    radial-gradient(800px 460px at -5% 5%, rgba(85,70,214,0.07), transparent 55%),
    var(--bg);
  color: var(--text); line-height: 1.55; min-height: 100vh;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  letter-spacing: -0.011em;
}
a { color: var(--accent-2); }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* eyebrow/labels em mono (estilo FiscalAPI) */
.mono { font-family: var(--mono); }

/* Topbar */
.topbar { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; backdrop-filter: blur(12px); background: rgba(10,10,11,0.8); z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, var(--accent-2), var(--accent-deep)); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -0.5px; box-shadow: 0 4px 16px -4px rgba(109,94,246,0.6); }
.brand-name { font-size: 17px; letter-spacing: -0.3px; color: var(--text-dim); font-weight: 500; }
.brand-name strong { color: var(--text); font-weight: 700; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.topnav a:hover { color: var(--accent-2); }

/* Hero */
.hero { padding: 64px 0 36px; max-width: 820px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -2.5px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.lede { margin-top: 22px; font-size: 18px; color: var(--text-dim); max-width: 620px; }
.lede b { color: var(--amber); font-weight: 600; }

/* Card de busca */
.main-card { position: relative; margin-top: 8px; padding: 30px; scroll-margin-top: 80px; background: linear-gradient(180deg, var(--surface), var(--bg-deep)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.card-glow { position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none; background: radial-gradient(440px 130px at 30% 0%, var(--accent-glow), transparent 70%); }
.form-row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 14px; align-items: end; position: relative; }
.form-row--cnpj { grid-template-columns: 1fr auto; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--text-dim); letter-spacing: .4px; text-transform: uppercase; }
input[type="text"] { width: 100%; height: 54px; padding: 0 16px; font-size: 16px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; font-family: var(--mono); letter-spacing: .5px; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
input::placeholder { color: var(--text-faint); }
.btn-primary { height: 54px; padding: 0 28px; border: none; border-radius: var(--radius-sm); cursor: pointer; background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: #fff; font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: .1px; transition: transform .12s, box-shadow .2s; white-space: nowrap; box-shadow: 0 8px 26px -8px rgba(109,94,246,0.65); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(109,94,246,0.8); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.form-hint { margin-top: 14px; font-size: 13px; color: var(--text-faint); }
.btn-ghost { display: inline-block; padding: 11px 20px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-dim); font-family: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s; text-decoration: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.results-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Alert */
.alert { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; border: 1px solid; }
.alert.error { background: rgba(240,103,107,0.08); border-color: rgba(240,103,107,0.3); color: #ff9da0; }
.alert.warning { background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.3); color: #f7c878; }
.alert-icon { display: flex; flex-shrink: 0; }
.alert span { flex: 1; }
.alert-close { background: none; border: none; color: inherit; font-size: 22px; cursor: pointer; opacity: .6; line-height: 1; }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 0 24px; }
.loading p { color: var(--text-dim); font-size: 14.5px; font-family: var(--mono); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero layout: hero + stats lado a lado, formulario abaixo (full width) */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "hero stats" "form form"; gap: 28px 32px; align-items: center; padding-top: 56px; }
.hero-grid .hero { grid-area: hero; padding: 0; }
.hero-grid .stats-card { grid-area: stats; }
.hero-grid .main-card { grid-area: form; margin-top: 0; }
/* Mobile: formulario antes do grafico; padding-top reduzido */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "hero" "form" "stats"; gap: 20px; padding-top: 20px; }
}

/* Stats card (estilo "ULTIMAS 24H" da FiscalAPI) */
.stats-card { background: linear-gradient(180deg, var(--surface), var(--bg-deep)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.stats-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.stats-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.stats-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.stat-num { font-family: var(--mono); font-size: clamp(18px, 2.1vw, 25px); font-weight: 600; letter-spacing: -0.5px; line-height: 1; white-space: nowrap; }
.stat-num.green { color: var(--green); }
.stat-num.amber { color: var(--amber); }
.stat-num.violet { color: var(--accent-2); }
.stat-label { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }
/* Grafico de 24 meses (abertas x fechadas) */
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; margin-bottom: 6px; gap: 10px; }
.chart-title { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; }
.chart-legend { display: flex; gap: 12px; }
.lg { font-family: var(--mono); font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.lg::before { content: ""; width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-ab::before { background: var(--green); }
.lg-fe::before { background: var(--danger); }
.stats-chart { position: relative; margin-top: 2px; }
.stats-chart svg { width: 100%; height: 88px; display: block; overflow: visible; }
.curve { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.curve-ab { stroke: var(--green); }
.curve-fe { stroke: var(--danger); opacity: .85; }
.chart-guide { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-dot { stroke: var(--bg-deep); stroke-width: 1; }
.dot-ab { fill: var(--green); }
.dot-fe { fill: var(--danger); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -115%); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--text); white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0,0,0,.85); z-index: 5; }
.chart-tip .tip-mes { color: var(--text-dim); margin-bottom: 2px; }
.chart-tip .tip-ab { color: var(--green); }
.chart-tip .tip-fe { color: var(--danger); }
.stats-rows { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; display: grid; gap: 8px; }
.stats-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.pill { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 6px; letter-spacing: .5px; }
.pill.ativa { background: rgba(52,211,153,0.14); color: var(--green); }
.pill.cache { background: var(--surface-2); color: var(--text-faint); }

/* Breadcrumb */
.breadcrumb { padding: 22px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); }

/* Empresa head */
.empresa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0 8px; }
.empresa-nome { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); letter-spacing: -1.2px; line-height: 1.08; }
.empresa-fantasia { color: var(--text-dim); margin-top: 6px; font-size: 16px; }
.results-eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); margin-bottom: 6px; }
.status-badge { flex-shrink: 0; padding: 7px 15px; border-radius: 100px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.status-active { background: rgba(52,211,153,0.13); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.status-inactive { background: rgba(240,103,107,0.12); color: #ff9da0; border: 1px solid rgba(240,103,107,0.3); }

/* Blocos de dados */
.dados-bloco { padding: 34px 0 0; }
.dados-bloco h2 { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.6px; margin-bottom: 18px; }
.bloco-sub { color: var(--text-faint); font-size: 14px; margin: -10px 0 16px; }
.bloco-link { color: var(--text-dim); font-size: 15.5px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-card { position: relative; padding: 15px 44px 15px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 5px; transition: border-color .18s; }
.copy-btn { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-soft); background: var(--bg-deep); color: var(--text-faint); border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; padding: 0; }
.info-card:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--accent-2); border-color: var(--accent); }
.copy-btn.copied { color: var(--green); border-color: var(--green); opacity: 1; }
.copy-btn svg { width: 14px; height: 14px; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.info-card.highlight { background: linear-gradient(120deg, var(--accent-glow), var(--surface)); border-color: rgba(109,94,246,0.3); }
.info-key { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: .3px; text-transform: uppercase; }
.info-value { font-size: 16px; color: var(--text); font-family: var(--mono); word-break: break-word; }
.info-value a { color: var(--accent-2); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.info-card.highlight .info-value { font-size: 19px; color: var(--accent-2); font-weight: 500; }

/* Situacao cadastral como bolinha + texto (dentro do card CNPJ) */
.sit-line { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; margin-top: 4px; }
.sit-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sit-ok { color: var(--green); } .sit-ok .sit-dot { background: var(--green); box-shadow: 0 0 7px var(--green); }
.sit-bad { color: var(--danger); } .sit-bad .sit-dot { background: var(--danger); box-shadow: 0 0 7px var(--danger); }
.sit-warn { color: var(--amber); } .sit-warn .sit-dot { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.sit-neutral { color: var(--text-faint); } .sit-neutral .sit-dot { background: var(--text-faint); }

/* Card de Inscricao Estadual (numero + botao Ver detalhes) */
.ie-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ie-card-num { font-family: var(--mono); font-size: 18px; color: var(--accent-2); font-weight: 500; word-break: break-word; }
.btn-mini { height: auto; padding: 7px 14px; font-size: 13px; box-shadow: none; flex-shrink: 0; }

/* IE bloco */
.ie-cta { padding: 22px; background: linear-gradient(120deg, var(--accent-glow), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ie-cta p { color: var(--text-dim); }

/* Relacionadas */
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rel-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .18s; }
.rel-card:hover { border-color: var(--accent); }
.rel-nome { color: var(--text); font-size: 14.5px; font-weight: 600; }
.rel-meta { color: var(--text-faint); font-size: 12.5px; font-family: var(--mono); }

/* Canais */
.canais-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.canal-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .18s; }
.canal-card:hover { border-color: var(--accent); }
.canal-nome { color: var(--accent-2); font-weight: 700; font-size: 15px; }
.canal-desc { color: var(--text-dim); font-size: 13.5px; }
.canal-tel { color: var(--text-faint); font-size: 13px; font-family: var(--mono); }

/* Tabela situacao */
.tabela-sit { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.tabela-sit th, .tabela-sit td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.tabela-sit th { font-family: var(--mono); color: var(--text-faint); text-transform: uppercase; font-size: 11.5px; letter-spacing: .3px; }
.tabela-sit td:first-child { color: var(--text); font-weight: 600; }
.tabela-sit td { color: var(--text-dim); }
.tabela-sit tr:last-child td { border-bottom: none; }

/* Avisos */
.aviso-dado { margin-top: 12px; font-size: 13px; color: var(--amber); }
.aviso-legal { margin: 40px 0 0; font-size: 12.5px; color: var(--text-faint); padding-top: 22px; border-top: 1px solid var(--line-soft); }

/* Prose */
.prose { padding: 50px 0 0; max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.6px; margin: 26px 0 12px; }
.prose p { color: var(--text-dim); font-size: 16px; margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

/* ====== Mapa do Brasil ====== */
.mapa-block { padding: 56px 0 0; text-align: center; }
.mapa-block h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.8px; margin-bottom: 8px; }
.mapa-block .sub { color: var(--text-dim); font-size: 16px; margin: 0 auto 22px; max-width: 600px; }
/* mapa centralizado: 60% no desktop, 100% no celular (sem fundo/caixa) */
.mapa-centro { width: 60%; margin: 0 auto; }
.mapa-brasil { width: 100%; height: auto; display: block; }
.mapa-brasil .uf path { fill: var(--surface-2); stroke: var(--bg); stroke-width: 1; transition: fill .15s; cursor: pointer; }
.mapa-brasil .uf:hover path, .mapa-brasil .uf:focus path { fill: var(--accent); outline: none; }
/* siglas: mono, cinza claro, pequenas (estilo label "CNPJ DA EMPRESA") */
.uf-label { font-family: var(--mono); font-size: 10px; font-weight: 500; fill: #c2c2cc; text-anchor: middle; pointer-events: none; letter-spacing: .3px; }
@media (max-width: 760px) { .mapa-centro { width: 100%; } }

/* Estados grid */
.estados-block { padding: 50px 0 0; }
.estados-block h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.6px; margin-bottom: 20px; }
.estados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.estados-grid--full { grid-template-columns: repeat(4, 1fr); }
.estados-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; margin-top: 32px; }
@media (max-width: 900px) { .estados-lista { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .estados-lista { grid-template-columns: 1fr; } }
.estado-chip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-dim); font-size: 14px; font-weight: 500; transition: border-color .18s, color .18s; }
.estado-chip:hover { border-color: var(--accent); color: var(--text); }
.estado-chip .uf { font-family: var(--mono); font-weight: 600; color: var(--accent-2); font-size: 13px; min-width: 22px; }
.estado-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.estado-nome { color: inherit; }

/* Steps & FAQ */
.steps { padding: 56px 0 0; }
.steps h3, .faq h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.8px; margin-bottom: 24px; }
.steps-list { list-style: none; display: grid; gap: 16px; }
.steps-list li { display: flex; align-items: center; gap: 16px; font-size: 16.5px; color: var(--text-dim); }
.step-n { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-glow); border: 1px solid var(--line); color: var(--accent-2); font-family: var(--mono); font-weight: 600; font-size: 15px; }
.faq { padding: 56px 0 0; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq summary { padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-dim); font-size: 15px; }
.faq details p strong { color: var(--text); }

/* Ad slot */
.ad-slot { margin: 32px 0 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-preview { min-height: 110px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--text-faint); font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 11px, var(--bg-deep) 11px, var(--bg-deep) 22px); }

/* Bloco campeao 290x90 abaixo do botao de consulta */
.ad-cta { display: flex; justify-content: center; margin-top: 16px; }
.ad-cta-box { width: 280px; height: 90px; min-height: 90px; }

/* Banners laterais fixos (so desktop largo: precisa de espaco ao lado do conteudo de 1040px) */
.ad-rail { position: fixed; top: 88px; width: 160px; z-index: 10; display: none; }
.ad-rail-left { left: calc(50% - 520px - 184px); }
.ad-rail-right { right: calc(50% - 520px - 184px); }
.ad-rail-box { width: 160px; height: 600px; min-height: 600px; }
@media (min-width: 1450px) { .ad-rail { display: block; } }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line-soft); padding: 28px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-legal { font-size: 12.5px; color: var(--text-faint); max-width: 820px; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%); display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 100px; background: var(--surface); border: 1px solid var(--accent); color: var(--text); font-size: 14px; font-weight: 600; z-index: 50; opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s cubic-bezier(.2,1,.3,1), opacity .3s, visibility .3s; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8); border-left-width: 3px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast-icon { display: flex; color: var(--accent-2); }

/* Responsive */
@media (max-width: 760px) {
  .form-row, .form-row--cnpj { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; }
  .info-grid, .rel-grid, .canais-grid { grid-template-columns: 1fr; }
  .estados-grid, .estados-grid--full { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
  .hero { padding: 40px 0 24px; }
  .main-card { padding: 22px; }
  .empresa-head { flex-direction: column; }
}
