/* ==========================================================================
   PsicoAPG — site de apresentação
   --------------------------------------------------------------------------
   Um fio atravessa a página: nasce embolado na abertura, desce pela seção
   "um dia de consultório" conforme a pessoa rola e pousa no fecho. É o mesmo
   desenho da tela de entrada do sistema.

   Toda animação parte do estado final como repouso: sem JavaScript, ou com
   movimento reduzido, a página aparece inteira e parada.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('fontes/fraunces-latin-soft-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fontes/fraunces-latin-soft-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fontes/geist-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fontes/geist-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fontes/geist-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --azul: #2472e8;
  --azul-forte: #1b62d0;
  --azul-claro: #6a9df2;
  --noite: #0f2244;
  --papel: #f7faff;
  --nevoa: #e8f1ff;
  --linha: #dbe4f3;
  --pessego: #ffe3c9;
  --pessego-tinta: #a4480a;
  --grafite: #1c2024;
  --suave: #56607a;
  --verde: #0d8a7a;
  --verde-claro: #dff5f0;

  --titulo: 'Fraunces', Georgia, serif;
  --texto: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --suavidade: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sombra: 0 1px 2px rgb(15 34 68 / 6%), 0 12px 32px rgb(15 34 68 / 9%);
  --sombra-alta: 0 2px 4px rgb(15 34 68 / 6%), 0 24px 60px rgb(15 34 68 / 16%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  color: var(--grafite);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

.largura {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}
.largura.estreita {
  width: min(780px, 100% - 48px);
}
.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--noite);
  color: #fff;
}
.pular:focus {
  top: 12px;
}
.sem-quebra {
  white-space: nowrap;
}

/* ------------------------------------------------------------ tipografia */
h1,
h2 {
  font-family: var(--titulo);
  font-variation-settings: 'SOFT' 100;
  font-weight: 460;
  letter-spacing: -0.022em;
  color: var(--noite);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.03;
}
h2 {
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  line-height: 1.08;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--azul);
}
h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--noite);
}
.sobrelinha,
.rotulo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--azul);
}
/* ---------------------------------------------------------------- botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1.5px solid var(--azul);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--azul);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--suavidade),
    box-shadow 0.2s;
}
.botao:hover {
  background: var(--azul-forte);
  border-color: var(--azul-forte);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(36 114 232 / 28%);
}
.botao:active {
  transform: translateY(0) scale(0.98);
}
.botao.vazado {
  background: transparent;
  color: var(--azul-forte);
  border-color: #b0cdfd;
}
.botao.vazado:hover {
  background: var(--nevoa);
  border-color: var(--azul);
  box-shadow: none;
}
.botao.grande {
  padding: 15px 26px;
  font-size: 1.02rem;
}
.botao.largo {
  width: 100%;
}
.botao.claro {
  background: #fff;
  border-color: #fff;
  color: var(--azul-forte);
}
.botao.claro:hover {
  background: var(--nevoa);
  border-color: var(--nevoa);
  box-shadow: 0 10px 30px rgb(8 20 44 / 30%);
}

/* ------------------------------------------------------------------ topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(247 250 255 / 82%);
  backdrop-filter: blur(14px);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.topo.rolou {
  border-color: var(--linha);
  box-shadow: 0 6px 24px rgb(15 34 68 / 6%);
}
.topo-linha {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--noite);
}
.marca svg {
  width: 32px;
  height: 32px;
}
.marca b {
  font-weight: 600;
  color: var(--azul);
}
.topo-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.topo-nav a,
.link-entrar {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--suave);
  transition: color 0.2s;
}
.topo-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--suavidade);
}
.topo-nav a:hover,
.link-entrar:hover {
  color: var(--noite);
}
.topo-nav a:hover::after {
  transform: scaleX(1);
}
.topo-acoes {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* -------------------------------------------------------------- abertura */
.abertura {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px);
}
.abertura-manchas span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: deriva 11s ease-in-out infinite alternate;
}
.abertura-manchas span:nth-child(1) {
  top: -18vmax;
  left: -12vmax;
  width: 44vmax;
  height: 44vmax;
  background: #d9e8ff;
}
.abertura-manchas span:nth-child(2) {
  right: -14vmax;
  bottom: -22vmax;
  width: 40vmax;
  height: 40vmax;
  background: #ffefdc;
  animation-duration: 14s;
  animation-direction: alternate-reverse;
}
.abertura-manchas span:nth-child(3) {
  top: 12%;
  right: 22%;
  width: 22vmax;
  height: 22vmax;
  background: #e6f6f3;
  animation-duration: 17s;
}
.abertura-grade {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.abertura-texto > * {
  animation: sobe 0.9s var(--suavidade) both;
}
.abertura-texto > :nth-child(2) {
  animation-delay: 0.08s;
}
.abertura-texto > :nth-child(3) {
  animation-delay: 0.18s;
}
.abertura-texto > :nth-child(4) {
  animation-delay: 0.28s;
}
.abertura-texto > :nth-child(5) {
  animation-delay: 0.38s;
}
.abertura h1 {
  margin-top: 18px;
}
.abertura-sub {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.14rem;
  color: var(--suave);
}
.abertura-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.abertura-garantias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--suave);
}
.abertura-garantias li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.abertura-garantias li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azul);
}

.abertura-cena {
  position: relative;
  padding-bottom: 28px;
}
.fio-abertura {
  width: 100%;
  height: auto;
  margin-bottom: -34px;
  overflow: visible;
}
.fio-abertura path,
.fecho-fio path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.fio-abertura path {
  animation: desenha 2.6s cubic-bezier(0.5, 0.05, 0.25, 1) 0.3s both;
}
.ponto,
.respiro {
  fill: var(--azul);
  transform-box: fill-box;
  transform-origin: center;
}
.fio-abertura .ponto {
  animation: pousa 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 2.7s both;
}
.respiro {
  opacity: 0;
  animation: respira 2.8s ease-out 3s infinite;
}
.respiro.dois {
  animation-delay: 4.4s;
}

.janela {
  position: relative;
  width: min(440px, 88%);
  margin-left: 4%;
  border: 1px solid var(--linha);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sombra-alta);
  animation: sobe 1s var(--suavidade) 0.5s both;
}
.janela-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--linha);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--suave);
}
.janela-barra i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--linha);
}
.janela-barra span {
  margin-left: 8px;
}
.janela-corpo {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.sessao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.3;
  background: #fff;
}
.sessao time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--noite);
}
.sessao div {
  flex: 1;
  min-width: 0;
}
.sessao strong {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sessao small,
.flutua small,
.demo small {
  display: block;
  font-size: 0.76rem;
  color: var(--suave);
}
.sessao.nova {
  animation: entra-sessao 0.8s var(--suavidade) 2.2s both;
}
.pilula {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eef0f4;
  color: var(--suave);
}
.pilula.ok {
  background: var(--verde-claro);
  color: var(--verde);
}
.pilula.azul {
  background: var(--nevoa);
  color: var(--azul-forte);
}
/* A confirmação chegando: a mesma pílula troca de texto e de cor em laço. */
.pilula.troca {
  display: grid;
  animation: pilula-cor 9s ease-in-out 3s infinite both;
}
.pilula.troca b {
  grid-area: 1 / 1;
  font-weight: 600;
  text-align: center;
}
.pilula.troca b:first-child {
  opacity: 0;
  animation: troca-a 9s ease-in-out 3s infinite both;
}
.pilula.troca b:last-child {
  animation: troca-b 9s ease-in-out 3s infinite both;
}

.flutua {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--linha);
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.3;
  background: #fff;
  box-shadow: var(--sombra);
}
.flutua strong {
  display: block;
  color: var(--noite);
}
.flutua.recibo {
  right: 0;
  bottom: 0;
  animation:
    sobe 0.8s var(--suavidade) 3.2s both,
    boia 6s ease-in-out 4s infinite alternate;
}
.flutua.recibo svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  fill: none;
  stroke: var(--verde);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--verde-claro);
}
.flutua.resumo {
  top: 34%;
  right: -6px;
  display: block;
  animation:
    sobe 0.8s var(--suavidade) 1.4s both,
    boia 7s ease-in-out 2.2s infinite alternate-reverse;
}
.flutua.resumo strong {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--verde);
}

/* ---------------------------------------------------------------- seções */
.secao {
  padding: clamp(48px, 6.5vw, 84px) 0;
}
.cabeca {
  max-width: 720px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.cabeca h2 {
  margin-top: 14px;
}
.cabeca > p:last-child:not(.sobrelinha) {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--suave);
}

/* O conteúdo só começa escondido quando o script confirmou que vai revelá-lo. */
.js .revela {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--suavidade),
    transform 0.8s var(--suavidade);
  transition-delay: var(--atraso, 0s);
}
.js .revela.visivel {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- para quem */
.para-quem {
  padding-top: 0;
}
.duplas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cartao-publico {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--linha);
  border-radius: 22px;
  background: #fff;
  transition:
    opacity 0.8s var(--suavidade),
    transform 0.4s var(--suavidade),
    box-shadow 0.4s,
    border-color 0.4s !important;
}
.cartao-publico:hover {
  border-color: #b0cdfd;
  box-shadow: var(--sombra);
  transform: translateY(-4px) !important;
}
.cartao-publico + .cartao-publico {
  --atraso: 0.12s;
}
.icone-publico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--nevoa);
}
.icone-publico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartao-publico h3 {
  font-size: 1.3rem;
}
.cartao-publico p {
  margin-top: 10px;
  color: var(--suave);
}
.cartao-publico a {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--azul-forte);
}
.cartao-publico a span {
  display: inline-block;
  transition: transform 0.3s var(--suavidade);
}
.cartao-publico a:hover span {
  transform: translateX(5px);
}

/* ----------------------------------------------------------------- o dia */
.dia {
  background: linear-gradient(#fff, var(--papel));
  border-top: 1px solid var(--linha);
}
.trilha {
  position: relative;
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}
/* O fio da seção: o script escreve o traçado conforme a altura real e
 * desenha a tinta azul conforme a rolagem. */
.trilha-fio {
  position: absolute;
  top: 0;
  left: calc(50% - 40px);
  width: 80px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trilha-fio path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.trilha-fundo {
  stroke: var(--linha);
}
.trilha-tinta {
  stroke: var(--azul);
}
.momento {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
}
.momento-marco {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
}
.momento-marco span {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--suave);
  background: #fff;
  transition:
    color 0.4s,
    border-color 0.4s,
    background 0.4s,
    transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.4s;
}
.momento.aceso .momento-marco span {
  border-color: var(--azul);
  color: #fff;
  background: var(--azul);
  transform: scale(1.08);
  box-shadow: 0 0 0 7px rgb(36 114 232 / 12%);
}
.momento-texto {
  grid-column: 1;
  grid-row: 1;
  padding-right: clamp(0px, 3vw, 40px);
}
.momento-cena {
  grid-column: 3;
  grid-row: 1;
  --atraso: 0.12s;
}
.momento.invertido .momento-texto {
  grid-column: 3;
  padding-right: 0;
  padding-left: clamp(0px, 3vw, 40px);
}
.momento.invertido .momento-cena {
  grid-column: 1;
}
.momento-texto h3 {
  margin-top: 12px;
  font-family: var(--titulo);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 460;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.momento-texto > p:not(.rotulo) {
  margin-top: 14px;
  color: var(--suave);
}
.lista-marcada {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}
.lista-marcada li {
  display: flex;
  gap: 10px;
}
.lista-marcada li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--nevoa)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.7 2.7L13 6.5' fill='none' stroke='%232472e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

/* As quatro cenas: telas pequenas do sistema montadas em HTML. */
.demo {
  padding: 20px;
  border: 1px solid var(--linha);
  border-radius: 20px;
  font-size: 0.86rem;
  line-height: 1.35;
  background: #fff;
  box-shadow: var(--sombra);
}
.demo strong {
  font-weight: 600;
  color: var(--noite);
}
.demo-titulo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--noite);
}
.demo-titulo span {
  font-weight: 400;
  color: var(--suave);
}

.grade {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 34px;
  gap: 6px;
}
.grade b {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--suave);
}
.grade i {
  font-style: normal;
}
.bloco {
  grid-column: var(--c);
  grid-row: calc(var(--l) + 1);
  padding: 7px 8px;
  border-left: 3px solid #9aa3b5;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--noite);
  background: #eef0f4;
  transition:
    opacity 0.5s var(--suavidade),
    transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
  transition-delay: calc(0.25s + var(--n) * 80ms);
}
.bloco.verde {
  border-color: var(--verde);
  background: var(--verde-claro);
}
.bloco.azul {
  border-color: var(--azul);
  background: var(--nevoa);
}
.almoco {
  grid-column: 1 / -1;
  grid-row: calc(var(--l) + 1);
  display: grid;
  place-items: center;
  border: 1px dashed #c3cde0;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--suave);
  background: repeating-linear-gradient(135deg, #f4f6fa 0 8px, #fff 8px 16px);
}
.demo-aviso {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--pessego-tinta);
  background: var(--pessego);
  transition:
    opacity 0.6s,
    transform 0.6s var(--suavidade);
  transition-delay: 2.4s;
}
.js .momento-cena:not(.visivel) .bloco {
  opacity: 0;
  transform: scale(0.7);
}
.js .momento-cena:not(.visivel) .demo-aviso {
  opacity: 0;
  transform: translateY(8px);
}
/* O conflito: Bruno aparece em cima da sessão da Helena, treme e vai para
 * o horário livre — o repouso do bloco já é o lugar certo. */
.js .momento-cena.visivel .bloco.conflito {
  animation: resolve-conflito 1.5s var(--suavidade) 1.2s both;
}

.paciente {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linha);
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 600;
  color: var(--azul-forte);
  background: var(--nevoa);
}
.linha-tempo {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding-left: 18px;
}
.linha-tempo::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 2px;
  border-radius: 2px;
  background: var(--linha);
  transform-origin: top;
  transition: transform 1.2s var(--suavidade) 0.2s;
}
.linha-tempo li {
  position: relative;
  transition:
    opacity 0.6s var(--suavidade),
    transform 0.6s var(--suavidade);
  transition-delay: calc(0.35s + var(--n) * 0.22s);
}
.linha-tempo li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -19px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--azul);
  border-radius: 50%;
  background: #fff;
}
.linha-tempo time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--suave);
}
.linha-tempo p {
  color: var(--suave);
}
.linha-tempo b {
  font-weight: 600;
  color: var(--noite);
}
.digitando {
  padding: 10px 12px;
  border: 1.5px solid var(--azul);
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgb(36 114 232 / 10%);
}
.digitando span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--azul);
}
.js .momento-cena:not(.visivel) .linha-tempo::before {
  transform: scaleY(0);
}
.js .momento-cena:not(.visivel) .linha-tempo li {
  opacity: 0;
  transform: translateX(-10px);
}
.js .momento-cena:not(.visivel) .digitando span {
  max-width: 0;
}
.js .momento-cena.visivel .digitando span {
  animation:
    digita 2.6s steps(46) 1.2s both,
    cursor 0.9s step-end infinite;
}

.demo-sessao {
  display: grid;
  gap: 10px;
}
.passo,
.folha {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--linha);
  border-radius: 12px;
}
.caixa {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--azul);
  border-radius: 7px;
  background: var(--azul)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.3l3 3L13.5 6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    background-size 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
  transition-delay: calc(0.6s + var(--n) * 0.6s);
}
.passo strong {
  display: block;
}
.folha {
  border-color: transparent;
  background: var(--nevoa);
  transition:
    opacity 0.6s,
    transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1);
  transition-delay: 2.5s;
}
.folha svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  stroke: var(--azul);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .momento-cena:not(.visivel) .caixa {
  border-color: #c3cde0;
  background-color: #fff;
  background-size: 0;
}
.js .momento-cena:not(.visivel) .folha {
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
}

.numeros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.numeros div {
  padding: 14px;
  border: 1px solid var(--linha);
  border-radius: 12px;
}
.numeros strong {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--verde);
}
.numeros strong.alerta {
  color: #c2570c;
}
.barras {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
  height: 150px;
  margin-top: 18px;
  padding: 0 6px 22px;
  border-bottom: 1px solid var(--linha);
}
.barras i {
  position: relative;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: #c7dcff;
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.3, 1.25, 0.5, 1);
  transition-delay: calc(0.3s + var(--n) * 0.12s);
}
.barras i.atual {
  background: var(--azul);
}
.barras span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  font-size: 0.72rem;
  font-style: normal;
  text-align: center;
  color: var(--suave);
}
.js .momento-cena:not(.visivel) .barras i {
  transform: scaleY(0);
}

/* ------------------------------------------------------- funcionalidades */
/* Seis áreas em abas: a lista à esquerda escolhe, o painel à direita mostra.
 * O marcador escuro desliza até a aba escolhida (posição vinda do script). */
.vitrine {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.abas {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--linha);
  border-radius: 22px;
  background: #fff;
}
.abas-marcador {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--larg, 0);
  height: var(--alt, 0);
  border-radius: 14px;
  background: var(--noite);
  box-shadow: 0 8px 20px rgb(15 34 68 / 22%);
  transform: translate(var(--x, 0), var(--y, 0));
  transition:
    transform 0.5s var(--suavidade),
    width 0.5s var(--suavidade),
    height 0.5s var(--suavidade);
}
.abas button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  color: var(--suave);
  background: none;
  cursor: pointer;
  transition: color 0.3s;
}
.abas button:hover {
  color: var(--noite);
}
.abas button svg,
.painel-icone svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.abas button small {
  min-width: 26px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--azul-forte);
  background: var(--nevoa);
  transition:
    color 0.3s,
    background 0.3s;
}
.abas button[aria-selected='true'] {
  color: #fff;
}
.abas button[aria-selected='true'] small {
  color: #fff;
  background: rgb(255 255 255 / 16%);
}
html:not(.js) .abas-marcador {
  display: none;
}
html:not(.js) .abas button[aria-selected='true'] {
  background: var(--noite);
}
html:not(.js) .painel[hidden] {
  display: block;
  margin-top: 32px;
}

.paineis {
  min-height: 452px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--linha);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sombra);
}
.painel-cabeca {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--linha);
  animation: surge-cartao 0.5s var(--suavidade) both;
}
.painel-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--azul);
  background: var(--nevoa);
}
.painel-icone svg {
  width: 28px;
  height: 28px;
}
.painel h3 {
  font-family: var(--titulo);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.85rem;
  font-weight: 460;
  line-height: 1.15;
}
.painel-cabeca p {
  margin-top: 2px;
  color: var(--suave);
}
.painel-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 6px;
}
/* Trocar de aba tira o painel do `hidden`, e isso sozinho reinicia a
 * animação: os itens entram em cascata a cada troca. */
.painel-lista li {
  position: relative;
  padding: 16px 0 16px 32px;
  border-bottom: 1px solid var(--linha);
  animation: surge-cartao 0.5s var(--suavidade) both;
  animation-delay: calc(0.08s + var(--i) * 45ms);
}
.painel-lista li::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nevoa)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.7 2.7L13 6.5' fill='none' stroke='%232472e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
.painel-lista h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--noite);
}
.painel-lista p {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--suave);
}

/* ---------------------------------------------------------------- planos */
.planos {
  background: #fff;
  border-block: 1px solid var(--linha);
}
.ciclo {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--nevoa);
}
.ciclo button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--suave);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.ciclo button small {
  margin-left: 6px;
  font-weight: 500;
  color: var(--verde);
}
.ciclo button[aria-pressed='true'] {
  color: var(--noite);
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 34 68 / 14%);
}
.tabela-planos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.plano {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--linha);
  border-radius: 24px;
  background: var(--papel);
}
.plano:nth-child(2) {
  --atraso: 0.1s;
}
.plano:nth-child(3) {
  --atraso: 0.2s;
}
.plano.destaque {
  border: 2px solid var(--azul);
  background: #fff;
  box-shadow: 0 24px 60px rgb(36 114 232 / 16%);
}
.plano-fita {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: var(--azul);
}
.plano h3 {
  font-family: var(--titulo);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.7rem;
  font-weight: 480;
}
.plano-para {
  min-height: 3.1em;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--suave);
}
.preco {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
  color: var(--noite);
}
.preco small {
  font-size: 1rem;
  font-weight: 600;
}
.preco strong {
  display: inline-block;
  font-family: var(--titulo);
  font-variation-settings: 'SOFT' 100;
  font-size: 3.6rem;
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.preco strong.virando {
  animation: vira-preco 0.45s var(--suavidade);
}
.preco span {
  color: var(--suave);
}
.preco-nota {
  margin: 6px 0 22px;
  font-size: 0.84rem;
  color: var(--suave);
}
.plano ul {
  display: grid;
  gap: 11px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
  font-size: 0.94rem;
}
.plano li {
  position: relative;
  padding-left: 26px;
}
.plano li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.3l3.2 3.2L14 5.8' fill='none' stroke='%232472e8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
.plano li b {
  font-weight: 600;
}
/* --------------------------------------------------------------- dúvidas */
.duvidas .cabeca {
  margin-inline: auto;
  text-align: center;
}
.perguntas {
  border-top: 1px solid var(--linha);
}
.perguntas details {
  border-bottom: 1px solid var(--linha);
}
.perguntas summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--noite);
  cursor: pointer;
  list-style: none;
}
.perguntas summary::-webkit-details-marker {
  display: none;
}
.perguntas summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nevoa)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' fill='none' stroke='%232472e8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  transition: transform 0.4s var(--suavidade);
}
.perguntas details[open] summary::after {
  transform: rotate(45deg);
}
.perguntas details p {
  max-width: 60ch;
  padding: 0 4px 24px;
  color: var(--suave);
  animation: sobe 0.5s var(--suavidade);
}

/* ----------------------------------------------------------------- fecho */
.fecho {
  padding: clamp(56px, 7vw, 88px) 0;
  color: #dbe8ff;
  background:
    radial-gradient(70% 120% at 50% 120%, #4a90ff, transparent 70%),
    var(--azul-forte);
}
.fecho-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fecho-fio {
  width: min(520px, 90%);
  height: auto;
  margin-bottom: 28px;
  overflow: visible;
}
.fecho-fio path {
  stroke: rgb(255 255 255 / 75%);
  stroke-width: 3;
  stroke-linecap: round;
}
.fecho-fio .ponto,
.fecho-fio .respiro {
  fill: #fff;
}
.js .fecho-centro:not(.visivel) .fecho-fio path {
  stroke-dashoffset: 1;
}
.js .fecho-centro.visivel .fecho-fio path {
  animation: desenha 1.8s cubic-bezier(0.5, 0.05, 0.25, 1) 0.2s both;
}
.js .fecho-centro.visivel .fecho-fio .ponto {
  animation: pousa 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 1.9s both;
}
.fecho h2 {
  color: #fff;
}
.fecho p {
  max-width: 34em;
  margin: 16px 0 32px;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------- rodapé */
.rodape {
  padding: 32px 0;
  font-size: 0.9rem;
  color: #9fb3d6;
  background: var(--noite);
}
.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.rodape .marca {
  color: #fff;
}
.rodape .marca b {
  color: #8fb8ff;
}
.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-right: auto;
}
.rodape a {
  text-decoration: none;
}
.rodape nav a:hover {
  color: #fff;
}

/* ------------------------------------------------------- pedido de teste */
/* O formulário abre num <dialog> nativo: foco preso, Esc fecha e o fundo
 * escurece sozinho. A entrada é uma animação a partir do estado aberto. */
.pedido {
  width: min(560px, 100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--grafite);
  background: #fff;
  box-shadow: 0 40px 100px rgb(8 20 44 / 40%);
  overflow-y: auto;
}
.pedido[open] {
  animation: abre-pedido 0.5s var(--suavidade);
}
.pedido::backdrop {
  background: rgb(15 34 68 / 55%);
  backdrop-filter: blur(6px);
  animation: surge-fundo 0.4s ease;
}
.pedido-form,
.pedido-pronto {
  padding: clamp(26px, 5vw, 40px);
}
.pedido-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--suave);
  background: var(--nevoa);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.3s var(--suavidade);
}
.pedido-fechar:hover {
  color: var(--noite);
  background: #d9e8ff;
  transform: rotate(90deg);
}
.pedido-fechar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.pedido h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 4.6vw, 2.2rem);
}
.pedido-sub {
  margin: 8px 0 24px;
  color: var(--suave);
}
.pedido-form > .campo,
.pedido-form > .campo-dupla {
  animation: sobe 0.5s var(--suavidade) both;
}
.pedido-form > :nth-child(5) {
  animation-delay: 0.06s;
}
.pedido-form > :nth-child(6) {
  animation-delay: 0.12s;
}
.pedido-form > :nth-child(7) {
  animation-delay: 0.18s;
}
.campo {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.campo-dupla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.campo > label,
.campo > legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--noite);
}
.campo input[type='text'],
.campo input[type='tel'],
.campo input[type='email'],
.campo select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--linha);
  border-radius: 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--grafite);
  background: var(--papel);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.campo select {
  padding-right: 40px;
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2356607a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      right 12px center / 22px no-repeat,
    var(--papel);
  cursor: pointer;
}
.campo select:invalid {
  color: var(--suave);
}
.campo input::placeholder {
  color: #9aa3b5;
}
.campo input:focus-visible,
.campo select:focus-visible {
  outline: none;
  border-color: var(--azul);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(36 114 232 / 14%);
}
.campo.invalido input:not([type='radio']),
.campo.invalido select {
  border-color: #d93025;
  animation: treme 0.35s;
}
.campo-erro {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #c5221f;
}
.escolhas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.escolhas label {
  position: relative;
  cursor: pointer;
}
.escolhas input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.escolhas span {
  display: block;
  padding: 10px 16px;
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--suave);
  background: var(--papel);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s var(--suavidade);
}
.escolhas label:hover span {
  border-color: #b0cdfd;
  color: var(--noite);
}
.escolhas input:checked + span {
  border-color: var(--azul);
  color: #fff;
  background: var(--azul);
  transform: scale(1.03);
}
.escolhas input:focus-visible + span {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}
.pedido-armadilha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pedido-falha {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #a50e0e;
  background: #fde8e6;
}
.pedido-form .botao[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.pedido-nota {
  margin-top: 14px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--suave);
}
.pedido-pronto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pedido-pronto[hidden] {
  display: none;
}
.pedido-pronto:focus {
  outline: none;
}
.pedido-pronto svg {
  width: 84px;
  height: 84px;
  margin: 12px 0 8px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pedido-pronto svg * {
  stroke-dasharray: 1;
}
.pedido-pronto circle {
  animation: desenha 0.7s cubic-bezier(0.5, 0.05, 0.25, 1) both;
}
.pedido-pronto path {
  animation: desenha 0.4s ease-out 0.6s both;
}
.pedido-pronto p {
  max-width: 30em;
  margin-top: 12px;
  color: var(--suave);
}
.pedido-pronto .pedido-demo {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--pessego-tinta);
  background: var(--pessego);
}
.pedido-pronto .botao {
  margin-top: 26px;
}

/* ------------------------------------------------------------ animações */
@keyframes abre-pedido {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}
@keyframes surge-fundo {
  from {
    opacity: 0;
  }
}
@keyframes treme {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@keyframes sobe {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes deriva {
  to {
    transform: translate3d(5vmax, 3vmax, 0) scale(1.12);
  }
}
@keyframes desenha {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes pousa {
  from {
    opacity: 0;
    transform: scale(0);
  }
}
@keyframes respira {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4.2);
  }
}
@keyframes boia {
  to {
    translate: 0 -10px;
  }
}
@keyframes entra-sessao {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
}
@keyframes pilula-cor {
  0%,
  38% {
    background: #eef0f4;
    color: var(--suave);
  }
  46%,
  100% {
    background: var(--nevoa);
    color: var(--azul-forte);
  }
}
@keyframes troca-a {
  0%,
  36% {
    opacity: 1;
    transform: none;
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes troca-b {
  0%,
  40% {
    opacity: 0;
    transform: translateY(6px);
  }
  48%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes resolve-conflito {
  0%,
  20% {
    translate: calc(-100% - 6px) -80px;
    border-color: #d93025;
    background: #fde8e6;
    box-shadow: 0 0 0 2px rgb(217 48 37 / 35%);
  }
  26%,
  38%,
  50% {
    translate: calc(-100% - 10px) -80px;
  }
  32%,
  44% {
    translate: calc(-100% - 2px) -80px;
  }
  56% {
    translate: calc(-100% - 6px) -80px;
    border-color: #d93025;
    background: #fde8e6;
    box-shadow: 0 0 0 2px rgb(217 48 37 / 35%);
  }
  100% {
    translate: 0 0;
  }
}
@keyframes digita {
  from {
    max-width: 0;
  }
}
@keyframes cursor {
  50% {
    border-color: transparent;
  }
}
@keyframes surge-cartao {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes vira-preco {
  0% {
    opacity: 0;
    transform: translateY(-0.3em);
    filter: blur(4px);
  }
}

/* ----------------------------------------------------------- telas menores */
@media (max-width: 1020px) {
  .topo-nav {
    display: none;
  }
  .topo-acoes {
    margin-left: auto;
  }
  .abertura-grade {
    grid-template-columns: minmax(0, 1fr);
  }
  .abertura-cena {
    max-width: 560px;
  }
  .tabela-planos {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
  .plano-para {
    min-height: 0;
  }
}
@media (max-width: 820px) {
  body {
    font-size: 16px;
  }
  .duplas,
  .vitrine,
  .painel-lista {
    grid-template-columns: minmax(0, 1fr);
  }
  /* As abas viram uma faixa que rola para o lado. */
  .abas {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .abas button {
    flex: none;
    padding: 10px 14px;
  }
  .abas button small {
    display: none;
  }
  .paineis {
    min-height: 0;
  }
  /* O fio vai para a margem esquerda e cada momento empilha texto e cena. */
  .trilha-fio {
    left: -6px;
    width: 44px;
  }
  .momento,
  .momento.invertido {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    row-gap: 24px;
  }
  .momento-marco {
    grid-column: 1 / -1;
    justify-items: start;
  }
  .momento .momento-texto,
  .momento.invertido .momento-texto {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }
  .momento .momento-cena,
  .momento.invertido .momento-cena {
    grid-column: 2;
    grid-row: 3;
  }
}
@media (max-width: 520px) {
  .largura,
  .largura.estreita {
    width: calc(100% - 32px);
  }
  .link-entrar {
    display: none;
  }
  .abertura-acoes .botao {
    width: 100%;
  }
  .janela {
    width: 100%;
    margin-left: 0;
  }
  .flutua.resumo {
    display: none;
  }
  .flutua.recibo {
    right: 8px;
  }
  .grade {
    gap: 4px;
  }
  .bloco {
    padding: 8px 4px;
    border-left-width: 2px;
    font-size: 0.64rem;
    text-overflow: clip;
  }
  .ciclo button small {
    display: none;
  }
  .campo-dupla {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .revela {
    opacity: 1;
    transform: none;
  }
  .pilula.troca b:first-child {
    display: none;
  }
}
