/* Salva Dívidas v4 · base
   Mundo: um banco que acolhe. Branco, tinta escura e verde-folha em blocos inteiros.
   O laranja-boia aparece só no "Me salva" e na boia do logo: é o resgate, e só ele grita.
   Tema claro fixo: o público lê no celular, de dia. */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --soft: #F2F6F2;          /* verde quase branco, para superfícies */
  --line: #E1E8E2;
  --ink: #0D1F15;           /* tinta: verde quase preto */
  --text: #38483E;
  --muted: #627168;
  --leaf: #125627;          /* verde-folha da marca */
  --leaf-deep: #0B3A1A;
  --leaf-soft: #E7F0E8;
  --on-leaf: #FFFFFF;
  --on-leaf2: #C7DBCB;
  --orange: #EF6B24;        /* só no Me salva */
  --orange-hover: #F5823F;
  --on-orange: #0D1F15;
  --orange-texto: #D4561A;  /* laranja de destaque em texto sobre branco (contraste maior que o do botão) */
  --orange-claro: #FF8F52;  /* laranja de destaque em texto sobre verde-escuro */
  --f-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --top-h: 72px;
  --r: 28px;
  --sh: 0 1px 2px rgba(13, 31, 21, .05), 0 24px 48px -28px rgba(13, 31, 21, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
html:not(.mov) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; caret-color: var(--leaf); scrollbar-color: var(--leaf) var(--paper); }
::selection { background: var(--leaf); color: #fff; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 80; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Tipografia */
.display { font-family: var(--f-display); font-weight: 750; font-variation-settings: "opsz" 96; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; font-size: clamp(42px, 6vw, 84px); line-height: 1; }
/* destaque em laranja: as palavras que doem (o aperto) e as que viram o jogo */
.lar { font-style: normal; color: var(--orange-texto); }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; max-width: 46ch; text-wrap: pretty; }

/* Selos do modo revisão: somem com CONFIG.revisao = false */
.exb { display: inline-flex; align-items: center; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; border: 1px dashed currentColor; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.modo-final .exb, .modo-final .revisao { display: none !important; }
/* selo de revisão: só o chip, no canto, embaixo do topo (a explicação fica no title e para leitor de tela) */
.revisao { position: fixed; top: calc(var(--top-h) + 10px); right: 12px; z-index: 45; display: flex; align-items: center; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(13, 31, 21, .12); }
@media (max-width: 899px) {   /* no celular, o selo fica no centro da barra do topo, entre o logo e o botão */
  .revisao { top: calc(env(safe-area-inset-top, 0px) + 23px); left: 50%; right: auto; transform: translateX(-50%); z-index: 51; background: transparent; box-shadow: none; padding: 0; }
}
.revisao > span:not(.exb) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões: o único laranja da página. A boia do botão é a mesma do logo (#logo-boia). */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 0 7px 0 26px; border-radius: 999px; border: 0; font: 700 17px/1.1 var(--f-body); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s; }
.btn-go { color: var(--on-orange);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%), var(--orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(120, 40, 0, .18), 0 1px 2px rgba(13, 31, 21, .14), 0 10px 22px -14px rgba(13, 31, 21, .45); }
.btn-go:hover { background-color: var(--orange-hover); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(120, 40, 0, .18), 0 2px 4px rgba(13, 31, 21, .14), 0 16px 30px -14px rgba(13, 31, 21, .5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .boia { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--paper); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(13, 31, 21, .06), 0 2px 6px -2px rgba(120, 40, 0, .35); }
.btn .boia svg { width: 36px; height: 36px; transition: transform .8s var(--ease); }
.btn:hover .boia svg { transform: rotate(90deg); }
.btn.sm { min-height: 48px; font-size: 16px; padding-left: 20px; gap: 12px; }
.btn.sm .boia { width: 36px; height: 36px; } .btn.sm .boia svg { width: 29px; height: 29px; }
.btn-escuro { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -14px rgba(13, 31, 21, .8); }
.btn-escuro:hover { background: #1E3F2D; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .boia svg { transition: none; } .btn-go:hover, .btn:hover .boia svg { transform: none; } }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cliente { font-size: 15px; font-weight: 600; color: var(--leaf); }

/* Topo fixo. Com movimento, só aparece quando "salva" chega nele (js/movimento.js) */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topo { transition: transform .45s var(--ease); }
.topo.recolhido { transform: translateY(-101%); }
@media (prefers-reduced-motion: reduce) { .topo { transition: none; } }
.topo .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--top-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; color: var(--leaf); }
.logo .marca { width: 40px; height: 40px; flex: none; }
.wm { display: flex; flex-direction: column; font: 750 20px/.9 var(--f-display); letter-spacing: -.04em; color: var(--leaf); }
.wm-salva, .wm-div { display: block; }
.topo nav { display: none; gap: 30px; font-size: 15px; font-weight: 600; }
.topo nav a { text-decoration: none; color: var(--text); padding-block: 12px; transition: color .2s; }
.topo nav a:hover { color: var(--leaf); }
.topo .acoes { margin-left: auto; display: flex; align-items: center; gap: 20px; }
@media (min-width: 1000px) { .topo nav { display: flex; } }
@media (max-width: 560px) { .topo .cliente { display: none; } }

/* Selo #NegociaPortoAlegre (código oficial do movimento + reserva estática com o mesmo vetor) */
.selo-np { display: inline-flex; max-width: 100%; line-height: 0; }
.selo-np-reserva { display: block; max-width: 100%; border-radius: 18px; filter: drop-shadow(0 4px 10px rgba(16, 35, 27, .10)); transition: transform .25s ease, filter .25s ease; }
.selo-np-reserva:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 18px rgba(16, 35, 27, .18)); }
.selo-np-reserva img { width: 100%; height: auto; }
.selo-np-claro { width: 320px; }
.selo-np-escuro { width: 240px; }
.selo-np.vivo .selo-np-reserva { display: none; }
@media (prefers-reduced-motion: reduce) { .selo-np-reserva, .selo-np-reserva:hover { transition: none; transform: none; } }

/* WhatsApp fixo no canto inferior direito (some onde já há um "Me salva" grande na tela) */
.wa-fixo { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.wa-bola { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--leaf); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(13, 31, 21, .18), 0 14px 30px -12px rgba(13, 31, 21, .55); transition: transform .3s var(--ease), background-color .2s; }
.wa-bola svg { width: 30px; height: 30px; }
.wa-rotulo { padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--sh);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.wa-fixo:hover .wa-bola { background: var(--leaf-deep); transform: scale(1.06); }
.wa-fixo:hover .wa-rotulo, .wa-fixo:focus-visible .wa-rotulo { opacity: 1; transform: none; }
.wa-fixo:focus-visible { outline: none; }
.wa-fixo:focus-visible .wa-bola { outline: 3px solid var(--orange); outline-offset: 3px; }
.wa-fixo.oculta, .wa-fixo.oculta-nome { opacity: 0; transform: scale(.6) translateY(20px); pointer-events: none; }
@media (max-width: 767px) { .wa-bola { width: 56px; height: 56px; } .wa-bola svg { width: 28px; height: 28px; } .wa-rotulo { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fixo, .wa-bola, .wa-rotulo { transition: none; } .wa-fixo:hover .wa-bola { transform: none; } }

/* Rodapé */
.rodape { background: var(--leaf-deep); color: var(--on-leaf2); padding-block: clamp(72px, 10vw, 128px) 40px; }
.rodape .wrap { display: grid; gap: 44px; }
.rodape-frase { font: 750 clamp(40px, 6vw, 84px)/1 var(--f-display); letter-spacing: -.04em; color: #fff; max-width: 14ch; text-wrap: balance; }
.rodape-grade { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.rodape .logo { color: #fff; } .rodape .wm { color: #fff; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.rodape-links a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.rodape-links a:hover { text-decoration: underline; }
.rodape-links .i, .rodape-seguro .i { color: var(--on-leaf2); }
.rodape-seguro { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: #fff; font-weight: 600; }
.rodape-seguro a { color: var(--on-leaf2); }
.legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; display: grid; gap: 8px; font-size: 13.5px; max-width: 90ch; }
@media (max-width: 767px) { .rodape { padding-bottom: 96px; } }
