/* Estilo comum do site da Campier: fontes, cores, botões, topo, logo, a tela
   do Parcelas em HTML, capa e rodapé das páginas internas.
   Cada página tem por cima o seu próprio estilo (a inicial, dentro do
   index.html; os textos longos, em /leitura.css).
   Ao mudar este arquivo, rodar ferramentas/versionar.py (o ?v= das páginas). */

/* ======================================================================
   Base
   ====================================================================== */
@font-face { font-family: Epilogue; src: url(/fontes/epilogue.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  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: "JetBrains Mono"; src: url(/fontes/jetbrains-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap;
  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; }

:root {
  --noite: #0e0d0a; --noite-2: #161410; --papel: #f2eee5; --papel-2: #e8e2d4;
  --tinta: #16140f; --ambar: #f5a524; --ambar-2: #ffbf4d;
  --suave-escuro: #a8a296; --suave-claro: #5e594f;
  --linha-escura: rgb(242 238 229 / .09); --linha-clara: rgb(22 20 15 / .13);
  --texto: "Epilogue", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --largura: 1360px; --margem: clamp(20px, 4vw, 56px);
  --sai: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noite); color: var(--papel); font: 400 17px/1.6 var(--texto); overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2 * var(--margem), var(--largura)); margin-inline: auto; position: relative; }
.rotulo { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--suave-escuro); margin: 0; display: flex; align-items: center; gap: 12px; }
.rotulo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ambar); }
.claro .rotulo { color: var(--suave-claro); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 4px; border-radius: 4px; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ambar); color: var(--tinta); padding: 10px 16px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.pular:focus { top: 16px; }

/* textura de grão nas faixas escuras */
.grao::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* botões */
.botao { --b-fundo: var(--ambar); --b-tinta: var(--tinta); position: relative; display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 10px 0 26px; border-radius: 999px;
  background: var(--b-fundo); color: var(--b-tinta); font: 500 16px/1 var(--texto); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s var(--sai); }
.botao__seta { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--b-tinta); color: var(--b-fundo); transition: transform .4s var(--sai); }
.botao__seta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.botao::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ambar-2); transform: translateY(101%); transition: transform .45s var(--sai); }
.botao:hover::before { transform: none; }
.botao:hover .botao__seta { transform: rotate(-45deg); }
.botao:active { transform: scale(.97); }
.botao--escuro { --b-fundo: var(--tinta); --b-tinta: var(--papel); }
.botao--escuro::before { background: #2a261d; }
.botao--fantasma { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1px rgb(242 238 229 / .28); padding: 0 26px; }
.botao--fantasma::before { background: rgb(242 238 229 / .08); }
.link-seta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-seta span { transition: transform .3s var(--sai); }
.link-seta:hover span { transform: translateX(4px); }

/* ======================================================================
   Topo
   ====================================================================== */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, box-shadow .4s; }
.topo.solido { background: rgb(14 13 10 / .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--linha-escura); }
.topo__barra { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.marca { display: inline-flex; color: var(--papel); }
.topo nav { display: flex; gap: 6px; }
.topo nav a { text-decoration: none; font-size: 15px; color: var(--suave-escuro); padding: 10px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.topo nav a:hover { color: var(--papel); background: rgb(242 238 229 / .06); }
.topo nav a b { font: 500 11px var(--mono); color: var(--ambar); margin-right: 6px; }
.topo .botao { height: 46px; font-size: 15px; padding-left: 20px; }
.topo .botao__seta { width: 30px; height: 30px; }
.menu-botao { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(242 238 229 / .25); background: none; color: var(--papel); }
.menu-botao svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .topo nav, .topo .botao { display: none; }
  .menu-botao { display: grid; place-items: center; }
  .topo.aberto nav { display: flex; position: fixed; inset: 76px 0 0; flex-direction: column; gap: 0; padding: 24px var(--margem); background: var(--noite); }
  .topo.aberto nav a { font-size: 30px; color: var(--papel); padding: 18px 0; border-bottom: 1px solid var(--linha-escura); border-radius: 0; }
}

/* Logo da Campier (nome desenhado em SVG, Jost Light) */
.campier-logo { display: block; width: 138px; height: auto; overflow: visible; }
.campier-logo .cl-ring { opacity: 0; }
.logo-anima .campier-logo .cl-draw { stroke-dasharray: 1; animation: cl-draw 1.35s cubic-bezier(.65, 0, .35, 1) .1s both; }
.logo-anima .campier-logo .cl-lam { animation-duration: .85s; animation-delay: 1.6s; }
.logo-anima .campier-logo .cl-ears { animation: cl-rise 1.5s cubic-bezier(.25, 1, .5, 1) .1s both; }
.logo-anima .campier-logo .cl-ring { transform-box: fill-box; transform-origin: center; animation: cl-ring .6s cubic-bezier(.25, 1, .5, 1) 2.45s forwards; }
.logo-anima .campier-logo .cl-sym { transform-box: view-box; transform-origin: 108px 86.4px; animation: cl-move 1.1s cubic-bezier(.65, 0, .35, 1) 2.9s both; }
.logo-anima .campier-logo .cl-l { animation: cl-nome 1.1s cubic-bezier(.25, 1, .5, 1) 3.45s both; }
@keyframes cl-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes cl-rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes cl-ring { from { transform: scale(.18); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@keyframes cl-move { from { transform: translateX(268.9px) scale(1.5); } to { transform: none; } }
@keyframes cl-nome { from { opacity: 0; transform: translateX(calc(var(--i) * 42px)); } to { opacity: 1; transform: none; } }

/* ---------- Tela do Parcelas, em HTML (dentro das imagens: hero, seção do app).
   Cores do próprio app (tema Oceano): azul nos botões e barras, cartões azulados. */
.fone {
  --f-bg: #f9fafd; --f-card: #eef2f9; --f-ink: #18202c; --f-muted: #5b6676; --f-blue: #2f5f9e; --f-blue-soft: #d9e4f3;
  --f-line: #dfe5ee; --f-ok: #2e7d4f; --f-warn: #b26a00;
  position: absolute; width: 330px; border-radius: 40px; padding: 10px; background: #1b1d22;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .25), 0 30px 60px -24px rgb(40 30 10 / .45);
  font: 400 13px/1.35 var(--font-text); color: var(--f-ink); text-align: left;
}
.fone__tela { border-radius: 31px; overflow: hidden; background: var(--f-bg); min-height: 640px; }
.fone__status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 12px; font-weight: 500; }
.fone__status span:last-child { letter-spacing: .04em; }
.fone__barra { display: flex; align-items: center; gap: 14px; padding: 10px 18px 12px; font-size: 15px; font-weight: 500; }
.fone__barra svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fone__barra .sp { flex: 1; }
.fone__corpo { padding: 0 14px 18px; display: grid; gap: 10px; }
.f-card { background: var(--f-card); border-radius: 16px; padding: 14px; }
.f-rot { color: var(--f-muted); font-size: 12px; }
.f-valor { font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.f-num { font-variant-numeric: tabular-nums; font-weight: 500; }
.f-barra { height: 6px; border-radius: 3px; background: var(--f-blue-soft); overflow: hidden; margin: 8px 0 4px; }
.f-barra i { display: block; height: 100%; width: var(--v, 32%); background: var(--f-blue); border-radius: 3px; }
.f-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.f-par > div { display: grid; gap: 1px; }
.f-sep { height: 1px; background: var(--f-line); margin: 10px 0; }
.f-tipo { display: flex; align-items: center; gap: 6px; color: var(--f-muted); font-size: 12px; margin-bottom: 8px; }
.f-tipo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-prox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--f-blue-soft); }
.f-btn { background: var(--f-blue); color: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 500; font-size: 13px; }
.f-abas { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--f-line); border-radius: 999px; overflow: hidden; font-size: 12px; text-align: center; }
.f-abas span { padding: 7px 0; }
.f-abas span + span { border-left: 1px solid var(--f-line); }
.f-abas .on { background: var(--f-blue-soft); font-weight: 500; }
.f-linha { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.f-ok { width: 18px; height: 18px; border-radius: 50%; background: var(--f-ok); display: grid; place-items: center; flex: none; }
.f-ok svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; }
.f-item .f-ico { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; grid-row: span 2; }
.f-item .f-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--f-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-item b { font-weight: 500; font-size: 14px; }
.f-item .f-barra { grid-column: 1 / -1; margin: 6px 0 2px; }
.f-item .f-pe { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; }
.f-item .f-pe .rel { color: var(--f-warn); }
.f-item .f-sub { grid-column: 1 / -1; color: var(--f-muted); font-size: 11.5px; }
.f-mes { background: var(--f-blue-soft); }
.f-mes .f-valor { font-size: 16px; color: var(--f-blue); }
.f-graf svg { display: block; width: 100%; height: auto; }
.f-dist { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 8px 0; }
.f-dist i:first-child { background: var(--f-blue); width: 74%; }
.f-dist i:last-child { background: #c98a8a; flex: 1; }
.f-leg { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.f-leg span:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--c); }


/* ======================================================================
   Páginas internas: capa escura, leitura em fundo claro e rodapé
   ====================================================================== */
.linhas-grade { position: absolute; inset: 0; width: min(100% - 2 * var(--margem), var(--largura)); margin-inline: auto; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(to right, var(--linha-escura) 0 1px, transparent 1px calc(100% / 6)); box-shadow: inset -1px 0 0 var(--linha-escura); }
.capa { position: relative; overflow: hidden; isolation: isolate; background: var(--noite); padding: 168px 0 72px; }
.capa::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 480px at 85% 10%, rgb(245 165 36 / .14), transparent 70%); }
.capa__traco { position: absolute; z-index: -1; right: max(var(--margem), calc(50% - var(--largura) / 2)); top: 110px; width: min(30vw, 380px); height: auto; overflow: visible;
  fill: none; stroke: rgb(245 165 36 / .6); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.capa__traco .guia { stroke: rgb(242 238 229 / .16); stroke-width: .25; }
/* a perna esquerda do Λ na cor clara, como na logo */
.capa__traco .perna { stroke: rgb(242 238 229 / .55); }
.voltar { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--suave-escuro); text-decoration: none; padding: 8px 0; }
.voltar::before { content: "←"; color: var(--ambar); transition: transform .3s var(--sai); }
.voltar:hover { color: var(--papel); }
.voltar:hover::before { transform: translateX(-4px); }
.capa h1 { font: 500 clamp(38px, 5.6vw, 84px)/.98 var(--texto); letter-spacing: -.05em; margin: 22px 0 0; max-width: 17ch; text-wrap: balance; }
.capa__sub { color: #d6d1c5; font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; margin: 24px 0 0; }
.capa__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--linha-escura);
  font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--suave-escuro); }
@media (max-width: 960px) { .capa { padding-top: 132px; } .capa__traco { width: 46vw; top: 96px; opacity: .45; } }

/* rodapé das páginas internas */
.rodape-site { position: relative; background: var(--noite); color: var(--papel); padding: 88px 0 32px; border-top: 1px solid var(--linha-escura); }
.rodape-site__topo { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px 32px; }
.rodape-site .marca .campier-logo { width: 168px; }
.rodape-site__frase { color: var(--suave-escuro); margin: 20px 0 0; max-width: 32ch; }
.rodape-site h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--suave-escuro); margin: 0 0 14px; }
.rodape-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rodape-site ul a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 6px 0; text-decoration: none; color: #d6d1c5; transition: color .2s; }
.rodape-site ul a:hover { color: var(--ambar); }
.rodape-site__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--linha-escura); font: 400 12px var(--mono); letter-spacing: .06em; color: var(--suave-escuro); }
@media (max-width: 960px) { .rodape-site__topo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rodape-site__topo > :first-child { grid-column: 1 / -1; } }

/* ======================================================================
   Menos movimento: tudo pronto, parado
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .prancha .pulso { display: none; }
}
