/* A landing do finde (modo dia), no desenho de 23/11/2026: menu fixo, foto
   de uso no herói, demo em três toques, "Como funciona" com os lambes, e o
   manifesto com o Instagram em bordô. Botões D e C, retos; sem sombra, sem
   gradiente. Só o celular desenhado da demo tem canto: é o aparelho. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fontes/instrument-serif.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fontes/instrument-serif-italico.woff2') format('woff2');
  font-style: italic; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fontes/dm-sans.woff2') format('woff2');
  font-style: normal; font-weight: 100 1000; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fontes/fraunces-italico-300.woff2') format('woff2');
  font-style: italic; font-weight: 300; font-display: block;
}
/* Reservas com a métrica das fontes servidas (as mesmas do app). */
@font-face {
  font-family: 'Serifa Reserva';
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times');
  font-style: normal;
  size-adjust: 83%; ascent-override: 119.3%; descent-override: 37.3%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Serifa Reserva';
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Times Italic');
  font-style: italic;
  size-adjust: 86%; ascent-override: 115.1%; descent-override: 36%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Sans Reserva';
  src: local('Helvetica Neue'), local('HelveticaNeue'), local('Arial'), local('ArialMT');
  size-adjust: 101%; ascent-override: 98.2%; descent-override: 30.7%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Marca Reserva';
  src: local('Georgia Italic'), local('Georgia-Italic');
  font-style: italic;
  size-adjust: 77%; ascent-override: 127%; descent-override: 33.1%; line-gap-override: 0%;
}

:root {
  --bordo: #4E1222;
  --rose: #C98F8A;
  --nude: #EADCD2;
  --nude-claro: #F3EBE3;
  --grafite: #2A2426;
  --rotulo: #8A4A4F;
  --corrido: #6B3A3F;
  --fio-off: #D7BFB4;
  --sobre-bordo: #D9C2BA;

  --marca: 'Fraunces', 'Marca Reserva', Georgia, serif;
  --serifa: 'Instrument Serif', 'Serifa Reserva', 'Times New Roman', serif;
  --sans: 'DM Sans', 'Sans Reserva', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --lateral: clamp(20px, 5vw, 80px);
  --largura: 1440px;
  --menu: 72px;
  --vao-hero: clamp(40px, 6vw, 104px);

  /* Movimento: o mesmo vocabulário do app. Saída para o que chega, troca
     para o que muda de estado, linear só para fio que se desenha. */
  --mov-saida: cubic-bezier(.2, .7, .2, 1);
  --mov-troca: cubic-bezier(.6, 0, .2, 1);
  --mov-toque: 160ms;
  --mov-estado: 320ms;
  --mov-bloco: 560ms;
  --mov-titulo: 900ms;
  --mov-passo: 60ms;
  /* Os mesmos nomes e valores no app.css: quanto o texto de resposta sobe,
     o passo entre as linhas de um título, quando o itálico chega depois da
     linha e quanto o botão cede sob o dedo. */
  --mov-sobe-px: 10px;
  --mov-linha-passo: 60ms;
  --mov-italico-atraso: 280ms;
  --mov-toque-escala: .98;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--menu) + 8px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--nude);
  color: var(--bordo);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--bordo); }
a:hover { color: var(--rotulo); }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 1.5px solid var(--bordo); outline-offset: 3px; }
:is(.final, .rodape, .aparelho) :focus-visible { outline-color: var(--nude); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute; left: var(--lateral); top: 8px; z-index: 20;
  padding: 12px 16px;
  background: var(--bordo); color: var(--nude);
  font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.pular:focus { transform: none; color: var(--nude); }

.faixa {
  width: 100%;
  max-width: var(--largura);
  margin-left: auto; margin-right: auto;
  padding-left: var(--lateral); padding-right: var(--lateral);
}

.rotulo {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rotulo);
}
.inteiro { white-space: nowrap; }

/* ------------------------------------------------------------ marca */

/* O wordmark nunca fica abaixo de 80 px de largura (prancha Versões): a 36 px
   ele mede cerca de 84 px. */
.marca {
  font-family: var(--marca);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 36px;
  line-height: 1;
  color: var(--bordo);
  text-decoration: none;
}
.ponto { color: var(--rose); }
a.marca { display: inline-flex; align-items: center; min-height: 44px; }
a.marca:hover { color: var(--bordo); }

/* ------------------------------------------------------------ botões */

/* D: retângulo em caixa alta, com o "››" do desenho novo. */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 0 32px;
  border: 0; border-radius: 0;
  background: var(--bordo);
  color: var(--nude);
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.botao:hover { background: var(--grafite); color: var(--nude); }
.avanco { letter-spacing: 0; }
/* No menu, o D no corpo de toque pequeno (o mesmo corte do app). */
/* O do menu fixo é secundário (25/11): contorno, para o herói ter um D só. */
.botao--topo { min-height: 44px; padding: 0 19px; background: transparent; color: var(--bordo); border: 1px solid var(--bordo); }
.botao--topo:hover { background: var(--bordo); color: var(--nude); }
/* Sobre bordô, o D do modo noite: fundo nude, texto bordô. */
.botao--noite { background: var(--nude); color: var(--bordo); }
.botao--noite:hover { background: var(--sobre-bordo); color: var(--bordo); }

/* C: link com fio. */
.link-fio {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0;
  border-bottom: .5px solid var(--rose);
  color: var(--bordo);
  font-size: 16px;
  line-height: 28px;
  text-decoration: none;
}
.link-fio:hover { color: var(--rotulo); }
.seta { flex: none; }

/* ------------------------------------------------------------ menu */

/* Fixo no alto, em nude cheio (sem vidro fosco) e com o fio bordô embaixo. */
.menu {
  position: sticky; top: 0; z-index: 10;
  background: var(--nude);
  border-bottom: .5px solid var(--bordo);
}
.menu-dentro {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--menu);
}
.menu-marca { display: flex; align-items: center; gap: 16px; min-width: 0; }
.edicao {
  padding-left: 16px;
  border-left: .5px solid var(--rose);
  font-size: 13px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rotulo);
  white-space: nowrap;
}
.menu-nav { display: flex; align-items: center; gap: 32px; }

/* A página de "não achei" (servidor.js) usa só a marca no alto. */
.topo { display: flex; align-items: center; padding-top: 28px; padding-bottom: 8px; }

/* ------------------------------------------------------------ herói */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--vao-hero);
  padding-top: 24px; padding-bottom: 64px;
}
.hero-texto {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  min-width: 0;
  container-type: inline-size;
}
.hero-corpo { display: flex; flex-direction: column; gap: 26px; }
/* O título acompanha a largura da coluna, não a da tela. As quebras seguem
   a frase: "no seu horário," e "com gente" não se separam. A linha mais
   longa, "com gente da sua idade", mede 7,72 vezes o corpo: com 11% da
   coluna, ela ocupa 85%. */
.hero h1 {
  font-family: var(--serifa);
  font-weight: 400;
  font-size: clamp(32px, 11cqi, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 500px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--corrido);
  text-wrap: pretty;
}
.hero-acoes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding-top: 8px;
}

/* A foto de uso: três amigas olhando a lista do app no celular. Ocupa a
   altura da tela menos o menu, dentro de um teto e de um piso. */
.foto { position: relative; min-width: 0; }
.uso {
  position: relative;
  height: clamp(520px, calc(100svh - var(--menu) - 88px), 820px);
  overflow: hidden;
  background: var(--grafite);
}
.uso img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* O cartão da festa sobre a foto, como no desenho: entra no vão entre as
   colunas sem chegar ao texto. Chapado, com fio, sem sombra. */
.destaque {
  position: absolute; top: 48px; left: max(-76px, calc(16px - var(--vao-hero)));
  width: 304px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: var(--nude-claro);
  border: .5px solid var(--rose);
  color: var(--bordo);
}
.destaque-mini { font-size: 13px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--rotulo); }
.destaque-hora { padding-top: 4px; font-family: var(--serifa); font-size: 44px; line-height: 1; }
.destaque-nome { font-family: var(--serifa); font-size: 24px; line-height: 1.05; white-space: nowrap; }
.destaque-pe {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 8px; padding-top: 12px;
  border-top: .5px solid var(--rose);
}
.destaque-preco { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; color: var(--corrido); white-space: nowrap; }
.destaque-preco small { font-size: 12px; color: var(--rotulo); }
.destaque-exemplo { padding-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rotulo); }

/* ------------------------------------------------------------ fólio */

/* O fio de seção do desenho, com o nome dela e a página, como num guia. */
.corrida {
  grid-column: 1 / -1; justify-self: stretch;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px;
  border-top: .5px solid var(--bordo);
  font-size: 13px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rotulo);
}
.corrida--clara { border-top-color: var(--rotulo); color: var(--rose); }

/* ------------------------------------------------------------ demo */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(40px, 8vw, 140px); row-gap: 40px;
  align-items: start;
  padding-top: 8px; padding-bottom: 96px;
}
.demo-texto { display: flex; flex-direction: column; gap: 24px; max-width: 580px; }
.demo-texto h2, .como-texto h2 {
  font-family: var(--serifa); font-weight: 400;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.02;
  text-wrap: balance;
}
.passos { display: flex; flex-direction: column; margin: 8px 0; }
.passos button {
  width: 100%;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 0;
  border: 0; border-top: .5px solid var(--rose);
  background: none;
  color: var(--rotulo);
  text-align: left;
  cursor: pointer;
}
.passos li:last-child button { border-bottom: .5px solid var(--rose); }
.passos .n { font-family: var(--serifa); font-size: 30px; line-height: 1; }
.passos strong { display: block; font-family: var(--serifa); font-weight: 400; font-size: 26px; line-height: 1.1; }
.passos small { display: block; padding-top: 4px; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.passos button:hover, .passos button.feito { color: var(--corrido); }
.passos button.ativo { color: var(--bordo); }
.demo-reinicia {
  display: none;
  align-self: flex-start;
  padding: 8px 0;
  border: 0; border-bottom: .5px solid var(--rose);
  background: none;
  color: var(--bordo);
  font-size: 16px; line-height: 28px;
  cursor: pointer;
}
.js .demo-reinicia { display: inline-flex; }
.demo-reinicia:hover { color: var(--rotulo); }

/* O celular da demo. Sem JavaScript, as três telas correm de lado com o
   dedo; com ele, os passos e os toques trocam a tela. */
.aparelho {
  width: 340px; max-width: 100%;
  padding: 12px;
  border-radius: 52px;
  background: var(--grafite);
}
.aparelho-tela {
  position: relative;
  height: min(620px, calc(100svh - 140px)); min-height: 540px;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bordo);
}
.aparelho-tela::before {
  content: '';
  position: absolute; top: 12px; left: 50%; z-index: 2;
  width: 96px; height: 28px; margin-left: -48px;
  border-radius: 14px;
  background: #120B0D;
}
.trilho-telas {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.trilho-telas::-webkit-scrollbar { display: none; }
.js .trilho-telas { overflow: visible; scroll-snap-type: none; }
.tela-demo {
  flex: 0 0 100%;
  display: flex; flex-direction: column; gap: 12px;
  padding: 60px 22px 24px;
  color: var(--nude);
  scroll-snap-align: start;
}
.t-marca {
  font-family: var(--marca); font-style: italic; font-weight: 300;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 26px; line-height: 1;
}
.t-titulo { font-family: var(--serifa); font-size: 34px; line-height: 1.02; }
.t-titulo i { font-style: italic; }
.t-mini { font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.t-info { font-size: 15px; line-height: 1.4; color: var(--sobre-bordo); }
.t-lista { display: flex; flex-direction: column; margin-top: 6px; }
.t-linha {
  position: relative;
  width: 100%;
  display: grid; grid-template-columns: 50px minmax(0, 1fr) 84px; gap: 10px; align-items: center;
  padding: 13px 0;
  border: 0; border-top: .5px solid var(--rotulo);
  background: none;
  color: inherit;
  text-align: left;
}
.t-linha.off { opacity: .5; }
.t-linha.alvo {
  width: calc(100% + 24px);
  margin: 0 -12px; padding: 13px 12px;
  border-top-color: transparent;
  background: var(--nude); color: var(--bordo);
  cursor: pointer;
}
.t-linha.alvo .t-info { color: var(--corrido); }
.t-linha.alvo .t-mini { color: var(--rotulo); }
.t-linha.alvo + .t-linha { border-top-color: transparent; }
.t-quando { display: flex; flex-direction: column; gap: 2px; }
.t-hora { font-family: var(--serifa); font-size: 32px; line-height: 1; }
.t-meio { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-nome { font-family: var(--serifa); font-size: 22px; line-height: 1.05; }
.t-preco { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.t-num { font-family: var(--serifa); font-size: 24px; line-height: 1; }
.t-dica { margin-top: auto; text-align: center; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.toque {
  position: absolute; right: 22%; top: 50%;
  width: 34px; height: 34px; margin: -17px -17px 0 0;
  border-radius: 50%;
  background: rgba(201, 143, 138, .55);
  display: none;
  pointer-events: none;
}
.t-voltar {
  align-self: flex-start;
  width: 44px; height: 44px; margin: -10px 0 -2px -12px;
  border: 0; background: none; color: var(--nude);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.t-voltar:hover { background: rgba(234, 220, 210, .12); }
.t-tempo {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  border-top: .5px solid var(--rotulo); border-bottom: .5px solid var(--rotulo);
}
.t-tempo > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.t-tempo > div + div { padding-left: 12px; border-left: .5px solid var(--rotulo); }
.t-tempo-hora { font-family: var(--serifa); font-size: 34px; line-height: 1; }
.t-vao { flex: 1; }
.t-botao {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  border: 0;
  background: var(--nude); color: var(--bordo);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.t-botao:hover { background: var(--sobre-bordo); color: var(--bordo); }
.t-respostas { display: flex; flex-direction: column; margin-top: 10px; }
.t-respostas li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  border-top: .5px solid var(--rotulo);
  font-size: 17px;
}
/* As respostas são fala do grupo, não botão: minúsculas, no corpo do texto. */
.t-respostas :is(.sim, .nao) {
  display: inline-flex; align-items: center;
  min-height: 30px; padding: 0 12px;
  font-size: 15px;
}
.t-respostas .sim { font-weight: 500; }
.t-respostas .sim { background: var(--nude); color: var(--bordo); }
.t-respostas .nao { border: .5px solid var(--sobre-bordo); }
.t-placar { font-family: var(--serifa); font-size: 26px; }

/* ------------------------------------------------------------ como funciona */

.como {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 72px); row-gap: 40px;
  align-items: start;
  padding-bottom: 96px;
}
.figura { display: flex; flex-direction: column; gap: 12px; }
.figura img { width: 100%; height: auto; }
.figura figcaption { font-family: var(--serifa); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--rotulo); text-wrap: pretty; }
.como-texto { display: contents; }
.como-texto h2 { grid-column: 1 / -1; grid-row: 2; }
.figura { grid-column: 1; grid-row: 3; }
.pilares { grid-column: 2; grid-row: 3; }
.pilares { display: flex; flex-direction: column; gap: 32px; }
.pilar {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px;
  border-top: .5px solid var(--bordo);
}
.pilar h3 { font-family: var(--serifa); font-weight: 400; font-size: 32px; line-height: 1.05; }
.pilar p { font-size: 18px; line-height: 1.6; color: var(--corrido); text-wrap: pretty; }

/* ------------------------------------------------------------ manifesto e Instagram */

.final { background: var(--bordo); color: var(--nude); }
.final-corrida { padding-top: 40px; }
.final-dentro {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 64px; align-items: start;
  padding-top: 96px; padding-bottom: 96px;
}
.manifesto-assinatura { font-family: var(--serifa); font-size: clamp(44px, 5.4vw, 76px); line-height: 1; }
/* Só o span do HTML: as linhas e palavras que o movimento cria não pegam o rosé. */
.manifesto-assinatura span:not(.mov-linha, .mov-linha-in, .mov-pal) { color: var(--rose); }
.manifesto-texto { max-width: 460px; margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--sobre-bordo); text-wrap: pretty; }
.insta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.insta .rotulo { color: var(--rose); }
.insta h2 { font-family: var(--serifa); font-weight: 400; font-size: 32px; line-height: 1.05; text-wrap: balance; }
.insta-arroba { font-family: var(--serifa); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--nude); text-decoration: none; }
.insta-arroba:hover { color: var(--sobre-bordo); }
.insta-texto { font-size: 18px; line-height: 1.6; color: var(--sobre-bordo); }
/* A lista de e-mails: o campo com fio sobre o bordô e o D do modo noite. */
/* Só o campo e o botão, sem texto legal embaixo (25/11, como fazem Meio,
   Substack e Stripe Press: a saída mora no link de cada e-mail). */
.lista { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px 16px; width: 100%; max-width: 560px; margin-top: 8px; }
.lista-campo {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0;
  border: 0; border-bottom: .5px solid var(--rose); border-radius: 0;
  background: transparent; color: var(--nude);
  font-family: var(--sans); font-size: 18px;
}
.lista-campo::placeholder { color: var(--rose); opacity: 1; }
.lista-campo:focus { outline: none; border-bottom: 1.5px solid var(--nude); }
.lista .botao { flex: none; }
.lista-campo[aria-invalid="true"] { border-bottom: 1.5px solid var(--nude); }
.lista-status { flex-basis: 100%; font-size: 16px; line-height: 1.5; color: var(--nude); }
.lista .botao:disabled { background: transparent; color: var(--sobre-bordo); outline: .5px solid var(--rose); outline-offset: -.5px; cursor: progress; }
.lista-outro { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 4px; text-decoration-color: var(--rose); }
.lista-outro:hover { color: var(--nude); }
.lista-status:empty { display: none; }
.lista.feita .lista-campo, .lista.feita .botao { display: none; }
/* Depois do "Quero receber": a frase e o "Usar outro e-mail", que devolve o campo. */
.lista-outro { display: none; }
.lista.feita .lista-outro { display: inline-block; min-height: 44px; }
.lista-status:focus { outline: none; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.insta-rede { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; margin-top: 20px; padding-top: 28px; border-top: .5px solid var(--rose); }
.insta-rede .insta-arroba { font-size: 32px; }
@media (max-width: 560px) { .lista .botao { width: 100%; } }

/* ------------------------------------------------------------ rodapé */

.rodape { background: var(--bordo); color: var(--nude); }
.rodape-dentro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-bottom: 32px; }
/* O fio do rodapé vai da margem de conteúdo à margem de conteúdo. */
.rodape-dentro::before {
  content: '';
  flex-basis: 100%;
  border-top: .5px solid var(--rotulo);
  margin-bottom: 8px;
  transform-origin: left center;
}
.marca--rodape { color: var(--nude); }
.rodape-nota { flex-basis: 100%; font-size: 14px; color: var(--sobre-bordo); }

/* ------------------------------------------------------------ telas */

@media (min-width: 900px) {
  .final-dentro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}


/* Numa coluna: o texto do herói em cima, a foto embaixo no 4 por 5, e o
   cartão logo abaixo dela, subindo só sobre a barra de baixo da foto, sem
   cobrir o celular. */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-bottom: 80px; }
  .uso { height: auto; aspect-ratio: 4 / 5; }
  .destaque { position: relative; top: auto; left: auto; width: auto; max-width: 420px; margin: -56px 16px 0; }
  /* O celular da demo logo depois do título: quem toca um passo vê a tela mudar. */
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: stretch; padding-bottom: 88px; }
  .demo-texto { display: contents; }
  .demo-texto h2 { order: 1; }
  .aparelho { order: 2; justify-self: center; }
  .passos { order: 3; margin: 0; }
  .demo-reinicia { order: 4; margin-top: -16px; justify-self: start; }
  .como { grid-template-columns: minmax(0, 1fr); padding-bottom: 88px; }
  .como-texto h2, .figura, .pilares { grid-column: 1; grid-row: auto; }
  .como .corrida { order: -2; }
  .como-texto h2 { order: -1; }
}

@media (max-width: 760px) {
  .edicao { display: none; }
}

@media (max-width: 560px) {
  :root { --menu: 64px; }
  .hero { padding-top: 16px; }
  .hero-texto { gap: 24px; }
  .hero-corpo { gap: 20px; }
  .hero-lead { font-size: 18px; }
  .hero-acoes .botao { width: 100%; }
  .demo-texto h2, .como-texto h2 { font-size: min(36px, 9vw); }
  .passos strong { font-size: 24px; }
  .passos small { font-size: 16px; }
  .pilar h3 { font-size: 28px; }
  .final-dentro { padding-top: 64px; padding-bottom: 72px; gap: 56px; }
  .passos button { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 380px) {
  .botao--topo { padding: 0 14px; letter-spacing: .12em; }
  .aparelho { padding: 10px; border-radius: 48px; }
  .aparelho-tela { border-radius: 38px; }
  .tela-demo { padding-left: 18px; padding-right: 18px; }
  .t-linha { grid-template-columns: 42px minmax(0, 1fr) 78px; }
}

/* O D só baixa para 44 px em tela pequena, no mesmo corte do app. */
@media (max-width: 359px), (max-height: 640px) {
  .botao { min-height: 44px; }
}

/* ------------------------------------------------------------ movimento */

/* O movimento revela a ordem da página, responde ao toque e deixa a hora do
   cartão chegar depois da foto. Só transform, opacity e clip-path: nada mexe
   no layout. O estado final é o CSS de cima. O landing.js põe .mov na raiz
   antes da primeira pintura, e só com ela o que vai entrar fica escondido;
   cada bloco ganha .ja quando chega à tela e .fim quando parou. Sem
   JavaScript ou com movimento reduzido, a página aparece pronta.

   Só os títulos (a linha sobe de dentro da máscara), os fios (se desenham
   da esquerda) e as fotos (abrem de cima) se deslocam. O texto de apoio, os
   botões e os links entram só por opacidade. */

@keyframes mov-surge { from { opacity: 0; } }
@keyframes mov-linha { from { transform: translateY(1.5em); } }
@keyframes mov-fio { from { transform: scaleX(0); } }
@keyframes mov-abre { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mov-toque { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }

/* A linha do título é uma máscara um pouco maior que ela (a serifa passa da
   caixa da linha); o texto sobe de baixo dela. */
.mov-linha { display: block; clip-path: inset(-.3em -.6em -.3em -.6em); }
.mov-linha-in { display: block; }
.mov-tarde { display: inline-block; }
/* A ordem dos passos e dos pilares, para o passo de 60 ms entre eles. */
.passos li:nth-child(2), .insta > :nth-child(2) { --i: 1; }
.passos li:nth-child(3), .insta > :nth-child(3) { --i: 2; }
.insta > :nth-child(4) { --i: 3; }
.insta > :nth-child(5) { --i: 4; }

@media (prefers-reduced-motion: no-preference) {
  .mov .mov-linha-in,
  .mov .mov-tarde { animation: mov-linha var(--dur, var(--mov-titulo)) var(--mov-saida) var(--dl, 0ms) both; }

  /* Chegada: a marca, o menu e o rótulo acendem, o título sobe linha a linha
     a partir de 120 ms, e o texto e os dois botões acendem juntos com a
     segunda linha. O botão do app está pleno em 680 ms. */
  .mov body:not(.chegou) :is(.menu-marca, .menu-nav > *, .hero-texto > .rotulo, .hero h1, .hero-lead, .hero-acoes > *) { opacity: 0; }
  .mov .chegou:not(.chegou-fim) .menu-marca { animation: mov-surge var(--mov-estado) var(--mov-saida) both; }
  .mov .chegou:not(.chegou-fim) .menu-nav > * { animation: mov-surge var(--mov-estado) var(--mov-saida) var(--mov-passo) both; }
  .mov .chegou:not(.chegou-fim) .hero-texto > .rotulo { animation: mov-surge var(--mov-estado) var(--mov-saida) var(--mov-passo) both; }
  .mov .chegou:not(.chegou-fim) .hero h1:not(.partido) { animation: mov-surge var(--mov-bloco) var(--mov-saida) 120ms both; }
  .mov .chegou:not(.chegou-fim) .hero-lead { animation: mov-surge var(--mov-estado) var(--mov-saida) 300ms both; }
  .mov .chegou:not(.chegou-fim) .hero-acoes > * { animation: mov-surge var(--mov-estado) var(--mov-saida) 360ms both; }

  /* A foto abre de cima para baixo; o cartão acende depois, e a hora dele
     sobe da máscara. */
  .mov .foto:not(.ja) :is(.uso, .destaque) { opacity: 0; }
  .mov .foto.ja:not(.fim) .uso { animation: mov-abre var(--mov-titulo) var(--mov-saida) var(--base) both; }
  .mov .foto.ja:not(.fim) .destaque { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 480ms) both; }

  /* Os fólios: o fio se desenha e o nome da seção acende. */
  .mov .corrida { position: relative; border-top-color: transparent; }
  .mov .corrida::before {
    content: '';
    position: absolute; left: 0; right: 0; top: -.5px;
    border-top: .5px solid var(--bordo);
    transform-origin: left center;
  }
  .mov .corrida--clara::before { border-top-color: var(--rotulo); }
  .mov :is(.demo, .como, .final):not(.ja) .corrida::before { transform: scaleX(0); }
  .mov :is(.demo, .como, .final):not(.ja) .corrida > * { opacity: 0; }
  .mov :is(.demo, .como, .final).ja:not(.fim) .corrida::before { animation: mov-fio var(--mov-titulo) linear var(--base) both; }
  .mov :is(.demo, .como, .final).ja:not(.fim) .corrida > * { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 160ms) both; }

  /* Demo: o título sobe, os passos acendem um a um e o celular acende junto. */
  .mov .demo:not(.ja) :is(.demo-texto h2, .passos li, .demo-reinicia, .aparelho) { opacity: 0; }
  .mov .demo.ja:not(.fim) .demo-texto h2:not(.partido) { animation: mov-surge var(--mov-bloco) var(--mov-saida) calc(var(--base) + 160ms) both; }
  .mov .demo.ja:not(.fim) .passos li { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 360ms + var(--i, 0) * var(--mov-passo)) both; }
  .mov .demo.ja:not(.fim) .demo-reinicia { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 600ms) both; }
  .mov .demo.ja:not(.fim) .aparelho { animation: mov-surge var(--mov-bloco) var(--mov-saida) calc(var(--base) + 240ms) both; }

  /* As respostas do grupo chegam uma a uma na terceira tela. */
  .t-respostas li, .t-placar { transition: opacity var(--mov-estado) var(--mov-saida), transform var(--mov-estado) var(--mov-saida); }
  .mov .t-respostas li:not(.chegou) { opacity: 0; transform: translateY(6px); }
  .mov .t-placar:not(.chegou) { opacity: 0; }
  /* O toque que pede o dedo: pulsa algumas vezes e para. */
  .js .tela-demo.ativa .toque { display: block; animation: mov-toque 1.6s ease-out 600ms 6 both; }
  .js .trilho-telas { transition: transform var(--mov-bloco) var(--mov-troca); }

  /* Como funciona: a foto abre, o título sobe, e cada pilar desenha o fio. */
  .mov .como:not(.ja) :is(.figura img, .figura figcaption, .como-texto h2) { opacity: 0; }
  .mov .como.ja:not(.fim) .figura img { animation: mov-abre var(--mov-titulo) var(--mov-saida) calc(var(--base) + 160ms) both; }
  .mov .como.ja:not(.fim) .figura figcaption { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 900ms) both; }
  .mov .como.ja:not(.fim) .como-texto h2:not(.partido) { animation: mov-surge var(--mov-bloco) var(--mov-saida) calc(var(--base) + 240ms) both; }

  .mov .pilar { position: relative; border-top-color: transparent; }
  .mov .pilar::before {
    content: '';
    position: absolute; left: 0; right: 0; top: -.5px;
    border-top: .5px solid var(--bordo);
    transform-origin: left center;
  }
  .mov .pilar:not(.ja)::before { transform: scaleX(0); }
  .mov .pilar:not(.ja) > * { opacity: 0; }
  .mov .pilar.ja:not(.fim)::before { animation: mov-fio var(--mov-titulo) linear var(--base) both; }
  .mov .pilar.ja:not(.fim) h3:not(.partido) { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 160ms) both; }
  .mov .pilar.ja:not(.fim) p { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 360ms) both; }

  /* Manifesto: "still going out." sobe e "just differently." chega depois;
     o Instagram acende em ordem. */
  .mov .final:not(.ja) :is(.manifesto-assinatura, .manifesto-texto, .insta > *) { opacity: 0; }
  .mov .final.ja:not(.fim) .manifesto-assinatura:not(.partido) { animation: mov-surge var(--mov-bloco) var(--mov-saida) var(--base) both; }
  .mov .final.ja:not(.fim) .manifesto-texto { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 600ms) both; }
  .mov .final.ja:not(.fim) .insta > * { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 720ms + var(--i, 0) * var(--mov-passo)) both; }

  .mov .rodape:not(.ja) .rodape-dentro::before { transform: scaleX(0); }
  .mov .rodape:not(.ja) .rodape-dentro > * { opacity: 0; }
  .mov .rodape.ja:not(.fim) .rodape-dentro::before { animation: mov-fio var(--mov-titulo) linear var(--base) both; }
  .mov .rodape.ja:not(.fim) .rodape-dentro > * { animation: mov-surge var(--mov-estado) var(--mov-saida) calc(var(--base) + 300ms) both; }
  .mov .rodape.ja:not(.fim) .rodape-nota { animation-delay: calc(var(--base) + 420ms); }

  /* Resposta ao toque. O D muda de fundo e cede um pouco sob o dedo; a seta
     do C e o "››" do D andam. O foco chega de fora e fecha no lugar. */
  :where(a, button) {
    outline-offset: 8px;
    transition: outline-offset var(--mov-toque) var(--mov-saida), color var(--mov-toque) var(--mov-troca);
  }
  :is(.botao, .t-botao) {
    transition:
      background-color var(--mov-toque) var(--mov-troca),
      transform var(--mov-toque) var(--mov-saida),
      outline-offset var(--mov-toque) var(--mov-saida);
  }
  .botao:active:not(:disabled) { transform: scale(var(--mov-toque-escala)); }
  .t-botao:active { transform: scale(var(--mov-toque-escala)); }
  .avanco, .link-fio .seta { display: inline-block; transition: transform var(--mov-toque) var(--mov-saida); }
  .botao:hover .avanco, .link-fio:hover .seta, .link-fio:focus-visible .seta { transform: translateX(4px); }
  .link-fio:active .seta { transform: translateX(7px); }
  .pular { transition: transform var(--mov-estado) var(--mov-saida); }
}

/* Movimento reduzido: nada se desloca, nada pisca. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: color, background-color !important; }
}
