:root {
  --papel: #FAFAF7;
  --papel-2: #F1F5F9;
  --tinta: #0F172A;
  --tinta-clara: #64748B;
  --azul: #2563EB;
  --azul-escuro: #1D4ED8;
  --ambar: #F59E0B;
  --vermelho: #DC2626;
  --hairline: rgba(15, 23, 42, 0.10);
}

html { scroll-behavior: smooth; }
body { font-family: "IBM Plex Sans", sans-serif; }

::selection { background: rgba(245, 158, 11, 0.35); }

/* Foco visível — mesma cor de ação da página */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Grifo do tutor (marca-texto âmbar atrás da tinta) ──
   base: 0% de largura; quem ativa é .hl-hero (load) ou
   .reveal.visible .hl (scroll). Nunca usar âmbar como cor
   de texto sobre papel — contraste insuficiente. */
.hl {
  background-image: linear-gradient(rgba(245, 158, 11, 0.40), rgba(245, 158, 11, 0.40));
  background-repeat: no-repeat;
  background-position: 0 64%;
  background-size: 0% 34%;
  /* Sem isso, um <span> que embrulha em 2+ linhas pinta o gradiente
     uma única vez para a caixa inline inteira e só uma das linhas
     acaba mostrando a fatia visível — "clone" dá a cada linha o
     próprio background independente. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-hero { animation: hl-sweep 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards; }
@keyframes hl-sweep { to { background-size: 100% 34%; } }
.reveal.visible .hl { transition: background-size 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s; background-size: 100% 34%; }

/* ── Entrada do hero (orquestrada: cópia → cartão → marcações) ── */
.hero-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-in:nth-child(1) { animation-delay: 0.08s; }
.hero-in:nth-child(2) { animation-delay: 0.20s; }
.hero-in:nth-child(3) { animation-delay: 0.32s; }
.hero-in:nth-child(4) { animation-delay: 0.44s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.cartao-in {
  opacity: 0;
  transform: translateY(26px) rotate(-1.2deg);
  animation: cartao-entra 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
@keyframes cartao-entra { to { opacity: 1; transform: translateY(0) rotate(-1.2deg); } }

/* ── Carrossel do hero: 5 screenshots reais em mockup de celular ──
   aspect-ratio fixo evita CLS (troca de slide não muda a altura do
   card); slides empilhados via position:absolute, só a .active visível.
   Todas as fontes em site/imagens/hero/ já nascem 810×1080 (3:4 exato) —
   ver nota no HTML acima do bloco de imagens. */
.phone-mock { aspect-ratio: 3 / 4; }
.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-slide.active { opacity: 1; }
/* Setas na linha dos dots, não sobre o print — todo o conteúdo dos 5
   screenshots é texto alinhado à esquerda, então um botão sobreposto à
   borda da imagem tampa texto real em algum slide. Aqui, [‹] [dots] [›]
   nunca ocupa espaço que pertence ao print. Sempre visíveis (funcionam
   em touch, não só hover); 44px cumpre o piso de tap target recomendado
   (WCAG 2.5.5 / iOS HIG) mesmo com um visual discreto. */
.phone-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--tinta);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.phone-arrow:hover { background: rgba(15, 23, 42, 0.09); }
.phone-arrow:active { transform: scale(0.92); }
.phone-arrow:focus-visible { border-radius: 999px; }
/* Legenda em duas partes — selo (mesmo idioma visual do .conf-item da
   faixa de confiança: mono, tracked, âmbar) + manchete em negrito.
   min-height reserva o pior caso medido (selo + manchete de 2 linhas em
   375px) pra troca de slide não empurrar o layout (CLS). Cada troca
   remove/reaplica `.show` (com reflow forçado no JS) pra a transição
   replay — sobe alguns px enquanto some/aparece; @media
   prefers-reduced-motion no topo do arquivo já zera as durações. */
.phone-caption {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 0.75rem;
}
.phone-caption-eyebrow,
.phone-caption-headline {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.phone-caption-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ambar);
}
.phone-caption-headline {
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--tinta);
  transition-delay: 0.06s;
}
.phone-caption.show .phone-caption-eyebrow,
.phone-caption.show .phone-caption-headline {
  opacity: 1;
  transform: translateY(0);
}
.phone-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.phone-dot.active { background: var(--azul); transform: scale(1.3); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }

/* ── Botões ── */
.btn-primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  background: var(--azul-escuro);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.38);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  color: var(--tinta);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: #fff; border-color: rgba(15, 23, 42, 0.34); }

.btn-ambar {
  background: var(--ambar);
  color: var(--tinta);
  transition: filter 0.2s, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ambar:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ambar:active { transform: translateY(0); }

/* ── Cards ── */
.card-recurso {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}
.card-recurso:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.35);
}
/* Selo carimbado à mão, não impresso reto — cada ícone nasce com uma
   leve rotação alternada (mesma lógica do .cartao-in do hero) e gira
   mais forte no hover. */
.recurso-icone {
  transform: rotate(-2deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.card-recurso:nth-child(2) .recurso-icone { transform: rotate(2deg); }
.card-recurso:hover .recurso-icone { background: var(--azul-escuro); transform: scale(1.08) rotate(-6deg); }
.card-recurso:nth-child(2):hover .recurso-icone { transform: scale(1.08) rotate(6deg); }

.card-passo { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s; }
.card-passo:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); }
.passo-num {
  font-family: "Newsreader", serif;
  font-weight: 800;
  font-size: 9rem;
  line-height: 1;
  color: rgba(37, 99, 235, 0.07);
  position: absolute;
  top: -1.75rem;
  right: -0.5rem;
  user-select: none;
  pointer-events: none;
}

.card-plano { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s; }
.card-plano:not(.plano-destaque):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
}
.plano-destaque {
  box-shadow: 0 0 0 2px var(--ambar), 0 24px 64px rgba(15, 23, 42, 0.28);
}
/* O translateY negativo "levanta" o card Essencial acima dos vizinhos
   *ao lado* dele no grid de 3 colunas do desktop. No mobile o grid
   empilha em 1 coluna — o mesmo deslocamento faria o card subir por
   cima do card anterior em vez de se destacar. */
@media (min-width: 768px) {
  .plano-destaque {
    transform: translateY(-18px);
  }
  .plano-destaque:hover {
    transform: translateY(-24px);
    box-shadow: 0 0 0 2px var(--ambar), 0 32px 80px rgba(15, 23, 42, 0.36);
  }
}

/* ── FAQ (grid height trick) ── */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-icone {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.09);
  color: var(--azul);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
details[open] .faq-icone { transform: rotate(45deg); background: rgba(37, 99, 235, 0.16); }
.faq-item { background: #fff; border-radius: 1rem; transition: background 0.18s; }
.faq-item:hover { background: #F8FAFC; }

/* ── Nav com scroll ── */
.nav-scrolled { box-shadow: 0 1px 0 var(--hairline); }

/* ── Linha de confiança (mono de documento) ── */
.conf-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tinta-clara);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.conf-ponto {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ambar);
  flex-shrink: 0;
}

/* ── Movimento reduzido: estado final estático de tudo ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero-in, .cartao-in, .reveal { opacity: 1 !important; transform: none !important; }
  .cartao-in { transform: rotate(-1.2deg) !important; }
  .hl, .hl-hero { background-size: 100% 34% !important; }
}
