/* Velante · site
   Marca: CONCEITO §4–§7. Âmbar só onde algo foi feito (✓ e botão principal). */

@font-face { font-family: "Young Serif"; src: url("fontes/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fontes/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Nanum Pen Script"; src: url("fontes/nanum-pen.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --noite: #0C1A19; --noite-funda: #12292B; --nevoa: #9FB7B1;
  --geada: #EEF4F1; --brilho: #CDE8E1; --luz: #FFB45C;
  --texto: #E9F2EF; --apagado: #8DA39D; --caneta: #BFD3FF;
  --linha: rgba(238, 244, 241, .12);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --coluna: min(1120px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--noite); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--texto); background: var(--noite); overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--geada); line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--luz); outline-offset: 3px; border-radius: 4px; }

.pular { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--geada); color: var(--noite); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }

/* ---------- topo ---------- */
.topo { position: fixed; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px;
  background: rgba(12, 26, 25, .62); border: 1px solid var(--linha); border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 23px; line-height: 1; color: var(--geada); min-height: 44px; }
.marca svg { width: 26px; height: 25px; }
.topo .conversar { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--geada); border: 1px solid rgba(238, 244, 241, .3); border-radius: 999px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }
.topo .conversar:hover { background: rgba(238, 244, 241, .08); }

/* ---------- botão principal ---------- */
.botao { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; padding: 10px 28px;
  background: var(--luz); color: #1D1206; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 18px; line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(255, 180, 92, .4), 0 10px 40px -8px rgba(255, 180, 92, .55); transition: transform .2s, box-shadow .2s; }
.botao small { font-size: 13px; font-weight: 500; opacity: .72; }
.botao:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 180, 92, .5), 0 14px 48px -8px rgba(255, 180, 92, .7); }

/* ---------- a história ---------- */
.historia { position: relative; background: radial-gradient(130% 70% at 50% 100%, #1D3B3A 0%, var(--noite-funda) 40%, var(--noite) 80%); }
.ceu { display: none; }
.cena { position: relative; padding: 120px 24px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cena + .cena { border-top: 1px solid var(--linha); }
.cena h2 { font-size: clamp(30px, 6.4vw, 54px); max-width: 15em; }
.cena .apoio { max-width: 34em; color: var(--apagado); font-size: 18px; }

.abertura { min-height: 100svh; justify-content: center; padding-bottom: 34vh; }
.abertura h1 { font-size: clamp(44px, 11vw, 96px); line-height: 1; letter-spacing: -.01em; max-width: 11em; text-shadow: 0 0 48px rgba(205, 232, 225, .22); }
.abertura .apoio { font-size: clamp(18px, 2.2vw, 20px); color: #B5C7C2; }
.abertura .botao { margin-top: 8px; }
.rolar { display: none; }

/* rabiscos do caderno: o "antes" */
.rabiscos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; max-width: 640px; padding: 8px 0; }
.rabisco { font-family: "Nanum Pen Script", cursive; font-size: clamp(23px, 6vw, 34px); line-height: 1.1; color: var(--caneta); text-shadow: 0 0 14px rgba(140, 170, 255, .35); white-space: nowrap; }
.rabisco:nth-child(odd) { transform: rotate(-4deg); }
.rabisco:nth-child(even) { transform: rotate(3deg); }
.rabisco s { text-decoration-thickness: 2px; }
.rabisco.alerta { color: #FF9B8A; text-shadow: 0 0 14px rgba(255, 155, 138, .35); }

/* a fala */
.conversa { display: flex; flex-direction: column; gap: 10px; width: min(460px, 100%); }
.audio { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px 18px 4px 18px; background: rgba(238, 244, 241, .1); border: 1px solid rgba(238, 244, 241, .16); }
.audio .play { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brilho); display: grid; place-items: center; }
.audio .play::before { content: ""; border-left: 9px solid var(--noite); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.audio .onda { width: 92px; height: 24px; flex: none; color: var(--geada); opacity: .8; }
.audio .dito { font-size: 15px; color: var(--geada); text-align: left; line-height: 1.3; }
.resposta { align-self: flex-start; text-align: left; max-width: 92%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--noite-funda); border: 1px solid rgba(238, 244, 241, .12); font-size: 15px; line-height: 1.45; }

.painel { width: min(460px, 100%); text-align: left; padding: 6px 16px 4px; border-radius: 16px; background: rgba(12, 26, 25, .72); border: 1px solid rgba(238, 244, 241, .14); }
.painel .cab { display: flex; justify-content: space-between; font-size: 13px; color: var(--apagado); padding: 8px 0 6px; }
.painel ul { list-style: none; }
.painel li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(238, 244, 241, .09); font-size: 15px; line-height: 1.3; }
.painel li b { font-stretch: 80%; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--geada); white-space: nowrap; }
.feito { color: var(--luz); text-shadow: 0 0 10px rgba(255, 180, 92, .6); margin-right: 8px; font-weight: 700; }

/* o relatório */
.relatorio { width: min(460px, 100%); text-align: left; border-radius: 16px; background: var(--geada); color: #16181D; padding: 18px 20px 14px; box-shadow: 0 30px 80px -30px rgba(205, 232, 225, .35); }
.relatorio .cab { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(12, 26, 25, .12); }
.relatorio .cab svg { width: 22px; height: 21px; }
.relatorio .cab span { font-family: var(--serif); font-size: 19px; color: var(--noite); }
.relatorio .cab small { margin-left: auto; font-size: 13px; color: #56635F; }
.relatorio ul { list-style: none; }
.relatorio li { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(12, 26, 25, .08); font-size: 16px; }
.relatorio li:last-child { border-bottom: 0; }
.relatorio .feito { color: #B36A12; text-shadow: none; }

/* o fecho: os pedaços formam o V */
.simbolo-grande { width: min(200px, 46vw); height: auto; color: var(--geada); overflow: visible; filter: drop-shadow(0 0 22px rgba(205, 232, 225, .35)); }
.simbolo-grande path { fill: currentColor; }

/* ---------- modo com movimento (classe posta por modo.js) ---------- */
.mover .historia { height: 620svh; }
.mover .palco { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mover .ceu { display: block; position: absolute; inset: 0; pointer-events: none; }
.mover .ceu canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nevoa { position: absolute; left: -20%; right: -20%; bottom: 0; height: 55%; filter: blur(22px);
  background: radial-gradient(40% 50% at 30% 70%, rgba(159, 183, 177, .16), transparent 70%), radial-gradient(35% 45% at 72% 80%, rgba(159, 183, 177, .12), transparent 70%);
  animation: deriva 28s ease-in-out infinite alternate; }
@keyframes deriva { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.serra { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30svh; }
.mover .cena { position: absolute; inset: 0; padding: 84px 20px 28px; border: 0; justify-content: center; gap: 16px; opacity: 0; visibility: hidden; }
.mover .abertura { opacity: 1; visibility: visible; padding-bottom: 26svh; }
.mover .rolar { display: block; position: absolute; bottom: 3svh; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--apagado); letter-spacing: .02em; }
.mover .pedacos { justify-content: flex-start; padding-top: 16svh; }
.mover .pedacos .rabiscos { visibility: hidden; height: 0; padding: 0; overflow: hidden; }
.mover .voam { position: absolute; inset: 0; pointer-events: none; }
.mover .voam .rabisco { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.mover .painel li { opacity: 0; }
.mover .fecho { gap: 24px; }
.mover .simbolo-grande path { transform-box: fill-box; transform-origin: center; will-change: transform; }
.voam { display: none; }
.mover .voam { display: block; }

/* ---------- seções comuns ---------- */
.secao { position: relative; width: var(--coluna); margin: 0 auto; padding: 96px 0; }
.secao::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(60% 45% at 18% 0%, rgba(29, 59, 58, .55), transparent 70%); }
main { position: relative; z-index: 0; }
.secao, .contato { scroll-margin-top: 80px; }
.secao + .secao { border-top: 1px solid var(--linha); }
.secao > h2 { font-size: clamp(32px, 6vw, 56px); max-width: 14em; margin-bottom: 40px; }
.secao .intro { max-width: 38em; color: #B5C7C2; margin: -16px 0 40px; font-size: 19px; }

.sistemas { display: grid; gap: 40px; }
.sistema h3 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.sistema .para { color: var(--brilho); font-weight: 600; margin-bottom: 12px; }
.sistema > p:not(.para) { color: #C7D6D2; max-width: 34em; }
.sistema { padding-top: 22px; border-top: 2px solid var(--geada); }
.exemplo { margin-top: 20px; display: grid; gap: 8px; max-width: 30em; }
.exemplo p { font-size: 15px; line-height: 1.45; padding: 9px 13px; border-radius: 14px; }
.exemplo .eu { justify-self: end; background: rgba(238, 244, 241, .1); border: 1px solid rgba(238, 244, 241, .14); border-bottom-right-radius: 4px; color: var(--geada); }
.exemplo .ele { justify-self: start; background: var(--noite-funda); border: 1px solid rgba(238, 244, 241, .1); border-bottom-left-radius: 4px; color: #C7D6D2; }
.exemplo .ele::before { content: "✓ "; color: var(--luz); font-weight: 700; }
.presenca { margin-top: 44px; color: var(--apagado); max-width: 40em; }

.passos { list-style: none; counter-reset: passo; display: grid; gap: 34px; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; }
.passos li::before { content: counter(passo); grid-row: span 2; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brilho); opacity: .55; }
.passos h3 { font-size: 24px; margin-bottom: 4px; }
.passos p { color: #C7D6D2; max-width: 32em; }

.nunca { list-style: none; display: grid; }
.nunca li { padding: 22px 0; border-top: 1px solid var(--linha); display: grid; gap: 6px; }
.nunca li:last-child { border-bottom: 1px solid var(--linha); }
.nunca strong { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 3vw, 26px); line-height: 1.25; color: var(--geada); }
.nunca span { color: var(--apagado); }
.por-baixo { margin-top: 36px; max-width: 40em; color: #C7D6D2; }

.publico { list-style: none; font-family: var(--serif); font-size: clamp(26px, 5vw, 44px); line-height: 1.25; color: var(--geada); display: grid; gap: 10px; }
.publico li { padding-bottom: 10px; border-bottom: 1px solid var(--linha); }
.publico-fim { margin-top: 28px; font-size: 19px; color: #C7D6D2; }

.contato { position: relative; overflow: hidden; text-align: center; padding: 120px 24px 34svh;
  background: radial-gradient(120% 80% at 50% 100%, #1D3B3A 0%, var(--noite-funda) 42%, var(--noite) 82%); border-top: 1px solid var(--linha); }
.contato .simbolo-pequeno { width: 56px; height: 53px; margin: 0 auto 28px; color: var(--geada); filter: drop-shadow(0 0 14px rgba(205, 232, 225, .4)); }
.contato h2 { font-size: clamp(34px, 7vw, 64px); max-width: 12em; margin: 0 auto 20px; }
.contato p { max-width: 32em; margin: 0 auto 32px; color: #B5C7C2; }
.contato .serra { height: 22svh; }
.contato > *:not(.serra) { position: relative; z-index: 1; }

.rodape { width: var(--coluna); margin: 0 auto; padding: 32px 0 44px; display: grid; gap: 16px; font-size: 15px; color: var(--apagado); }
.rodape .marca { font-size: 20px; min-height: 0; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.rodape nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(141, 163, 157, .5); text-underline-offset: 4px; }
.rodape nav a:hover { color: var(--geada); }

/* páginas simples (privacidade, 404) */
.simples { min-height: 100svh; display: flex; flex-direction: column; }
.simples main { flex: 1; width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 132px 0 64px; }
.simples h1 { font-size: clamp(38px, 8vw, 60px); margin-bottom: 24px; }
.simples main > p { color: #C7D6D2; margin-bottom: 18px; }
.simples ul { list-style: none; margin: 28px 0; display: grid; gap: 18px; }
.simples li { color: #C7D6D2; padding-left: 18px; border-left: 2px solid var(--linha); }
.simples li strong { color: var(--geada); font-weight: 600; }
.simples .data { font-size: 15px; color: var(--apagado); }
.erro main { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.erro .botao { margin: 12px 0 18px; }
.erro .alt a { color: var(--brilho); text-underline-offset: 4px; }

@media (min-width: 760px) {
  .sistemas { grid-template-columns: 1fr 1fr; gap: 56px; }
  .passos { grid-template-columns: 1fr 1fr; gap: 44px 56px; }
  .nunca { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .nunca li:nth-last-child(2) { border-bottom: 1px solid var(--linha); }
  .publico { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .publico li:last-child { grid-column: 1 / -1; }
  .secao { padding: 128px 0; }
  .rodape { grid-template-columns: 1fr auto; align-items: center; }
  .mover .cena { padding-top: 96px; }
  .painel li { font-size: 16px; }
}

@media (min-width: 1000px) and (min-height: 700px) {
  .mover .conversa, .mover .painel, .mover .relatorio { width: 560px; }
  .mover .painel li { font-size: 17px; padding: 11px 0; }
  .mover .painel li b { font-size: 19px; }
  .mover .audio .dito, .mover .resposta { font-size: 16px; }
  .mover .relatorio li { font-size: 18px; padding: 12px 0; }
  .mover .relatorio .cab span { font-size: 22px; }
  .mover .simbolo-grande { width: 240px; }
}

/* telas baixas: a cena da fala precisa caber sem cortar o título */
@media (max-height: 760px) {
  .mover .fala { gap: 10px; padding-top: 76px; }
  .mover .fala .apoio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mover .fala h2 { font-size: 28px; }
  .mover .painel li { padding: 6px 0; font-size: 14px; }
  .mover .painel li b { font-size: 15px; }
  .mover .resposta, .mover .audio .dito { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .nevoa { animation: none; }
  .botao { transition: none; }
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
