/* Páginas internas (Segurança, Privacidade, Termos, 404).
   O começo é cópia dos estilos da home (index.html): cores, tipografia, barra do topo, botões, rodapé.
   Mudou lá, muda aqui (e suba o ?v= no parciais/cabeca.html). */
:root {
  --bg: #000;
  --bg-1: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1d1d21;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --tx: #f5f5f7;
  --tx-2: #a1a1a6;
  --tx-3: #86868b;
  --or: #ff5b2e;
  --or-2: #ff8a3d;
  --or-soft: rgba(255, 91, 46, .14);
  --silver: #d9dde6;
  --ok: #3dd68c;
  --warn: #f5b544;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Michroma', 'Geist', ui-sans-serif, sans-serif;
  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 4h17L4 25V8a4 4 0 0 1 4-4z' fill='%23d9dde6'/%3E%3Cpath d='M28 7v17a4 4 0 0 1-4 4H7z' fill='%23ff5b2e'/%3E%3C/svg%3E") center / contain no-repeat;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -.035em; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 980px; margin-inline: auto; padding-inline: var(--gut); }
.center { text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--or); letter-spacing: -.01em; }
.h-xl { font-size: clamp(48px, 8.4vw, 112px); line-height: 1; }
.h-l { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; }
.h-m { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.grad { background: linear-gradient(180deg, #fff 30%, #9a9aa2 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-or { background: linear-gradient(100deg, #ffb36b 0%, #ff5b2e 45%, #ff2d55 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; color: var(--tx-2); font-weight: 450; letter-spacing: -.01em; }
.sub b { color: var(--tx); font-weight: 600; }
.sec { padding-block: clamp(110px, 14vw, 200px); position: relative; }
.rv { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.pre { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) { .rv, .rv.pre { opacity: 1; transform: none; transition: none; } }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; background: var(--or); color: #170500; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); white-space: nowrap; }
.pill:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(255, 91, 46, .45); }
.pill.sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.lnk { color: var(--or-2); text-decoration: none; font-size: 19px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.lnk:hover { text-decoration: underline; text-underline-offset: 4px; }
.acts { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- navegação ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; background: rgba(0, 0, 0, .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 52px; display: flex; align-items: center; gap: 30px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--brand); font-weight: 400; font-size: 15px; letter-spacing: -.01em; }
.mark em { font-style: normal; color: var(--or); margin-left: -10px; }
.mark i { width: 22px; height: 22px; background: var(--logo); filter: drop-shadow(0 0 6px rgba(255, 91, 46, .45)); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 13px; color: var(--tx-2); }
.nav ul a { text-decoration: none; transition: color .2s; }
.nav ul a:hover { color: var(--tx); }
@media (max-width: 860px) { .nav ul { display: none; } .nav .pill { margin-left: auto; } }

@keyframes pisca { 50% { opacity: 0; } }

/* ---------- fecho: o sol nascendo atrás do convite ---------- */
.final { text-align: center; position: relative; overflow: hidden; }
.sunrise { position: absolute; left: 50%; bottom: calc(min(1100px, 124vw) * -.84); width: min(1100px, 124vw); aspect-ratio: 1; transform: translate(-50%, calc(var(--sr, 0) * -1px)); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 18%, #ffd7a8 0%, #ff8a3d 18%, #ff5b2e 36%, #b0260a 62%, #3a0b02 84%);
  box-shadow: inset 0 30px 80px rgba(255, 230, 200, .5); }
.sunglow { position: absolute; left: 50%; bottom: calc(min(1100px, 124vw) * -.5); width: min(1900px, 220vw); aspect-ratio: 2 / 1.3; transform: translate(-50%, calc(var(--sr, 0) * -1px)); background: radial-gradient(closest-side, rgba(255, 91, 46, .5), rgba(255, 91, 46, .16) 55%, transparent); pointer-events: none; }
.sunrise::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0) 40%); filter: blur(.5px); box-shadow: 0 0 18px #fff; opacity: .85; }
.sunrise::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .35), transparent 30%); animation: respira 5s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .45; } }
.final { padding-bottom: clamp(200px, 24vw, 330px); }
.final .narrow { position: relative; display: grid; gap: 26px; justify-items: center; }

/* ---------- leitura (barra do topo) ---------- */
.lido { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--lido, 0)); background: linear-gradient(90deg, #c9d2e4, #ff5b2e); box-shadow: 0 0 10px rgba(255, 91, 46, .7); }
.nav ul a { position: relative; }
.nav ul a.at { color: var(--tx); }
.nav ul a.at::after { content: ''; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; border-radius: 2px; background: var(--or); }

/* ---------- rodapé ---------- */
footer { border-top: 1px solid var(--line); padding-block: clamp(60px, 8vw, 100px) 34px; color: var(--tx-3); font-size: 14px; position: relative; overflow: hidden; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 860px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-top .ft-cta { grid-column: 1 / -1; } }
.ft-cta { display: grid; gap: 16px; align-content: start; }
.ft-cta b { font-size: clamp(22px, 2.4vw, 30px); color: var(--tx); letter-spacing: -.03em; line-height: 1.15; font-weight: 650; }
.ft-cta .pill { justify-self: start; }
.ft-col { display: grid; gap: 10px; align-content: start; }
.ft-col h4 { margin: 0 0 4px; font-size: 13px; color: var(--tx); font-weight: 600; }
.ft-col a { text-decoration: none; transition: color .2s; }
.ft-col a:hover { color: var(--tx); }
.ft-mark { padding-bottom: .08em; margin-top: clamp(50px, 7vw, 90px); font-family: var(--brand); font-size: clamp(46px, 12.5vw, 190px); font-weight: 400; letter-spacing: -.03em; line-height: .9; text-align: center; opacity: .95; user-select: none; -webkit-mask: linear-gradient(180deg, #000 45%, transparent 100%); mask: linear-gradient(180deg, #000 45%, transparent 100%); }
.ft-mark span { -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-mark .a { background-image: linear-gradient(180deg, #eef0f5, #9aa0ad); }
.ft-mark .b { margin-left: 0; background-image: linear-gradient(180deg, #ffb36b, #ff5b2e 60%); }
.ft-bot { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; margin-top: 24px; font-size: 13px; }

footer .wrap { display: block; }
footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--tx); }
/* linha da empresa: razão social · CNPJ · e-mail (cada item só aparece se estiver preenchido em config/empresa.json) */
.ft-leg { display: flex; flex-wrap: wrap; row-gap: 6px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.ft-leg em { margin-left: auto; padding-left: 20px; font-style: normal; }
.ft-leg span + span::before { content: '·'; margin: 0 10px; opacity: .6; }
.ft-leg + .ft-bot { margin-top: 12px; }
@media (max-width: 640px) { .ft-leg { flex-direction: column; } .ft-leg span + span::before { content: none; } .ft-leg em { margin: 8px 0 0; padding: 0; } .ft-bot { flex-direction: column; gap: 10px; } footer .ft-bot nav { margin-left: 0; } }

/* ---------- barra do topo: cápsula flutuante ---------- */
.nav { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; right: auto; width: min(1180px, calc(100% - 24px)); transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(14, 14, 17, .66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: visible; transition: opacity 1s var(--ease) .2s, background .45s, border-color .45s, box-shadow .45s, width .55s var(--ease); }
.nav.topo { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(1240px, calc(100% - 24px)); }
.nav .wrap { max-width: none; height: 60px; padding-inline: 14px 9px; gap: 18px; }
.nav ul { margin: 0 auto; gap: 2px; font-size: 13.5px; }
.nav ul a { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 10px; transition: color .2s, background .2s; }
.nav ul a:hover { background: rgba(255, 255, 255, .06); color: var(--tx); }
.nav ul a.at { background: rgba(255, 255, 255, .08); color: var(--tx); }
.nav ul a.at::after { left: 50%; right: auto; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; box-shadow: 0 0 8px var(--or); }
.nav-r { display: flex; align-items: center; gap: 10px; }
.nav-clock { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 12px; color: var(--tx-2); white-space: nowrap; }
.nav-clock i { width: 7px; height: 7px; border-radius: 50%; background: #3dd68c; box-shadow: 0 0 8px #3dd68c; animation: pisca 1.6s infinite; }
.nav-clock b { color: var(--tx); font-weight: 500; font-variant-numeric: tabular-nums; }
.lido { bottom: -1px; left: 18px; width: calc(100% - 36px); border-radius: 2px; }
.nav.topo .lido { opacity: 0; }

/* ---------- botão de demonstração ---------- */
.pill, .cta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #ff7d50, #ff5b2e 55%, #ef4a1c); color: #1a0600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(120, 25, 0, .35), 0 0 0 1px rgba(255, 91, 46, .55), 0 10px 28px -8px rgba(255, 91, 46, .65); transition: transform .25s var(--ease), box-shadow .3s; }
.pill::before, .cta::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: brilho 5s ease-in-out infinite; }
/* o brilho anda com transform (GPU): animar left obrigava o navegador a refazer o layout em todo quadro, mesmo com a página parada */
@keyframes brilho { 0%, 72% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(500%) skewX(-20deg); } }
.pill:hover, .cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(120, 25, 0, .35), 0 0 0 1px rgba(255, 130, 90, .95), 0 14px 38px -8px rgba(255, 91, 46, .85); }
.pill:active, .cta:active { transform: translateY(0) scale(.98); }
.cta { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 6px 0 18px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ar { width: 30px; height: 30px; border-radius: 9px; background: rgba(20, 5, 0, .88); color: #ff8a5c; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.ar svg { width: 14px; height: 14px; }
.pill { border-radius: 14px; gap: 14px; }
.pill .ar { width: 36px; height: 36px; border-radius: 10px; margin-right: -19px; }
.pill:hover .ar, .cta:hover .ar { transform: translateX(3px); }
@media (max-width: 1100px) { .nav-clock { display: none; } }
@media (max-width: 860px) { .nav ul { display: none; } .nav-r { margin-left: auto; } .nav .wrap { height: 56px; } .cta { height: 40px; font-size: 13px; padding-left: 14px; gap: 10px; } .cta .ar { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .pill::before, .cta::before { display: none; } }

/* ============ só das páginas internas ============ */
.pg main { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(130px, 16vw, 190px)); }
.pg-hero { padding-bottom: clamp(56px, 8vw, 100px); }
.pg-hero .narrow { display: grid; gap: 22px; justify-items: center; text-align: center; }
.pg-hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; }
.pg-hero .sub { max-width: 640px; }
.pg-hero .upd { font-family: var(--mono); font-size: 12px; color: var(--tx-3); letter-spacing: .04em; text-transform: uppercase; }

/* Segurança: itens numerados pelo CSS, para a numeração não pular quando uma flag esconde um item */
.pg-itens { max-width: 980px; margin: 0 auto; padding-inline: var(--gut); counter-reset: it; }
.pg-itens > div { border-top: 1px solid var(--line); }
.pg-item { counter-increment: it; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: clamp(30px, 4vw, 46px) 0; border-bottom: 1px solid var(--line); }
.pg-item::before { content: counter(it, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--or); padding-top: .9em; }
.pg-item h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; }
.pg-item p { color: var(--tx-2); margin-top: 12px; font-size: 18px; max-width: 60ch; }
.pg-item p + p { margin-top: 10px; }
.pg-item b { color: var(--tx); font-weight: 600; }
@media (max-width: 640px) { .pg-item { grid-template-columns: minmax(0, 1fr); gap: 8px; } .pg-item::before { padding-top: 0; } .pg-item p { font-size: 16.5px; } }

/* Segurança: LGPD */
.lgpd { max-width: 980px; margin: clamp(80px, 10vw, 130px) auto 0; padding-inline: var(--gut); }
.lgpd-box { background: var(--bg-1); border: 1px solid rgba(255, 255, 255, .06); border-radius: 28px; padding: clamp(26px, 4vw, 48px); display: grid; gap: 24px; }
.lgpd-box h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.lgpd-box > p { color: var(--tx-2); font-size: 18px; max-width: 62ch; }
.papeis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.papeis > div { border-radius: 18px; background: var(--bg-2); padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; }
.papeis small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--or); }
.papeis b { font-size: 21px; letter-spacing: -.02em; }
.papeis p { color: var(--tx-2); font-size: 15.5px; }
@media (max-width: 640px) { .papeis { grid-template-columns: minmax(0, 1fr); } .lgpd-box > p { font-size: 16.5px; } }
.lgpd-ct { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--tx-2); }
.lgpd-ct b { color: var(--tx); font-weight: 600; }
.lgpd-ct a { color: var(--or-2); text-decoration: none; }
.lgpd-ct a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-cta { margin-top: clamp(40px, 6vw, 80px); --sr: 150; }

/* Privacidade e Termos: texto corrido */
.doc { max-width: 780px; margin: 0 auto; padding: 0 var(--gut) clamp(110px, 13vw, 170px); counter-reset: sec; }
.doc h2 { counter-increment: sec; display: flex; gap: 14px; align-items: baseline; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.2; letter-spacing: -.025em; margin: clamp(48px, 6vw, 64px) 0 14px; }
.doc h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--or); flex: none; }
.doc p, .doc li { color: var(--tx-2); font-size: 16.5px; line-height: 1.65; }
.doc p + p, .doc ul + p, .doc p + ul, .doc .terc + p { margin-top: 12px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc li::marker { color: var(--or); }
.doc b { color: var(--tx); font-weight: 600; }
.doc a { color: var(--or-2); text-decoration: none; }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc .nota { margin-top: 16px; border-radius: 18px; background: var(--bg-1); border: 1px solid rgba(255, 255, 255, .06); padding: 18px 22px; color: var(--tx); font-size: 16.5px; line-height: 1.6; }
.doc .nota b { color: var(--or-2); }
/* serviços de terceiros: tabela no computador, cartões no celular */
.terc { margin-top: 16px; border-top: 1px solid var(--line); }
.terc > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1.2fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--tx-2); }
.terc > div.th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-3); padding: 12px 0; }
.terc > div > b { color: var(--tx); font-weight: 600; }
@media (max-width: 640px) {
  .terc > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .terc > div.th { display: none; }
  .terc > div > span::before { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-3); margin-top: 8px; }
  .terc > div > span:nth-of-type(1)::before { content: 'Para que serve'; }
  .terc > div > span:nth-of-type(2)::before { content: 'O que recebe'; }
}

/* 404 */
.p404 { min-height: calc(100svh - 300px); display: grid; align-content: center; padding-bottom: clamp(90px, 12vw, 160px); }
.p404 .num { font-family: var(--mono); font-size: 13px; color: var(--or); letter-spacing: .08em; }
.p404 .acts { margin-top: 10px; }
