/* Site público do Emissor NF: página inicial (resources/views/site/home.blade.php) e o arquivo compartilhável
   publicar/site/index.html, que embute este CSS (php artisan site:exportar). Cores iguais às do app (app.css).
   Mobile-first: nada passa da largura de 375px; gutter lateral de 16px no celular. */
:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #F7F9FB; --line: #E1E6ED;
  --fg: #111A27; --muted: #556073;
  --accent: #1F4FD1; --accent-strong: #163BA3; --accent-soft: #EAF0FF; --accent-line: #BFD0F8; --on-accent: #FFFFFF;
  --ok: #0A7A45; --ok-soft: #E5F5EC;
  --escuro: #EAF0FF; --escuro-fg: #2B3647; --escuro-strong: #111A27; --escuro-line: #BFD0F8; --escuro-muted: #556073;
  --sombra: 0 20px 50px rgba(17, 26, 39, .12);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
/* Site sempre claro, por escolha do dono: sem versao escura. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0; overflow-wrap: anywhere; }
a { color: var(--accent); }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.pular { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }

/* Botões iguais aos do app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.pri:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.claro { background: #FFFFFF; border-color: #FFFFFF; color: #0F1B2D; }
.btn.claro:hover { background: #E5EAF1; border-color: #E5EAF1; }
.btn.grande { min-height: 52px; padding: 0 22px; font-size: 16px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--fg); text-decoration: none; white-space: nowrap; }
.topo .marca { margin-right: auto; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: #1F4FD1; color: #FFFFFF; display: grid; place-items: center; flex: none; }
.topo-nav { display: none; gap: 2px; margin-right: 8px; }
.topo-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.topo-nav a:hover { background: var(--surface-2); color: var(--fg); }
@media (min-width: 900px) { .topo-nav { display: flex; } }
.topo-acoes { display: flex; gap: 8px; flex: none; }
.topo-acoes .btn { padding: 0 12px; font-size: 14px; }
@media (max-width: 419px) { .topo-acoes .btn:not(.pri) { border-color: transparent; background: transparent; padding: 0 8px; } }

/* Herói */
.heroi { padding: 44px 0 56px; background: radial-gradient(900px 460px at 8% -20%, var(--accent-soft), transparent 70%); }
.heroi-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .heroi { padding: 76px 0 88px; } .heroi-in { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.olho { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(31px, 5.2vw, 50px); font-weight: 700; letter-spacing: -.02em; }
.lead { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.selos { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.selos li { display: flex; align-items: center; gap: 7px; }
.selos li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Prévia ilustrativa de uma nota (só HTML e CSS) */
.mock { width: 100%; max-width: 460px; margin: 0 auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sombra); font-size: 14px; }
.mock-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-tit { font-weight: 700; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mock-row span { color: var(--muted); flex: none; }
.mock-row b { font-weight: 600; text-align: right; }
.mock-itens { width: 100%; border-collapse: collapse; margin-top: 2px; }
.mock-itens td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mock-itens td + td { padding-left: 10px; white-space: nowrap; }
.mock-itens td:nth-child(2) { color: var(--muted); }
.mock-itens td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mock-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 4px; }
.mock-total b { font-size: 20px; }
.mock-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; }
.chip.ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }

/* Seções */
.sec { padding: 56px 0; }
@media (min-width: 900px) { .sec { padding: 84px 0; } }
.sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; letter-spacing: -.015em; max-width: 26ch; }
.sec .lead { margin-top: 12px; }
.grade { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grade.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grade.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cartao { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.alt .cartao { background: var(--bg); }
.icone { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cartao h3 { font-size: 17px; font-weight: 700; }
.cartao p { font-size: 15px; color: var(--muted); }
.cartao .mais { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; }

/* Como funciona */
.passos { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.passos li { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.passos .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }
.passos h3 { font-size: 17px; font-weight: 700; }
.passos p { font-size: 15px; color: var(--muted); }

/* Planos */
.planos { display: grid; gap: 20px; margin-top: 36px; padding-top: 6px; align-items: stretch; }
@media (min-width: 900px) { .planos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plano { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 22px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.plano.destaque { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rotulo { position: absolute; top: -13px; left: 20px; padding: 4px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.plano h3 { font-size: 21px; font-weight: 700; }
.preco { font-size: 15px; color: var(--muted); }
.preco b { display: block; font-size: 34px; letter-spacing: -.02em; color: var(--fg); line-height: 1.1; margin-bottom: 2px; }
.limite { font-weight: 600; }
.inclui { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.inclui li { display: flex; gap: 8px; align-items: flex-start; }
.inclui li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.plano .btn { margin-top: auto; }
.nota-plano { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 80ch; }

/* Perguntas frequentes */
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 820px; }
.faq details { padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; list-style: none; font-size: 16px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 24px; flex: none; text-align: center; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

/* Chamada final e rodapé (fundo escuro como o menu do app) */
.chamada { padding: 56px 0; background: var(--escuro); color: var(--escuro-fg); }
.chamada h2 { font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; letter-spacing: -.015em; color: var(--escuro-strong); max-width: 26ch; }
.chamada p { margin-top: 12px; max-width: 62ch; font-size: 17px; }
.chamada .btn { margin-top: 24px; }
.rodape { padding: 40px 0 28px; background: var(--escuro); color: var(--escuro-fg); border-top: 1px solid var(--escuro-line); }
.rodape-in { display: grid; gap: 30px; }
@media (min-width: 900px) { .rodape-in { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; } }
.rodape .marca { color: var(--escuro-strong); }
.rodape p { margin-top: 10px; font-size: 14px; line-height: 1.55; }
.rodape-tit { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--escuro-strong); }
.rodape nav { display: flex; flex-direction: column; gap: 10px; }
.rodape a { color: var(--escuro-fg); font-size: 15px; text-decoration: none; }
.rodape a:hover { color: var(--escuro-strong); text-decoration: underline; }
.rodape .contato p { margin-top: 8px; }
.rodape .contato a { text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--escuro-line); font-size: 13px; color: var(--escuro-muted); }
