/* Gab AI · seções em lista (spec 3.2 Padrão A e 3.3 Padrão B; card SITE-07) + cartões visuais (3.2, 4.3, 12.2).
   Carregado depois de /funil.css na página de vendas e nas três páginas de obrigado. Comportamento em /listas.js.

   Versão de base (sem JS ou com "Reduzir movimento"): tudo aberto, em sequência, sem sticky nem animação.
   Versão com movimento: só com a classe is-pronta, que o listas.js liga. Animação só em transform e opacity;
   a abertura da descrição e o tamanho do nome no B mudam uma vez por troca de item (ETAPA 0 § 4.2). */

:root {
  --f-topo: 0px;          /* altura do cabeçalho sticky (só existe a partir de 900px) */
  --f-cinza-longe: var(--m-preto-66); /* SITE-MARCA-01: tom de preto da paleta (era #75707D); ≥ 4,5:1 no off-white */
  --f-sombra: 0 18px 40px rgba(6, 10, 31, 0.16);
}
@media (min-width: 900px) { :root { --f-topo: 73px; } }

/* ---- Título que acende (3.2) --------------------------------------------------------------- */
.f-acende { text-align: center; text-wrap: balance; }
.f-acende.is-pronto .f-palavra { color: var(--f-cinza-longe); transition: color 0.3s ease; }
.f-acende.is-pronto .f-palavra.is-acesa { color: var(--gab-ink); }

/* ---- Estrutura comum ---------------------------------------------------------------------- */
.f-lista-cab { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 28px; }
.f-lista-cab .f-text { max-width: 560px; }
.f-lista-itens { list-style: none; margin: 0; padding: 0; }
.f-lista-nome { margin: 0; font-family: var(--font-title); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
.f-lista-desc p { font-size: 16px; line-height: 1.5; color: var(--gab-ink-2); }
/* Do fim da lista até o botão ou o próximo bloco: 24px no celular, 32px no desktop (vale com e sem movimento). */
.f-lista-depois { display: flex; justify-content: center; padding-top: 24px; }

/* Marca-texto verde abacate atrás do nome (v1.12.1). Versão estática (sem JS ou movimento reduzido): todos os itens
   estão "acesos", então todos têm a faixa, sem animação, feita com fundo do próprio texto (uma faixa por linha).
   Faixa: ~45% da altura da maiúscula, assentada na linha de base (caixa do texto 1,2em, base a 0,93em do topo). */
.f-lista-texto {
  background: linear-gradient(to bottom, transparent 54%, var(--gab-avocado) 54%, var(--gab-avocado) 81%, transparent 81%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.06em; margin: 0 -0.06em; border-radius: 0.08em;
}
/* Com movimento: a faixa é um elemento por linha (.f-marca, criado pelo listas.js) que cresce da esquerda (scaleX). */
.is-pronta .f-lista-texto { background: none; }
.is-pronta .f-lista-botao { position: relative; isolation: isolate; }
.f-marca {
  position: absolute; z-index: -1; border-radius: 0.08em; background: var(--gab-avocado);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.25s ease;
  pointer-events: none;
}
.is-pronta .f-lista-item[aria-current="true"] .f-marca { transform: scaleX(1); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Botão do nome (criado pelo listas.js dentro do <h3>). */
.f-lista-botao {
  appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: inherit; letter-spacing: inherit; border-radius: 6px;
}

/* Botão pílula escuro (Padrão B). */
.f-pilula {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--gab-ink); color: var(--gab-paper);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.f-pilula:hover { color: var(--gab-paper); background: var(--gab-ink-2); }

/* ---- Base estática: Padrão A ---------------------------------------------------------------- */
.f-lista--a .f-lista-itens { display: grid; gap: 36px; }
.f-lista--a .f-lista-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.f-lista--a .f-lista-item > .f-cartao { width: 100%; max-width: 360px; margin-bottom: 4px; }
.f-lista--a .f-lista-nome { font-size: 28px; }
.f-lista--a .f-lista-desc p { max-width: 460px; }

/* ---- Base estática: Padrão B ---------------------------------------------------------------- */
.f-lista--b .f-lista-itens { display: grid; gap: 28px; justify-items: center; text-align: center; }
.f-lista--b .f-lista-nome { font-size: 26px; }
.f-lista--b .f-lista-desc > div { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.f-lista--b .f-lista-desc p { max-width: 520px; }

@media (min-width: 900px) {
  .f-lista--a .f-lista-itens { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; row-gap: 48px; }
  .f-lista--a .f-lista-nome { font-size: 34px; }
  .f-lista--b .f-lista-nome { font-size: 32px; }
  .f-lista-depois { padding-top: 32px; }
}

/* ======================================================================================= */
/* Com movimento (is-pronta)                                                                */
/* ======================================================================================= */
.f-lista.is-pronta { position: relative; }
/* O palco tem a altura do próprio conteúdo (nunca 100svh): quando a seção solta, não passa faixa vazia.
   A altura da janela da lista é fixada pelo listas.js (a maior que a lista atinge, limitada à tela). */
.is-pronta .f-lista-palco { position: sticky; top: calc(var(--f-topo) - var(--f-cab, 0px)); }
.is-pronta .f-lista-cab { padding-top: 28px; margin-bottom: 24px; }
/* O padding de 6px guarda espaço para o contorno de foco; a margem negativa faz esse espaço não contar no layout. */
.is-pronta .f-lista-janela { position: relative; overflow: hidden; min-height: 0; padding: 6px; margin: -6px; }
/* O último item não tem respiro embaixo: o espaço até o próximo bloco é só o da .f-lista-depois / .f-fit-depois. */
.is-pronta .f-lista-item:last-child .f-lista-desc p, .is-pronta .f-lista-item:last-child .f-lista-desc .f-pilula { padding-bottom: 0; margin-bottom: 0; }
.is-pronta .f-lista-itens {
  position: relative; display: flex; flex-direction: column;
  transform: translateY(var(--f-desloc, 0px));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.is-pronta .f-lista-botao { transition: color 0.3s ease, font-size 0.35s ease; }

/* Descrição: aberta só no item ativo. Fechada continua no HTML para leitor de tela (nunca display:none). */
.is-pronta .f-lista-desc {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}
.is-pronta .f-lista-desc > * { overflow: hidden; min-height: 0; }
.is-pronta .f-lista-item[aria-current="true"] .f-lista-desc { grid-template-rows: 1fr; opacity: 1; }
.is-medindo, .is-medindo * { transition: none !important; }

/* ---- Padrão A com movimento ---------------------------------------------------------------- */
.is-pronta.f-lista--a .f-lista-itens { gap: 6px; text-align: center; align-items: stretch; }
.is-pronta.f-lista--a .f-lista-item { display: block; }
.is-pronta.f-lista--a .f-lista-botao { color: var(--gab-ink-3); }
.is-pronta.f-lista--a .f-lista-item[aria-current="true"] .f-lista-botao { color: var(--gab-ink); }
.is-pronta.f-lista--a .f-lista-nome { font-size: 24px; }
.is-pronta.f-lista--a .f-lista-desc p { margin: 0 auto; padding: 6px 0 10px; font-size: 15px; }

.f-lista-pontos { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.f-lista-pontos i { display: block; width: 5px; height: 5px; border-radius: 3px; background: var(--gab-line-forte); transition: height 0.3s ease, background-color 0.3s ease; }
.f-lista-pontos i.is-on { height: 22px; background: var(--gab-ink); }

.f-lista-moldura { position: relative; overflow: hidden; border-radius: 28px; background: var(--gab-sand); aspect-ratio: 4 / 5; }
.f-lista-moldura .f-cartao {
  position: absolute; inset: 0; border-radius: 0;
  transform: translateY(104%); transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.f-lista-moldura .f-cartao.is-dentro { transform: translateY(0); }
.f-lista-moldura .f-cartao.is-atras { transform: translateY(0) scale(0.94); }

/* Celular e tablet (< 1024px): título rola para fora; cartão preso no topo (~46% da tela); lista embaixo. */
@media (max-width: 1023px) {
  .is-pronta.f-lista--a .f-lista-corpo {
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 14px; padding-top: 14px;
  }
  .is-pronta.f-lista--a .f-lista-pontos { grid-column: 1; grid-row: 1; justify-self: end; align-self: center; }
  .is-pronta.f-lista--a .f-lista-moldura { grid-column: 2; grid-row: 1; height: 44vh; height: 44svh; width: auto; max-width: calc(100vw - 80px); }
  .is-pronta.f-lista--a .f-lista-janela { grid-column: 1 / -1; grid-row: 2; }
}
/* A barra fixa da página de vendas (4.11, só < 900px) cobre o pé da tela: o listas.js limita a lista para
   terminar acima dela (--f-reserva), sem pôr espaço vazio no palco. */
@media (max-width: 899px) {
  .f-lista--barra { --f-reserva: 92px; }
}

/* Desktop (≥ 1024px): título no topo da área presa; pontos, cartão (4:5, ~470px) e lista lado a lado. */
@media (min-width: 1024px) {
  /* Cartão: altura = min(600px, tela − cabeçalho − título − 48px), calculada no listas.js; colado no título (24px). */
  .is-pronta.f-lista--a .f-lista-corpo {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: var(--f-moldura-h, 588px);
    column-gap: 48px; align-items: center;
  }
  .is-pronta.f-lista--a .f-lista-moldura { height: var(--f-moldura-h, 588px); width: auto; }
  .is-pronta.f-lista--a .f-lista-itens, .is-pronta.f-lista--a .f-lista-item { text-align: left; }
  .is-pronta.f-lista--a .f-lista-nome { font-size: clamp(34px, 3.1vw, 52px); }
  .is-pronta.f-lista--a .f-lista-desc p { margin: 0; max-width: 460px; padding: 8px 0 12px; font-size: 16px; }
}

/* ---- Padrão B com movimento ---------------------------------------------------------------- */
.is-pronta.f-lista--b .f-lista-cab { margin-bottom: 0; }
.is-pronta.f-lista--b .f-lista-corpo { display: flow-root; padding-top: 22px; } /* flow-root: a margem −6px da janela fica dentro do palco */
.is-pronta.f-lista--b .f-lista-itens { align-items: center; text-align: center; gap: 4px; }
.is-pronta.f-lista--b .f-lista-nome { font-size: 26px; line-height: 1.1; }
.is-pronta.f-lista--b .f-lista-botao { color: var(--f-cinza-longe); }
.is-pronta.f-lista--b .f-lista-item.is-perto .f-lista-botao { color: var(--gab-ink-3); }
.is-pronta.f-lista--b .f-lista-item[aria-current="true"] .f-lista-botao { color: var(--gab-ink); font-size: 40px; }
.is-pronta.f-lista--b .f-lista-desc > div { padding-top: 6px; }
.is-pronta.f-lista--b .f-lista-desc .f-pilula { margin-bottom: 14px; }
/* Desktop (v1.12.1): o "Para quem é" preenche a altura visível abaixo do cabeçalho. Tamanhos e espaços acompanham
   a altura da tela (768 a 1080px): espaço entre itens 16–24px, apagados 36–40px, ativo 60–64px. */
@media (min-width: 1024px) {
  /* Interpolação linear: mínimo em 768px de altura, máximo a partir de 900px (132px de diferença). */
  .is-pronta.f-lista--b .f-lista-itens { gap: clamp(16px, calc(16px + (100vh - 768px) * 8 / 132), 24px); }
  .is-pronta.f-lista--b .f-lista-nome { font-size: clamp(36px, calc(36px + (100vh - 768px) * 4 / 132), 40px); }
  .is-pronta.f-lista--b .f-lista-item[aria-current="true"] .f-lista-botao { font-size: clamp(60px, calc(60px + (100vh - 768px) * 4 / 132), 64px); }
  .is-pronta.f-lista--b .f-lista-desc p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .f-acende .f-palavra, .f-lista *, .f-lista-moldura .f-cartao { transition: none !important; }
}

/* ======================================================================================= */
/* Cartões visuais (composições em HTML/CSS; podem virar foto, ver spec 12.2)                */
/* As medidas internas são em em: o tamanho da letra acompanha a largura do cartão.          */
/* ======================================================================================= */
.f-cartao {
  position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  background: var(--gab-sand); container-type: inline-size;
}
.f-cartao--rosa-claro { background: var(--gab-pink-soft); }
.f-cartao--areia { background: var(--gab-sand); }
.f-cartao--papel { background: var(--gab-paper); box-shadow: inset 0 0 0 1px var(--gab-line); }
.f-cartao--branco { background: var(--gab-white); box-shadow: inset 0 0 0 1px var(--gab-line); }
.f-cartao--escuro { background: var(--gab-ink); }
.f-cartao--rosa { background: var(--gab-pink); }
.f-cartao-in {
  width: 100%; height: 100%; padding: 8% 7% 16%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-size: clamp(10px, 2.8cqi, 14px); line-height: 1.35; text-align: left;
}
.f-cartao-nome {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(6, 10, 31, 0.86); color: var(--gab-paper);
  font-size: 13px; font-weight: 600; line-height: 1.2;
}
.f-cartao--escuro .f-cartao-nome { background: var(--gab-paper); color: var(--gab-ink); }

/* Celular com conversa */
.f-cel { width: 19em; max-width: 88%; overflow: hidden; border-radius: 1.8em; background: var(--gab-white); box-shadow: var(--f-sombra); }
.f-cel-topo { display: flex; align-items: center; gap: 0.6em; padding: 0.85em 1em 0.7em; border-bottom: 1px solid var(--gab-line); }
.f-cel-topo b { display: block; font-size: 1em; }
.f-cel-topo small { display: block; font-size: 0.8em; color: var(--gab-ink-3); }
.f-cel-av {
  flex: none; width: 2.5em; height: 2.5em; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--gab-pink-soft); font-family: var(--font-title); font-weight: 700; font-size: 0.85em;
}
.f-cel-av--g { background: var(--gab-pink); }
.f-cel-conversa { display: flex; flex-direction: column; gap: 0.55em; padding: 0.9em; background: var(--gab-sand); }
.f-bal { max-width: 86%; padding: 0.6em 0.8em; font-size: 0.95em; border-radius: 1.1em; }
.f-bal--gab { align-self: flex-start; background: var(--gab-white); border-bottom-left-radius: 0.3em; }
.f-bal--cli { align-self: flex-end; background: var(--gab-pink-soft); border-bottom-right-radius: 0.3em; }
.f-c-selo {
  align-self: center; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.85em; border-radius: 999px; background: var(--gab-white); color: var(--gab-green);
  font-size: 0.8em; font-weight: 700;
}
.f-c-selo svg { width: 1.1em; height: 1.1em; flex: none; }
.f-c-selo--rosa { background: var(--gab-pink); color: var(--gab-ink); }

/* Card da agenda do hero (.f-booking, funil.css) dentro de um cartão */
.f-cartao .f-booking, .f-cena .f-booking { margin: 0; width: 21em; max-width: 88%; box-shadow: var(--f-sombra); }

/* Notificação */
.f-notif { width: 21em; max-width: 88%; display: grid; gap: 0.7em; padding: 1.1em; border-radius: 1.5em; background: var(--gab-white); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.f-notif-topo { display: flex; align-items: center; gap: 0.5em; font-size: 0.85em; color: var(--gab-ink-3); }
.f-notif-topo .f-cel-av { width: 2em; height: 2em; }
.f-notif b { font-size: 1.1em; line-height: 1.25; }
.f-notif p { font-size: 0.95em; color: var(--gab-ink-2); }
.f-notif-acao { justify-self: start; padding: 0.55em 1em; border-radius: 999px; background: var(--gab-ink); color: var(--gab-paper); font-size: 0.9em; font-weight: 600; }

/* "R$ 0" */
.f-zero { display: grid; gap: 0.9em; justify-items: center; text-align: center; }
.f-zero-n { font-family: var(--font-title); font-weight: 700; font-size: 6.4em; line-height: 0.9; letter-spacing: -0.02em; }
.f-zero-l { font-size: 1.15em; font-weight: 600; }
.f-zero ul { display: grid; gap: 0.5em; margin: 0.2em 0 0; padding: 0.9em 1.2em; border-radius: 1.2em; background: var(--gab-white); box-shadow: var(--f-sombra); text-align: left; list-style: none; }
.f-zero li { display: flex; align-items: center; gap: 0.55em; font-size: 0.95em; }
.f-zero li svg, .f-ficha-l svg { width: 1.15em; height: 1.15em; flex: none; }

/* Ficha (candidatura, ligação, visita) */
.f-ficha { width: 20em; max-width: 88%; display: grid; gap: 0.15em; padding: 1.2em 1.25em; border-radius: 1.4em; background: var(--gab-white); box-shadow: var(--f-sombra); }
.f-ficha-t { font-size: 1.1em; margin-bottom: 0.45em; }
.f-ficha-l { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.6em 0; border-bottom: 1px solid var(--gab-line); font-size: 0.95em; }
.f-ficha-l:last-child { border-bottom: 0; padding-bottom: 0; }
.f-ficha-l span:last-child { color: var(--gab-green); font-weight: 700; }
.f-ficha-selo { justify-self: start; margin-bottom: 0.5em; padding: 0.3em 0.8em; border-radius: 999px; background: var(--gab-pink-soft); font-size: 0.8em; font-weight: 700; }
.f-ficha-linha { display: block; height: 0.7em; margin: 0.35em 0; border-radius: 0.35em; background: var(--gab-line); }
.f-ficha .f-c-selo { justify-self: start; margin-top: 0.6em; background: var(--gab-sand); }

/* ---- Imagem montada da 4.3 (no lugar do vídeo) ------------------------------------------- */
.f-cena {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 28px; background: var(--gab-pink-soft); container-type: inline-size;
}
.f-cena-in { position: absolute; inset: 0; font-size: 13px; font-size: clamp(10px, 2.9cqi, 14px); line-height: 1.35; }
.f-cena-hora {
  position: absolute; left: 6%; top: 6%; padding: 0.55em 0.95em; border-radius: 999px;
  background: var(--gab-ink); color: var(--gab-paper); font-size: 0.95em; font-weight: 700;
}
.f-cena-chip {
  position: absolute; right: 6%; top: 6%; display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.55em 0.95em; border-radius: 999px; background: var(--gab-white); box-shadow: var(--f-sombra);
  font-size: 0.9em; font-weight: 700;
}
.f-cena-chip::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 999px; background: var(--gab-green); }
.f-cena .f-cel { position: absolute; left: 8%; top: 17%; width: 66%; max-width: none; }
.f-cena .f-booking { position: absolute; right: 5%; bottom: 6%; width: 60%; transform: rotate(3deg); }
