/* Destra — estilos do site.
   Tokens vêm de marca/tokens.json (Cofre). Tema escuro é o padrão; o claro
   fica pronto em [data-tema="claro"] caso o site ganhe alternância. */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #101213;
  --surface-raised: #171A1B;
  --line: #24282A;
  --ink: #F2F4F0;
  --muted: #A9B0AC;
  --placeholder: #24282A;
  --lima: #D4F53C;
  --violeta: #5B3DF5;
  --violeta-claro: #9D8BFF;
  --grafite: #101213;
  --destaque-texto: var(--lima);
  --botao-primario: var(--lima);
  --botao-primario-texto: #101213;

  --font-display: Sora, 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-7: 28px;
  --space-10: 40px;
  --space-20: 80px;

  --radius-sm: 10px;
  --radius-card: 20px;
  --radius-bloco: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 24px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-bg: rgba(16, 18, 19, .95);
  color-scheme: dark;
}

[data-tema="claro"] {
  --surface: #F6F7F2;
  --surface-raised: #FFFFFF;
  --line: #E2E5DC;
  --ink: #121414;
  --muted: #4A504D;
  --placeholder: #ECEEE7;
  --destaque-texto: var(--violeta);
  --botao-primario: #121414;
  --botao-primario-texto: #FFFFFF;
  --header-bg: rgba(246, 247, 242, .96);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Lenis (rolagem suave no desktop; ver js/main.js) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
  overflow-wrap: break-word;
}
:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
  border-radius: 6px;
}
[data-tema="claro"] :focus-visible { outline-color: var(--violeta); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--botao-primario);
  color: var(--botao-primario-texto);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 480px) { :root { --gutter: 16px; } }

.muted { color: var(--muted); }
.hi { color: var(--destaque-texto); }
.mark { color: var(--lima); }
[data-tema="claro"] .mark {
  color: inherit;
  background: var(--lima);
  padding: 0 10px;
  border-radius: var(--radius-sm);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--destaque-texto);
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .4s ease;
}
/* Principal: clareia, ganha brilho lima e uma faixa de luz atravessa. */
.btn--primary { background: var(--botao-primario); color: var(--botao-primario-texto); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn--primary:hover { background: #E4FF6E; box-shadow: 0 0 0 4px rgba(212, 245, 60, .16), 0 10px 36px -8px rgba(212, 245, 60, .5); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
[data-tema="claro"] .btn--primary:hover { background: #2A2E2F; box-shadow: 0 10px 30px -10px rgba(18, 20, 20, .5); }
/* Secundário: inverte (fundo claro, texto escuro) para dar contraste. */
.btn--secondary { border: 1px solid var(--line); font-weight: 600; }
.btn--secondary:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn:active { filter: brightness(.92); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn--primary:hover::after { transition: none; }
}

.link {
  color: var(--destaque-texto);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link [aria-hidden] { display: inline-block; transition: transform .45s var(--ease-out); }
.link:hover [aria-hidden] { transform: translate(3px, -3px); }
.link:hover .arrow-e { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  /* Fundo quase opaco em vez de backdrop-filter: o desfoque redesenhava a
     página atrás do cabeçalho a cada frame e travava a rolagem. */
  background: var(--header-bg);
  transition: transform .5s var(--ease-out);
  view-transition-name: header;
}
.header.is-hidden { transform: translateY(-101%); }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: var(--lima);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .72; padding: 6px 0; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 700; }
.header__cta { flex-shrink: 0; }
/* Entre o menu recolhido e a tela larga, os 7 itens só cabem numa linha mais juntos. */
@media (min-width: 961px) and (max-width: 1180px) { .nav { gap: 14px; font-size: 14px; } }
.menu-toggle { display: none; }

/* Mobile: menu recolhido atrás de um botão (só quando o JS está ativo;
   sem JS a navegação aparece inteira, quebrando linha). */
@media (max-width: 960px) {
  .header__inner { flex-wrap: wrap; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink);
    cursor: pointer;
  }
  .js .nav { display: none; }
  .js .header.is-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    padding-top: var(--space-2);
    font-size: 17px;
  }
  .js .header.is-open .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .js .header.is-open .nav a::after { display: none; }
  .js .header.is-open { background: var(--surface); }
  .header__cta { order: 2; }
  .js .header__cta { display: none; }
  .js .header.is-open .header__cta { display: inline-flex; order: 4; width: 100%; margin-top: var(--space-2); }
  .nav { width: 100%; order: 3; gap: 4px 18px; }
}
.menu-toggle__close { display: none; }
.header.is-open .menu-toggle__open { display: none; }
.header.is-open .menu-toggle__close { display: block; }

/* ---------- Seções ---------- */
.section { padding: var(--space-20) 0; }
.section--raised {
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__inner { display: flex; flex-direction: column; gap: 36px; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section__title {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 620px;
}
.section__aside { font-size: 17px; max-width: 520px; }

.hero {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 980px;
}
.hero__lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page-hero__title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 960px;
}
.page-hero__lead { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; max-width: 680px; }

/* ---------- Cards e grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section--raised .card { background: var(--surface); }
.card__num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--destaque-texto);
}
.card__title { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.card__text { color: var(--muted); }
.card__stat {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--destaque-texto);
}
.card__quote { font-size: 18px; line-height: 1.6; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
}
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: "✓"; color: var(--destaque-texto); font-weight: 700; }

/* ---------- Cases (clientes) ----------
   Subgrid alinha print, segmento, nome, blocos e rodapé entre os cards. */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}
.case {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.case--full { grid-row: span 8; }
.case > * { padding: 0 22px; }
.case__media { padding: 0; aspect-ratio: 16 / 10; }
.case__segment { padding-top: 20px; font-size: 13px; color: var(--muted); }
.case__name { padding-top: 4px; padding-bottom: 6px; font-size: 21px; line-height: 28px; letter-spacing: -0.02em; }
.case__desc { padding-top: 4px; padding-bottom: 16px; font-size: 15px; color: var(--muted); }
.case__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.case__label {
  color: var(--destaque-texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.case__pending { font-style: italic; }
.case__foot { align-self: end; padding-top: 6px; padding-bottom: 22px; font-weight: 600; }

/* Print do site num mockup simples de navegador, ou placeholder até chegar. */
.browser {
  height: 100%;
  background: var(--placeholder);
  display: flex;
  flex-direction: column;
}
.browser__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface);
}
.browser__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.browser__screen { flex: 1; position: relative; overflow: hidden; container-type: size; }
/* O print é uma página longa: no hover ele rola até o fim dentro da moldura. */
.browser__screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 3.2s var(--ease-in-out);
}
.case:hover .browser__screen img { transform: translateY(calc(-100% + 100cqh)); }
@media (prefers-reduced-motion: reduce) { .browser__screen img { transition: none; } .case:hover .browser__screen img { transform: none; } }
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sobre ---------- */
.founder {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-bottom: var(--space-20);
}
.founder__photo {
  flex: 1 1 320px;
  min-height: 380px;
  border-radius: 24px;
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__body { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.founder__name { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.founder__bio { font-size: 18px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; padding-bottom: 64px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--destaque-texto);
  font-weight: 600;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Parceiros ---------- */
.join {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.join p { font-size: 18px; max-width: 640px; }

/* ---------- Texto longo (política) ---------- */
.prose { max-width: 760px; padding-bottom: var(--space-20); }
.prose h2 { font-size: 26px; line-height: 1.2; margin: 48px 0 12px; }
.prose p, .prose ul { color: var(--muted); margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { padding-top: 32px; padding-bottom: 96px; }
.cta__box {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-bloco);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  justify-content: space-between;
  align-items: center;
}
.cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cta__title { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; font-weight: 700; }
.cta__lead { font-size: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); font-size: 14px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer__col a { text-decoration: none; padding: 2px 0; }
.footer__col a:hover { color: var(--ink); }
.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

/* =====================================================================
   Movimento
   Tudo que esconde conteúdo fica sob .motion, que o <head> só liga quando
   o sistema não pede movimento reduzido. Sem JS ou com movimento reduzido,
   o site aparece inteiro e parado.
   ===================================================================== */

/* ---------- Hover dos cards: brilho que segue o mouse ---------- */
.card, .case { position: relative; isolation: isolate; }
.card {
  transition: transform .6s var(--ease-out), border-color .4s ease;
}
.card::before, .case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 245, 60, .11), transparent 50%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.card::after, .case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 245, 60, .6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.case::before { z-index: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover::before, .card:hover::after,
  .case:hover::before, .case:hover::after { opacity: 1; }
  .card:hover { transform: translateY(-4px); }
}
.card__num { transition: transform .5s var(--ease-out); display: inline-block; }
.card:hover .card__num { transform: translateX(4px); }

.case { transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case:hover { transform: translateY(-6px); } }
/* O card inteiro é clicável pelo link "Ver site". */
.case__foot .link::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.case__foot .link:focus-visible { outline: none; }
.case:has(.link:focus-visible) { outline: 2px solid var(--lima); outline-offset: 3px; }

/* ---------- Hero: brilho de fundo ----------
   Estático e só com gradiente (o blur animado custava caro na rolagem). */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0 -10% 30%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 32%, rgba(212, 245, 60, .13), transparent),
    radial-gradient(closest-side at 40% 72%, rgba(91, 61, 245, .16), transparent);
}
.motion .hero::before { animation: glow-in 1.6s var(--ease-out) both; }
@keyframes glow-in { from { opacity: 0; } }

/* ---------- Faixa de serviços (home) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
/* Cada grupo repete os 7 itens 2x (~2.900px) para cobrir telas largas sem vazio. */
.motion .marquee__track { animation: marquee 150s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  padding: 0 22px;
}
.marquee__sep { flex-shrink: 0; width: 12px; height: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ: abre e fecha suave (navegadores com suporte) ---------- */
:root { interpolate-size: allow-keywords; }
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq summary { transition: color .3s ease; }
.faq summary:hover { color: var(--destaque-texto); }
.faq details { transition: border-color .3s ease; }

/* ---------- Revelação ao rolar ---------- */
.motion :is(
  .hero > :not(.hero__title),
  .page-hero > :not(.page-hero__title),
  .section__head > :not(.section__title),
  .grid > *, .cases > *, .checklist > li,
  .faq details, .cta__box, .founder__photo, .founder__body > :not(.founder__name),
  .prose > *, .join > *, .marquee, .footer__inner > *, .footer__legal
) {
  transition:
    opacity 1s var(--ease-out) var(--d, 0ms),
    transform 1.1s var(--ease-out) var(--d, 0ms),
    border-color .4s ease;
}
.motion :is(
  .hero > :not(.hero__title),
  .page-hero > :not(.page-hero__title),
  .section__head > :not(.section__title),
  .grid > *, .cases > *, .checklist > li,
  .faq details, .cta__box, .founder__photo, .founder__body > :not(.founder__name),
  .prose > *, .join > *, .marquee, .footer__inner > *, .footer__legal
):not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  animation: reveal-safety 0s 3.5s forwards;
}
/* Depois da entrada, o hover volta a responder sem atraso. */
.motion .is-in.is-done { transition-delay: 0s; }
.motion .card.is-in.is-done { transition: transform .6s var(--ease-out), border-color .4s ease; }
.motion .case.is-in.is-done { transition: transform .6s var(--ease-out); }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

.motion .cta__box.is-in { transition-duration: 1.2s; }
.motion .cta__box:not(.is-in) { transform: translate3d(0, 48px, 0) scale(.97); }
.motion .founder__photo:not(.is-in) { transform: scale(.94); }

/* Títulos: palavras sobem por trás de uma máscara. */
.motion :is(.hero__title, .page-hero__title, .section__title, .cta__title, .founder__name):not(.split) {
  opacity: 0;
  animation: reveal-safety 0s 3.5s forwards;
}
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em .02em .1em;
  margin: -.12em -.02em -.1em;
}
.split .w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.split.is-in .w > span { transform: none; }

/* Check da lista entra com um pulo. */
.motion .checklist li::before { display: inline-block; transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + 250ms); }
.motion .checklist li.is-in::before { transform: none; }

/* ---------- Transição entre páginas (navegadores com suporte) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}

/* ---------- Botão fixo do WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lima);
  color: var(--grafite);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(16, 18, 19, .25);
  transition: background-color .3s ease, box-shadow .4s ease;
}
.wa-float:hover { background: #E4FF6E; box-shadow: 0 0 0 5px rgba(212, 245, 60, .18), 0 12px 36px -8px rgba(212, 245, 60, .55); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 50%; }
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-float__label { opacity: 1; transform: none; }
}
.motion .wa-float { animation: wa-in .7s var(--ease-out) 1s both; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@media (max-width: 480px) {
  .wa-float { width: 54px; height: 54px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media print { .wa-float { display: none; } }

/* ---------- Redes no rodapé ---------- */
.social { display: flex; gap: 10px; margin-top: 8px; }
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}
.social__link:hover { color: var(--grafite); background: var(--lima); border-color: var(--lima); }

/* ---------- Ilustração do painel (barbearia) ---------- */
.browser__screen .dash { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Home longa (28/10/2026) ---------- */
.section__intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section__head--sub { margin-top: var(--space-10); }
.section__subtitle { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.checklist--sm { grid-template-columns: 1fr; gap: 6px; margin-top: 4px; font-size: 15px; color: var(--muted); }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: start; }
.feature__body { display: flex; flex-direction: column; gap: 18px; }
.phone { margin: 0; justify-self: center; width: 100%; max-width: 300px; padding: 12px; background: var(--line); border-radius: 48px; box-sizing: border-box; }
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }

.quote { margin: 8px 0 0; padding-top: 24px; border-top: 2px solid var(--destaque-texto); display: flex; flex-direction: column; gap: 14px; }
.quote__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -0.02em; margin: 0; }
.quote__by { font-size: 15px; color: var(--muted); }
.quote__by strong { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--destaque-texto); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: #2C3133; }

.compare { overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-card); }
.compare:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: 2px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.compare td { color: var(--muted); }
.compare thead th.compare__us { color: var(--destaque-texto); }
.compare td.compare__us { color: var(--ink); font-weight: 600; background: var(--surface); }

.founder--compact { padding-bottom: 0; margin-top: var(--space-10); }
.founder--compact .founder__photo { flex: 0 1 280px; min-height: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.founder__strong { color: var(--ink); }

.founder__photo:has(img) { aspect-ratio: 4 / 5; min-height: 0; flex-basis: 320px; max-width: 420px; }

/* =====================================================================
   Conteúdos (lista, cards e artigo)
   ===================================================================== */
.posts { padding-bottom: var(--space-20); display: flex; flex-direction: column; gap: 28px; }
/* O filtro depende de JS; sem ele, a lista aparece inteira e os botões somem. */
.chips { display: none; flex-wrap: wrap; gap: 10px; }
.js .chips { display: flex; }
.chip {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--lima); border-color: var(--lima); color: var(--grafite); }
.post-card[hidden] { display: none; }
.grid--posts { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.post-card .card__title { font-size: 20px; line-height: 27px; }
.post-card__link { text-decoration: none; }
/* O card inteiro é clicável; o link continua sendo o título (bom para leitor de tela). */
.post-card__link::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.post-card:hover .post-card__link { color: var(--destaque-texto); }
.post-card:has(.post-card__link:focus-visible) { outline: 2px solid var(--lima); outline-offset: 3px; }
.post-card__link:focus-visible { outline: none; }
.post-card .card__text { flex: 1; }
.post-card__meta { font-size: 14px; color: var(--muted); }

.article__hero { padding-bottom: 40px; }
.article__hero > * { max-width: 860px; }
.article__title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.article__meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.article__meta a:hover { color: var(--destaque-texto); }

.article__body { padding-bottom: 48px; font-size: 18px; line-height: 1.75; }
.article__body > :first-child { margin-top: 0; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; letter-spacing: -0.02em; }
.prose ol { color: var(--muted); margin: 0 0 14px; padding-left: 24px; }
.prose li::marker { color: var(--destaque-texto); font-weight: 700; }
.prose a:not(.btn) {
  color: var(--destaque-texto);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.prose em { color: var(--ink); }
.prose code { font-size: .9em; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--destaque-texto);
}
.prose blockquote p { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.5; color: var(--ink); margin: 0; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--radius-card); border: 1px solid var(--line); height: auto; }
.prose figure.phone { margin: 32px auto; }
.prose figure.phone img { border: 0; border-radius: 38px; }
.prose .compare { margin: 24px 0 28px; }
.prose .compare table { min-width: 560px; font-size: 16px; line-height: 1.5; }
.prose .compare thead th { color: var(--ink); }
.prose .compare tbody th { color: var(--ink); font-weight: 600; }
.prose .faq { padding-bottom: 0; margin-bottom: 14px; }
.prose .faq details p { margin: 12px 0 0; }
.prose .faq summary { font-size: 19px; }

.article-cta {
  margin: 36px 0;
  padding: 26px 28px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lima);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.prose .article-cta p { margin: 0; }
.article-cta__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink) !important; }
.article-cta__text { font-size: 16px; line-height: 1.6; }
.article-cta .btn { margin-top: 6px; }

.author {
  max-width: 760px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px 0 var(--space-10);
  border-top: 1px solid var(--line);
}
/* Quando o artigo termina no FAQ, a última linha dele já separa o autor. */
.article__body:has(> .faq:last-child) + .author { border-top: 0; padding-top: 8px; }
.author__photo { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: top; }
.author__body { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.author__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
@media (max-width: 480px) { .author { align-items: flex-start; } .author__photo { width: 64px; height: 64px; } }
