/* ============================================================================
   Argos AI . site de vendas . folha principal
   Rodada 2 (revisão do dono).

   O que mudou de verdade nesta folha:
     . repaleta total: ouro e sálvia sobre #101820, nada da paleta anterior.
     . a malha quadriculada saiu do site inteiro. A profundidade agora vem de
       faixas de seção e painéis com borda de fio, que é a forma do app.
     . o hero virou a janela do Argos em DOM vivo.
     . o pipeline trocou de motor: acende por IntersectionObserver, com
       transição por tempo. Sem scrub amarrado ao scroll, sem pin longo.

   Esta folha NÃO redefine token: tokens.css entra antes e é a fonte de verdade.
   ========================================================================== */

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* [hidden] tem que ganhar de display declarado por classe. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid hsl(var(--gold));
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: hsl(var(--gold));
  color: hsl(var(--ink));
  font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

/* -------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: var(--sec-y); position: relative; }
.section--cta { padding-block: var(--sec-y-cta); }

/* Camadas, não malha. Faixa levemente mais clara, presa por dois fios. */
.band {
  background: hsl(var(--surface-band));
  border-block: 1px solid hsl(var(--line));
}

/* A única lavagem do site: ouro, ancorada no topo, alpha 0.07. */
.wash { position: relative; isolation: isolate; }
.wash::before {
  content: "";
  position: absolute;
  inset: -10% 0 30% 0;
  z-index: -1;
  background: var(--wash);
  pointer-events: none;
}

/* ---------------------------------------------------- tipos utilitários -- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: hsl(var(--fg-muted));
  max-width: var(--prose);
  text-wrap: pretty;
}
.muted { color: hsl(var(--fg-muted)); }
.tabular { font-variant-numeric: tabular-nums; }
/* Verde legível. O sálvia cru (2.58:1) nunca vira texto. */
.ok { color: hsl(var(--sage-text)); }

.sec-head { display: grid; gap: 16px; margin-bottom: 56px; }
.sec-head--center {
  justify-items: center;
  text-align: center;
}
.sec-head--center .lead { margin-inline: auto; }

.trustline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
}
.trustline::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.42em;
  border-radius: 1px;
  background: hsl(var(--gold));
  flex: none;
}

/* --------------------------------------------------------------- botões -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background-color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: hsl(var(--gold));
  color: hsl(var(--ink));
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: hsl(var(--gold-hover)); }
.btn--ghost {
  border-color: hsl(var(--line-strong));
  color: hsl(var(--fg));
}
.btn--ghost:hover {
  border-color: hsl(var(--gold) / 0.65);
  color: hsl(var(--gold));
}
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Sem blur: o design system proíbe glassmorphism. Chão sólido, borda seca. */
  background: hsl(var(--ink));
  border-bottom: 1px solid hsl(var(--line));
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: hsl(var(--fg-muted));
  line-height: 1;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  color: hsl(var(--fg-muted));
  transition: color var(--d-fast) var(--ease-out);
}
.nav a:hover { color: hsl(var(--fg)); }

/* ============================================================================
   HERO . a janela do Argos em DOM vivo
   ========================================================================== */
.hero { padding-block: 44px 84px; }
.hero__copy {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: hsl(var(--gold)); }
.hero .lead { margin-inline: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* -------------------------------------------------------- janela do app -- */
.appwin {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-lg);
  background: hsl(var(--surface));
  box-shadow: var(--shadow-xl), var(--hairline-top);
  overflow: hidden;
}

/* titlebar: espelha Titlebar.tsx (h-8, borda embaixo, controles à direita) */
.win__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding-inline: 11px;
  border-bottom: 1px solid hsl(var(--line));
  background: hsl(var(--sunken));
}
.win__mark { width: 17px; height: 17px; flex: none; }
.win__title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
/* Status da campanha, como o app mostra (StatusBadge, variante campaign).
   Não é selo de versão: tier deixou de existir com a licença única. */
.win__campaign {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--gold));
  border: 1px solid hsl(var(--gold) / 0.45);
  border-radius: var(--r-pill);
  padding: 2px 7px;
  line-height: 1;
  white-space: nowrap;
}
.win__ctrls { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.wc { width: 10px; height: 10px; position: relative; opacity: 0.55; }
.wc::before, .wc::after {
  content: "";
  position: absolute;
  background: hsl(var(--fg));
}
.wc--min::before { left: 0; right: 0; top: 50%; height: 1px; }
.wc--max::before {
  inset: 0;
  background: none;
  border: 1px solid hsl(var(--fg));
}
.wc--close::before, .wc--close::after {
  left: -1px; right: -1px; top: 50%; height: 1px;
}
.wc--close::before { transform: rotate(45deg); }
.wc--close::after  { transform: rotate(-45deg); }

/* toolbar */
.win__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid hsl(var(--line));
  background: var(--panel-sheen), hsl(var(--surface));
}
.fld {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding-inline: 10px;
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-md);
  background: hsl(var(--sunken));
  color: hsl(var(--fg-muted));
}
.fld__ico { width: 14px; height: 14px; flex: none; }
.fld__txt {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: hsl(var(--fg));
  white-space: nowrap;
  overflow: hidden;
}
.caret {
  display: inline-block;
  width: 6px;
  height: 1.05em;
  margin-left: 3px;
  background: hsl(var(--gold));
  vertical-align: -0.18em;
  flex: none;
}
.appbtn {
  flex: none;
  height: 32px;
  padding-inline: 15px;
  border-radius: var(--r-md);
  background: hsl(var(--gold));
  color: hsl(var(--ink));
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.appbtn--sm { height: 26px; padding-inline: 12px; font-size: 12px; }

.quota { flex: none; display: grid; gap: 5px; width: 168px; }
.quota__t { font-size: 10.5px; color: hsl(var(--fg-muted)); line-height: 1; }
.quota__t b { color: hsl(var(--fg)); font-weight: 600; }
.quota__bar {
  display: block;
  height: 3px;
  border-radius: var(--r-pill);
  background: hsl(var(--fg) / 0.1);
  overflow: hidden;
}
.quota__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: hsl(var(--gold));
  border-radius: inherit;
}

/* corpo: tabela e painel de detalhe.
   A calha do painel fica RESERVADA desde o início: assim a tabela mostra as
   7 colunas o tempo todo e o painel abre sem empurrar nada. */
.win__body { position: relative; padding-right: 286px; }
.win__grid { overflow: hidden; }

/* table-layout fixo: sem isso a coluna de e-mail empurra e a de Status fica
   cortada contra a calha do painel de detalhe. */
.grid { font-size: 12.5px; table-layout: fixed; }
/* Ordem e larguras espelham o DataGrid do app:
   chk | Empresa | Site | E-mail | Telefone | Cidade | Score | Prioridade | Status */
.grid th:nth-child(1) { width: 28px; }
.grid th:nth-child(2) { width: 20%; }   /* Empresa    */
.grid th:nth-child(3) { width: 16%; }   /* Site       */
.grid th:nth-child(4) { width: 14%; }   /* E-mail     */
.grid th:nth-child(5) { width: 16%; }   /* Telefone   */
.grid th:nth-child(6) { width: 8%;  }   /* Score      */
.grid th:nth-child(7) { width: 12%; }   /* Prioridade */
.grid th:nth-child(8) { width: 14%; }   /* Status     */
/* As porcentagens acima TÊM que somar 100. Somaram 105 numa versão e os
   cabeçalhos se sobrepuseram. O table-layout:fixed não reclama, só atropela. */
.grid th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
  padding: 9px 9px;
  border-bottom: 1px solid hsl(var(--line));
  white-space: nowrap;
}
.grid td {
  padding: 9px 9px;
  border-bottom: 1px solid hsl(var(--line) / 0.65);
  color: hsl(var(--fg-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid tbody tr:last-child td { border-bottom: 0; }
.grid__name { color: hsl(var(--fg)); font-weight: 500; }
.grid__num { text-align: right; }
.grid th.grid__chk,
.grid td.grid__chk { width: 30px; text-overflow: clip; padding-right: 0; }

.box {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-xs);
  background: hsl(var(--sunken));
  position: relative;
  vertical-align: -2px;
}
.box--on { background: hsl(var(--gold)); border-color: hsl(var(--gold)); }
.box--on::after {
  content: "";
  position: absolute;
  left: 3px; top: 1px;
  width: 4px; height: 7px;
  border: solid hsl(var(--ink));
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

/* Setinha de ordenação: o app põe uma em CADA cabeçalho, e a coluna ativa
   (Score, decrescente) fica acesa em ouro. É o detalhe que mais denuncia
   "isto é uma grade de verdade" e não uma tabela de marketing. */
.sort {
  display: inline-block;
  width: 7px; height: 9px;
  margin-left: 5px;
  vertical-align: -1px;
  opacity: 0.42;
  background: currentColor;
  -webkit-mask: var(--sort-mask) center / 7px 9px no-repeat;
          mask: var(--sort-mask) center / 7px 9px no-repeat;
  --sort-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='9'%3E%3Cpath d='M3.5 0 6 3H1zM3.5 9 1 6h5z' fill='%23000'/%3E%3C/svg%3E");
}
.sort--on {
  opacity: 1;
  color: hsl(var(--gold));
  --sort-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='9'%3E%3Cpath d='M3.5 9 1 5h5z' fill='%23000'/%3E%3C/svg%3E");
}

/* Domínio do site: no app é link, então usa a cor de ação. */
.grid__site {
  color: hsl(var(--gold));
  border-bottom: 1px solid hsl(var(--gold) / 0.28);
  padding-bottom: 1px;
}

/* Prioridade: o medidor de 5 pontos do app. */
.prio { display: inline-flex; gap: 3px; align-items: center; }
.prio i {
  width: 4px; height: 4px;
  border-radius: 999px;
  background: hsl(var(--gold));
}
.prio i.off { background: hsl(var(--fg) / 0.16); }

/* Pílula de status do app tem um ponto na frente. */
.pill__dot {
  display: inline-block;
  width: 4px; height: 4px;
  margin-right: 5px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: 1px;
}

/* Abas do app na titlebar (Prospecção / Planilhas). */
.win__tabs { display: flex; gap: 3px; }
.win__tab {
  font-size: 10.5px;
  font-weight: 500;
  color: hsl(var(--fg-faint));
  padding: 3px 8px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.win__tab--on {
  color: hsl(var(--fg));
  background: hsl(var(--fg) / 0.07);
}

/* Selects de UF e cidade, ao lado da busca. */
.sel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 32px;
  padding-inline: 9px;
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-md);
  background: hsl(var(--sunken));
  color: hsl(var(--fg-muted));
  font-size: 12px;
  white-space: nowrap;
}
.sel--wide { min-width: 96px; }
.sel__pin { width: 12px; height: 12px; flex: none; }
.sel__cv { width: 12px; height: 12px; flex: none; margin-left: 2px; opacity: 0.7; }

/* Faixa de filtro: campo "Filtrar leads..." + quantas linhas estão à vista. */
.win__filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid hsl(var(--line));
  background: hsl(var(--surface));
}
.fld--sm {
  flex: 0 1 210px;
  height: 27px;
  padding-inline: 8px;
  gap: 6px;
}
.fld__ph {
  font-size: 11.5px;
  color: hsl(var(--fg-faint));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win__shown {
  margin-left: auto;
  font-size: 11.5px;
  color: hsl(var(--fg-muted));
  white-space: nowrap;
}
.win__shown b { color: hsl(var(--fg)); font-weight: 600; }

.score {
  display: inline-block;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}
.score--hi  { color: hsl(var(--gold)); background: hsl(var(--gold) / 0.12); }
.score--mid { color: hsl(var(--fg-muted)); background: hsl(var(--fg) / 0.07); }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
  background: hsl(var(--fg) / 0.06);
  line-height: 1.5;
}
/* Sálvia como PREENCHIMENTO, com o verde legível por cima. */
.pill--ok { color: hsl(var(--sage-text)); background: hsl(var(--sage) / 0.55); }
/* Na célula estreita a pílula encolhe com reticências, igual ao app. */
.grid .pill {
  padding-inline: 6px;
  letter-spacing: 0.06em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* painel de detalhe: espelha LeadDetailPanel.tsx */
.detail {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 286px;
  padding: 14px 15px;
  border-left: 1px solid hsl(var(--line-strong));
  background: hsl(var(--elevated));
  box-shadow: -14px 0 30px -14px rgb(0 0 0 / 0.55);
  overflow: hidden;
}
.detail__h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.detail__list { display: grid; gap: 7px; margin-bottom: 14px; }
.detail__list > div { display: flex; justify-content: space-between; gap: 12px; }
.detail__list dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
  padding-top: 2px;
}
.detail__list dd {
  font-size: 12px;
  color: hsl(var(--fg));
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail__lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
  padding-top: 12px;
  border-top: 1px solid hsl(var(--line));
  margin-bottom: 7px;
}
.detail__msg {
  font-size: 12px;
  line-height: 1.55;
  color: hsl(var(--fg-muted));
}

/* statusbar */
.win__status {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 13px;
  border-top: 1px solid hsl(var(--line));
  background: hsl(var(--sunken));
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: hsl(var(--fg-muted));
}
.win__status b { color: hsl(var(--fg)); font-weight: 500; }
.win__status .sep { color: hsl(var(--fg-faint)); }
.win__src { margin-left: auto; color: hsl(var(--fg-faint)); }

/* botão fantasma de replay */
.replay {
  position: absolute;
  right: 12px;
  bottom: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-pill);
  background: hsl(var(--ink) / 0.9);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
  transition: color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out);
}
.replay:hover { color: hsl(var(--gold)); border-color: hsl(var(--gold) / 0.65); }

/* --------------------------------------------- roteiro da janela, em loop --
   Entra, popula, assenta, segura para poder ser lido e RECOMEÇA. O loop é
   agendado no site.js (CYCLE_MS + HOLD_MS). Se mexer nos tempos abaixo,
   mexa lá também. Pausa fora de tela e com a aba escondida.               */
.appwin {
  --t-win: 0.10s;
  --t-type: 0.60s;
  --t-search: 1.28s;
  --t-rows: 1.50s;
  --row-step: 0.115s;
  --t-detail: 3.35s;
  --t-status: 3.95s;
  --t-replay: 4.45s;
}

@keyframes win-in {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to   { opacity: 1; transform: none; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@keyframes detail-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes type-in {
  from { opacity: 0; filter: blur(2.4px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.14; } }
@keyframes btn-press {
  0%   { background: hsl(var(--gold)); }
  40%  { background: hsl(var(--gold-dim)); }
  100% { background: hsl(var(--gold)); }
}

/* Estado inicial: apagado até o roteiro começar. */
.appwin .row,
.appwin .detail,
.appwin .win__filter,
.appwin .win__status,
.appwin .replay { opacity: 0; }

.appwin.is-running { animation: win-in 0.52s var(--ease-reveal) var(--t-win) both; }
.appwin.is-running .ch {
  display: inline-block;
  white-space: pre;
  animation: type-in var(--d-type) var(--ease-out) calc(var(--t-type) + var(--i) * 30ms) both;
}
.appwin.is-running .caret {
  animation: fade-in 0.2s linear calc(var(--t-type) - 0.1s) both,
             caret-blink 1.05s step-end calc(var(--t-type) - 0.1s) 3,
             fade-in 0.25s linear var(--t-rows) reverse both;
}
.appwin.is-running .appbtn { animation: btn-press 0.42s var(--ease-out) var(--t-search) both; }
.appwin.is-running .win__filter {
  animation: fade-in 0.36s var(--ease-out) calc(var(--t-rows) - 0.12s) both;
}
.appwin.is-running .row {
  animation: row-in 0.42s var(--ease-spawn)
             calc(var(--t-rows) + var(--i) * var(--row-step)) both;
}
.appwin.is-running .detail  { animation: detail-in 0.5s var(--ease-reveal) var(--t-detail) both; }
.appwin.is-running .win__status { animation: fade-in 0.42s var(--ease-out) var(--t-status) both; }
.appwin.is-running .replay { animation: fade-in 0.4s var(--ease-out) var(--t-replay) both; }

/* ============================================================================
   COMO FUNCIONA . 5 estações acesas por IntersectionObserver
   Sem scrub, sem pin. Cada estação entra uma vez, com 0,56s de curva.
   ========================================================================== */
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  padding: 26px 26px;
  border: 1px solid hsl(var(--line));
  border-radius: var(--r-lg);
  background: hsl(var(--surface) / 0.55);
  /* estado de repouso: já legível, só um pouco recuado */
  opacity: 0.55;
  transform: translateY(12px);
  transition: opacity var(--d-reveal) var(--ease-reveal),
              transform var(--d-reveal) var(--ease-reveal),
              border-color var(--d-reveal) var(--ease-reveal),
              background-color var(--d-reveal) var(--ease-reveal);
}
.step.is-in {
  opacity: 1;
  transform: none;
  border-color: hsl(var(--line-strong));
  background: hsl(var(--surface));
}
.step__txt { display: grid; gap: 10px; align-content: start; }
.step__n {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  letter-spacing: var(--ls-tag);
  color: hsl(var(--fg-faint));
  transition: color var(--d-reveal) var(--ease-reveal);
}
.step.is-in .step__n { color: hsl(var(--gold)); }
.step__txt p {
  font-size: 15.5px;
  line-height: 1.6;
  color: hsl(var(--fg-muted));
  max-width: 46ch;
}

/* ----------------------------------------------------- telas em miniatura */
.mini {
  border: 1px solid hsl(var(--line-strong));
  border-radius: var(--r-md);
  background: hsl(var(--sunken));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mini__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid hsl(var(--line));
  background: hsl(var(--surface));
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
}
.mini__tag { margin-left: auto; color: hsl(var(--gold)); }
.mini__body { padding: 13px; display: grid; gap: 11px; }
.mini__body--flush { padding: 0; gap: 0; }
.mini__row { display: flex; align-items: center; gap: 12px; }
.mini__note { font-family: var(--font-mono); font-size: 11.5px; color: hsl(var(--fg-muted)); }
.fld--sm { height: 30px; flex: 1 1 auto; }
.fld--sm .fld__txt { font-size: 12px; }

.mini__dl { display: grid; gap: 8px; }
.mini__dl > div { display: flex; justify-content: space-between; gap: 14px; }
.mini__dl dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
}
.mini__dl dd { font-size: 12.5px; color: hsl(var(--fg)); text-align: right; }

.mini__code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: hsl(var(--fg-muted));
  padding: 10px;
  border: 1px solid hsl(var(--line));
  border-radius: var(--r-sm);
  background: hsl(var(--ink) / 0.5);
}
.mini__code .tok { color: hsl(var(--gold)); }
.mini__lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
}
.mini__prev { font-size: 13px; line-height: 1.55; color: hsl(var(--fg)); }

.mrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-bottom: 1px solid hsl(var(--line) / 0.7);
  font-size: 12.5px;
}
.mrow:last-child { border-bottom: 0; }
.mrow--off { opacity: 0.5; }
.mrow__n { flex: 1 1 auto; color: hsl(var(--fg)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------ estação 5: o freio ---- */
.mini--gate { border-color: hsl(var(--gold) / 0.42); }
.gate__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gate__sent {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: hsl(var(--sage-text));
}
.gate__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
}
.gate__note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: hsl(var(--gold));
  flex: none;
}

/* ============================================================================
   BENEFÍCIOS . grid 3x2
   O grid tem 6 colunas e cada card ocupa 2, para que uma última linha
   incompleta fique CENTRADA em vez de deixar buraco na direita.
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap-card);
}
.bcard {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 24px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--line));
  border-radius: var(--r-md);
}
/* Canto marcado por dois filetes, em vez de borda inteira colorida. */
.bcard::before,
.bcard::after {
  content: "";
  position: absolute;
  background: hsl(var(--gold) / 0.75);
}
.bcard::before { left: -1px; top: -1px; width: 12px; height: 1px; }
.bcard::after  { left: -1px; top: -1px; width: 1px; height: 12px; }
.bcard__t {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bcard__d { font-size: 15px; line-height: 1.6; color: hsl(var(--fg-muted)); }
/* Último item sozinho na linha: centraliza. */
.bcard:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
/* Dois últimos na linha: centraliza o par. */
.bcard:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }

/* ============================================================================
   PREÇO . plano único, centrado
   ========================================================================== */
.plan { display: flex; justify-content: center; }

/* Quatro períodos em QUADRADO, 2 por 2.
   A primeira versão punha os quatro numa fila só (`auto-fit`), e numa tela de
   1440px isso dava cards de 250px: o preço encostava nas bordas, a linha da
   economia quebrava em duas, e a seção inteira ficava com cara de tabela
   apertada em vez de escolha. Com 2x2 cada card ganha o dobro de largura, o
   preço volta a respirar e a comparação continua imediata, porque os quatro
   seguem visíveis de uma vez. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  /* Teto de largura: sem ele, num monitor largo os dois cards de cada linha
     viram dois retângulos gigantes com um preço perdido no meio. */
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}
.pcard {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--panel-sheen), hsl(var(--surface));
  border: 1px solid hsl(var(--gold) / 0.5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.pcard__badge {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--gold));
  border: 1px solid hsl(var(--gold) / 0.42);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  line-height: 1;
  margin-bottom: 16px;
}
.pcard__for {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: hsl(var(--fg));
}
.pcard__name {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
}
/* Com UM plano só, o número herói é o preço: é ele que decide a compra.
   A cota vira a especificação logo abaixo. */
.pcard__quota {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: hsl(var(--gold));
  margin-top: 16px;
}
.pcard__unit {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
  margin-top: 9px;
}
.pcard__spec {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pcard__spec b { color: hsl(var(--gold)); font-weight: 700; }
.pcard__terms {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
  margin-top: 6px;
}
.pcard__div {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid hsl(var(--line));
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
}
.pcard__list { margin-top: 14px; display: grid; gap: 10px; text-align: left; }
/* Marcador desenhado (filete de 8px), não caractere. */
/* Mesma correcao do `.legal__body li`: marcador posicionado em vez de coluna
   de grade. Aqui a grade ainda nao tinha quebrado porque todo item embrulha o
   conteudo num <span>, mas isso e disciplina de marcacao, nao garantia: o dia
   em que alguem escrever um <li> sem o <span>, quebra igual. */
.pcard__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: hsl(var(--fg-muted));
}
.pcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: hsl(var(--gold));
}
.pcard__list b { color: hsl(var(--fg)); font-weight: 600; }
.pcard__cta { margin-top: 26px; }

/* ── Card de período ─────────────────────────────────────────────────
   Versão estreita do .pcard: sem largura máxima (a grade manda), com o
   preço menor e a borda discreta. Só o plano em destaque mantém a borda
   dourada cheia, senão os quatro competem entre si e nenhum ganha. */
.pcard--per {
  max-width: none;
  padding: 30px 26px 26px;
  border-color: hsl(var(--line));
}
.pcard--per .pcard__quota { font-size: 46px; margin-top: 12px; }
/* `margin-top: auto` empurra o CTA para o rodapé do card: com textos de
   alturas diferentes, os quatro botões continuam alinhados.
   NADA de mexer no `padding` daqui. A primeira versão trazia um
   `padding-top: 0` que, em vez de tirar folga externa, tirou o preenchimento
   INTERNO de cima do botão: o rótulo colava na borda superior e parecia
   invadir a linha de cima. O respiro entre a linha de economia e o botão é
   trabalho do `margin`, não do `padding`. */
.pcard--per .pcard__cta { margin-top: auto; }
.pcard--per .pcard__name { font-size: var(--t-data); color: hsl(var(--fg)); }

.pcard--destaque {
  border-color: hsl(var(--gold) / 0.5);
  box-shadow: var(--shadow-lg);
}
/* O selo sai do fluxo e senta em cima da borda. Dentro do fluxo, ele empurrava
   todo o conteúdo do card destacado uns 30px para baixo, e os quatro preços
   deixavam de compartilhar a mesma linha de base: justo a comparação que a
   seção inteira existe para permitir. */
.pcard--destaque .pcard__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-bottom: 0;
  background: hsl(var(--surface-band));
  padding: 5px 12px;
}

.pcard__total {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: hsl(var(--fg-muted));
}
.pcard__save {
  margin-top: 8px;
  /* Folga generosa: o botão é a ação, e ação colada no texto acima parece
     legenda do texto em vez de botão. */
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--gold));
}
/* Placeholder no card de 1 mês: sem economia para mostrar, mas o espaço
   precisa existir para os quatro preços ficarem na mesma linha de base. */
.pcard__save--vazio { color: transparent; }

/* ── O que está incluído, uma vez só ─────────────────────────────── */
.incluso {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid hsl(var(--line));
  border-radius: var(--r-lg);
  background: hsl(var(--surface) / 0.5);
}
.incluso__t {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: hsl(var(--fg-muted));
  text-align: center;
}
.incluso__list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 26px;
}
.incluso__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: hsl(var(--fg-muted));
}
.incluso__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: hsl(var(--gold));
}
.incluso__list b { color: hsl(var(--fg)); font-weight: 600; }

/* Aviso da compra (precisa estar logado, pagamento indisponível). Fica
   escondido até o compra.js ter o que dizer. */
.compra-aviso {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid hsl(var(--gold) / 0.42);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 15px;
  color: hsl(var(--fg));
}
.plan__note {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: hsl(var(--fg-muted));
}

/* ============================================================================
   FAQ . centralizado
   ========================================================================== */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid hsl(var(--line)); }
.faq details:first-child { border-top: 1px solid hsl(var(--line)); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--d-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: hsl(var(--gold)); }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1px solid hsl(var(--fg-muted));
  border-bottom: 1px solid hsl(var(--fg-muted));
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 240ms var(--ease-reveal);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__a {
  padding: 0 4px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: hsl(var(--fg-muted));
}

/* ============================================================================
   CTA FINAL
   ========================================================================== */
.final { display: grid; gap: 20px; justify-items: center; text-align: center; }
.final h2 { max-width: 20ch; }
.final .lead { margin-inline: auto; }

/* ============================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  border-top: 1px solid hsl(var(--line));
  background: hsl(var(--sunken));
  padding-block: 52px 40px;
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__tag {
  font-size: 14.5px;
  line-height: 1.6;
  color: hsl(var(--fg-muted));
  max-width: 34ch;
}
.footer__col { display: grid; gap: 11px; align-content: start; }
.footer__h {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
  margin-bottom: 3px;
}
.footer__col a {
  font-size: 14.5px;
  color: hsl(var(--fg-muted));
  transition: color var(--d-fast) var(--ease-out);
  width: fit-content;
}
.footer__col a:hover { color: hsl(var(--gold)); }
.footer__note {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
}
.footer__dl { width: fit-content; margin-top: 2px; }
.footer__legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid hsl(var(--line));
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: hsl(var(--fg-faint));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

/* ============================================================================
   BANNER DE COOKIES (LGPD)
   ========================================================================== */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: hsl(var(--elevated));
  border-top: 1px solid hsl(var(--line-strong));
  box-shadow: 0 -12px 32px -12px rgb(0 0 0 / 0.6);
  animation: cookie-in 0.42s var(--ease-reveal) both;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}
.cookie__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie__t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cookie__d {
  font-size: 13.5px;
  line-height: 1.55;
  color: hsl(var(--fg-muted));
  max-width: 74ch;
}
.cookie__d a { color: hsl(var(--gold)); text-decoration: underline; text-underline-offset: 2px; }
.cookie__acts { display: flex; gap: 10px; margin-left: auto; }

/* ============================================================================
   PÁGINAS LEGAIS (termos.html / privacidade.html)
   ========================================================================== */
.legal { padding-block: 64px var(--sec-y); }
.legal__head { max-width: var(--prose-wide); margin: 0 auto 40px; display: grid; gap: 14px; }
.legal__body { max-width: var(--prose-wide); margin-inline: auto; }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--line));
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
}
.legal__body p { font-size: 16px; line-height: var(--lh-prose); color: hsl(var(--fg-muted)); margin-bottom: 14px; }
.legal__body ul { display: grid; gap: 9px; margin: 0 0 18px; }
/* MARCADOR POSICIONADO, NAO COLUNA DE GRADE.
   A versao anterior era `display: grid` com duas colunas. Funcionava enquanto
   o item tinha texto puro, e quebrava feio no instante em que alguem escrevia
   `<li><strong>Cloudflare</strong>, como rede de entrega...</li>`: o <strong>
   ocupava a segunda celula e TODO o texto depois dele virava um item de grade
   novo, na primeira coluna, que tem 14px de largura. Resultado: uma palavra
   por linha, na politica de privacidade publicada.
   Com `position: absolute` o marcador sai do fluxo e o texto volta a ser
   texto, com qualquer marcacao inline dentro. */
.legal__body li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--fg-muted));
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 1px;
  background: hsl(var(--gold));
}
.legal__body a { color: hsl(var(--gold)); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: hsl(var(--fg)); font-weight: 600; }
.legal__meta {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: hsl(var(--fg-faint));
}

/* ============================================================================
   REVEAL DE SEÇÃO
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: var(--transition-reveal); }

/* ============================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .grid td, .grid th { padding-inline: 8px; }
  /* Nesta faixa "PRIORIDADE" ainda encostava por 2px: 1% vem do e-mail. */
  .grid th:nth-child(4) { width: 13%; }
  .grid th:nth-child(7) { width: 13%; }
  .detail { width: 250px; }
  .win__body { padding-right: 250px; }
}

@media (max-width: 980px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .c-hide-md { display: none; }
  .detail { display: none; }
  .win__body { padding-right: 0; }
}

@media (max-width: 900px) {
  :root { --sec-y: 76px; --sec-y-cta: 96px; }
  .hero { padding-block: 44px 68px; }
  .nav { display: none; }
  .bcard { grid-column: span 3; }
  .bcard:last-child:nth-child(3n + 1),
  .bcard:nth-last-child(2):nth-child(3n + 1) { grid-column: span 3; }
  .quota { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .header__inner { gap: 12px; }
  .brand__tag { display: none; }
  .win__campaign { display: none; }   /* titlebar estreita: o rótulo não cabe */
  .win__tabs { display: none; }       /* idem: as abas do app não cabem aqui */
  .sel { display: none; }             /* toolbar estreita: sobra só a busca */
  .fld--sm { flex: 1 1 auto; }
  .c-hide-sm { display: none; }
  /* Sobram 4 colunas; com 8% o rótulo "SCORE" não cabia na própria célula. */
  .grid th:nth-child(6) { width: 17%; }
  .bcard { grid-column: span 6; }
  .bcard:last-child:nth-child(3n + 1),
  .bcard:nth-last-child(2):nth-child(3n + 1) { grid-column: span 6; }
  .hero__cta .btn { width: 100%; }
  .pcard__quota { font-size: 46px; }
  .win__tools { flex-wrap: wrap; }
  .grid { font-size: 12px; }

  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cookie__acts { margin-left: 0; width: 100%; }
  .cookie__acts .btn { flex: 1 1 auto; }
}

/* ============================================================================
   CELULAR . ergonomia de toque

   O layout já cabia na tela (nenhuma barra de rolagem horizontal em 360, 375
   ou 390px). O que faltava era o DEDO: a auditoria encontrou 19 alvos abaixo
   de 36px na landing, e a recomendação de Apple e Google é 44px.

   O que NÃO entra aqui, de propósito: links dentro de parágrafo. Forçar 44px
   neles quebraria o fluxo do texto, e a própria WCAG 2.2 os isenta do critério
   de tamanho de alvo justamente por isso.
   ========================================================================== */
@media (max-width: 760px) {
  /* Todo botão vira confortável. `min-height` em vez de `height` para o rótulo
     poder quebrar em duas linhas sem estourar a caixa. */
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }

  /* Navegação e rodapé: cresce a ÁREA de toque sem mexer no tamanho da letra,
     com padding vertical e o link virando caixa. */
  .nav a,
  .footer__col a,
  .footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* O padding de cima compensaria o espaçamento da coluna e afastaria demais
     um item do outro; encolher o gap devolve o ritmo original. */
  .footer__col { gap: 2px; }

  .brand { min-height: 44px; }

  /* "31% MAIS BARATO, ECONOMIA DE R$ 102,00" quebrava em duas linhas na
     largura de celular. O espacamento entre letras existe para dar ar ao
     rotulo em maiuscula; apertado, a frase cabe numa linha so, que e o que
     importa mais aqui. */
  .pcard__save { letter-spacing: 0.02em; font-size: 10.5px; }

  /* O 'rodar de novo' e o unico controle de verdade dentro da janela falsa
     do hero. O 'Buscar' ao lado dele fica de fora porque e decoracao: ja
     nasce com tabindex=-1 e aria-hidden, entao nao e alvo de toque nenhum. */
  .replay { min-height: 44px; padding-inline: 14px; }

  /* Realce de toque discreto, no lugar do retângulo azul padrão do Android. */
  a, button { -webkit-tap-highlight-color: hsl(var(--gold) / 0.18); }
}

/* ============================================================================
   MOVIMENTO REDUZIDO . entrega estática COMPLETA
   Nada de "animação rápida": as animações somem e tudo já nasce no fim.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }

  /* Hero: a janela já cheia. */
  .appwin,
  .appwin .row,
  .appwin .detail,
  .appwin .win__filter,
  .appwin .win__status,
  .appwin .replay { opacity: 1 !important; transform: none !important; }
  .appwin .caret { display: none !important; }
  .replay { display: none !important; }

  /* Pipeline: as 5 estações abertas, sem depender de scroll. */
  .step { opacity: 1 !important; transform: none !important; border-color: hsl(var(--line-strong)); background: hsl(var(--surface)); }
  .step .step__n { color: hsl(var(--gold)); }

  .cookie { animation: none !important; }
}

@media print {
  .appwin, .header, .cookie, .replay { display: none; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════════════════════════
   Utilitários que substituem os atributos `style=` que existiam no HTML

   Não é preferência de estilo: é o que torna possível a política
   `style-src 'self'` na Content-Security-Policy. Um único atributo
   `style="..."` numa página obriga a CSP a aceitar `'unsafe-inline'`,
   e daí em diante ela para de barrar o CSS que um atacante injetar.

   CSS injetado não é inofensivo: seletores de atributo com
   `background-image: url(...)` exfiltram o conteúdo de campos de
   formulário caractere a caractere, sem executar um byte de JavaScript.

   Se você precisar de um ajuste pontual, acrescente uma classe aqui.
   Não volte com `style=` no HTML.
   ══════════════════════════════════════════════════════════════════════ */

.u-center      { text-align: center; }
.u-mt-0        { margin-top: 0; }
.u-mt-12       { margin-top: 12px; }
.u-mt-16       { margin-top: 16px; }
.u-mt-18       { margin-top: 18px; }
.u-mb-10       { margin-bottom: 10px; }
.u-fg          { color: hsl(var(--fg)); }

/* Parágrafo de apoio: texto secundário, um pouco maior e mais espaçado. */
.u-lead {
  color: hsl(var(--fg-muted));
  font-size: 15px;
  line-height: 1.6;
}

/* Índice de escalonamento das animações (era `style="--i:N"`). O CSS acima
   consome `var(--i)` para atrasar cada linha em sequência. */
.u-i-0 { --i: 0; }
.u-i-1 { --i: 1; }
.u-i-2 { --i: 2; }
.u-i-3 { --i: 3; }
.u-i-4 { --i: 4; }
.u-i-5 { --i: 5; }
.u-i-6 { --i: 6; }
.u-i-7 { --i: 7; }
