/* Recibos em Dia: página de apresentação (v3, 2026-10-05).
   Papel quente, tinta violeta, desenhos à mão (azulejo, rua, chave) e notas manuscritas.
   Cores da marca em marca/README.md. Sem dependências externas.
   Tema: segue o sistema; o botão .tema força claro ou escuro (data-theme em <html>, ver tema.js). */

@font-face { font-family: "Bricolage"; src: url("/fontes/bricolage.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fontes/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fontes/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --violeta: #4A3B8F;
  --violeta-forte: #3B2E78;
  --violeta-claro: #B8ACF2;

  --fundo: #FBFAF7;
  --papel: #F4F1EA;
  --superficie: #FFFFFF;
  --tinta: #1C1A24;
  --tinta-2: #57526A;
  --tinta-3: #8A8597;
  --linha: #E6E1D7;
  --linha-forte: #D6CFC2;
  --acento: var(--violeta);
  --acento-suave: #EEEBF8;
  --sobre-acento: #FFFFFF;
  --mao: #4A3B8F;
  --ok: #1F7A4D;
  --ok-fundo: #E6F3EB;
  --erro: #B3261E;
  --fita: rgba(184, 172, 242, .55);

  --rua-traco: #3F3757;
  --rua-fundo: #FFFFFF;
  --rua-fundo-2: #F0EDF8;
  --rua-vidro: #E9EEF4;
  --rua-telhado: #E2A285;
  --rua-porta: #8C6BB0;
  --rua-portada: #8DB59A;
  --rua-vaso: #C9784F;
  --rua-planta: #4F8A5B;
  --rua-luz: #F2C46B;

  --sombra-1: 0 1px 2px rgba(40, 30, 20, .06);
  --sombra-2: 0 1px 2px rgba(40, 30, 20, .05), 0 10px 28px -12px rgba(40, 30, 60, .18);
  --sombra-3: 0 2px 4px rgba(40, 30, 20, .05), 0 28px 60px -20px rgba(40, 30, 60, .28);

  --raio: 16px;
  --largura: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --titulo: "Bricolage", "Instrument Sans", ui-sans-serif, sans-serif;
  --texto: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --manuscrito: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}

/* tema escuro: pelo sistema (sem escolha manual) ou pelo botão */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #14121A; --papel: #1A1722; --superficie: #211E2B;
    --tinta: #EEECF5; --tinta-2: #B6B1C8; --tinta-3: #8E89A3;
    --linha: #2C2838; --linha-forte: #3A3548;
    --acento: #B8ACF2; --acento-suave: #2A2440; --sobre-acento: #17141F; --mao: #CFC6FA;
    --ok: #7FD3A8; --ok-fundo: #173126; --erro: #F2B8B5; --fita: rgba(184, 172, 242, .28);
    --rua-traco: #A99DE6; --rua-fundo: #1E1B29; --rua-fundo-2: #252136; --rua-vidro: #2B2840;
    --rua-telhado: #8A5642; --rua-porta: #5E4A85; --rua-portada: #4B6E57; --rua-vaso: #8E5536; --rua-planta: #6FAF7E; --rua-luz: #E8B95A;
    --sombra-1: 0 1px 2px rgba(0, 0, 0, .3);
    --sombra-2: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .55);
    --sombra-3: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #14121A; --papel: #1A1722; --superficie: #211E2B;
  --tinta: #EEECF5; --tinta-2: #B6B1C8; --tinta-3: #8E89A3;
  --linha: #2C2838; --linha-forte: #3A3548;
  --acento: #B8ACF2; --acento-suave: #2A2440; --sobre-acento: #17141F; --mao: #CFC6FA;
  --ok: #7FD3A8; --ok-fundo: #173126; --erro: #F2B8B5; --fita: rgba(184, 172, 242, .28);
  --rua-traco: #A99DE6; --rua-fundo: #1E1B29; --rua-fundo-2: #252136; --rua-vidro: #2B2840;
  --rua-telhado: #8A5642; --rua-porta: #5E4A85; --rua-portada: #4B6E57; --rua-vaso: #8E5536; --rua-planta: #6FAF7E; --rua-luz: #E8B95A;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sombra-2: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .55);
  --sombra-3: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* logótipos e carimbos: versão clara ou escura conforme o tema */
.so-escuro { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .so-claro { display: none !important; }
  :root:not([data-theme="light"]) .so-escuro { display: block !important; }
}
:root[data-theme="dark"] .so-claro { display: none !important; }
:root[data-theme="dark"] .so-escuro { display: block !important; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, .9rem + 3.7vw, 4.3rem); letter-spacing: -.04em; line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }
a { color: var(--acento); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contentor { width: 100%; max-width: calc(var(--largura) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.centro { text-align: center; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--tinta); color: var(--fundo); padding: 8px 14px; border-radius: 8px; }
.saltar:focus { top: 8px; }

/* traço feito à mão (setas, sublinhados) */
.seta-mao path, .passo__seta path, .planos__destaque svg path {
  fill: none; stroke: var(--mao); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  background: var(--acento); color: var(--sobre-acento);
  font: 600 1rem/1.2 var(--texto);
  border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: background .15s ease, transform .15s ease;
}
.botao:hover { background: var(--violeta-forte); text-decoration: none; transform: translateY(-1px); }
:root[data-theme="dark"] .botao:hover { background: #CBC2F6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .botao:hover { background: #CBC2F6; } }
.botao .ic { transition: transform .2s ease; }
.botao:hover .ic { transform: translateX(3px); }
.botao[disabled] { opacity: .65; cursor: progress; }
.botao--peq { min-height: 38px; padding: .45em 1em; font-size: .93rem; border-radius: 10px; }
.botao--largo { width: 100%; }

.ligacao-seta { font-weight: 600; text-decoration: none; color: var(--tinta); }
.ligacao-seta::after { content: " →"; display: inline-block; transition: transform .2s ease; color: var(--acento); }
.ligacao-seta:hover::after { transform: translateX(4px); }

/* ---------- cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fundo) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.topo__marca { display: block; line-height: 0; }
.topo__marca img { width: 170px; height: auto; display: block; }
.topo__nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .95rem; font-weight: 500; }
.topo__nav a:not(.botao) { color: var(--tinta-2); text-decoration: none; }
.topo__nav a:not(.botao):hover { color: var(--tinta); }
.tema {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: transparent; color: var(--tinta-2); border: 1px solid var(--linha-forte); border-radius: 10px; cursor: pointer;
}
.tema:hover { color: var(--tinta); border-color: var(--tinta-3); }
.tema .ic { width: 18px; height: 18px; grid-area: 1 / 1; display: none; }
.tema[data-tema="auto"] .ic--auto, .tema[data-tema="claro"] .ic--sol, .tema[data-tema="escuro"] .ic--lua { display: block; }
/* ---------- topo / herói ---------- */
.heroi { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 8vw, 112px); overflow: hidden; }
.heroi::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: min(62%, 760px); height: 100%;
  background-color: var(--acento); opacity: .09;
  -webkit-mask-image: url("/img/azulejo.svg"), linear-gradient(225deg, #000 20%, transparent 70%);
  -webkit-mask-size: 80px 80px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("/img/azulejo.svg"), linear-gradient(225deg, #000 20%, transparent 70%);
  mask-size: 80px 80px, 100% 100%;
  mask-composite: intersect;
}
.heroi__grelha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.publico { display: flex; align-items: center; gap: .55em; font-weight: 600; color: var(--tinta-2); margin-bottom: 1.4em; }
.sublinhado { position: relative; white-space: nowrap; }
.sublinhado::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .3em;
  background-color: var(--acento); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C70 6 160 4 296 9' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C70 6 160 4 296 9' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.heroi__lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); color: var(--tinta-2); max-width: 33em; }
.heroi__lead strong { color: var(--tinta); }
.heroi__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 2em 0 1.1em; }
.heroi__nota { font-size: .92rem; color: var(--tinta-3); max-width: 32em; margin: 0; }

.heroi__visual { position: relative; margin: 0; padding-top: 24px; }
.heroi__visual figcaption { font-size: .78rem; color: var(--tinta-3); margin-top: 14px; }

.app {
  background: var(--superficie); border: 1px solid var(--linha-forte); border-radius: 20px;
  box-shadow: var(--sombra-3); overflow: hidden; font-size: .88rem; line-height: 1.4;
  transform: rotate(-1deg);
}
.app__topo { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linha); }
.app__marca { display: flex; align-items: center; gap: 8px; font-family: var(--titulo); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.app__mes { margin-left: auto; padding: .3em .75em; border: 1px solid var(--linha-forte); border-radius: 8px; color: var(--tinta-2); font-size: .8rem; font-weight: 500; }
.app__mes::after { content: " ▾"; color: var(--tinta-3); }
.app__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acento-suave); color: var(--acento); font-weight: 700; font-size: .72rem; }
.app__resumo { padding: 16px 18px 14px; background: var(--papel); border-bottom: 1px solid var(--linha); }
.app__rotulo { margin: 0; color: var(--tinta-3); font-size: .78rem; }
.app__total { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.app__total .troca { font-family: var(--titulo); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; justify-self: start; }
.app__total small { color: var(--tinta-3); font-size: .82rem; }
.app__progresso { height: 8px; border-radius: 99px; background: var(--linha); overflow: hidden; }
.app__progresso i { display: block; height: 100%; width: 55.6%; border-radius: inherit; background: var(--acento); animation: completar .6s ease 1.9s forwards; }
.app__lista { list-style: none; margin: 0; padding: 6px 10px; }
.app__lista li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 122px; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.app__lista li + li { border-top: 1px solid var(--linha); }
.app__linha-ativa { animation: realcar 1.6s ease 1.7s both; }
.app__casa { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__casa small { display: block; font-weight: 400; color: var(--tinta-3); font-size: .76rem; }
.app__valor { font-variant-numeric: tabular-nums; color: var(--tinta-2); }
.app__rodape { margin: 0; padding: 10px 18px 14px; color: var(--tinta-3); font-size: .78rem; border-top: 1px solid var(--linha); }
.estado { justify-self: end; font-size: .76rem; font-weight: 600; padding: .38em .75em; border-radius: 999px; white-space: nowrap; }
.estado--ok { color: var(--ok); background: var(--ok-fundo); }
.estado--ok::before { content: "✓ "; }
.estado--pendente { color: var(--sobre-acento); background: var(--acento); }
/* casinhas (mesmo desenho da rua) */
.casa { width: 40px; height: 40px; display: block; }
.casa__fundo { fill: var(--papel); }
.casa__parede { fill: var(--rua-fundo); stroke: var(--rua-traco); stroke-width: 1.4; }
.casa__telhado { fill: var(--rua-telhado); stroke: var(--rua-traco); stroke-width: 1.4; stroke-linejoin: round; }
.casa__janela { fill: var(--rua-vidro); stroke: var(--rua-traco); stroke-width: 1.1; }
.casa__porta { fill: var(--rua-porta); stroke: var(--rua-traco); stroke-width: 1.1; }
.casa__varanda { fill: none; stroke: var(--rua-traco); stroke-width: 1.1; stroke-linecap: round; }
.casa--2 .casa__parede, .casa--2 .casa__telhado { fill: var(--rua-fundo-2); }
.casa--3 .casa__telhado { fill: var(--rua-portada); }
/* troca de estado: "Sim, recebi" passa a "Recibo enviado" (uma vez) */
.troca { display: inline-grid; justify-self: end; }
.troca > * { grid-area: 1 / 1; }
.troca__antes { animation: desaparecer .25s ease 1.75s forwards; }
.troca--estado .troca__antes { animation: premir .3s ease 1.4s, desaparecer .25s ease 1.75s forwards; }
.troca__depois { opacity: 0; animation: aparecer .3s ease 1.85s forwards; }
@keyframes premir { 50% { transform: scale(.9); } }
@keyframes desaparecer { to { opacity: 0; transform: scale(.9); } }
@keyframes aparecer { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes completar { to { width: 100%; } }
@keyframes realcar { 0%, 100% { background: transparent; } 30% { background: var(--ok-fundo); } }

.heroi__carimbo {
  position: absolute; bottom: 74px; left: -66px; width: clamp(92px, 9vw, 112px); height: auto;
  transform: rotate(10deg); opacity: .92;
  animation: carimbar .5s cubic-bezier(.3, 1.4, .5, 1) 2.2s both;
}
@keyframes carimbar {
  0% { opacity: 0; transform: scale(1.9) rotate(22deg); }
  70% { opacity: .95; transform: scale(.95) rotate(8deg); }
  100% { opacity: .92; transform: scale(1) rotate(10deg); }
}
.nota-mao { font-family: var(--manuscrito); color: var(--mao); font-size: 1.7rem; line-height: 1; }
.heroi__nota-mao { position: absolute; right: 44px; bottom: -14px; display: flex; align-items: flex-end; gap: 2px; transform: rotate(-3deg); }
.heroi__nota-mao span { order: -1; padding-bottom: 0; }
.heroi__nota-mao .seta-mao { width: 72px; height: 94px; margin-bottom: 8px; }

/* ---------- secções ---------- */
.seccao { padding-block: clamp(64px, 9vw, 116px); }
.seccao--papel { background: var(--papel); }
.titulo-seccao { margin-bottom: clamp(32px, 4vw, 52px); max-width: 18ch; }
.titulo-seccao--centro { margin-inline: auto; text-align: center; }
.fonte { font-size: .8rem; color: var(--tinta-3); line-height: 1.5; margin: 0; }

/* problema */
.problema { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.problema__texto > p { color: var(--tinta-2); max-width: 36em; }
.problema__texto strong { color: var(--tinta); }
.coima { margin-top: 2em; }
.coima__texto { font-weight: 500; margin: 0; }
.coima__valor { font-family: var(--titulo); font-size: clamp(3rem, 2.2rem + 3.4vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--acento); margin: .1em 0 .3em; }

.folha {
  position: relative;
  background-color: var(--superficie);
  background-image:
    linear-gradient(90deg, transparent 52px, color-mix(in srgb, var(--acento) 35%, transparent) 52px 53px, transparent 53px),
    repeating-linear-gradient(to bottom, transparent 0 39px, var(--linha) 39px 40px);
  background-position: 0 18px;
  padding: 26px 28px 22px 72px;
  border-radius: 4px;
  box-shadow: var(--sombra-2);
  transform: rotate(1.5deg);
  font-family: var(--manuscrito); color: var(--tinta);
}
.folha__fita { position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: var(--fita); transform: rotate(-3deg); }
.folha ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.folha li { counter-increment: t; position: relative; font-size: 1.75rem; line-height: 40px; }
.folha li::before {
  content: ""; position: absolute; left: -44px; top: 10px; width: 20px; height: 20px;
  border: 2px solid var(--tinta-2); border-radius: 3px 6px 4px 7px; transform: rotate(-4deg);
}
.folha li:nth-child(2n)::before { transform: rotate(5deg); border-radius: 6px 3px 7px 4px; }
.folha__rodape { margin: 6px 0 0; font-size: 1.75rem; line-height: 40px; color: var(--mao); }
/* como funciona */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.passo { position: relative; }
.passo__visual {
  height: 150px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--papel); border-radius: var(--raio); border: 1px solid var(--linha);
}
.passo__num { display: block; font-family: var(--manuscrito); font-size: 3rem; line-height: .9; color: var(--mao); margin-bottom: 6px; }
.passo p { color: var(--tinta-2); margin: 0; font-size: 1rem; }
.passo__seta { position: absolute; top: 40px; left: calc(-1 * clamp(28px, 4vw, 56px) - 22px); width: clamp(60px, 6vw, 88px); height: 40px; z-index: 1; }
.mini-campo, .mini-email, .mini-pdf {
  background: var(--superficie); border: 1px solid var(--linha-forte); border-radius: 12px;
  box-shadow: var(--sombra-2); font-size: .82rem; padding: 12px 14px; width: min(84%, 250px);
}
.mini-campo { transform: rotate(-2deg); }
.mini-email { transform: rotate(1.5deg); }
.mini-pdf { transform: rotate(-1deg); }
.mini-campo span { display: block; color: var(--tinta-3); font-size: .74rem; margin-bottom: 6px; }
.mini-campo b { display: block; border: 1.5px solid var(--acento); border-radius: 8px; padding: 6px 10px; letter-spacing: .12em; color: var(--tinta-2); }
.mini-email span { display: block; font-weight: 600; margin-bottom: 10px; }
.mini-email b { display: inline-block; background: var(--acento); color: var(--sobre-acento); border-radius: 8px; padding: 6px 12px; font-size: .78rem; }
.mini-pdf { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mini-pdf .ic { width: 22px; height: 22px; color: var(--acento); }
.mini-pdf span { flex: 1; }
.mini-pdf .ic--ok { color: var(--ok); width: 18px; height: 18px; }
/* confiança */
.confianca { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.confianca__lado { position: sticky; top: 110px; }
.chave { width: 100%; max-width: 300px; height: auto; margin-top: 12px; }
.chave__metal path, .chave__metal circle { fill: none; stroke: var(--acento); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chave__fio { fill: none; stroke: var(--tinta-3); stroke-width: 1.5; }
.chave__etiqueta { fill: var(--superficie); stroke: var(--linha-forte); stroke-width: 1.5; }
.chave__furo { fill: var(--papel); stroke: var(--linha-forte); stroke-width: 1.5; }
.chave__texto { font-family: var(--manuscrito); font-size: 26px; fill: var(--mao); }
.confianca__lista { list-style: none; margin: 0; padding: 0; }
.confianca__lista li { position: relative; padding: 20px 0 20px 46px; color: var(--tinta-2); border-top: 1px solid var(--linha-forte); }
.confianca__lista li:last-child { border-bottom: 1px solid var(--linha-forte); }
.confianca__lista strong { color: var(--tinta); }
.confianca__lista li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 28px; height: 28px;
  background-color: var(--acento);
  -webkit-mask: url("/favicon.svg") no-repeat center / contain; mask: url("/favicon.svg") no-repeat center / contain;
}
/* funcionalidades */
.funcoes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.funcoes li { padding: 22px 0; border-top: 1px solid var(--linha-forte); color: var(--tinta-2); }
.funcoes strong { color: var(--tinta); }
/* preços */
.planos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto 36px; }
.plano { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 30px 28px; box-shadow: var(--sombra-1); }
.plano h3 { font-size: 1.3rem; margin-bottom: .15em; }
.plano__contratos { color: var(--tinta-2); margin-bottom: 1.6em; }
.plano__preco { color: var(--tinta-3); font-weight: 500; margin: 0 0 .3em; }
.plano__preco span { font-family: var(--titulo); font-size: clamp(2.6rem, 2.1rem + 1.6vw, 3.2rem); font-weight: 700; color: var(--tinta); letter-spacing: -.045em; }
.plano__mensal { margin: 0; padding-top: 1em; border-top: 1px dashed var(--linha-forte); font-weight: 600; color: var(--acento); }
.planos__notas { list-style: none; padding: 0; margin: 0 auto 40px; max-width: 960px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--tinta-2); text-align: center; }
.planos__destaque { position: relative; margin-top: 6px; color: var(--tinta); }
.planos__destaque svg { position: absolute; left: -2%; width: 104%; bottom: -10px; height: 12px; }
/* perguntas */
.perguntas { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.perguntas__titulo { position: sticky; top: 100px; max-width: 9ch; }
.perguntas details { border-top: 1px solid var(--linha-forte); }
.perguntas details:last-child { border-bottom: 1px solid var(--linha-forte); }
.perguntas summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--manuscrito); font-size: 2rem; line-height: 1; color: var(--mao); transition: transform .25s ease;
}
.perguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.perguntas summary:hover { color: var(--acento); }
.perguntas details > :not(summary) { color: var(--tinta-2); max-width: 40em; }
.perguntas details > :last-child { margin-bottom: 22px; }
.perguntas details ul { padding-left: 1.2em; }
.perguntas details li { margin-bottom: .4em; }
/* formulário */
.avisa-seccao { padding-top: clamp(24px, 4vw, 48px); }
.avisa {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 24px;
  background: var(--violeta); color: #FFFFFF;
}
.avisa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-color: #FFFFFF; opacity: .1;
  -webkit-mask-image: url("/img/azulejo.svg"), linear-gradient(100deg, #000 10%, transparent 55%);
  -webkit-mask-size: 64px 64px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("/img/azulejo.svg"), linear-gradient(100deg, #000 10%, transparent 55%);
  mask-size: 64px 64px, 100% 100%;
  mask-composite: intersect;
}
.avisa h2 { color: #FFFFFF; }
.avisa__texto p { color: #DCD6F7; font-size: 1.1rem; max-width: 28em; margin: 0; }
.formulario { background: var(--superficie); color: var(--tinta); border-radius: var(--raio); padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.campo { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.campo label, .campo legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.obrig { font-weight: 400; color: var(--tinta-3); font-size: .9em; }
.campo input[type="email"] {
  width: 100%; min-height: 48px; padding: .65em .95em; font: inherit; color: var(--tinta); background: var(--fundo);
  border: 1px solid var(--linha-forte); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input[type="email"]::placeholder { color: var(--tinta-3); }
.campo input[type="email"]:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 18%, transparent); }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilulas label { margin: 0; font-weight: 500; cursor: pointer; }
.pilulas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pilulas span { display: inline-block; padding: .45em .95em; border: 1px solid var(--linha-forte); border-radius: 999px; background: var(--fundo); font-size: .93rem; transition: background .15s, border-color .15s, color .15s; }
.pilulas label:hover span { border-color: var(--acento); }
.pilulas input:checked + span { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.pilulas input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.campo--caixa { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.campo--caixa input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--acento); }
.campo--caixa label { font-weight: 400; margin: 0; line-height: 1.5; color: var(--tinta-2); }
.campo--caixa .campo__erro { grid-column: 2; }
.campo__erro { color: var(--erro); font-size: .9rem; font-weight: 500; margin: 8px 0 0; }
.campo--isco { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario__resposta { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.formulario__resposta[data-tipo="ok"] { color: var(--ok); }
.formulario__resposta[data-tipo="erro"] { color: var(--erro); }
.formulario.enviado .campo, .formulario.enviado .botao { display: none; }
.formulario.enviado .formulario__resposta { margin: 0; font-size: 1.1rem; }
/* rua (ilustração gerada por ferramentas/gerar_rua.py) */
.rua-contentor { margin-top: clamp(40px, 6vw, 72px); line-height: 0; }
.rua { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 266; min-height: 160px; }
.r-traco { fill: none; stroke: var(--rua-traco); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.r-traco-f { fill: none; stroke: var(--rua-traco); stroke-width: 1; stroke-linecap: round; opacity: .7; }
.r-fachada { fill: var(--rua-fundo); }
.r-fachada--2 { fill: var(--rua-fundo-2); }
.r-fachada--azulejo { fill: url(#azulejo-rua); }
.r-azulejo-fundo { fill: var(--rua-fundo); }
.r-azulejo { fill: none; stroke: var(--acento); stroke-width: .8; opacity: .55; }
.r-janela { fill: var(--rua-vidro); stroke: var(--rua-traco); stroke-width: 1.4; }
.r-portada { fill: var(--rua-portada); stroke: var(--rua-traco); stroke-width: 1; }
.r-cimalha { fill: var(--rua-fundo-2); stroke: var(--rua-traco); stroke-width: 1.4; }
.r-telhado { fill: var(--rua-telhado); stroke: var(--rua-traco); stroke-width: 1.4; stroke-linejoin: round; }
.r-porta { fill: var(--rua-porta); stroke: var(--rua-traco); stroke-width: 1.4; }
.r-toldo { fill: var(--acento-suave); stroke: var(--rua-traco); stroke-width: 1.2; }
.r-roupa { fill: var(--violeta-claro); stroke: var(--rua-traco); stroke-width: 1; }
.r-roupa--2 { fill: var(--rua-fundo); }
.r-gato { fill: var(--rua-traco); stroke: var(--rua-traco); stroke-width: 1.2; stroke-linecap: round; }
.r-vaso { fill: var(--rua-vaso); stroke: var(--rua-traco); stroke-width: 1; }
.r-planta { fill: none; stroke: var(--rua-planta); stroke-width: 1.6; stroke-linecap: round; }
.r-calcada { fill: none; stroke: var(--rua-traco); stroke-width: 1.2; opacity: .45; }
.r-candeeiro { fill: var(--rua-luz); stroke: var(--rua-traco); stroke-width: 1.2; }

/* rodapé */
.rodape { padding-block: 40px 56px; font-size: .92rem; color: var(--tinta-2); background: var(--papel); }
.rodape__grelha { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rodape img { width: 150px; height: auto; margin-bottom: 14px; }
.rodape p { margin-bottom: .5em; }
.rodape strong { color: var(--tinta); }
.rodape__aviso { max-width: 34em; }
/* páginas de texto (privacidade, confirmado, 404) */
.texto-legal { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.texto-legal .contentor { max-width: calc(46rem + 2 * var(--gutter)); }
.texto-legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem); }
.texto-legal h2 { font-size: 1.3rem; letter-spacing: -.015em; margin-top: 2em; }
.texto-legal p, .texto-legal li { color: var(--tinta-2); }
.texto-legal strong { color: var(--tinta); }
.texto-legal ul { padding-left: 1.2em; }
.texto-legal li { margin-bottom: .45em; }
.data { font-size: .92rem; }
.confirmado { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.confirmado img { width: 120px; height: auto; margin: 0 auto 20px; animation: carimbar .5s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
.confirmado p { color: var(--tinta-2); max-width: 32em; margin-inline: auto; font-size: 1.1rem; }

/* =====================================================================
   TABLET (768–1023 px): a mesma apresentação do computador, mais compacta
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .topo__nav { gap: 16px; font-size: .9rem; }
  .heroi__grelha { gap: 32px; }
  h1 { font-size: clamp(2.1rem, .6rem + 3.6vw, 3.2rem); }
  .heroi__grelha { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .estado { font-size: .7rem; padding: .35em .6em; }
  .mini-pdf span { white-space: nowrap; font-size: .78rem; }
  .app__lista li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 9px 6px; }
  .casa { width: 34px; height: 34px; }
  .app__valor { display: none; }
  .heroi__carimbo { left: -30px; width: 86px; }
  .heroi__nota-mao { right: 24px; }
  .problema { gap: 40px; }
  .folha li, .folha__rodape { font-size: 1.5rem; }
  .passos { gap: 20px; }
  .passo__seta { display: none; }
  .passo__visual { height: 124px; }
  .mini-campo, .mini-email, .mini-pdf { width: 88%; padding: 10px 12px; }
  .confianca { gap: 40px; }
  .chave { max-width: 220px; }
  .planos { gap: 14px; }
  .plano { padding: 24px 20px; }
  .perguntas { gap: 32px; }
  .avisa { gap: 28px; padding: 32px; }
  .pilulas span { padding: .4em .8em; }
}

/* =====================================================================
   TELEMÓVEL (até 767 px): apresentação própria, a mesma estrutura
   ===================================================================== */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  h1 { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.6rem); }
  h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.1rem); }
  .seccao { padding-block: 56px; }
  .titulo-seccao { margin-bottom: 28px; }

  /* cabeçalho */
  .topo__linha { min-height: 58px; gap: 10px; }
  .topo__marca img { width: 138px; }
  .topo__nav { gap: 8px; }
  .topo__nav a:not(.botao) { display: none; }
  .tema { width: 36px; height: 36px; }

  /* topo */
  .heroi { padding-block: 28px 56px; }
  .heroi::before { width: 100%; height: 45%; top: auto; bottom: 0; }
  .heroi__grelha { grid-template-columns: 1fr; gap: 40px; }
  .publico { font-size: .92rem; margin-bottom: 1em; }
  .sublinhado { white-space: normal; color: var(--acento); }
  .sublinhado::after { display: none; }
  .heroi__lead { font-size: 1.05rem; }
  .heroi__acoes { flex-direction: column; align-items: stretch; gap: 14px; margin: 1.6em 0 1em; }
  .heroi__acoes .botao { width: 100%; }
  .heroi__acoes .ligacao-seta { text-align: center; }
  .heroi__nota { font-size: .88rem; text-align: center; }
  .heroi__visual { padding-top: 0; }
  .app { transform: none; border-radius: 16px; font-size: .84rem; }
  .app__topo { padding: 12px 14px; }
  .app__resumo { padding: 14px 14px 12px; }
  .app__total .troca { font-size: 1.45rem; }
  .app__lista { padding: 4px 6px; }
  .app__lista li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 9px 6px; }
  .casa { width: 30px; height: 30px; }
  .app__valor { display: none; }
  .estado { font-size: .7rem; padding: .35em .6em; }
  .app__rodape { padding: 9px 14px 12px; }
  .heroi__carimbo { left: -10px; bottom: 64px; width: 70px; }
  .heroi__nota-mao { right: 18px; bottom: -22px; font-size: 1.5rem; }
  .heroi__nota-mao .seta-mao { width: 56px; height: 76px; }
  .heroi__visual figcaption { margin-top: 10px; }

  /* problema */
  .problema { grid-template-columns: 1fr; gap: 40px; }
  .coima { margin-top: 1.4em; }
  .folha { transform: rotate(.8deg); padding: 24px 18px 18px 56px; background-image:
      linear-gradient(90deg, transparent 40px, color-mix(in srgb, var(--acento) 35%, transparent) 40px 41px, transparent 41px),
      repeating-linear-gradient(to bottom, transparent 0 39px, var(--linha) 39px 40px); }
  .folha li, .folha__rodape { font-size: 1.5rem; }
  .folha li::before { left: -40px; width: 18px; height: 18px; top: 11px; }

  /* como funciona: lista vertical, número à esquerda */
  .passos { grid-template-columns: 1fr; gap: 32px; }
  .passo { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
  .passo__seta { display: none; }
  .passo__visual { grid-column: 1 / -1; height: 112px; margin-bottom: 16px; }
  .passo__num { grid-row: span 2; font-size: 2.6rem; margin: 0; }
  .passo h3 { margin-bottom: .35em; }
  .passo p { grid-column: 2; }

  /* confiança */
  .confianca { grid-template-columns: 1fr; gap: 24px; }
  .confianca__lado { position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .confianca__lado h2 { margin: 0; }
  .chave { max-width: 128px; margin: 0; flex: none; }
  .confianca__lista li { padding: 16px 0 16px 40px; }
  .confianca__lista li::before { top: 17px; width: 24px; height: 24px; }

  /* funcionalidades */
  .funcoes { grid-template-columns: 1fr; }
  .funcoes li { padding: 16px 0; }

  /* preços: cartões compactos (plano e contratos à esquerda, preço à direita) */
  .planos { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .plano { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 18px 20px; }
  .plano h3 { grid-column: 1; margin: 0; }
  .plano__contratos { grid-column: 1; margin: 0; font-size: .92rem; }
  .plano__preco { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: right; }
  .plano__preco span { font-size: 2.1rem; }
  .plano__mensal { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; font-size: .92rem; }
  .planos__notas { font-size: .95rem; margin-bottom: 28px; }
  .planos__destaque { display: inline-block; }
  .centro .botao { width: 100%; }

  /* perguntas */
  .perguntas { grid-template-columns: 1fr; gap: 16px; }
  .perguntas__titulo { position: static; max-width: none; }
  .perguntas summary { font-size: 1rem; padding: 16px 40px 16px 0; }

  /* formulário */
  .avisa-seccao .contentor { padding-inline: 12px; }
  .avisa { grid-template-columns: 1fr; gap: 24px; padding: 28px 18px 18px; border-radius: 20px; }
  .avisa__texto { padding-inline: 4px; }
  .avisa__texto p { font-size: 1rem; }
  .formulario { padding: 20px 16px; }
  .pilulas { gap: 6px; }
  .pilulas span { padding: .45em .85em; font-size: .9rem; }

  /* rua e rodapé */
  .rua-contentor { margin-top: 40px; }
  .rua { min-height: 140px; }
  .rodape { padding-block: 28px 40px; }
  .rodape__grelha { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
