/* Página de apresentação do TeamsKit.
   Uma forma só conduz a página: a bolha do chat do Teams (retângulo arredondado com o canto de baixo,
   à esquerda, reto). Ela aparece gigante no topo, como máscara das fotos, nos botões e nos marcadores. */

@font-face { font-family: 'General Sans'; src: url('/fontes/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/fontes/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/fontes/general-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --fundo: #eef0f3;
  --superficie: #e2e5ea;
  --superficie-2: #d4d8df;
  --tinta: #0b0c0e;
  --suave: #535a66;
  --acento: #1f2de6;
  --acento-forte: #1622b8;
  --acento-tinta: #ffffff;
  --painel: #14161a;
  --painel-tinta: #eef0f3;
  --painel-suave: #b9bfca;

  --fonte: 'General Sans', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', 'Nirmala UI', 'Noto Sans Devanagari', sans-serif;
  --s-pequeno: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-corpo: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-destaque: clamp(1.25rem, 0.95rem + 1.2vw, 2.125rem);
  --s-titulo: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --s-tela: clamp(3.5rem, 6.4vw, 6.25rem);

  --m: clamp(16px, 3.4vw, 48px);
  --vao: clamp(12px, 1.6vw, 24px);
  --secao: clamp(96px, 12vw, 200px);

  --bolha: 2.2rem 2.2rem 2.2rem .35rem;
  --bolha-p: 1.2rem 1.2rem 1.2rem .25rem;
  --bolha-em: .9em .9em .9em .18em;

  --t-rapido: 160ms;
  --t-medio: 420ms;
  --sair: cubic-bezier(.2, .7, .2, 1);
  --vai-e-vem: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  .como .planilha { --xl-cel: #1f1f1f; --xl-grade: #3a3a3a; --xl-cab: #2b2b2b; --xl-cab-tinta: #b3b3b3; --xl-tinta: #e8e8e8; --xl-col: rgba(76, 194, 128, .2); --xl-aba: #7fd6a4; }
  :root {
    --fundo: #0d0f12;
    --superficie: #181b20;
    --superficie-2: #23272e;
    --tinta: #eef0f3;
    --suave: #a6adb9;
    --acento: #3a48ff;
    --acento-forte: #5965ff;
    --acento-tinta: #ffffff;
    --painel: #1b1f26;
    --painel-tinta: #eef0f3;
    --painel-suave: #b9bfca;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 var(--s-corpo)/1.5 var(--fonte); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
h3 { font-size: var(--s-corpo); font-weight: 500; line-height: 1.3; }
:lang(ja) :is(h1, h2, h3, p) { word-break: auto-phrase; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: var(--m); top: -100px; z-index: 10; background: var(--tinta); color: var(--fundo); padding: .6em 1em; border-radius: var(--bolha-em); }
.pular:focus { top: 12px; }

/* ---------- Botões e links (a bolha como forma do botão) ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85em 1.5em; background: var(--acento); color: var(--acento-tinta); font-weight: 500; text-decoration: none; border: 0; border-radius: var(--bolha-em); cursor: pointer; transition: transform var(--t-rapido) var(--sair), background-color var(--t-rapido) ease; }
.botao:active { transform: scale(0.97); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .25em; text-decoration-color: transparent; transition: text-decoration-color var(--t-rapido) ease; }
@media (hover: hover) and (pointer: fine) {
  .botao:hover { background: var(--acento-forte); }
  .link:hover, .nav-links a:hover, .rodape a:hover { text-decoration-color: currentColor; }
}

/* ---------- Navegação ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 24px var(--m); }
.marca { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); color: var(--acento-tinta); }
.nav-links a { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; text-decoration-thickness: .08em; transition: text-decoration-color var(--t-rapido) ease; }
.idioma { position: relative; display: inline-flex; align-items: center; gap: .4em; color: var(--acento-tinta); }
/* ---------- Atalhos flutuantes (instalar, compartilhar, topo): aparecem depois do topo da página ---------- */
.flutuante { position: fixed; z-index: 20; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--fundo); border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 24px -8px rgba(0, 0, 0, .35); /* taste-skill-ignore: barra flutuante */
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t-medio) var(--sair), transform var(--t-medio) var(--sair), visibility 0s linear var(--t-medio); }
.flutuante.visivel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.flut-botao { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--suave); cursor: pointer; transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease; }
.flut-botao svg { width: 20px; height: 20px; fill: currentColor; }
.flut-instalar { color: var(--acento); }
.flut-botao:active { transform: scale(0.94); }
.flut-botao:focus-visible { outline: 3px solid var(--acento); outline-offset: 1px; }
@media (prefers-color-scheme: dark) { .flutuante { background: var(--superficie-2); } .flut-botao { color: var(--painel-suave); } .flut-botao.flut-instalar { color: var(--acento); } }
/* O botão do rodapé fica livre dos atalhos. */
.rodape-fim { padding-right: 64px; }
/* ---------- Compartilhar o site ---------- */
.nav-compartilhar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--acento-tinta); border-radius: 50%; cursor: pointer; transition: background-color var(--t-rapido) ease; }
.nav-compartilhar svg { width: 20px; height: 20px; fill: currentColor; }
.nav-compartilhar:focus-visible { outline: 3px solid var(--acento-tinta); outline-offset: 2px; }
.link-botao { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color var(--t-rapido) ease; }
.compartilhar { width: min(34rem, calc(100% - 32px)); padding: clamp(20px, 3vw, 32px); border: 0; border-radius: var(--bolha-p); background: var(--fundo); color: var(--tinta); box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .45); } /* taste-skill-ignore: janela sobreposta (dialog) */
.compartilhar::backdrop { background: rgba(8, 9, 11, .55); }
.comp-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.comp-topo h2 { font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.comp-fechar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: var(--superficie); color: var(--tinta); border-radius: 50%; cursor: pointer; }
.comp-fechar svg { width: 18px; height: 18px; fill: currentColor; }
.comp-rotulo { display: block; margin-top: 20px; font-weight: 500; }
.compartilhar textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--superficie); color: var(--tinta); font: inherit; line-height: 1.45; resize: vertical; }
.compartilhar textarea:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.comp-acoes { margin-top: 16px; display: grid; gap: 8px; }
.comp-acao { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em .8em; border: 0; border-radius: var(--bolha-em); background: var(--superficie-2); color: var(--tinta); font: inherit; font-weight: 600; cursor: pointer; transition: transform var(--t-rapido) var(--sair), filter var(--t-rapido) ease; }
.comp-acao svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.comp-acao:active { transform: scale(0.97); }
.comp-teams { background: #5b5fc7; color: #ffffff; }
.comp-whats { background: #1a8f4e; color: #ffffff; }
.comp-status { min-height: 1.5em; margin-top: 12px; font-weight: 500; }
.comp-dica { margin-top: 4px; color: var(--suave); font-size: var(--s-pequeno); }
@media (hover: hover) and (pointer: fine) {
  .nav-compartilhar:hover { background: rgba(255, 255, 255, .16); }
  .flut-botao:hover { background: var(--superficie-2); color: var(--tinta); }
  .flut-instalar:hover { color: var(--acento); }
  .link-botao:hover { text-decoration-color: currentColor; }
  .comp-acao:hover { filter: brightness(1.08); }
}
.idioma-icone { width: 1.15em; height: 1.15em; fill: currentColor; }
.seletor-idioma { appearance: none; background: transparent; border: 0; padding: .3em .2em; font-weight: 500; cursor: pointer; border-radius: var(--bolha-em); }
.seletor-idioma option { color: #0b0c0e; background: #ffffff; }

/* ---------- Topo ---------- */
.heroi { position: relative; min-height: max(92svh, 640px); overflow: hidden; display: flex; align-items: center; padding: 120px var(--m) 80px; }
.bolha-gigante { position: absolute; width: 120vh; height: 92vh; left: calc(78% - 60vh); top: -6vh; overflow: hidden; background: var(--acento); border-radius: 30vh 30vh 30vh 4vh; }
/* Um vídeo de tempo livre sorteado a cada visita preenche a bolha; a imagem fixa aparece antes dele. */
.bolha-midia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.bolha-gigante video { opacity: 0; transition: opacity 700ms ease; }
.bolha-gigante video.tocando { opacity: 1; }
/* Sombra neutra só na faixa de cima, para os links brancos do topo seguirem legíveis sobre o vídeo. */
.bolha-gigante::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 28%; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); } /* taste-skill-ignore: véu neutro sob texto sobre vídeo */
.heroi-texto { position: relative; z-index: 2; max-width: min(46vw, 40rem); }
.heroi h1 { font-size: var(--s-tela); letter-spacing: -0.03em; line-height: 0.92; max-width: 6.2em; }
.heroi-frase { margin-top: 32px; max-width: 34ch; font-size: var(--s-corpo); }
.acoes { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* Sobre o vídeo: o contador "Enviado para N pessoas" no centro da parte visível da bolha e, embaixo,
   uma faixa na cor do Teams com as mensagens que a extensão vai "enviando" (pedido do dono: cores do Teams). */
.heroi { --teams: #5b5fc7; --teams-escuro: #4f52b2; }
.contador-envio { position: absolute; z-index: 2; left: calc(11vw + 30vh); top: 38%; translate: -50% -50%; display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.35em; margin: 0; background: var(--teams); color: #ffffff; font-size: var(--s-corpo); font-weight: 500; white-space: nowrap; border-radius: .6em; }
.contador-envio svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.contador-envio span { font-variant-numeric: tabular-nums; }
.contador-envio .contou { display: inline-block; animation: contou 360ms var(--sair); }
@keyframes contou { 40% { transform: scale(1.06); } }
/* As caixas ficam direto sobre o vídeo, sem faixa de fundo. A nova entra descendo com fade; a do topo sai
   subindo com fade; as do meio deslizam até o lugar novo (inicio.js anima a diferença de posição). */
.envios { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 24px 26px 6vh; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.envios-lista { list-style: none; margin: 0; padding: 0; width: min(600px, calc(22vw + 60vh - 12vh)); display: flex; flex-direction: column; gap: 8px; }
.envio { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 12px 9px; background: #ffffff; color: #242424; border-radius: 6px; font-size: 14px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); } /* taste-skill-ignore: caixas de chat flutuando sobre o vídeo (data-ui) */
.envio.nova { animation: envio-entra 420ms var(--sair) 260ms both; }
.envio.saindo { animation: envio-sai 450ms ease forwards; }
@keyframes envio-entra { from { opacity: 0; clip-path: inset(0 0 100% 0 round 6px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 6px); } }
@keyframes envio-sai { from { clip-path: inset(0 0 0 0 round 6px); } to { opacity: 0; clip-path: inset(0 0 100% 0 round 6px); } }
.envio-av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #8764b8; color: #ffffff; font-size: 12px; font-weight: 600; }
.envio-av-1 { background: #038387; } .envio-av-2 { background: #ca5010; } .envio-av-3 { background: #4f6bed; } .envio-av-4 { background: #c239b3; } .envio-av-5 { background: #986f0b; }
.envio-corpo { display: grid; min-width: 0; }
.envio-topo { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: #616161; }
.envio-topo strong { font-size: 13px; font-weight: 600; color: #242424; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envio-topo svg { width: 14px; height: 14px; margin-left: auto; fill: var(--teams); flex: none; }
.envio-texto { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.icone { width: 1em; height: 1em; fill: currentColor; }

/* ---------- A dor e a conta da tarde ---------- */
.conta { padding: clamp(72px, 8vw, 120px) var(--m) 0; }
.afirmacao { max-width: 64vw; margin: 0 auto; text-align: center; font-size: var(--s-destaque); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.conta-grade { margin-top: clamp(72px, 9vw, 140px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: start; }
.conta-controles { grid-column: 1 / span 5; }
.conta-controles h2 { font-size: var(--s-titulo); }
.conta-controles > p { margin-top: 24px; max-width: 40ch; }
.rotulo { display: block; margin-top: 32px; margin-bottom: 10px; font-weight: 500; padding: 0; }
textarea { width: 100%; min-height: 8.5em; resize: vertical; padding: 16px 18px; background: var(--superficie); border: 2px solid transparent; border-radius: var(--bolha-p); line-height: 1.45; transition: border-color var(--t-rapido) ease; }
textarea:focus { outline: none; border-color: var(--acento); }
.quantos { border: 0; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quantos legend { width: 100%; }
.quantos label { position: relative; cursor: pointer; }
.quantos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quantos span { display: inline-flex; min-width: 4.2em; min-height: 52px; align-items: center; justify-content: center; padding: .6em 1.1em; font-weight: 500; background: var(--superficie); border-radius: var(--bolha-em); transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease, transform var(--t-rapido) var(--sair); }
.quantos input:checked + span { background: var(--tinta); color: var(--fundo); }
.quantos input:focus-visible + span { outline: 3px solid var(--acento); outline-offset: 3px; }
.quantos label:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .quantos input:not(:checked) + span:hover { background: var(--superficie-2); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tags button { min-height: 40px; padding: .35em .85em; border: 0; background: var(--superficie-2); color: var(--tinta); font-weight: 500; border-radius: var(--bolha-em); cursor: pointer; transition: background-color var(--t-rapido) ease, transform var(--t-rapido) var(--sair); }
.tags button:active { transform: scale(0.96); }
@keyframes chamar-tag {
  0%, 100% { transform: none; }
  35% { transform: translateY(-3px) scale(1.08); background-color: var(--acento); color: #ffffff; }
  70% { transform: none; }
}
@media (hover: hover) and (pointer: fine) { .tags button:hover { background: var(--tinta); color: var(--fundo); } }
.sim-acao { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.botao:disabled { opacity: .55; cursor: default; }
.sim-status { color: var(--suave); font-weight: 500; }
.quantos input:disabled + span { opacity: .55; cursor: default; }

/* A janela de chat do simulador (pedaço de interface, data-ui) */
.sim { grid-column: 7 / span 6; display: grid; grid-template-rows: auto minmax(0, 1fr); height: clamp(480px, 64vh, 600px); overflow: hidden; background: var(--superficie); border-radius: var(--bolha); font-size: 0.9375rem; line-height: 1.4; }
.sim-barra { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--superficie-2); }
.sim-titulo { font-weight: 700; margin-right: auto; }
.sim-selo { padding: .3em .8em; background: var(--fundo); color: var(--tinta); font-size: var(--s-pequeno); font-weight: 500; border-radius: var(--bolha-em); }
.sim-progresso { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.sim-progresso span { display: block; height: 100%; background: var(--acento); transform-origin: left center; transform: scaleX(0); transition: transform 120ms linear; }
.sim-corpo { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); min-height: 0; }
.sim-lista { list-style: none; margin: 0; padding: 8px; overflow-y: auto; min-height: 0; }
.sim-item { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 0; background: none; text-align: left; color: inherit; border-radius: var(--bolha-p); cursor: pointer; transition: background-color var(--t-rapido) ease; }
.sim-item[aria-current="true"] { background: var(--fundo); }
@media (hover: hover) and (pointer: fine) { .sim-item:not([aria-current="true"]):hover { background: var(--superficie-2); } }
.sim-av { display: inline-grid; place-items: center; width: 36px; height: 32px; background: var(--acento); color: #ffffff; font-size: var(--s-pequeno); font-weight: 700; border-radius: 11px 11px 11px 3px; flex: none; }
.sim-av-escuro { background: var(--painel); color: var(--painel-tinta); }
.sim-item-texto { display: grid; min-width: 0; }
.sim-item-texto strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-previa { color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--s-pequeno); }
.sim-estado { font-size: var(--s-pequeno); color: var(--suave); white-space: nowrap; }
.sim-estado.enviando { color: var(--acento); font-weight: 500; }
.sim-estado.enviada { color: #0a7d3e; font-weight: 500; }
.sim-conversa { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--fundo); }
.sim-cab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.sim-cab strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-voltar { display: none; width: 36px; height: 36px; place-items: center; border: 0; background: var(--superficie); color: var(--tinta); border-radius: 11px 11px 11px 3px; cursor: pointer; }
.sim-msgs { list-style: none; margin: 0; padding: 8px 16px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sim-msg { max-width: 82%; align-self: flex-start; }
.sim-msg span { display: inline-block; padding: 8px 12px; background: var(--superficie); border-radius: 14px 14px 14px 3px; overflow-wrap: anywhere; }
.sim-msg.eu { align-self: flex-end; }
.sim-msg.eu span { background: var(--acento); color: #ffffff; border-radius: 14px 14px 3px 14px; }
.sim-msg.nova { animation: entra var(--t-medio) var(--sair) both; }
.sim-escrever { display: flex; gap: 8px; padding: 10px 12px 12px; }
.sim-escrever input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; background: var(--superficie); border: 2px solid transparent; border-radius: 12px 12px 12px 3px; }
.sim-escrever input:focus { outline: none; border-color: var(--acento); }
.sim-escrever button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--acento); color: #ffffff; border-radius: 12px 12px 12px 3px; cursor: pointer; transition: transform var(--t-rapido) var(--sair); }
.sim-escrever button:active { transform: scale(0.94); }

/* Tempo economizado */
.economia { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 40px; padding: clamp(24px, 3vw, 40px); background: var(--superficie); border-radius: var(--bolha); }
.economia h3 { grid-column: 1; font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.economia-texto { grid-column: 1; max-width: 52ch; }
.economia .nota { grid-column: 1; }
.economia-minutos { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-weight: 500; }
.economia-minutos select { min-height: 44px; padding: .45em 2.2em .45em 1em; background: var(--fundo); color: var(--tinta); border: 2px solid transparent; border-radius: var(--bolha-em); font-weight: 500; cursor: pointer; }
.economia-minutos select:focus { outline: none; border-color: var(--acento); }
.economia-ajuda { grid-column: 1; max-width: 60ch; }
.economia-ajuda summary { width: fit-content; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .25em; }
.economia-ajuda[open] summary { margin-bottom: 10px; }
.economia-ajuda ol { margin: 8px 0 10px; padding-left: 1.3em; display: grid; gap: 4px; }
.economia-ajuda li::marker { font-weight: 700; color: var(--acento); }
.conta-resultado { grid-column: 2; grid-row: 1 / span 6; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: var(--s-corpo); font-weight: 500; }
.conta-tempo { font-size: var(--s-titulo); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.conta-tempo.mudou { animation: entra var(--t-medio) var(--sair) both; }
.nota { color: var(--suave); font-size: var(--s-corpo); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Como funciona: dois campos e uma régua ---------- */
.como { position: relative; margin-top: var(--secao); display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.como-texto { background: var(--superficie); padding: clamp(40px, 5vw, 72px) var(--m) 180px; }
.como-texto h2 { font-size: var(--s-titulo); max-width: 11em; }
.paradas { margin-top: clamp(40px, 6vw, 96px); max-width: 30rem; }
.parada h3 { font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.parada p { margin-top: 16px; }
.parada + .parada { margin-top: 32px; }
.js .parada + .parada { margin-top: 0; }
/* As 4 paradas ocupam o mesmo lugar: a altura fica a da maior e a planilha abaixo não pula. */
.js .paradas { display: grid; }
.js .parada { grid-area: 1 / 1; visibility: hidden; }
.js .parada.ativa { visibility: visible; animation: aparece 200ms ease both; }

/* ---------- Planilha de exemplo (HTML, sem imagem) e o cabo até a extensão ---------- */
.planilha { --xl-cel: #ffffff; --xl-grade: #d9d9d9; --xl-cab: #f3f3f3; --xl-cab-tinta: #5f5f5f; --xl-tinta: #1f1f1f; --xl-verde: #217346; --xl-col: rgba(33, 115, 70, .16);
  margin-top: clamp(40px, 5vw, 64px); width: min(30rem, 100%); background: var(--xl-cel); color: var(--xl-tinta); border-radius: 10px 10px 10px 3px; overflow: hidden;
  font: 13px/1.3 'Segoe UI', system-ui, sans-serif; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 32px -12px rgba(0, 0, 0, .28); } /* taste-skill-ignore: imita a interface do Excel */
.xl-barra { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--xl-verde); color: #ffffff; font-size: 12px; }
.xl-icone { width: 15px; height: 15px; fill: none; stroke: #ffffff; stroke-width: 1.4; }
.xl-formula { display: flex; align-items: center; border-bottom: 1px solid var(--xl-grade); background: var(--xl-cel); font-size: 12px; } /* taste-skill-ignore: imita a interface do Excel */
.xl-formula > span { padding: 4px 8px; }
.xl-ref { width: 52px; border-right: 1px solid var(--xl-grade); color: var(--xl-cab-tinta); } /* taste-skill-ignore: imita a interface do Excel */
.xl-fx { font-style: italic; color: var(--xl-cab-tinta); border-right: 1px solid var(--xl-grade); } /* taste-skill-ignore: imita a interface do Excel */
.xl-grade { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xl-grade th, .xl-grade td { border: 1px solid var(--xl-grade); padding: 3px 7px; height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.xl-grade th { background: var(--xl-cab); color: var(--xl-cab-tinta); font-weight: 400; text-align: center; font-size: 12px; }
.xl-grade thead th:first-child, .xl-grade tbody th { width: 30px; }
.xl-grade thead th:nth-child(2) { width: 27%; }
.xl-titulos td { font-weight: 700; }
.xl-titulos td:first-of-type { outline: 2px solid var(--xl-verde); outline-offset: -2px; }
.xl-abas { display: flex; background: var(--xl-cab); border-top: 1px solid var(--xl-grade); padding: 0 0 0 30px; font-size: 12px; } /* taste-skill-ignore: imita a interface do Excel */
.xl-aba { padding: 4px 14px; background: var(--xl-cel); color: var(--xl-aba, var(--xl-verde)); font-weight: 600; border-bottom: 2px solid var(--xl-verde); }
/* A camada do cabo cobre só o retângulo entre a planilha e a tela (o JS posiciona). */
.cabo { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 1; }
.cabo-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cabo-fio { fill: none; stroke: var(--acento); stroke-width: 3; stroke-linecap: round; opacity: .35; }
#caboPonta path { fill: var(--acento); }
.cabo-fluxo { fill: none; stroke: var(--acento); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 15; }
.pacote { display: none; position: absolute; left: 0; top: 0; offset-anchor: 50% 50%; offset-rotate: 0deg; padding: .22em .6em; background: var(--acento); color: var(--acento-tinta); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: var(--bolha-em); }
.pacote::before { content: "#"; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes viaja { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes flui { to { stroke-dashoffset: -16; } }
@keyframes coluna { 0%, 22% { background-color: var(--xl-col); } 30%, 100% { background-color: transparent; } }
.como-tela { background: var(--painel); display: grid; place-items: center; padding: 64px var(--m) 180px; }
.tela { position: relative; width: min(680px, 100%); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.6rem 1.6rem 1.6rem .3rem; background: var(--superficie); }
.tela img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms ease; }
.tela img.ativa, .tela .tela-1 { opacity: 1; }
.js .tela .tela-1:not(.ativa) { opacity: 0; }
.tela-1 { transform: scale(1.45); transform-origin: 30% 55%; }
.tela-2 { transform: scale(1.5); transform-origin: 30% 30%; }
.tela-3 { transform: scale(1.5); transform-origin: 30% 72%; }
.tela-4 { transform: scale(1.4); transform-origin: 35% 60%; }
.regua { position: absolute; left: var(--m); right: var(--m); bottom: 40px; padding-left: 52px; }
.regua-trilho { position: absolute; left: calc(52px + 16px); right: 16px; top: 12px; height: 8px; background: var(--suave); border-radius: 4px; }
.regua-feito { position: absolute; inset: 0; background: var(--acento); border-radius: 4px; transform-origin: left center; transform: scaleX(0); transition: transform 200ms var(--sair); }
/* Enquanto anda sozinha, a barra enche devagar até a próxima parada (5 s, o mesmo tempo do avanço). */
.regua-feito.andando { transition: transform 5000ms linear; }
.regua-play { position: absolute; left: 0; top: 0; width: 36px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: var(--tinta); color: var(--fundo); border-radius: 12px 12px 12px 3px; cursor: pointer; transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease, transform var(--t-rapido) var(--sair); }
.regua-play svg { width: 14px; height: 14px; fill: currentColor; }
.regua-play .icone-tocar, .regua-play.pausado .icone-pausa { display: none; }
.regua-play.pausado .icone-tocar { display: block; }
.regua-play:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .regua-play:hover { background: var(--acento); color: var(--acento-tinta); } }
#regua { position: relative; z-index: 1; width: 100%; height: 32px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#regua::-webkit-slider-runnable-track { height: 32px; background: transparent; }
#regua::-moz-range-track { height: 32px; background: transparent; }
#regua::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; background: var(--acento); border-radius: 12px 12px 12px 3px; transition: transform var(--t-rapido) var(--sair); }
#regua::-moz-range-thumb { width: 32px; height: 32px; border: 0; background: var(--acento); border-radius: 12px 12px 12px 3px; }
#regua:active::-webkit-slider-thumb { transform: scale(1.12); }
.regua-nomes { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); }
.regua-nomes li:nth-child(2) { text-align: center; padding-right: 25%; }
.regua-nomes li:nth-child(3) { text-align: center; padding-left: 25%; color: var(--painel-tinta); }
.regua-nomes li:nth-child(4) { text-align: right; color: var(--painel-tinta); }
.regua-nomes button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font-weight: 400; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; text-decoration-thickness: .08em; transition: text-decoration-color var(--t-rapido) ease; }
.regua-nomes button[aria-current="step"] { font-weight: 700; text-decoration-color: currentColor; }

/* ---------- Problemas que somem: painel de ladrilhos ---------- */
.problemas { margin: var(--secao) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; gap: 8px; }
.ladrilho { position: relative; overflow: hidden; padding: 20px 22px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--bolha); }
.ladrilho h3 { position: relative; font-size: var(--s-corpo); font-weight: 500; max-width: 26ch; }
.ladrilho p { position: relative; margin-top: 4px; max-width: 40ch; font-size: 1rem; }
.l-titulo { grid-column: 1 / span 6; grid-row: 1 / span 2; justify-content: flex-start; padding: 0; }
.l-titulo h2 { font-size: var(--s-titulo); max-width: 8em; }
.l1 { grid-column: 7 / span 6; grid-row: 1 / span 4; }
.l2 { grid-column: 1 / span 3; grid-row: 3 / span 4; }
.l3 { grid-column: 4 / span 3; grid-row: 3 / span 2; }
.l4 { grid-column: 4 / span 3; grid-row: 5 / span 2; }
.l5 { grid-column: 7 / span 6; grid-row: 5 / span 2; }
.l6 { grid-column: 1 / span 6; grid-row: 7 / span 2; }
.l7 { grid-column: 7 / span 6; grid-row: 7 / span 2; }
.cor-acento { background: var(--acento); color: var(--acento-tinta); }
.cor-tinta { background: var(--painel); color: var(--painel-tinta); }
.cor-superficie { background: var(--superficie); }
.cor-superficie2 { background: var(--superficie-2); }
/* Pedaços da interface, ampliados e cortados pela borda do ladrilho */
.ui { position: absolute; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; max-width: calc(100% - 44px); font-weight: 500; line-height: 1.2; }
.ui-corrigir { top: 14%; right: 22px; font-size: clamp(1.6rem, 3vw, 2.9rem); flex-direction: column; align-items: flex-end; }
.ui-chip { padding: .35em .7em; background: var(--acento-tinta); color: var(--acento); border-radius: var(--bolha-em); }
.ui-botao { padding: .6em 1.1em; background: var(--tinta-fixa, #0b0c0e); color: #ffffff; border-radius: var(--bolha-em); }
.ui-escolha { top: 26%; left: 22px; font-size: clamp(1rem, 1.3vw, 1.25rem); flex-direction: column; align-items: flex-start; }
.ui-opcao { display: inline-flex; align-items: center; gap: .55em; padding: .5em .9em; background: rgba(255, 255, 255, .08); border-radius: var(--bolha-em); }
.ui-opcao i { width: .9em; height: .9em; border-radius: 50%; border: .14em solid currentColor; }
.ui-opcao.marcada { background: var(--acento); color: #ffffff; }
.ui-opcao.marcada i { background: currentColor; }
.ui-fora { top: 22px; left: 22px; font-size: clamp(1rem, 1.25vw, 1.2rem); padding: .5em .9em; background: var(--fundo); border-radius: var(--bolha-em); }
.ui-x { color: #c4122f; font-weight: 700; }
.ui-editada { top: 22px; left: 22px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); gap: .2em .5em; }
.ui-editada s { color: var(--suave); }
.ui-tabela { top: 22px; right: 22px; font-size: clamp(1rem, 1.3vw, 1.25rem); gap: 4px; }
.ui-tabela span { padding: .55em .9em; background: rgba(255, 255, 255, .1); }
.ui-salvo { top: 22px; right: 22px; font-size: clamp(1.5rem, 2.6vw, 2.4rem); padding: .4em .8em; background: var(--fundo); border-radius: var(--bolha-em); }
.ui-check { color: #0a7d3e; font-weight: 700; }
.ui-arquivo { top: 22px; right: 22px; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.ui-arquivo-nome { padding: .4em .8em; background: var(--acento-tinta); color: var(--acento); border-radius: var(--bolha-em); }

/* ---------- Condições: a seção azul ---------- */
.condicoes { margin-top: var(--secao); background: var(--acento); color: var(--acento-tinta); padding: clamp(96px, 10vw, 160px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: center; }
.condicoes-texto { grid-column: 1 / span 5; }
.condicoes-texto h2 { font-size: var(--s-titulo); max-width: 9em; }
.condicoes-texto > p { margin-top: 28px; max-width: 42ch; }
.regras { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.regras li { position: relative; padding-left: 1.6em; }
.regras li::before { content: ""; position: absolute; left: 0; top: .32em; width: .95em; height: .8em; background: var(--acento-tinta); border-radius: .32em .32em .32em .07em; }
.regra-se, .regra-entao { font-weight: 700; }
.condicoes-tela { grid-column: 7 / span 6; padding: clamp(10px, 1.4vw, 20px); background: var(--fundo); border-radius: var(--bolha); }
.condicoes-tela img { border-radius: 1.1rem 1.1rem 1.1rem .25rem; }

/* ---------- A tarde: janelas em forma de bolha ---------- */
.tarde { padding: var(--secao) var(--m) 0; }
.tarde-topo { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: end; }
.tarde h2 { grid-column: 1 / span 6; font-size: var(--s-titulo); max-width: 9em; }
.tarde-topo p { grid-column: 8 / span 5; max-width: 36ch; }
.janelas { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1.25fr .85fr 1.1fr 1fr .9fr; gap: var(--vao); align-items: end; }
.janela img { width: 100%; object-fit: cover; border-radius: var(--bolha); }
.j1 img { aspect-ratio: 4 / 5; }
.j2 img { aspect-ratio: 3 / 4; }
.j3 img { aspect-ratio: 1 / 1; }
.j4 img { aspect-ratio: 4 / 5; }
.j5 img { aspect-ratio: 5 / 6; }
.janela figcaption { margin-top: 12px; font-weight: 500; }

/* ---------- Veja por dentro ---------- */
.prints { margin-top: var(--secao); padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); min-height: 88svh; }
.prato { align-self: center; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: clamp(16px, 2.6vw, 40px); background: var(--superficie); border-radius: var(--bolha); }
.prato img { width: 100%; border-radius: .9rem .9rem .9rem .2rem; transition: opacity 200ms ease; }
.prato img.trocando { opacity: 0; }
.prints-lado { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(16px, 3vw, 48px) 0; }
.prints-lado h2 { font-size: var(--s-titulo); }
.abas-linha { margin-top: 32px; display: flex; align-items: flex-start; gap: 6px; }
.abas { display: flex; flex-wrap: wrap; gap: 6px; }
.abas-play { position: static; flex: none; width: 40px; height: 44px; border-radius: var(--bolha-em); }
/* Barra de progresso na aba escolhida enquanto as abas passam sozinhas. */
.abas button { position: relative; overflow: hidden; }
.abas button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acento); transform: scaleX(0); transform-origin: left center; }
.abas.andando button[aria-selected="true"]::after { transform: scaleX(1); transition: transform 5000ms linear; }
.abas button { min-height: 44px; padding: .45em .85em; border: 0; background: var(--superficie); color: var(--tinta); font-weight: 500; border-radius: var(--bolha-em); cursor: pointer; transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease, transform var(--t-rapido) var(--sair); }
.abas button[aria-selected="true"] { background: var(--tinta); color: var(--fundo); }
.abas button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .abas button[aria-selected="false"]:hover { background: var(--superficie-2); } }
.print-texto h3 { font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.print-texto p { margin-top: 20px; max-width: 34ch; }
.print-texto:not([hidden]) { animation: aparece 200ms ease both; }
.celulas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.celula { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px; text-align: center; font-weight: 500; text-decoration: none; border-radius: var(--bolha-p); transition: transform var(--t-rapido) var(--sair), background-color var(--t-rapido) ease; }
.celula:active { transform: scale(0.98); }
.celula-tinta { background: var(--tinta); color: var(--fundo); }
.celula-tom { background: var(--superficie); }
@media (hover: hover) and (pointer: fine) { .celula-tom:hover { background: var(--superficie-2); } .celula-tinta:hover { background: var(--acento); color: var(--acento-tinta); } }

/* ---------- Depoimento (escondido até haver frases reais) ---------- */
.depoimento { margin-top: var(--secao); padding: 140px var(--m); background: var(--superficie); }
.dep-linha { display: flex; justify-content: space-between; font-size: 9vw; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.dep-linha + .dep-linha { margin-top: .6em; }
.dep-autor { margin-top: 64px; display: flex; justify-content: space-between; }

/* ---------- Privacidade: painel escuro ---------- */
.privacidade { margin-top: var(--secao); padding: 0 var(--m); }
.painel { --painel-pad: clamp(32px, 4vw, 56px); position: relative; overflow: hidden; padding: var(--painel-pad); background: var(--painel); color: var(--painel-tinta); border-radius: var(--bolha); display: grid; grid-template-columns: 58fr 42fr; grid-template-rows: auto 1fr; gap: var(--vao); }
.painel h2 { grid-column: 1; grid-row: 1; font-size: var(--s-titulo); max-width: 8.5em; align-self: start; }
/* A foto fica no fluxo, sob o título, e a borda de baixo do painel corta a sua base. */
.painel-foto { grid-column: 1; grid-row: 2; align-self: end; width: min(100%, 42vw); margin: 40px 0 calc(-1 * var(--painel-pad) - 3vw); overflow: hidden; border-radius: 9vw 9vw 9vw 1.4vw; }
.painel-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; animation: deriva 22s var(--vai-e-vem) infinite alternate; }
@keyframes deriva { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
.painel-textos { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; max-width: 26rem; padding-top: clamp(0px, 3vw, 40px); }
.painel-textos h3 { font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.painel-textos p { margin-top: 14px; }
.painel-nota { color: var(--painel-suave); }

/* ---------- Planos: nomes à esquerda, um preço vivo à direita ---------- */
.planos { margin-top: var(--secao); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: start; }
.planos-nomes { grid-column: 1 / span 6; }
.planos-nomes h2 { font-size: var(--s-destaque); font-weight: 500; letter-spacing: 0; line-height: 1.2; color: var(--suave); }
.nomes { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.nome-plano { position: relative; padding: .04em 0 .04em .55em; border: 0; background: none; font-size: var(--s-titulo); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--suave); cursor: pointer; transition: color var(--t-rapido) ease; }
.nome-plano::before { content: ""; position: absolute; left: 0; top: .42em; width: .32em; height: .27em; border-radius: .12em .12em .12em .03em; background: var(--acento); opacity: 0; transform: scale(.6); transition: transform var(--t-rapido) var(--sair), opacity var(--t-rapido) ease; }
.nome-plano[aria-checked="true"] { color: var(--tinta); }
.nome-plano[aria-checked="true"]::before { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .nome-plano:hover { color: var(--tinta); } }
.palco-plano { grid-column: 8 / span 5; padding-top: 12px; }
.preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; }
.preco-valor { font-size: var(--s-tela); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.preco-periodo { font-weight: 500; }
.preco-texto { margin: 24px 0 32px; max-width: 38ch; }
.preco-passos { margin-top: 20px; max-width: 38ch; padding-left: 14px; border-left: 3px solid var(--acento); color: var(--tinta); font-weight: 500; }
.palco-plano.trocou > * { animation: aparece 200ms ease both; }

/* Tabela comparativa: linhas em faixas de tom (sem linhas finas); a coluna do plano escolhido vira uma faixa azul */
.tabela-planos { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); }
.tabela-planos table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tabela-planos th, .tabela-planos td { padding: 14px 18px; text-align: left; vertical-align: middle; transition: background-color var(--t-medio) ease, color var(--t-medio) ease; }
.tabela-planos thead th { padding-top: 22px; padding-bottom: 16px; font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.tabela-planos thead th:first-child { width: 40%; font-size: var(--s-corpo); font-weight: 500; letter-spacing: 0; color: var(--suave); }
.tabela-planos tbody th { font-weight: 500; }
.tabela-planos tbody tr:nth-child(odd) > * { background: var(--superficie); }
.tabela-planos tbody tr:nth-child(odd) > :first-child { border-radius: 1rem 0 0 .25rem; }
.tabela-planos tbody tr:nth-child(odd) > :last-child { border-radius: 0 1rem 1rem 0; }
.tabela-planos .icone { margin-right: .45em; vertical-align: -0.14em; flex: none; }
.tabela-planos .celula-ok .icone { color: var(--acento); }
.tabela-planos .celula-nao { color: var(--suave); }
/* A coluna inteira é clicável: o cursor indica, e passar o mouse acende de leve a coluna ainda não escolhida. */
.tabela-planos [data-col] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .tabela-planos:not([data-sel="gratis"]):has([data-col="gratis"]:hover) [data-col="gratis"],
  .tabela-planos:not([data-sel="basico"]):has([data-col="basico"]:hover) [data-col="basico"],
  .tabela-planos:not([data-sel="pro"]):has([data-col="pro"]:hover) [data-col="pro"] { background: var(--superficie-2); border-radius: 0; }
}
/* "tr >" deixa esta regra tão forte quanto a das faixas, e por vir depois ela vence (cantos retos na coluna azul) */
.tabela-planos[data-sel="gratis"] tr > [data-col="gratis"],
.tabela-planos[data-sel="basico"] tr > [data-col="basico"],
.tabela-planos[data-sel="pro"] tr > [data-col="pro"],
.tabela-planos[data-sel="gratis"] tbody tr:nth-child(odd) > [data-col="gratis"],
.tabela-planos[data-sel="basico"] tbody tr:nth-child(odd) > [data-col="basico"],
.tabela-planos[data-sel="pro"] tbody tr:nth-child(odd) > [data-col="pro"] { background: var(--acento); color: var(--acento-tinta); border-radius: 0; }
.tabela-planos[data-sel="gratis"] thead [data-col="gratis"],
.tabela-planos[data-sel="basico"] thead [data-col="basico"],
.tabela-planos[data-sel="pro"] thead [data-col="pro"] { border-radius: 1.2rem 1.2rem 0 0; }
.tabela-planos[data-sel="gratis"] tbody tr:last-child [data-col="gratis"],
.tabela-planos[data-sel="basico"] tbody tr:last-child [data-col="basico"],
.tabela-planos[data-sel="pro"] tbody tr:last-child [data-col="pro"] { border-radius: 0 0 1.2rem .25rem; }
.tabela-planos[data-sel] [data-col] .icone { transition: color var(--t-medio) ease; }
.tabela-planos[data-sel="gratis"] [data-col="gratis"] .icone,
.tabela-planos[data-sel="basico"] [data-col="basico"] .icone,
.tabela-planos[data-sel="pro"] [data-col="pro"] .icone { color: var(--acento-tinta); }
.tabela-planos.trocou[data-sel="gratis"] [data-col="gratis"],
.tabela-planos.trocou[data-sel="basico"] [data-col="basico"],
.tabela-planos.trocou[data-sel="pro"] [data-col="pro"] { animation: aparece 300ms ease both; }

@media (max-width: 599px) {
  .tabela-planos th, .tabela-planos td { padding: 12px 14px; }
  .tabela-planos thead th:first-child { width: 55%; }
  .tabela-planos[data-sel="gratis"] [data-col]:not([data-col="gratis"]),
  .tabela-planos[data-sel="basico"] [data-col]:not([data-col="basico"]),
  .tabela-planos[data-sel="pro"] [data-col]:not([data-col="pro"]) { display: none; }
}

/* ---------- Perguntas frequentes ---------- */
.perguntas { margin-top: var(--secao); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: start; }
.perguntas h2 { grid-column: 1 / span 4; position: sticky; top: 96px; font-size: var(--s-titulo); max-width: 7em; }
.faq { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--superficie); border-radius: var(--bolha-p); transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease; }
.faq summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 18px 64px 18px 24px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; border-radius: 2px; transition: transform var(--t-rapido) var(--sair); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] { background: var(--acento); color: var(--acento-tinta); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { background: var(--superficie-2); border-radius: var(--bolha-p); } }

/* ---------- Fechamento: o primeiro passo já aberto ---------- */
.fim { margin-top: clamp(96px, 9vw, 140px); background: var(--acento); color: var(--acento-tinta); padding: clamp(56px, 6vw, 88px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--vao); align-items: end; }
.fim-texto { grid-column: 1 / span 7; align-self: end; }
.fim-texto h2 { font-size: var(--s-tela); letter-spacing: -0.03em; line-height: 0.92; max-width: 8em; }
.fim-texto p { margin-top: 28px; max-width: 38ch; }
.dialogo { grid-column: 8 / span 5; align-self: end; justify-self: start; width: min(460px, 100%); padding: 28px; background: var(--fundo); color: var(--tinta); border-radius: var(--bolha); box-shadow: 0 30px 70px rgba(5, 8, 40, .35); } /* taste-skill-ignore: janela aberta da extensão (data-ui) */
.dialogo-titulo { font-size: var(--s-destaque); font-weight: 700; letter-spacing: -0.01em; }
.dialogo-passos { margin: 20px 0 28px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.dialogo-passos li::marker { font-weight: 700; color: var(--acento); }
.botao-cheio { width: 100%; }

/* ---------- Rodapé: a marca montada com bolhas ---------- */
.rodape { padding: clamp(40px, 5vw, 72px) var(--m) 32px; background: var(--superficie); }
.marca-grande { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 180px; }
.marca-grande span { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .04em; color: var(--superficie); font-size: clamp(2.4rem, 9vw, 9rem); font-weight: 700; line-height: 1; border-radius: 1.4vw 1.4vw 1.4vw .3vw; }
.marca-grande span:nth-child(odd) { background: var(--tinta); }
.marca-grande span:nth-child(even) { background: var(--acento); color: var(--acento-tinta); }
.marca-grande span:nth-child(1) { height: 100%; }
.marca-grande span:nth-child(2) { height: 72%; }
.marca-grande span:nth-child(3) { height: 86%; }
.marca-grande span:nth-child(4) { height: 64%; }
.marca-grande span:nth-child(5) { height: 92%; }
.marca-grande span:nth-child(6) { height: 100%; }
.marca-grande span:nth-child(7) { height: 70%; }
.marca-grande span:nth-child(8) { height: 84%; }
.rodape-colunas { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--vao); }
.rodape-colunas nav { display: flex; flex-direction: column; gap: 10px; }
.rodape-colunas a { overflow-wrap: break-word; hyphens: auto; }
.rodape a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color var(--t-rapido) ease; }
.rodape .botao { text-decoration: none; }
.idioma-rodape { color: var(--tinta); }
.idioma-rodape .seletor-idioma { background: var(--fundo); padding: .5em .9em; }
.rodape-aviso { margin-top: 48px; max-width: 70ch; color: var(--suave); font-size: var(--s-pequeno); }
.creditos { margin-top: 16px; color: var(--suave); font-size: var(--s-pequeno); }
.creditos summary { cursor: pointer; font-weight: 500; }
.creditos ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 4px; }
.rodape-fim { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.botao-pequeno { min-height: 44px; padding: .55em 1.1em; }

/* ---------- Entradas das seções e do topo ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Os dados de cada coluna viajam pelo cabo até a extensão; a coluna acende quando o dado sai. */
  .pacote { display: block; animation: viaja 4s linear infinite both; }
  .pacote:nth-of-type(2) { animation-delay: -3s; }
  .pacote:nth-of-type(3) { animation-delay: -2s; }
  .pacote:nth-of-type(4) { animation-delay: -1s; }
  .cabo-fluxo { animation: flui 900ms linear infinite; }
  .xl-grade tbody td { animation: coluna 4s linear infinite; }
  .xl-grade tbody td:nth-of-type(2) { animation-delay: -3s; }
  .xl-grade tbody td:nth-of-type(3) { animation-delay: -2s; }
  .xl-grade tbody td:nth-of-type(4) { animation-delay: -1s; }
  .como:not(.em-tela) .pacote, .como:not(.em-tela) .cabo-fluxo, .como:not(.em-tela) .xl-grade td { animation-play-state: paused; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--sair), transform 700ms var(--sair); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .problemas [data-reveal]:nth-of-type(3n+1) { transition-delay: 70ms; --entrada: 70ms; }
  .js .problemas [data-reveal]:nth-of-type(3n+2) { transition-delay: 140ms; --entrada: 140ms; }

  /* Problemas que somem: o quadro sob o mouse cresce um pouco, sobe e fica por cima; os outros
     esmaecem sem mudar de tamanho nem de lugar. Usa scale/translate/filter (propriedades separadas
     de transform/opacity, que são da entrada da seção), então uma animação não atrapalha a outra. */
  @media (hover: hover) and (pointer: fine) {
    .problemas .ladrilho:not(.l-titulo) {
      transition-property: opacity, transform, scale, translate, filter;
      transition-duration: 700ms, 700ms, 320ms, 320ms, 320ms;
      transition-timing-function: var(--sair), var(--sair), var(--sair), var(--sair), ease;
      transition-delay: var(--entrada, 0ms), var(--entrada, 0ms), 0ms, 0ms, 0ms;
    }
    .problemas .ladrilho:not(.l-titulo):hover { z-index: 2; scale: 1.035; translate: 0 -6px; }
    .problemas:has(.ladrilho:not(.l-titulo):hover) .ladrilho:not(.l-titulo):not(:hover) { filter: opacity(0.45) saturate(0.7); }
  }
  .js .janelas [data-reveal]:nth-child(2) { transition-delay: 70ms; }
  .js .janelas [data-reveal]:nth-child(3) { transition-delay: 140ms; }
  .js .janelas [data-reveal]:nth-child(4) { transition-delay: 210ms; }
  .js .janelas [data-reveal]:nth-child(5) { transition-delay: 280ms; }
  .js .sim[data-reveal], .js .condicoes-tela[data-reveal], .js .dialogo[data-reveal] { transition-delay: 90ms; }
  .js .painel-textos [data-reveal]:nth-child(2) { transition-delay: 80ms; }
  .js .painel-textos [data-reveal]:nth-child(3) { transition-delay: 160ms; }

  /* Chamada para clicar: cada vez que as tags ou as abas entram na tela, os botões acendem em azul,
     um depois do outro, duas vezes (a classe chamando sai quando o grupo deixa a tela). */
  .tags.chamando button, .abas.chamando button { animation: chamar-tag 900ms var(--sair) 2; }
  .tags.chamando button:nth-child(1), .abas.chamando button:nth-child(1) { animation-delay: 500ms; }
  .tags.chamando button:nth-child(2), .abas.chamando button:nth-child(2) { animation-delay: 620ms; }
  .tags.chamando button:nth-child(3), .abas.chamando button:nth-child(3) { animation-delay: 740ms; }
  .tags.chamando button:nth-child(4), .abas.chamando button:nth-child(4) { animation-delay: 860ms; }
  .tags.chamando button:nth-child(5), .abas.chamando button:nth-child(5) { animation-delay: 980ms; }

  .js .contador-envio { opacity: 0; transform: translateY(16px) scale(.92); animation: selo 600ms var(--sair) 1100ms forwards; }
  .js .bolha-gigante { transform: translateX(6vw); animation: desliza 1200ms var(--sair) forwards; }
  .js .heroi-texto > * { opacity: 0; transform: translateY(24px); animation: entra 700ms var(--sair) forwards; }
  .js .heroi-texto > :nth-child(2) { animation-delay: 80ms; }
  .js .heroi-texto > :nth-child(3) { animation-delay: 160ms; }
}
@keyframes selo { to { opacity: 1; transform: none; } }
@keyframes desliza { to { transform: none; } }
@keyframes entra-fim { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .painel-foto img { animation: none; }
}

/* Enquanto a tradução chega, o conteúdo fica escondido (no máximo 2 s, para nunca ficar invisível). */
.js.traduzindo body { opacity: 0; animation: mostrar 1ms linear 2s forwards; }
@keyframes mostrar { to { opacity: 1; } }

/* ---------- Telas médias e celular ---------- */
@media (max-width: 1100px) {
  .problemas { grid-auto-rows: 112px; }
  .l2 { grid-column: 1 / span 6; grid-row: 3 / span 2; }
  .l3 { grid-column: 1 / span 3; grid-row: 5 / span 2; }
  .l4 { grid-column: 4 / span 3; grid-row: 5 / span 2; }
}

@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .planilha, .cabo { display: none; }
  :root { --s-tela: clamp(2.75rem, 11vw, 4.5rem); }
  .nav-links { display: none; }
  .nav .idioma { color: var(--tinta); }
  .heroi { align-items: flex-start; min-height: max(100svh, 700px); padding: 15svh var(--m) 0; }
  .bolha-gigante { width: 130vw; height: 112vw; left: -15vw; top: max(56svh, 420px); border-radius: 32vw 32vw 32vw 5vw; }
  .heroi-texto { max-width: none; }
  .heroi h1 { font-size: var(--s-tela); }
  .heroi-frase { margin-top: 20px; max-width: 40ch; }
  .acoes { margin-top: 24px; }
  .bolha-gigante::after { display: none; }
  .contador-envio { left: 65vw; top: 9%; font-size: 1rem; }
  .envio { font-size: 13px; }
  .envio-texto { -webkit-line-clamp: 1; }
  .envios { bottom: max(16px, calc(112vw - (max(100svh, 700px) - max(56svh, 420px)) + 16px)); padding: 12px calc(15vw + 16px); }
  .envios-lista { width: auto; }

  .afirmacao { max-width: none; text-align: left; line-height: 1.2; }
  .conta-grade { grid-template-columns: 1fr; gap: 56px; }
  .conta-controles, .sim { grid-column: 1; }

  .como { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .como-tela { grid-row: 1; min-height: 46svh; padding: 32px var(--m); }
  .regua { position: relative; grid-row: 2; left: auto; right: auto; bottom: auto; padding: 20px var(--m) 8px calc(var(--m) + 52px); background: var(--superficie); }
  .regua-play { left: var(--m); top: 20px; width: 40px; height: 40px; }
  .regua-trilho { left: calc(var(--m) + 52px + 20px); right: calc(var(--m) + 20px); top: 36px; }
  #regua { height: 40px; }
  #regua::-webkit-slider-thumb { width: 40px; height: 40px; }
  #regua::-moz-range-thumb { width: 40px; height: 40px; }
  .regua-nomes { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .regua-nomes li, .regua-nomes li:nth-child(n) { text-align: left; padding: 0; color: var(--tinta); }
  .como-texto { grid-row: 3; padding: 32px var(--m) 56px; }

  .problemas { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .problemas > .ladrilho { grid-column: auto; grid-row: auto; min-height: 220px; justify-content: flex-start; }
  .problemas > .l-titulo, .problemas > .l1 { grid-column: 1 / -1; }
  .l-titulo { min-height: 0 !important; padding-bottom: 24px; }
  .ladrilho .ui { position: relative; inset: auto; align-self: flex-start; margin: 0 0 28px; font-size: var(--s-corpo); max-width: 100%; }
  .ui-tabela span:nth-child(3) { display: none; }

  .condicoes { grid-template-columns: 1fr; gap: 48px; }
  .condicoes-texto, .condicoes-tela { grid-column: 1; }

  .tarde-topo { grid-template-columns: 1fr; gap: 20px; }
  .tarde h2, .tarde-topo p { grid-column: 1; }
  .janelas { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .janela img, .j1 img, .j2 img, .j3 img, .j4 img, .j5 img { aspect-ratio: 4 / 5; }
  .j5 { grid-column: 1 / -1; }
  .j5 img { aspect-ratio: 16 / 9; }

  .prints { grid-template-columns: 1fr; min-height: 0; }
  .prints-lado { padding: 0; }
  .celulas { grid-template-columns: 1fr; }
  .celula { min-height: 60px; }

  .painel { grid-template-columns: 1fr; grid-template-rows: auto; }
  .painel-textos { grid-column: 1; grid-row: 2; padding-top: 32px; max-width: none; }
  .painel-foto { grid-row: 3; width: 100%; margin-bottom: calc(-1 * var(--painel-pad) - 4vw); border-radius: 18vw 18vw 18vw 3vw; }

  .planos { grid-template-columns: 1fr; }
  .planos-nomes, .palco-plano { grid-column: 1; }

  .perguntas { grid-template-columns: 1fr; }
  .perguntas h2 { grid-column: 1; position: static; }
  .faq { grid-column: 1; }
  .faq summary { min-height: 64px; padding: 16px 56px 16px 20px; }
  .faq details p { padding: 0 20px 20px; }

  .fim { grid-template-columns: 1fr; align-content: start; gap: 48px; }
  .fim-texto { grid-column: 1; align-self: start; }
  .dialogo { grid-column: 1; justify-self: stretch; width: 100%; }

  .marca-grande { height: 22svh; min-height: 120px; gap: 3px; }
  .rodape-colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--vao); }
  .rodape-colunas nav:nth-child(3), .rodape-idioma { grid-column: 1 / -1; }
}

@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .prato { aspect-ratio: auto; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .conta-grade { grid-template-columns: 1fr 1fr; gap: 32px; }
  .conta-controles { grid-column: 1; }
  .sim { grid-column: 2; }
  .tarde-topo { grid-template-columns: 1fr 1fr; }
  .tarde-topo p { grid-column: 2; }
  .planos { grid-template-columns: 1fr 1fr; }
  .palco-plano { grid-column: 2; }
}

@media (max-width: 599px) {
  .problemas { grid-template-columns: 1fr; }
}

/* Simulador em telas estreitas: uma coisa por vez (lista ou conversa), como no Teams do celular. */
@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .sim { height: min(72svh, 560px); }
  .sim-corpo { grid-template-columns: minmax(0, 1fr); }
  .sim-conversa { display: none; }
  .sim.sim-aberta .sim-lista { display: none; }
  .sim.sim-aberta .sim-conversa { display: grid; }
  .sim-voltar { display: grid; }
  .economia { grid-template-columns: minmax(0, 1fr); }
  .conta-resultado { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; }
}
