/* PEDE FLUX · camada do site sobre o kit (system.css, motion.css, layout.css).
   Vale para a Home e as páginas do SPA (/validar, 404) e para as páginas estáticas de site/render.mjs.
   Cores sólidas da marca (sem gradiente, sombra difusa, glow ou blur), Geist servida pelo próprio domínio.
   O bloco :root é o que `start.mjs brand --page software --bg #000000 --ink #EDEDED --accent #EDEDED
   --surface #0A0A0A --muted #888888 --type geist` imprimiu; não editar os valores à mão. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Zen Dots"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/zen-dots-latin-400-normal.woff2") format("woff2"); }

:root {
  --p-bg: #000000; --p-surface: #0a0a0a; --p-ink: #ededed; --p-muted: #888888;
  --p-accent: #ededed; --p-accent-ink: #000000; --p-action: #ededed; --p-action-ink: #000000;
  --p-inv-bg: #ededed; --p-inv-surface: #d7d7d7; --p-inv-ink: #000000; --p-inv-muted: #3d3d3d;
  --p-inv-accent: #000000; --p-inv-accent-ink: #ededed; --p-inv-action: #000000; --p-inv-action-ink: #ededed;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  /* estados do produto (dinheiro e rota), as mesmas cores do app e da landing /empresas */
  --flux-money: #2bc985;
  --flux-route: #3f5efb;
}

/* ── Marca: o ícone do app (máscara) e o nome em Zen Dots, na cor do texto ─────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark {
  width: 22px; height: 22px; flex: none; background: currentColor;
  -webkit-mask: url("/images/flux-logo.png") center / contain no-repeat; mask: url("/images/flux-logo.png") center / contain no-repeat;
}
.brand__word { font-family: "Zen Dots", var(--font-display); font-size: 16px; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.footer--dark .brand__mark { width: 36px; height: 36px; }
.footer--dark .brand__word { font-size: 28px; }

/* ── Aviso de cookies: uma linha fixa no pé, sem modal (LGPD: analytics só com "Aceitar todos") ─ */
.cookie-bar {
  position: fixed; z-index: 30; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px));
  display: grid; gap: var(--s-4); padding: var(--s-5);
  background: var(--p-surface); color: var(--p-ink); border: 1px solid #222222; border-radius: var(--r-md);
}
.cookie-bar p { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); }
.cookie-bar p a { color: var(--p-ink); }
.cookie-bar .btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cookie-bar .btn { flex: 1 1 auto; }
@media (max-width: 639px) {
  .cookie-bar { right: 0; bottom: 0; width: 100%; gap: var(--s-3); border-radius: 0; border-width: 1px 0 0; padding: var(--s-3) var(--gut) calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .cookie-bar p { font-size: 13px; }
}
/* enquanto a linha de cookies está aberta, o fim da página sobe acima dela (nada fica coberto no último toque) */
body:has(.cookie-bar) { padding-bottom: 168px; }
@media (max-width: 639px) { body:has(.cookie-bar) { padding-bottom: 150px; } }
.linkbtn { appearance: none; display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* telas muito estreitas: o ícone segura a marca e o nome sai, para o botão e o menu caberem */
@media (max-width: 379px) { .nav .brand__word { display: none; } }

/* ── Páginas de conteúdo (documentos, listas, lojas, /validar, 404): sem a regra de uma tela ── */
.doc { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-10); min-height: 70svh; }
.doc .wrap { display: grid; gap: var(--s-8); }
.doc__head { display: grid; gap: var(--s-4); max-width: 760px; }
.doc__head h1 { font: var(--display-weight) clamp(36px, 3.4vw + 12px, 56px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.doc__head p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.doc__eyebrow { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.doc h2 { font: var(--display-weight) clamp(24px, 1.2vw + 18px, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 0 var(--s-5); }
.doc__block { display: grid; gap: var(--s-5); }
.doc .muted { color: var(--muted); }

/* lista de linhas com regra de 1px (cidades, termos, ajuda) */
.list-rows { display: grid; border-top: 1px solid var(--line); }
.list-rows > a, .list-rows > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: baseline;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.list-rows > a { grid-template-columns: minmax(0, 1fr) auto 16px; }
@media (max-width: 639px) { .list-rows > a, .list-rows > div { grid-template-columns: minmax(0, 1fr) 16px; } .list-rows small { grid-column: 1; grid-row: 2; } .list-rows > a::after { grid-column: 2; grid-row: 1; } }
.list-rows b { font-weight: 500; font-size: var(--t-lead); }
.list-rows small { font-size: var(--t-body); color: var(--muted); }
.list-rows > a::after { content: "→"; color: var(--muted); transition: transform 160ms cubic-bezier(.2, .8, .2, 1), color 160ms; }
.list-rows > a:hover::after { transform: translateX(3px); color: var(--ink); }
.list-rows > a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* cartões sólidos (planos, fatos, lojas) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-5); }
.tile-box { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
a.tile-box { transition: transform 200ms cubic-bezier(.2, .8, .2, 1), border-color 200ms; }
a.tile-box:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tile-box h3 { margin: 0; font: 500 var(--t-lead)/1.3 var(--font-text); }
.tile-box p { margin: 0; color: var(--muted); }
.tile-box .figure { font: 600 clamp(28px, 1.5vw + 20px, 38px)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-box .figure--money { color: var(--flux-money); }
.tile-box .btn { margin-top: var(--s-3); justify-self: start; }

/* pares rótulo / valor (como o dinheiro anda, regra do afiliado) */
.pairs { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.pairs dt, .pairs dd { margin: 0; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pairs dt { font-weight: 500; padding-right: var(--s-6); }
.pairs dd { color: var(--muted); }
@media (max-width: 639px) { .pairs { grid-template-columns: minmax(0, 1fr); } .pairs dt { border-bottom: 0; padding-bottom: 0; } }

/* texto legal (HTML do registro) */
.legal { max-width: 72ch; font-size: var(--t-body); line-height: 1.7; }
.legal h1, .legal h2, .legal h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; }
.legal h1 { font-size: clamp(30px, 2vw + 18px, 44px); font-weight: var(--display-weight); }
.legal h2 { font-size: 24px; font-weight: 500; margin-top: var(--s-8); }
.legal h3 { font-size: 20px; font-weight: 500; margin-top: var(--s-6); }
.legal a { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { border: 1px solid var(--line); padding: var(--s-3); text-align: left; vertical-align: top; }
.hash { font-family: var(--font-mono); font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; }

/* loja: cabeçalho e cardápio */
.store-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.store-head img, .store-head .ph { width: 72px; height: 72px; border-radius: var(--r-md); border: 1px solid var(--line); object-fit: cover; background: var(--surface); }
.menu-rows { display: grid; border-top: 1px solid var(--line); }
.menu-rows > li { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.menu-rows > li b { font-weight: 500; }
.menu-rows > li small { display: block; color: var(--muted); font-size: var(--t-body); }
.menu-rows > li em { font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-rows { margin: 0; padding: 0; }

/* lojas em grade (cidade, categoria) */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.store-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 200ms cubic-bezier(.2, .8, .2, 1), border-color 200ms; }
.store-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.store-card img, .store-card .ph { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg); border: 1px solid var(--line); }
.store-card b { display: block; font-weight: 500; }
.store-card small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.chip:hover { border-color: var(--line-strong); }
.pill-note { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--t-small); }

/* rodapé das páginas de conteúdo (sem a tela do close): o mesmo footer--dark, mais baixo */
/* rodapé das páginas de conteúdo: o mesmo desenho do footer-dark da Home, um passo acima do fundo, com linha de 1px */
.footer--doc { padding: var(--s-9) 0 var(--s-8); background: var(--p-surface); border-top: 1px solid #222222; }
.footer--doc .closing__links { display: grid; gap: var(--s-8); }
.footer--doc .brand__mark { width: 36px; height: 36px; }
.footer--doc .brand__word { font-size: 28px; }

/* /validar */
.validate-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: end; max-width: 760px; }
.validate-form .field input { font-family: var(--font-mono); }
@media (max-width: 639px) { .validate-form { grid-template-columns: minmax(0, 1fr); } .validate-form .btn { width: 100%; } }
.validate-result { display: grid; gap: var(--s-5); max-width: 760px; }
.validate-result:empty { display: none; }
.validate-doc h2, .validate-notice h2 { margin: 0; font-size: var(--t-lead); }
.validate-doc__ok { margin: 0; color: var(--flux-money); font-weight: 500; }
.validate-doc__ok span { font-size: 10px; vertical-align: middle; }

/* créditos das fotos em português (o kit escreve "Credits" e "Hide") */
.credits > summary::after { content: "Ver créditos"; }
.credits[open] > summary::after { content: "Ocultar"; }
