/* ============ LANDING ============
   Referência visual: kinsta.com. Fundo de linho, títulos em serifa (Newsreader), cabeçalho em barra escura
   arredondada, telas reais do app emolduradas e painéis escuros com brilho azul-tinta (tokens --panel-*). */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}
/* Lenis (rolagem suave da landing): regras do lenis.css 1.3.26 + desligar o scroll suave do CSS,
   que brigaria com o do Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
/* Entradas que vêm de lado nunca criam rolagem horizontal (clip não quebra o cabeçalho fixo) */
#landing {
  overflow-x: clip;
}
#landing h1,
#landing h2,
.l-stats dt,
.l-strip li,
.pain-cards b {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Cabeçalho (referência: shadcnspace): logo à esquerda, links numa pílula clara no meio com a pílula
   escura na seção atual, e o "Criar conta" em pílula com a seta num círculo. Ao rolar, ganha um fundo
   de linho quase opaco (sem desfoque, que repintaria a cada quadro). */
.l-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 14px;
  transition:
    background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.l-header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  box-shadow: 0 1px 0 var(--color-border);
}
.l-bar {
  width: min(1216px, 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
}
.l-bar .logo {
  white-space: nowrap;
}
/* Celular: logo e "Criar conta" lado a lado sem cortar. A logo completa diminui com a tela e o botão
   fica mais compacto; abaixo de 360px a seta do botão sai (medido de 320 a 430px, sem rolagem lateral). */
@media (max-width: 899px) {
  .l-bar .logo-full {
    height: 24px;
  }
}
@media (max-width: 419px) {
  .l-bar {
    gap: 10px;
  }
  .l-bar .logo-full {
    height: 21px;
  }
  .l-actions .btn-cta {
    min-height: 42px;
    padding-left: 14px;
    gap: 8px;
    font-size: 14px;
  }
  .l-actions .cta-dot {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 359px) {
  .l-bar .logo-full {
    height: 19px;
  }
  .l-actions .btn-cta {
    padding-right: 14px;
  }
  .l-actions .cta-dot {
    display: none;
  }
}
/* Logo completa (ic('logo-full')): símbolo azul + nome; as cores seguem o tema */
.logo-full {
  display: block;
  height: 30px;
  width: auto;
  flex: none;
}
.lg-mark {
  fill: var(--brand-mark);
}
.wm-a {
  fill: var(--brand-wm-a);
}
.wm-b {
  fill: var(--brand-wm-b);
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
}
.logo-mark svg.brand {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 2px 6px var(--logo-glow));
}
.l-nav {
  position: relative;
  display: none;
  gap: 2px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.l-nav a {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.l-nav a:hover {
  color: var(--color-text);
}
.l-nav a[aria-current] {
  color: var(--color-on-ink);
}
.l-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--pw, 0);
  translate: var(--px, 0) 0;
  border-radius: 999px;
  background: var(--color-ink);
  transition:
    translate 0.45s var(--ease-spring),
    width 0.45s var(--ease-spring);
}
.l-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}
.l-actions .enter {
  display: none;
  background: transparent;
  color: var(--color-text);
}
.l-actions .enter:hover {
  color: var(--color-accent);
}
@media (min-width: 900px) {
  .l-bar {
    grid-template-columns: 1fr auto 1fr;
  }
  .l-nav {
    display: flex;
  }
  .l-actions .enter {
    display: inline-flex;
  }
}
.btn-on-bar {
  background: var(--panel-text);
  color: var(--panel-bg);
}
.btn-on-bar:hover {
  background: var(--panel-muted);
}
.btn-on-dark {
  background: transparent;
  color: var(--panel-text);
  border-color: var(--panel-line);
}
.btn-on-dark:hover {
  border-color: var(--panel-muted);
}
@media (min-width: 900px) {
  .l-nav {
    display: flex;
  }
  .l-actions .enter {
    display: inline-flex;
  }
}

/* Topo: título à esquerda, a tela real do app à direita, sobre uma grade de quadrados que se apaga */
.l-hero {
  position: relative;
  padding-block: 56px 72px;
  overflow: clip;
}
.l-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 40%;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 44px 44px;
  /* a cor da máscara não aparece: só a opacidade dela conta */
  mask-image: radial-gradient(ellipse 60% 70% at 55% 45%, var(--color-text) 20%, transparent 75%);
  opacity: 0.7;
}
.l-hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .l-hero {
    padding-block: 72px 104px;
  }
  .l-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: 64px;
  }
}
.l-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.l-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.03;
  max-width: 12ch;
}
.l-lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 44ch;
}
.l-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.l-cta svg {
  width: 18px;
  height: 18px;
}
.l-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.l-hero-shot {
  position: relative;
  margin: 0;
  min-width: 0;
}
.frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--panel-glow), var(--shadow-lg);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
/* Cada tela existe nos dois temas; mostra a do tema atual (as regras seguem as de css/base.css) */
.shot-dark {
  display: none !important;
}
:root[data-theme='dark'] .shot-dark {
  display: block !important;
}
:root[data-theme='dark'] .shot-light {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .shot-dark {
    display: block !important;
  }
  :root:not([data-theme='light']) .shot-light {
    display: none !important;
  }
}
.float {
  position: absolute;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--color-text-muted);
}
.float b {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.float svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}
.float span b {
  display: block;
}
.f-timer {
  left: -28px;
  bottom: 14%;
}
.f-timer .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.f-due {
  right: -18px;
  top: -22px;
}
@media (min-width: 1000px) {
  .float {
    display: flex;
  }
}

/* Faixa de público, no lugar da faixa de logos */
.l-strip {
  padding-block: 28px;
  border-block: 1px solid var(--color-border);
  text-align: center;
}
.l-strip p {
  font-size: 14px;
  color: var(--color-text-muted);
}
/* Faixa em movimento contínuo: duas cópias da lista, a segunda só para fechar o laço */
.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 12px;
  mask-image: linear-gradient(90deg, transparent, var(--color-text) 12%, var(--color-text) 88%, transparent);
}
.marquee ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex: none;
  gap: 56px;
  padding-right: 56px;
}
.l-strip li {
  font-size: 26px;
  color: var(--color-text);
  white-space: nowrap;
}

/* Seções */
.l-sec {
  padding-block: 56px;
}
@media (min-width: 1000px) {
  .l-sec {
    padding-block: 88px;
  }
}
.l-sec h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  max-width: 20ch;
}
.l-head {
  margin-bottom: 40px;
}
.l-head p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 56ch;
}
.l-head.center {
  text-align: center;
}
.l-head.center h2,
.l-head.center p {
  margin-inline: auto;
}
.l-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

/* Painel escuro com brilho: as dores, os depoimentos e o fechamento */
.dark-panel {
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--panel-glow);
}
.dark-panel h2 {
  color: var(--panel-text);
}
.dp-lead {
  margin-top: 14px;
  font-size: 18px;
  color: var(--panel-muted);
  max-width: 52ch;
}
.pain-cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.pain-cards article {
  padding: 24px;
  background: var(--panel-card);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
}
.pain-cards b {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  color: var(--panel-text);
}
.pain-cards p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--panel-muted);
}
@media (min-width: 900px) {
  .pain-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dark-panel.final {
  text-align: center;
}
.dark-panel.final h2,
.dark-panel.final .dp-lead {
  margin-inline: auto;
}
.dark-panel.final .l-cta {
  justify-content: center;
}

/* Por que usar: três cartões com uma ilustração feita dos próprios componentes do app */
.why-cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .why-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.why-cards article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.why-art {
  min-height: 190px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 10px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.why-timer {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.why-timer .num {
  font-size: 40px;
  letter-spacing: 0.03em;
}
.why-timer .bar {
  width: 100%;
}
.why-cards h3 {
  margin: 22px 24px 0;
  font-size: 19px;
}
.why-cards article > p {
  margin: 8px 24px 26px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Abas com as telas do app */
.l-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.l-tabs button {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.l-tabs button:hover {
  color: var(--color-text);
}
.l-tabs {
  position: relative;
}
.l-tabs button {
  z-index: 1;
  transition: color 0.3s var(--ease-out);
}
.l-tabs button[aria-selected='true'] {
  color: var(--color-on-ink);
}
.tab-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--pw, 0);
  translate: var(--px, 0) 0;
  border-radius: 999px;
  background: var(--color-ink);
  box-shadow: var(--shadow-md);
  transition:
    translate 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.l-tabs button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.l-pane > p {
  max-width: 60ch;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 17px;
  color: var(--color-text-muted);
}
.l-pane .frame {
  max-width: 1100px;
  margin: 0 auto;
}

/* Números */
.l-stats {
  margin: 0;
  display: grid;
  gap: 32px;
  text-align: center;
}
.l-stats dt {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1;
}
.l-stats dd {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--color-text-muted);
}
@media (min-width: 768px) {
  .l-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Objetivos (montados por goalCardsHtml, em js/goals/landing.js) */
.goal-cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .goal-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.goal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.goal-card .gic {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}
.goal-card .gic svg {
  width: 24px;
  height: 24px;
}
.goal-card h3 {
  font-size: 22px;
}
.goal-card > p {
  color: var(--color-text-muted);
}
.goal-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  flex: 1;
  font-size: 15px;
}
.goal-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.goal-card li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  color: var(--color-accent);
}
.goal-card .btn {
  align-self: flex-start;
}

/* Comparação */
/* A tabela não rola na vertical: durante a entrada as linhas passam um pouco da borda de baixo, e uma
   rolagem vertical aqui roubaria a roda do mouse da página. A lateral só existe em telas estreitas,
   onde a tabela (mínimo de 520px) não cabe. */
.cmp {
  /* relative: os textos para leitor de tela (.sr, absolutos) ficam presos ao corte da tabela; sem isso
     eles escapavam e alargavam a página no celular (rolagem lateral de ~80px) */
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
@media (max-width: 560px) {
  .cmp {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
.cmp table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
.cmp th,
.cmp td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 15px;
}
.cmp tbody tr:last-child > * {
  border-bottom: 0;
}
.cmp thead th {
  font-weight: 600;
  text-align: center;
}
.cmp tbody th {
  text-align: left;
  font-weight: 500;
}
.cmp td {
  text-align: center;
}
.cmp th:nth-child(2),
.cmp td:nth-child(2) {
  background: var(--color-accent-soft);
}
.cmp svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.cmp td:nth-child(2) svg {
  color: var(--color-accent);
}
.cmp td:nth-child(3) svg {
  color: var(--color-text-muted);
}

/* Dúvidas */
.faq-grid {
  display: grid;
}
@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 64px;
    align-items: start;
  }
}
.faq details {
  border-bottom: 1px solid var(--color-border);
}
.faq details:first-child {
  border-top: 1px solid var(--color-border);
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-size: 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--color-accent);
  font-weight: 500;
  transition: rotate 0.2s var(--ease-out);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.faq details p {
  color: var(--color-text-muted);
  padding-bottom: 20px;
  max-width: 62ch;
}
.quotes {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.quote {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  display: grid;
  gap: 16px;
}
.quote blockquote {
  margin: 0;
  font-size: 17px;
}
.quote figcaption {
  display: grid;
  font-size: 14px;
  color: var(--color-text-muted);
}
.quote figcaption b {
  color: var(--color-text);
}
.dark-panel .quotes {
  margin-top: 32px;
}
.dark-panel .quote {
  background: var(--panel-card);
  border-color: var(--panel-line);
}
.dark-panel .quote blockquote,
.dark-panel .quote figcaption b {
  color: var(--panel-text);
}
.dark-panel .quote figcaption {
  color: var(--panel-muted);
}

/* Rodapé */
.l-footer {
  padding-block: 36px;
  border-top: 1px solid var(--color-border);
}
.l-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  align-items: center;
}
.l-foot-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.l-foot-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
}
.l-foot-nav a:hover {
  color: var(--color-accent);
}

/* ============ Movimento ============
   Tudo abaixo só vale com #landing.motion (o JS liga quando o visitante não pediu movimento reduzido).
   Só transform e opacity são animados. */
.l-trust {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.l-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.l-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
[data-split] .w {
  display: inline-block;
}
.l-squares {
  position: absolute;
  inset: 0 0 0 40%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 70% at 55% 45%, var(--color-text) 20%, transparent 75%);
}
.l-squares span {
  position: absolute;
  left: calc(var(--x) * 44px + 1px);
  top: calc(var(--y) * 44px + 1px);
  width: 43px;
  height: 43px;
  background: var(--color-accent-soft);
  opacity: 0;
  will-change: opacity;
}
/* Linha de progresso da página, na borda de cima da tela */
.l-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(var(--page, 0));
  transform-origin: left;
  will-change: transform;
}
/* Brilho que segue o ponteiro nos painéis escuros */
.spot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.spot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 1120px;
  height: 1120px;
  margin: -560px 0 0 -560px;
  pointer-events: none;
  opacity: 0;
  translate: var(--mx, 50%) var(--my, 0);
  transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(circle closest-side, var(--panel-spot), transparent);
  will-change: translate;
}
.spot:hover::after {
  opacity: 1;
}
/* Barrinha de progresso da aba ativa (troca automática) */
.l-tabs button {
  position: relative;
}
.l-tabs[data-autoplay] button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-on-ink);
  opacity: 0.7;
  transform-origin: left;
  transform: scaleX(0);
}
.l-tabs[data-autoplay].playing button[aria-selected='true']::after {
  animation: tab-progress 6s linear forwards;
}
.l-tabs[data-autoplay]:hover button[aria-selected='true']::after {
  animation-play-state: paused;
}
@keyframes tab-progress {
  to {
    transform: scaleX(1);
  }
}

#landing.motion {
  /* Topo: o título sobe palavra por palavra e a tela entra de baixo */
  & .l-hero h1 .w {
    animation: word-up 0.8s var(--ease-out) both;
    animation-delay: calc(var(--i) * 70ms + 80ms);
  }
  & .l-kicker,
  & .l-lead,
  & .l-hero .l-cta,
  & .l-note,
  & .l-trust li {
    animation: word-up 0.8s var(--ease-out) both;
  }
  & .l-lead {
    animation-delay: 0.45s;
  }
  & .l-hero .l-cta {
    animation-delay: 0.55s;
  }
  & .l-note {
    animation-delay: 0.65s;
  }
  & .l-trust li {
    animation-delay: calc(0.72s + var(--i) * 90ms);
  }
  & .l-hero-shot {
    animation: shot-in 1.1s var(--ease-out) 0.2s both;
  }
  /* A tela começa inclinada e se endireita conforme a página rola */
  & .l-hero-shot .frame {
    transform: perspective(1600px) rotateX(calc((1 - var(--tilt, 0)) * 12deg)) scale(calc(0.95 + var(--tilt, 0) * 0.05));
    transform-origin: 50% 0%;
  }
  & .l-hero-shot .frame {
    will-change: transform;
  }
  & .f-timer {
    translate: 0 calc(var(--tilt, 0) * -36px);
    animation: bob 5s ease-in-out -1.4s infinite;
  }
  & .f-due {
    translate: 0 calc(var(--tilt, 0) * 28px);
    animation: bob 6s ease-in-out -3s infinite;
  }
  & .f-timer .dot {
    animation: pulse 1.6s ease-in-out infinite;
  }
  & .l-squares span {
    animation: square 7s ease-in-out var(--d) infinite;
  }
  & .marquee ul {
    animation: marquee 38s linear infinite;
    will-change: transform;
  }
  /* Fora da tela, nada fica girando à toa */
  & .l-hero:not(.live) *,
  & .l-strip:not(.live) *,
  & #planos:not(.live) *,
  & #planos:not(.live) *::before {
    animation-play-state: paused;
  }
  & .marquee:hover ul {
    animation-play-state: paused;
  }

  /* Títulos das seções: palavra por palavra quando entram na tela */
  & .l-sec [data-split] .w {
    opacity: 0;
    translate: 0 0.7em;
    rotate: 4deg;
    transition:
      opacity 0.9s var(--ease-spring),
      translate 0.9s var(--ease-spring),
      rotate 0.9s var(--ease-spring);
    transition-delay: calc(var(--i) * 65ms);
  }
  & .l-sec [data-split].in .w {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }

  /* Blocos e grupos em sequência */
  /* Blocos e grupos em sequência: sobem e crescem um pouco (só opacity e transform, sem repintar) */
  & .rv {
    opacity: 0;
    translate: 0 64px;
    scale: 0.95;
    transition:
      opacity 1s var(--ease-spring),
      translate 1s var(--ease-spring),
      scale 1s var(--ease-spring);
  }
  & .rv.in {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  & .pain-cards > *,
  & .l-stats > * {
    opacity: 0;
    translate: 0 48px;
    scale: 0.92;
    transition:
      opacity 0.9s var(--ease-spring),
      translate 0.9s var(--ease-spring),
      scale 0.9s var(--ease-spring);
    transition-delay: calc(0.25s + var(--i) * 140ms);
  }
  & .rv.in .pain-cards > *,
  & .rv.in.l-stats > * {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  & .why-cards > .rv,
  & .goal-cards > .rv {
    transition-delay: calc(var(--i) * 140ms);
  }

  /* Ilustrações dos cartões: os blocos do plano deslizam e as barras se enchem */
  & .why-art .pchip {
    opacity: 0;
    translate: -24px 0;
    transition:
      opacity 0.6s var(--ease-out),
      translate 0.6s var(--ease-out);
  }
  & .why-art .pchip + .pchip {
    transition-delay: 0.15s;
  }
  & .why-art .bar > span {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-out) 0.25s;
  }
  & .rv.in .why-art .pchip {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--i) * 110ms + 0.2s);
  }
  & .rv.in .why-art .pchip + .pchip {
    transition-delay: calc(var(--i) * 110ms + 0.35s);
  }
  & .rv.in .why-art .bar > span {
    transform: scaleX(1);
  }
  & .why-cards article {
    transition:
      opacity 1s var(--ease-spring),
      translate 1s var(--ease-spring),
      scale 1s var(--ease-spring),
      box-shadow 0.3s var(--ease-out),
      transform 0.3s var(--ease-out);
  }
  & .why-cards article:hover,
  & .goal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  & .goal-card {
    transition:
      opacity 1s var(--ease-spring),
      translate 1s var(--ease-spring),
      scale 1s var(--ease-spring),
      box-shadow 0.3s var(--ease-out),
      transform 0.3s var(--ease-out);
  }

  /* Troca de aba: a tela nova entra suave */
  & .l-pane:not([hidden]) {
    animation: pane-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Comparação: linha a linha, e os ✓ do Studay Space se desenham */
  & .cmp tbody tr {
    opacity: 0;
    translate: 0 10px;
    transition:
      opacity 0.5s var(--ease-out),
      translate 0.5s var(--ease-out);
    transition-delay: calc(0.15s + var(--i) * 90ms);
  }
  & .cmp.in tbody tr {
    opacity: 1;
    translate: 0 0;
  }
  & .cmp td:nth-child(2) svg path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.5s var(--ease-out);
    transition-delay: calc(0.35s + var(--i, 0) * 90ms);
  }
  & .cmp.in td:nth-child(2) svg path {
    stroke-dashoffset: 0;
  }
}
/* Abas escondidas ou página em segundo plano: pausa as animações contínuas */
body.paused *,
body.paused *::before,
body.paused *::after {
  animation-play-state: paused !important;
}
@keyframes word-up {
  from {
    opacity: 0;
    translate: 0 0.45em;
  }
}
@keyframes shot-in {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}
@keyframes square {
  0%,
  100% {
    opacity: 0;
  }
  45%,
  60% {
    opacity: 0.9;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateX(calc(var(--dir, 1) * 48px)) scale(0.98);
  }
}

/* ---------- Preços (js/features/landing-pricing.js) ----------
   Estrutura do componente "pricing-4": cabeçalho com preço, lista, rodapé com o botão; o Pro em destaque. */
.freq {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.freq button {
  position: relative;
  z-index: 1;
  min-width: 96px;
  padding: 9px 18px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
}
.freq button[aria-pressed='true'] {
  color: var(--color-on-ink);
}
.freq button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 999px;
}
.freq-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--color-ink);
  transition: translate 0.35s var(--ease-out);
}
.freq[data-active='yearly'] .freq-pill {
  translate: 100% 0;
}
.price-grid {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 768px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.price-card.hl {
  border-color: var(--color-accent);
  box-shadow: var(--panel-glow), var(--shadow-lg);
}
.price-card {
  scale: var(--s, 1);
}
@media (min-width: 768px) {
  .price-card.hl {
    --s: 1.03;
  }
}
.pc-head {
  position: relative;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}
.price-card.hl .pc-head,
.price-card.hl .pc-foot {
  background: var(--color-bg);
}
.pc-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.pc-pop,
.pc-off {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}
.pc-pop {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.pc-pop svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.pc-off {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.pc-off:not([hidden]) {
  animation: badge-in 0.3s var(--ease-out);
}
.price-card h3 {
  font-size: 20px;
}
.pc-info {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 30ch;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 26px;
  font-variant-numeric: tabular-nums;
}
.pc-cur {
  font-size: 20px;
  font-weight: 600;
}
.pc-val {
  display: inline-flex;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pc-per {
  font-size: 15px;
  color: var(--color-text-muted);
}
/* Rolo de dígitos: a coluna 0–9 desliza para mostrar o dígito --d */
.roll {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}
.roll-col {
  display: flex;
  flex-direction: column;
  translate: 0 calc(var(--d) * -1em);
  transition: translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.roll-col span {
  height: 1em;
  line-height: 1;
}
.pc-billed {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.pc-founder {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--tone-yellow-bg);
  color: var(--tone-yellow-fg);
  font-size: 13px;
}
.pc-founder svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.pc-feats {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-muted);
  flex: 1;
  align-content: start;
}
.pc-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pc-feats svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--color-accent);
}
.pc-foot {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}
.pc-foot .btn {
  width: 100%;
}
.price-note {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}
@keyframes badge-in {
  from {
    opacity: 0;
    scale: 0.85;
  }
}
/* Pro em destaque: um feixe de luz azul gira pela borda (só com movimento).
   ::before é o gradiente girando; ::after cobre o miolo e deixa só a borda de 2px à mostra. */
#landing.motion .price-card.hl {
  border-color: transparent;
  padding: 2px;
}
#landing.motion .price-card.hl > * {
  position: relative;
  z-index: 1;
}
#landing.motion .price-card.hl > .pc-badges {
  position: absolute;
}
#landing.motion .price-card.hl::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0 58%,
    var(--color-accent-muted) 76%,
    var(--color-accent) 90%,
    transparent 100%
  );
  animation: spin 5s linear infinite;
  will-change: transform;
}
#landing.motion .price-card.hl::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-xl) - 2px);
  background: var(--color-surface);
}
/* Entrada dos cartões: o Grátis vem da esquerda, o Pro da direita */
#landing.motion .price-grid.rv {
  opacity: 1;
  translate: none;
  scale: none;
}
#landing.motion .price-card {
  opacity: 0;
  translate: calc(var(--side, -1) * 90px) 32px;
  scale: calc(var(--s, 1) * 0.92);
  transition:
    opacity 1s var(--ease-spring),
    translate 1s var(--ease-spring),
    scale 1s var(--ease-spring);
}
#landing.motion .price-card:nth-child(2) {
  --side: 1;
  transition-delay: 0.15s;
}
#landing.motion .price-grid.in .price-card {
  opacity: 1;
  translate: 0 0;
  scale: var(--s, 1);
}
@keyframes spin {
  to {
    rotate: 1turn;
  }
}
/* Movimento reduzido: o preço troca sem rolar e o indicador sem deslizar */
@media (prefers-reduced-motion: reduce) {
  .roll-col,
  .freq-pill,
  .freq button,
  .tab-pill {
    transition: none;
  }
  .pc-off:not([hidden]) {
    animation: none;
  }
}
