/* ============================================================
   Residente Online — Landing pages por função (/boleto-e-pix/, /controle-de-acesso/…)
   Estrutura: abertura com as telas, a dor que o sistema absorve, como funciona (pilares
   com telas), os cuidados, dúvidas, outras funções e a chamada final.
   Depende dos tokens e componentes de /assets/css/styles.css (inclusive o modo escuro).
   ============================================================ */

/* ---------- Fontes no próprio site (as mesmas da home, ver home.css) ----------
   A Inter vem de /assets/fonts e é pré-carregada no <head>: sem ida ao Google Fonts. As "Fallback" (Arial e Roboto
   com as medidas da Inter) seguram o texto no lugar enquanto ela chega. */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-style: normal; 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: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 500; size-adjust: 106%; ascent-override: 91.4%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 102%; ascent-override: 95%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback R"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 100 500; size-adjust: 106.4%; ascent-override: 91.1%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback R"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 900; size-adjust: 108.5%; ascent-override: 89.3%; descent-override: 22.2%; line-gap-override: 0%; }
:root { --font: "Inter", "Inter Fallback", "Inter Fallback R", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* ---------- Trilha (Início › Funcionalidades › esta página) ---------- */
.trilha { padding-top: clamp(16px, 2.2vw, 24px); }
.trilha ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.trilha li { display: inline-flex; align-items: center; gap: 8px; }
.trilha li + li::before { content: "›"; color: var(--muted-2); font-weight: 500; }
.trilha a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.trilha a:hover, .trilha a:focus-visible { color: var(--brand-700); text-decoration-color: currentColor; }
.trilha [aria-current] { color: var(--ink-2); }

/* ---------- Links no meio do texto (uma função citando outra) ---------- */
.pilar-txt a, .lista-check a, .faq-a-inner a, .section-head .lead a, .cuidado p a, .dor-col a {
  color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s;
}
.pilar-txt a:hover, .lista-check a:hover, .faq-a-inner a:hover, .section-head .lead a:hover, .cuidado p a:hover, .dor-col a:hover { text-decoration-color: currentColor; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Telas: navegador (painel) e celular (apps) ---------- */
.tela-web {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px hsl(var(--shadow-color) / .08), 0 30px 70px -36px hsl(168 50% 12% / .55), 0 0 0 1px hsl(168 30% 20% / .08);
}
.tela-web-barra {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: #EEF2F0; border-bottom: 1px solid #DCE4E0;
}
.tela-web-barra i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5D1; flex: none; }
.tela-web-barra span {
  margin-left: 10px; flex: 0 1 auto; min-width: 0; padding: 3px 12px; border-radius: 999px;
  background: #fff; color: #5B6E68; font-size: .7rem; font-weight: 600; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tela-web img { display: block; width: 100%; height: auto; }

/* Celular: um iPhone de verdade (borda fina, aro de titânio, ilha dinâmica e botões). As medidas são frações da
   largura do aparelho (cqw: a .tela-app é o contêiner), então a moldura fica igual em qualquer tamanho.
   Tela do iPhone 18 Pro: 402 × 874 pt, cantos de 62 pt; aqui ela ocupa 93,5% da largura (aro 0,75 + borda 2,5). */
.tela-app { position: relative; width: 100%; container-type: inline-size; isolation: isolate; }
.aparelho {
  position: relative; padding: 2.5cqw; border: 0.75cqw solid transparent; border-radius: 17.65cqw;
  background:
    linear-gradient(#050606, #050606) padding-box,
    linear-gradient(150deg, #a4adaa 0%, #4a5250 16%, #262b2d 42%, #1d2123 58%, #4d5654 82%, #9aa3a0 100%) border-box;
  box-shadow:
    0 0.3cqw 0.6cqw hsl(168 40% 6% / .22),
    0 4cqw 8cqw -2.5cqw hsl(168 50% 8% / .40),
    0 14cqw 24cqw -12cqw hsl(168 50% 8% / .38);
}
.aparelho img { display: block; width: 100%; height: auto; border-radius: 14.4cqw; }
/* ilha dinâmica: 126 × 37 pt, a 11 pt do topo da tela */
.aparelho::before {
  content: ""; position: absolute; z-index: 1; top: 5cqw; left: 50%; width: 29.3cqw; height: 8.6cqw;
  transform: translateX(-50%); border-radius: 99px; background: #000;
}
/* botões: ação e volume à esquerda; lateral e controle da câmera à direita (saem 1 cqw do corpo) */
.aparelho::after {
  content: ""; position: absolute; z-index: -1; top: 37cqw; left: -1.75cqw; right: -1.75cqw; height: 95cqw;
  background:
    linear-gradient(90deg, #66706d, #2b3130) left 0 top 0 / 2cqw 9cqw no-repeat,
    linear-gradient(90deg, #66706d, #2b3130) left 0 top 19cqw / 2cqw 14cqw no-repeat,
    linear-gradient(90deg, #66706d, #2b3130) left 0 top 38cqw / 2cqw 14cqw no-repeat,
    linear-gradient(270deg, #66706d, #2b3130) right 0 top 18cqw / 2cqw 26cqw no-repeat,
    linear-gradient(270deg, #66706d, #2b3130) right 0 top 79cqw / 2cqw 14cqw no-repeat;
}

/* TV em pé, presa na parede: moldura fina, sem pé */
.tela-tv { position: relative; width: 100%; container-type: inline-size; isolation: isolate; }
.tv {
  position: relative; padding: 2.2cqw; border: 0.6cqw solid transparent; border-radius: 2.6cqw;
  background:
    linear-gradient(#0b0d0d, #0b0d0d) padding-box,
    linear-gradient(165deg, #5d6663 0%, #22282a 35%, #191d1f 70%, #3d4544 100%) border-box;
  box-shadow: 0 0.4cqw 0.8cqw hsl(168 40% 6% / .25), 0 5cqw 10cqw -3cqw hsl(168 50% 8% / .45), 0 16cqw 26cqw -14cqw hsl(168 50% 8% / .4);
}
.tv img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0.6cqw; }

/* Tela do carro (CarPlay): painel embutido, com um reflexo leve no vidro */
.tela-carro { position: relative; container-type: inline-size; isolation: isolate; }
.console {
  position: relative; padding: 1.5cqw; border: 0.35cqw solid transparent; border-radius: 3.2cqw;
  background:
    linear-gradient(#060808, #060808) padding-box,
    linear-gradient(175deg, #545d5b 0%, #22282a 30%, #14181a 70%, #353d3c 100%) border-box;
  box-shadow: 0 0.3cqw 0.6cqw hsl(168 40% 6% / .25), 0 3cqw 6cqw -2cqw hsl(168 50% 8% / .45), 0 10cqw 18cqw -9cqw hsl(168 50% 8% / .4);
}
.console img { display: block; width: 100%; height: auto; border-radius: 1.5cqw; }
.console::after {
  content: ""; position: absolute; inset: 1.5cqw; border-radius: 1.5cqw; pointer-events: none;
  background: linear-gradient(118deg, hsl(0 0% 100% / .07) 0%, hsl(0 0% 100% / 0) 34%);
}

/* recorte de uma tela (um widget do painel), sem a moldura do navegador */
.tela-recorte {
  border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px hsl(var(--shadow-color) / .08), 0 26px 60px -34px hsl(168 50% 12% / .5), 0 0 0 1px hsl(168 30% 20% / .08);
}
.tela-recorte img { display: block; width: 100%; height: auto; }

/* legenda: de que frente é a tela */
.tela-legenda {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; color: var(--muted); font-size: .86rem; font-weight: 600; text-align: center;
}
.tela-legenda i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--brand); }
.tela-legenda i.app { background: #19B5B6; }
.tela-legenda i.port { background: #F0A500; }
.tela-legenda i.carro { background: #6B9AC4; }

/* ---------- Eventos flutuantes (o sistema trabalhando) ---------- */
.evento {
  display: flex; align-items: center; gap: 11px; width: max-content; max-width: 100%;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 2px hsl(var(--shadow-color) / .1), 0 18px 40px -18px hsl(168 50% 12% / .45), 0 0 0 1px var(--line-2);
  font-size: .86rem; line-height: 1.3; color: var(--ink);
}
.evento-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-700); }
.evento-ic svg { width: 18px; height: 18px; }
.evento b { display: block; font-weight: 700; letter-spacing: -0.01em; }
.evento small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.evento time { margin-left: 6px; align-self: flex-start; color: var(--muted-2); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.evento--alerta .evento-ic { background: hsl(4 75% 95%); color: #C4362F; }
.evento--aviso .evento-ic { background: hsl(40 90% 93%); color: #9A6300; }
@media (prefers-color-scheme: dark) {
  .evento--alerta .evento-ic { background: hsl(4 60% 30% / .35); color: #FF8A80; }
  .evento--aviso .evento-ic { background: hsl(40 70% 30% / .35); color: #FFC56B; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .palco .evento { opacity: 0; transform: translateY(10px); animation: evento-entra .7s var(--ease) forwards; animation-delay: var(--d, .5s); }
  .js .palco .tela-app { opacity: 0; transform: translateY(18px); animation: evento-entra .9s var(--ease) .25s forwards; }
}
@keyframes evento-entra { to { opacity: 1; transform: none; } }

/* ---------- Abertura ---------- */
/* Título e apoio em cima; as telas embaixo, grandes, para dar para ler o sistema. */
.sol-hero { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(56px, 7vw, 96px); }
.sol-hero-top { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(28px, 4vw, 60px); align-items: end; }
.sol-hero h1 { margin-top: 0; letter-spacing: -0.04em; font-size: clamp(2.2rem, 4.3vw, 3.4rem); line-height: 1.03; }
/* o rótulo de cima faz parte do H1 (o nome da função no título da página), com a mesma cara de antes */
.sol-hero h1 .eyebrow { display: flex; width: fit-content; margin-bottom: 20px; font-size: .82rem; letter-spacing: .04em; line-height: 1.4; }
.sol-hero h1 .h1-frase { display: block; }
.sol-hero h1 .accent { color: var(--brand-700); position: relative; }
.sol-hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .26em;
  background: var(--brand-tint-2); z-index: -1; border-radius: 4px;
}
.sol-hero-apoio .lead { margin-top: 0; max-width: 48ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.sol-hero .hero-actions { margin-top: 26px; }

.selos { list-style: none; padding: 0; margin: clamp(26px, 3.4vw, 40px) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.selos li {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 9px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--amb-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-2); line-height: 1.25;
}
.selos li svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-700); flex: none; }
.selos li b { color: var(--ink); font-weight: 800; }

/* palco: a tela do painel, o celular por cima e os eventos */
.palco { position: relative; margin: clamp(36px, 5vw, 60px) auto 0; max-width: 1120px; padding: 0 0 7% 0; }
.palco::before {
  content: ""; position: absolute; inset: 10% -3% -3% 14%; border-radius: var(--r-xl); z-index: 0;
  background:
    radial-gradient(70% 70% at 80% 20%, hsl(160 70% 45% / .18), transparent 70%),
    linear-gradient(155deg, var(--brand-tint), var(--surface-3) 75%);
}
.palco > * { position: relative; z-index: 1; }
.palco .tela-web { width: 88%; }
.palco .tela-app { position: absolute; width: 24%; right: 1%; bottom: 0; z-index: 2; }
.palco .evento { position: absolute; z-index: 3; }
.palco .evento.e1 { left: -2%; top: 22%; }
.palco .evento.e2 { left: 8%; bottom: 2%; }
.palco .evento.e3 { right: 27%; top: -4%; }
/* palco só de celulares (função do app: dois aparelhos lado a lado) */
.palco--apps { display: flex; justify-content: center; align-items: flex-end; gap: 5%; padding: 3% 4% 4%; max-width: 860px; }
.palco--apps .tela-app { position: relative; width: 36%; max-width: 300px; right: auto; bottom: auto; }
.palco--apps .tela-app:first-of-type { transform: translateY(-6%); }
.palco--apps .evento.e1 { left: -2%; top: 30%; }
.palco--apps .evento.e2 { left: auto; right: 0; bottom: 14%; }
/* palco da TV (Rota Residente): a TV em pé e o painel ao fundo */
.palco--tv { padding: 0 0 2% 0; }
.palco--tv .tela-web { width: 76%; margin-left: 0; }
.palco--tv .tela-tv { position: absolute; width: 27%; right: 3%; bottom: -2%; z-index: 2; }

/* ---------- Faixa de logos (prova social) ---------- */
.sol-logos { padding-block: clamp(28px, 4vw, 44px); }
.sol-logos .label { text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 18px; }

/* ---------- A dor que o sistema absorve ---------- */
.dor-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.dor-col { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.dor-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; letter-spacing: -0.01em; }
.dor-col h3 small { margin-left: auto; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dor-col ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.dor-col li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.dor-col li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.dor-antes { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.dor-antes h3 { color: var(--ink-2); }
.dor-antes li { color: var(--muted); }
.dor-antes li svg { color: #C4524A; }
.dor-depois { background: var(--surface); box-shadow: var(--amb-md), inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.dor-depois::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--g6); }
.dor-depois li { color: var(--ink); font-weight: 500; }
.dor-depois li svg { color: var(--brand); }
.dor-seta { display: grid; place-items: center; color: var(--brand-700); }
.dor-seta span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--amb-sm), inset 0 0 0 1px var(--line-2); }
.dor-seta svg { width: 22px; height: 22px; }

.virada {
  margin: clamp(36px, 5vw, 56px) auto 0; max-width: 820px; padding: 4px 0 4px clamp(20px, 3vw, 30px);
  border-left: 4px solid transparent; border-image: var(--g6) 1;
}
.virada p { font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.virada cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: .95rem; font-weight: 600; }

/* ---------- Como funciona: pilares ---------- */
.pilares { display: grid; gap: clamp(64px, 9vw, 120px); }
.pilar { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.pilar:nth-child(even):not(.pilar--largo) { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.pilar:nth-child(even):not(.pilar--largo) .pilar-txt { order: 2; }
/* tela do painel: o texto em duas colunas e a tela larga embaixo (para dar para ler) */
.pilar--largo { grid-template-columns: 1fr; gap: clamp(26px, 3.4vw, 40px); }
.pilar--largo .pilar-txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.pilar--largo .pilar-txt > :not(.lista-check) { grid-column: 1; }
.pilar--largo .pilar-txt > .pilar-num { justify-self: start; }
.pilar--largo .pilar-txt .lista-check { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: center; }
.pilar--largo .pilar-media { width: 100%; max-width: 1040px; margin-inline: auto; }
.pilar-num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-700); font-size: .8rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.pilar h3 { margin-top: 16px; font-size: clamp(1.45rem, 2.6vw, 1.95rem); letter-spacing: -0.03em; line-height: 1.12; }
.pilar-txt > p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.lista-check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.lista-check li { display: flex; gap: 11px; align-items: flex-start; font-size: .99rem; line-height: 1.5; color: var(--ink-2); }
.lista-check li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-700); }
.lista-check li b { color: var(--ink); }
.pilar-media { margin: 0; position: relative; min-width: 0; }
.pilar-media .tela-app { width: min(290px, 62%); margin-inline: auto; }
.pilar-media--solo { padding: clamp(22px, 3vw, 36px) 0; }
.pilar-media--solo::before {
  content: ""; position: absolute; inset: 8% 6% 14% 6%; border-radius: var(--r-xl); z-index: 0;
  background: radial-gradient(70% 70% at 70% 20%, hsl(160 70% 45% / .14), transparent 70%), linear-gradient(155deg, var(--brand-tint), var(--surface-3) 75%);
}
.pilar-media--solo > * { position: relative; z-index: 1; }
.pilar-media .tela-tv { width: min(320px, 64%); margin-inline: auto; }
/* duas telas: painel com um celular por cima */
.duo { position: relative; padding-bottom: 8%; }
.duo .tela-web { width: 90%; }
.duo .tela-app { position: absolute; right: 0; bottom: 0; width: 28%; margin: 0; }
/* dois celulares lado a lado */
.par { display: flex; justify-content: center; gap: 5%; align-items: flex-start; }
.par .tela-app { width: 44%; max-width: 280px; margin: 0; }
.par .tela-app + .tela-app { margin-top: 10%; }
.pilar-media .evento { position: absolute; z-index: 3; left: -2%; top: 10%; }

/* ---------- Integrações (marcas de equipamento) ---------- */
.marcas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.marcas span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--amb-sm);
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.marcas span small { font-weight: 600; color: var(--muted); font-size: .82rem; }
.marcas-nota { margin: 18px auto 0; max-width: 64ch; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Cuidados ---------- */
.cuidado-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cuidado {
  border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); background: var(--surface);
  box-shadow: var(--amb-sm), inset 0 0 0 1px var(--line-2);
}
.cuidado-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-700); }
.cuidado-ic svg { width: 23px; height: 23px; }
.cuidado h3 { margin-top: 18px; font-size: 1.08rem; letter-spacing: -0.015em; line-height: 1.3; }
.cuidado p { margin-top: 8px; color: var(--muted); font-size: .97rem; line-height: 1.55; }

/* ---------- Depoimento ---------- */
.sol-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.sol-quote blockquote { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.sol-quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--muted); font-size: .95rem; }
.sol-quote cite b { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Outras funções ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start;
  padding: 20px 46px 20px 20px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--amb-sm), inset 0 0 0 1px var(--line-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rel:hover { transform: translateY(-3px); box-shadow: var(--amb-md), inset 0 0 0 1px var(--brand-tint-2); }
.rel-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-700); }
.rel-ic svg { width: 20px; height: 20px; }
.rel b { font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
.rel span:not(.rel-ic):not(.rel-seta) { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.rel-seta { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brand-700); transition: transform .25s var(--ease); }
.rel-seta svg { width: 18px; height: 18px; }
.rel:hover .rel-seta { transform: translate(3px, -50%); }

/* mapa com todas as funções (três grupos); a página atual aparece marcada, sem link */
.mapa {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--amb-sm), inset 0 0 0 1px var(--line-2);
}
.mapa-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.mapa-cab h3 { font-size: 1.16rem; letter-spacing: -0.015em; }
.mapa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px clamp(20px, 3vw, 40px); margin-top: 20px; }
.mapa-grupo h4 { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.mapa-grupo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.mapa-grupo a, .mapa-atual {
  display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 6px 10px; margin-inline: -10px; border-radius: 12px;
  font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--ink); transition: background .2s, color .2s;
}
.mapa-grupo a:hover, .mapa-grupo a:focus-visible { background: var(--brand-tint); color: var(--brand-700); }
.mapa-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-700); }
.mapa-ic svg { width: 16px; height: 16px; }
.mapa-atual { color: var(--muted); }
.mapa-atual small { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-700); font-size: .72rem; font-weight: 700; white-space: nowrap; }

/* ---------- Chamada final ---------- */
.sol-cta { position: relative; }
.sol-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 0%, hsl(160 70% 40% / .22), transparent 60%), radial-gradient(50% 70% at 0% 100%, hsl(190 70% 40% / .14), transparent 60%);
}
.sol-cta .wrap { position: relative; z-index: 1; }
.sol-cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.sol-cta h2 { color: #fff; }
.sol-cta .lead { color: var(--on-deep-2); margin-top: 18px; max-width: 48ch; }
.sol-cta .eyebrow { color: var(--g6-lima); }
.garantias { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.garantias li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-deep); font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.garantias li svg { width: 22px; height: 22px; flex: none; color: var(--g6-lima); }
.garantias li small { display: block; font-weight: 500; color: var(--on-deep-2); font-size: .92rem; }
.contato-card {
  border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 38px); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -40px hsl(180 50% 6% / .8);
}
.contato-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.contato-card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.contato-card .btn { width: 100%; margin-top: 22px; }
.contato-card .contact-num { margin-top: 12px; }
.contato-email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.contato-email a { color: var(--ink); font-weight: 700; }
.contato-email .contact-copy { margin-left: auto; }

/* ---------- CTA fixo no celular ---------- */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
}
.lp-sticky .btn { flex: 1; justify-content: center; padding-inline: 14px; }

/* ---------- Escuro ---------- */
@media (prefers-color-scheme: dark) {
  .tela-web { box-shadow: 0 30px 70px -36px hsl(168 60% 2% / .8), 0 0 0 1px hsl(0 0% 100% / .08); }
  .tela-web-barra { background: #1B2A26; border-bottom-color: #2B4B44; }
  .tela-web-barra i { background: #3A5650; }
  .tela-web-barra span { background: #10231F; color: #A3B8B1; }
  .tela-recorte { box-shadow: 0 26px 60px -34px hsl(168 60% 2% / .8), 0 0 0 1px hsl(0 0% 100% / .08); }
  .palco::before { background: radial-gradient(70% 70% at 80% 20%, hsl(160 70% 40% / .16), transparent 70%), linear-gradient(155deg, var(--surface-2), var(--surface-3) 75%); }
  .dor-antes { background: var(--surface-2); }
  .contato-card { box-shadow: inset 0 0 0 1px var(--line-2); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .sol-hero-top { grid-template-columns: 1fr; gap: 22px; }
  .sol-hero-apoio .lead { max-width: 60ch; }
  .pilar, .pilar:nth-child(even):not(.pilar--largo) { grid-template-columns: 1fr; }
  .pilar:nth-child(even):not(.pilar--largo) .pilar-txt { order: 0; }
  .pilar--largo .pilar-txt { grid-template-columns: 1fr; }
  .pilar--largo .pilar-txt .lista-check { grid-column: 1; grid-row: auto; margin-top: 22px; }
  .pilar-media { max-width: 760px; width: 100%; margin-inline: auto; }
  .cuidado-grid, .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .mapa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mapa-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dor-grid { grid-template-columns: 1fr; }
  .dor-seta { transform: rotate(90deg); }
  .palco .evento.e3 { display: none; }
  .palco .evento.e1 { left: 0; top: 4%; }
  .palco:not(.palco--apps) .evento { max-width: 62%; } /* não cobre o celular, que fica à direita */
  .palco .evento { font-size: .78rem; padding: 8px 11px 8px 8px; }
  .palco .evento-ic { width: 28px; height: 28px; border-radius: 9px; }
  .palco .evento time { display: none; }
}
@media (max-width: 600px) {
  .cuidado-grid, .rel-grid { grid-template-columns: 1fr; }
  .selos li { font-size: .84rem; }
  .palco .evento.e2 { display: none; }
  .palco .tela-app { width: 32%; }
  .tela-web-barra span { display: none; }
  .lp-sticky { display: flex; }
  body.sol { padding-bottom: 74px; }
  .duo .tela-app { width: 31%; }
}

/* ---------- Rodapé com as 18 funções (três grupos) e o Residente ---------- */
.footer-grid--sol { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-col span[aria-current] { display: block; padding: 6px 0; font-size: .98rem; font-weight: 600; color: var(--muted-2); }
.footer-brand .footer-contato { display: grid; gap: 4px; margin-top: 16px; }
.footer-contato a { color: var(--ink-2); font-weight: 700; font-size: .95rem; padding: 4px 0; transition: color .18s; }
.footer-contato a:hover { color: var(--brand-700); }
@media (max-width: 960px) {
  .footer-grid--sol { grid-template-columns: 1fr 1fr; }
  .footer-grid--sol .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid--sol { grid-template-columns: 1fr; } }

/* palco do console do carro (Residente no Carro) */
.palco--carro { padding: 2% 0 4%; max-width: 980px; }
.palco--carro .tela-carro { width: 100%; }
.palco--carro .evento.e1 { left: -2%; top: 0; }

/* ---------- Tela ampliada (toque numa tela) ---------- */
.ampliavel { cursor: zoom-in; }
.ampliavel img[role="button"]:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
dialog.zoom {
  width: min(1500px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #fff; overflow: auto; overscroll-behavior: contain;
}
dialog.zoom::backdrop { background: rgba(6, 18, 15, .88); backdrop-filter: blur(4px); }
.zoom-fig { margin: 0; padding: 56px 16px 24px; display: grid; justify-items: center; gap: 14px; }
.zoom-fig img { display: block; width: 100%; height: auto; border-radius: 10px; cursor: zoom-out; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.zoom-fig img.alta { width: auto; max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 28px; }
.zoom-fig figcaption { max-width: 70ch; text-align: center; font-size: .95rem; color: #CFDBD7; }
.zoom-fechar {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; z-index: 2;
}
.zoom-fechar svg { width: 22px; height: 22px; }
.zoom-fechar:hover { background: rgba(255, 255, 255, .24); }
/* No celular, a tela do painel abre no tamanho de ler e rola para os lados. */
@media (max-width: 700px) {
  .zoom-fig { justify-items: start; padding: 64px 14px 28px; }
  .zoom-fig img:not(.alta) { width: 1000px; max-width: none; }
  .zoom-fig figcaption { position: sticky; left: 0; max-width: calc(100vw - 28px); text-align: left; }
}
