/*
 * Platono — a landing. Mármore, tinta e luz: as cores e a curva do app (mobile/src/design/tokens.ts e motion.ts).
 * A página fala em Figtree (a letra da interface do app) com um itálico de leitura (Newsreader) de acento;
 * dentro das telas do app, cada coisa tem a letra que tem no app (Fraunces na saudação, Newsreader na barra).
 * Nenhum azul; verde e vinho só onde querem dizer certo e errado.
 */

:root {
  --marmore: #fafaf7;
  --branco: #ffffff;
  --areia: #f3f1eb;
  --lateral: #f4f3ee;
  --veio: #e9e6df;
  --veio-forte: #dcd8cf;
  --pedra: #a8a39a;
  --pedra-escura: #7d786f;
  --tinta-suave: #5c5952;
  --tinta: #1b1a18;
  --tinta-veu: rgba(27, 26, 24, 0.07);
  --oliva: #66784a;
  --oliva-claro: #edf0e6;
  --vinho: #8a2e3b;
  --vinho-claro: #f5e7e9;
  --postit: #f6e7ab;

  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --leitura: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --titulo: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --letreiro: 'EB Garamond', Garamond, Georgia, serif;

  --largura: 1180px;
  --margem: clamp(16px, 4.2vw, 40px);
  --topo: 64px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo) + 8px);
  background: var(--marmore);
}

body {
  margin: 0;
  background: var(--marmore);
  color: var(--tinta);
  font: 400 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img,
video,
iframe {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--tinta);
  outline-offset: 3px;
}

::selection {
  background: var(--tinta);
  color: var(--marmore);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--marmore);
  text-decoration: none;
  font-size: 14px;
}

.pular:focus {
  top: 12px;
}

.icone {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ───────── a marca ───────── */

.marca {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tinta);
  text-decoration: none;
  border-radius: 10px;
}

.marca-simbolo {
  display: block;
  width: 25px;
  height: auto;
  fill: currentColor;
  overflow: visible;
  flex: none;
}

/* O letreiro travado na ficha: EB Garamond 500, caixa baixa, espaço aberto, os dois "o" à mão
   (as medidas de conta/Letreiro.tsx: entreletra 0,1; o "o" com 0,04 de margem, descendo 0,014). */
.letreiro {
  display: inline-flex;
  align-items: baseline;
  font: 500 23px/1.2 var(--letreiro);
  letter-spacing: 0.1em;
  color: currentColor;
}

.letreiro-o {
  display: block;
  width: auto;
  height: 0.43em;
  margin: 0 0.14em 0 0.04em;
  transform: translateY(0.014em);
  fill: currentColor;
  overflow: visible;
}

.letreiro-o.ultimo {
  margin-right: 0.04em;
}

/* o símbolo vivo: as pétalas (P.flor, em comum.js) */
.flor-todo,
.petala {
  transform-box: view-box;
}

/* ───────── botões ───────── */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 500 16px/1 var(--ui);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.18s var(--curva),
    background-color 0.18s,
    box-shadow 0.18s,
    color 0.18s;
}

.botao .icone {
  width: 18px;
  height: 18px;
}

.botao:active {
  transform: scale(0.97);
}

.botao-tinta {
  background: var(--tinta);
  color: var(--marmore);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px -14px rgba(27, 26, 24, 0.7);
}

.botao-tinta:hover {
  background: #2e2c29;
}

.botao-leve {
  background: rgba(255, 255, 255, 0.7);
  color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--veio-forte);
}

.botao-leve:hover {
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--pedra);
}

.botao-pequeno {
  height: 38px;
  padding: 0 16px;
  font-size: 14.5px;
}

/* ───────── o topo ───────── */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.topo.rolou,
.topo.aberto {
  background: rgba(250, 250, 247, 0.82);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--veio);
}

.topo-dentro {
  max-width: var(--largura);
  height: var(--topo);
  margin: 0 auto;
  padding: 0 var(--margem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.topo .marca {
  justify-self: start;
}

.topo-links {
  display: flex;
  gap: 2px;
}

.topo-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tinta-suave);
  text-decoration: none;
  transition:
    color 0.18s,
    background-color 0.18s;
}

.topo-links a:hover {
  color: var(--tinta);
  background: var(--tinta-veu);
}

.topo-acoes {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topo-entrar {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--tinta);
}

.topo-entrar:hover {
  background: var(--tinta-veu);
}

.topo-menu {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.topo-menu span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--tinta);
  transition: transform 0.3s var(--curva);
}

.topo-menu span:first-child {
  top: 16px;
}

.topo-menu span:last-child {
  top: 22.5px;
}

.topo.aberto .topo-menu span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.topo.aberto .topo-menu span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.menu {
  padding: 4px var(--margem) 22px;
  display: grid;
}

.menu[hidden] {
  display: none;
}

.menu a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--veio);
  font: 500 22px/1.2 var(--display);
  letter-spacing: -0.025em;
  color: var(--tinta);
  text-decoration: none;
}

/* ───────── a abertura ───────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(52px, 10.5vh, 116px) var(--margem) clamp(48px, 7vw, 88px);
  text-align: center;
}

/* uma luz branca atrás da vitrine, e o papel quadriculado do quadro, sumindo para as bordas */
.hero-luz {
  position: absolute;
  inset: calc(-1 * var(--topo)) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 70%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(rgba(27, 26, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.045) 1px, transparent 1px);
  background-size:
    100% 100%,
    48px 48px,
    48px 48px;
  background-position:
    0 0,
    calc(50% + 24px) 0,
    calc(50% + 24px) 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 20%, transparent 78%);
}

.hero-texto,
.hero-acoes,
.vitrine,
.temas {
  position: relative;
  z-index: 1;
}

.hero-titulo {
  font: 500 clamp(52px, 8vw, 108px) / 0.96 var(--display);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.palavra {
  display: inline-block;
}

.hero-sub {
  max-width: 30em;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.55;
  color: var(--tinta-suave);
  text-wrap: balance;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-nota {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--pedra-escura);
}

.botao-breve {
  margin-left: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--areia);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tinta-suave);
}

/* a entrada da abertura: as palavras do título uma a uma, o resto subindo em seguida */
.js .hero-sub,
.js .hero-acoes {
  animation: sobe 0.9s var(--curva) both;
}

.js .hero-sub {
  animation-delay: 0.55s;
}

.js .hero-acoes {
  animation-delay: 0.7s;
}

.js .palavra {
  animation: palavra 1s var(--curva) both;
  animation-delay: calc(var(--i) * 90ms + 0.15s);
}

.js .vitrine {
  animation: sobe-vitrine 1.2s var(--curva) both 0.85s;
}

@keyframes sobe {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

@keyframes palavra {
  from {
    opacity: 0;
    translate: 0 0.32em;
    filter: blur(10px);
  }
}

@keyframes sobe-vitrine {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}

/* os dois desenhos em volta do título: tinta direto no papel, sem cartão; entram e ficam */
.hero-pecas {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  max-width: 1380px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 0;
}

.peca {
  position: absolute;
  rotate: var(--giro, 0deg);
  color: var(--tinta);
  translate: 0 var(--py, 0px);
}

.js .peca {
  animation: peca-entra 1.2s var(--curva) both;
  animation-delay: var(--entra, 0.9s);
}

@keyframes peca-entra {
  from {
    opacity: 0;
  }
}

.peca-formula {
  --giro: -6deg;
  --entra: 0.9s;
  left: 6%;
  top: 272px;
  padding: 10px 14px;
}

.peca-conta {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-size: 30px;
  line-height: 1;
  color: var(--tinta-suave);
}

.peca-marcas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.peca-lua {
  --giro: 5deg;
  --entra: 1.1s;
  right: 5%;
  top: 16px;
  width: 210px;
}

.peca-desenho {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.peca-desenho .t {
  stroke: var(--tinta-suave);
}

.peca-desenho .cheio {
  fill: var(--tinta-suave);
}

/* ───────── a vitrine: o app de verdade, no tamanho de verdade ─────────
 * Nada é encolhido nem inclinado (uma janela encolhida e deitada em 3D borra a letra): a janela tem a largura da
 * coluna e o app se arruma dentro dela como se arruma num navegador. */

.vitrine {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(36px, 6vh, 68px);
  text-align: left;
}

.vitrine[data-forma='celular'] {
  max-width: 340px;
}

.aparelho {
  position: relative;
  background: var(--marmore);
  overflow: hidden;
}

/* no computador: a versão web, numa janela de navegador */
.vitrine[data-forma='janela'] .aparelho {
  height: clamp(580px, 54vw, 760px);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(27, 26, 24, 0.11),
    0 2px 6px rgba(27, 26, 24, 0.04),
    0 40px 80px -40px rgba(27, 26, 24, 0.32),
    0 90px 160px -90px rgba(27, 26, 24, 0.3);
}

.navegador {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 46px;
  padding: 0 18px;
  background: #f0eee8;
  border-bottom: 1px solid #e4e1d9;
}

.navegador-luzes {
  display: flex;
  gap: 8px;
}

.navegador-luzes i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d5cc;
}

.navegador-setas {
  display: flex;
  gap: 8px;
  color: #b4afa5;
}

.navegador-setas .icone {
  width: 17px;
  height: 17px;
}

.navegador-endereco {
  flex: 0 1 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  margin: 0 auto;
  border-radius: 9px;
  background: var(--branco);
  box-shadow: 0 0 0 1px #e4e1d9;
  font-size: 13.5px;
  color: var(--tinta-suave);
}

.navegador-endereco .icone {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.navegador-folga {
  width: 104px;
}

.status,
.app-topo,
.aparelho-barra-casa,
.safari {
  display: none;
}

/* no celular, a versão web no Safari: a barra de endereço flutua embaixo, como no iOS */
.vitrine[data-forma='celular'] .safari {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  display: flex;
  justify-content: center;
}

.safari-endereco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(27, 26, 24, 0.08),
    0 10px 24px -14px rgba(27, 26, 24, 0.35);
  font-size: 15px;
  color: var(--tinta);
}

.safari-endereco .icone {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.app {
  display: flex;
  height: calc(100% - 46px);
  font-family: var(--ui);
  color: var(--tinta);
}

/* a barra lateral da versão web (mobile/src/web/Lateral.tsx) */
.app-lateral {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 252px;
  padding: 12px 10px;
  background: var(--lateral);
  border-right: 1px solid #ebe8e1;
}

.app-marca {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 16px;
}

.app-marca-simbolo {
  display: block;
  width: 21px;
  height: auto;
  fill: currentColor;
}

.app-marca .letreiro {
  font-size: 21px;
}

.app-recolher {
  margin-left: auto;
  width: 19px;
  height: 19px;
  color: var(--tinta-suave);
}

.app-menu {
  display: grid;
  gap: 1px;
}

.app-menu span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 20px;
}

.app-menu .icone {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}

.app-rotulo {
  margin: 22px 10px 6px;
  font-size: 12.5px;
  color: var(--pedra-escura);
}

/* numa janela baixa, a lista de estudos encolhe (e some num esmaecer); a conta fica sempre no pé */
.app-estudos {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

.app-estudos li {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.4s var(--curva);
}

.app-estudos li + li {
  margin-top: 1px;
}

.app-estudos li.ativo {
  background: #eae8e1;
}

.app-conta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 8px;
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--marmore);
  font-size: 13px;
  font-weight: 600;
}

.app-conta-nome {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 20px;
}

.app-conta-nome small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 16px;
  color: var(--pedra);
}

.app-principal {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* no celular: o mesmo app, no iPhone */
.vitrine[data-forma='celular'] .aparelho {
  height: 680px;
  border-radius: 52px;
  box-shadow:
    0 0 0 10px #1c1b19,
    0 0 0 11.5px #45433f,
    0 50px 90px -40px rgba(27, 26, 24, 0.55);
}

.vitrine[data-forma='celular'] .navegador,
.vitrine[data-forma='celular'] .app-lateral,
.vitrine[data-forma='celular'] .palco-aviso {
  display: none;
}

.vitrine[data-forma='celular'] .status {
  display: flex;
}

.status {
  position: relative;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 8px 28px 0 40px;
  font: 600 16px/1 var(--ui);
  letter-spacing: -0.01em;
  color: var(--tinta);
}

.status-ilha {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 112px;
  height: 33px;
  margin-left: -56px;
  border-radius: 20px;
  background: #0d0d0c;
}

.status-icones {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icones svg {
  display: block;
  height: 12px;
  width: auto;
  fill: currentColor;
}

.vitrine[data-forma='celular'] .app {
  height: calc(100% - 52px);
}

/* no celular, só a gaveta no alto, à esquerda */
.vitrine[data-forma='celular'] .app-topo {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
}

.app-topo .icone {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.vitrine[data-forma='celular'] .aparelho-barra-casa {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 126px;
  height: 5px;
  margin-left: -63px;
  border-radius: 3px;
  background: var(--tinta);
}

/* ───────── a conversa (a mesma da versão web e do iPhone) ─────────
 * As medidas do app: a barra de escrever e os começos (o chat da versão web), a fala dele
 * (gaveta/ConversaScreen.tsx), o "pensando" (lousa/Atividade.tsx) e a resposta (resposta/Markdown.tsx,
 * DesenhoNaResposta.tsx, cenas/CenaViva.tsx, PecaNaResposta.tsx). */

.palco {
  --subida: 0px;
  position: relative;
  flex: 1;
  min-height: 0;
}

.palco-fio {
  position: absolute;
  inset: 0 0 146px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 18px), transparent 100%);
}

.palco-fio-dentro {
  position: relative;
  max-width: 784px;
  margin: 0 auto;
  padding: 30px 40px 24px;
  transition:
    transform 0.7s var(--curva),
    opacity 0.4s var(--curva);
}

.palco-barra {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  max-width: 852px;
  margin: 0 auto;
  padding: 0 16px;
  transform: translateY(calc(-1 * var(--subida)));
  transition: transform 0.62s var(--curva);
}

.palco[data-estado='repouso'] .palco-barra {
  --subida: var(--subida-repouso, 200px);
  transition-duration: 0.42s;
}

.palco-saudacao {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 30px);
  text-align: center;
  transition:
    opacity 0.35s var(--curva),
    transform 0.5s var(--curva);
}

.palco-saudacao-titulo {
  font: 400 30px/38px var(--titulo);
}

.palco-saudacao-texto {
  max-width: 470px;
  margin: 10px auto 0;
  font: 400 17px/26px var(--leitura);
  color: var(--tinta-suave);
}

/* a barra de escrever: o texto em cima; embaixo, o +, o jeito da resposta ("Visual"), o microfone e a voz */
.palco-campo {
  padding: 6px 8px 7px;
  border: 1px solid var(--veio);
  border-radius: 26px;
  background: var(--branco);
  box-shadow: 0 10px 20px rgba(42, 38, 32, 0.12);
}

.palco-escrita {
  position: relative;
  height: 38px;
  padding: 7px 8px;
  overflow: hidden;
  white-space: nowrap;
  font: 400 17px/24px var(--leitura);
  color: var(--tinta);
}

.palco-dica {
  color: var(--pedra);
}

.palco-texto:not(:empty) ~ .palco-dica {
  display: none;
}

.palco-cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin: 0 1px;
  vertical-align: -0.22em;
  background: var(--tinta);
  animation: pisca 1.05s steps(1) infinite;
}

@keyframes pisca {
  50% {
    opacity: 0;
  }
}

.palco-linha {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
}

.palco-botao {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--tinta-suave);
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.18s var(--curva);
}

.palco-botao .icone {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.palco-mais .icone {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.palco-modo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font: 500 15px/20px var(--ui);
  color: var(--tinta);
}

.palco-modo .icone {
  width: 14px;
  height: 14px;
  stroke-width: 3.4;
  color: var(--tinta-suave);
}

.palco-mic {
  margin-left: auto;
}

.palco-enviar {
  color: var(--tinta);
}

.palco-enviar .icone {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.palco-seta {
  display: none !important;
}

.palco-enviar.ativo {
  background: var(--tinta);
  color: var(--branco);
}

.palco-enviar.ativo .palco-voz {
  display: none !important;
}

.palco-enviar.ativo .palco-seta {
  display: block !important;
}

.palco-enviar.aperta {
  transform: scale(0.86);
}

/* os começos, embaixo da barra */
.palco-comecos {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 14px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.35s var(--curva);
}

.palco-comecos span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--veio);
  border-radius: 999px;
  background: var(--branco);
  font: 500 14px/18px var(--ui);
  white-space: nowrap;
}

.palco-comecos .icone {
  width: 16px;
  height: 16px;
}

.palco[data-estado='conversa'] .palco-saudacao,
.palco[data-estado='conversa'] .palco-comecos {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.palco-aviso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 0 11px;
  text-align: center;
  font: 400 12px/16px var(--ui);
  color: var(--pedra);
}

/* o celular: a saudação no meio, à esquerda; os começos logo acima da barra, que fica no pé */
.vitrine[data-forma='celular'] .palco-fio {
  bottom: 186px;
}

.vitrine[data-forma='celular'] .palco-fio-dentro {
  padding: 14px 18px 18px;
}

.vitrine[data-forma='celular'] .palco-barra {
  bottom: 80px;
  padding: 0 10px;
}

.vitrine[data-forma='celular'] .palco-campo {
  border-radius: 24px;
}

.vitrine[data-forma='celular'] .palco-escrita {
  font-size: 16.5px;
}

.vitrine[data-forma='celular'] .palco-comecos {
  top: auto;
  bottom: calc(100% + 12px);
  left: 10px;
  right: 10px;
  justify-content: flex-start;
}

.vitrine[data-forma='celular'] .palco-comecos span {
  height: 34px;
  padding: 0 13px;
  font-size: 13.5px;
}

.vitrine[data-forma='celular'] .palco-saudacao {
  left: 20px;
  right: 20px;
  bottom: calc(100% + 168px);
  text-align: left;
}

.vitrine[data-forma='celular'] .palco-saudacao-titulo {
  font-size: 27px;
  line-height: 34px;
}

.vitrine[data-forma='celular'] .palco-saudacao-texto {
  margin-left: 0;
  font-size: 16px;
  line-height: 24px;
}

/* as falas */
.fala-aluno {
  width: fit-content;
  max-width: 80%;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--areia);
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.1px;
}

.fala-aluno.com-anexo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 17px 7px 7px;
}

.anexo-foto {
  position: relative;
  flex: none;
  width: 46px;
  height: 58px;
  border-radius: 10px;
  background: #fffdf8 repeating-linear-gradient(to bottom, transparent 0 7px, rgba(27, 26, 24, 0.16) 7px 8px);
  background-position: 0 9px;
  box-shadow: 0 0 0 1px var(--veio-forte);
  transform: rotate(-3deg);
}

/* "pensando": três linhas de raciocínio que se escrevem e se apagam pelo começo (lousa/Atividade.tsx, 2,3 s) */
.pensando {
  display: block;
  width: 44px;
  height: 28px;
  margin-top: 18px;
  overflow: visible;
}

.pensando path {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: 2.3s linear infinite;
}

.pensando path:nth-child(1) {
  animation-name: pensa-1;
}

.pensando path:nth-child(2) {
  animation-name: pensa-2;
}

.pensando path:nth-child(3) {
  animation-name: pensa-3;
}

@keyframes pensa-1 {
  0% {
    stroke-dashoffset: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  26%,
  82% {
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  98%,
  100% {
    stroke-dashoffset: -1;
  }
}

@keyframes pensa-2 {
  0%,
  20% {
    stroke-dashoffset: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  46%,
  82% {
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  98%,
  100% {
    stroke-dashoffset: -1;
  }
}

@keyframes pensa-3 {
  0%,
  42% {
    stroke-dashoffset: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  60%,
  82% {
    stroke-dashoffset: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  98%,
  100% {
    stroke-dashoffset: -1;
  }
}

/* a resposta: a letra do chat (17/26,5), sem caixa, direto no mármore */
.resposta {
  margin-top: 18px;
  font-size: 17px;
  line-height: 26.5px;
  letter-spacing: -0.1px;
}

.resposta > * + * {
  margin-top: 14px;
}

.resposta b {
  font-weight: 600;
}

/* as palavras presas a uma parte do desenho ou a um momento da cena (ver:): sublinhadas na cor da pedra */
.ver {
  text-decoration: underline;
  text-decoration-color: var(--pedra);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* um termo com a explicação guardada (def:): pontilhado */
.aponta {
  text-decoration: underline dotted var(--pedra);
  text-underline-offset: 4px;
}

/* uma palavra da resposta que ainda não chegou não ocupa lugar (demo.js, aparecer) */
.pal:not(.dita) {
  display: none;
}

/* "Desenhando…": o cartão calmo enquanto a peça é montada (PecaNaResposta.tsx) */
.montando {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 96px;
  padding: 2px 0;
}

.montando span {
  font: 500 13px/18px var(--ui);
  color: var(--pedra);
}

.montando i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--areia);
  animation: montando-respira 1.6s ease-in-out infinite;
}

@keyframes montando-respira {
  50% {
    opacity: 0.5;
  }
}

/* o desenho do app (as fotos de capturar-desenhos.mjs), no tamanho em que o app o põe na coluna */
.cena,
.desenho-app {
  margin-left: auto;
  margin-right: auto;
}

.cena-desenho,
.desenho-app-figura {
  position: relative;
}

.cena-desenho img,
.desenho-app-figura img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  transition: opacity 0.16s linear;
}

/* a cena que se mexe: a legenda viva e o controle (cenas/CenaViva.tsx) */
.cena-legenda {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 23px;
  letter-spacing: -0.05px;
  color: var(--tinta-suave);
}

.cena-nome {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 6px 0 -6px;
  font: 500 13px/18px var(--ui);
  color: var(--tinta-suave);
}

.cena-nome b {
  font: 500 14.5px/20px var(--ui);
  font-variant-numeric: tabular-nums;
  color: var(--tinta);
}

.cena-arrasto {
  --k: 0;
  position: relative;
  height: 44px;
}

.cena-arrasto i {
  position: absolute;
  top: 50%;
  display: block;
}

.cena-trilho,
.cena-cheio {
  left: 11px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 1.5px;
}

.cena-trilho {
  right: 11px;
  background: var(--veio);
}

.cena-cheio {
  width: calc(var(--k) * (100% - 22px));
  background: var(--tinta);
}

.cena-polegar {
  left: calc(var(--k) * (100% - 22px));
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 3px solid var(--branco);
  border-radius: 50%;
  background: var(--tinta);
}

.cena-pontas {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
  font: italic 400 13px/18px var(--ui);
  color: var(--pedra);
}

/* o pé do desenho: a legenda à esquerda e o convite da aula à direita (DesenhoNaResposta.tsx) */
.desenho-pe {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}

.desenho-pe p {
  flex: 1;
  font-size: 14.5px;
  line-height: 21px;
  letter-spacing: -0.05px;
  color: var(--tinta-suave);
}

.desenho-pe .lousa-pilula {
  margin-left: auto;
}

/* "Ver na lousa": a pílula de contorno no pé do desenho (resposta/ConviteAula.tsx) */
.lousa-pilula {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--pedra);
  border-radius: 999px;
  font: 500 13.5px/18px var(--ui);
  color: var(--tinta);
  white-space: nowrap;
}

.lousa-pilula svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a frase que fica (> [!ideia]): um risco à mão em cima e a frase na letra do título */
.ideia {
  display: grid;
  gap: 9px;
  padding-top: 6px;
}

.ideia svg {
  display: block;
  width: 34px;
  height: 8px;
  overflow: visible;
}

.ideia path {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.ideia p {
  font: 400 21px/29px var(--titulo);
  letter-spacing: -0.3px;
}

/* a tabela: o cabeçalho em negrito, um fio de tinta embaixo dele e fios claros entre as linhas */
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 21px;
  letter-spacing: 0;
}

.tabela th {
  padding: 0 14px 10px 0;
  font-weight: 600;
  text-align: left;
}

.tabela td {
  padding: 10.5px 14px 10.5px 0;
  border-top: 1px solid var(--veio);
  vertical-align: top;
}

.tabela tbody tr:first-child td {
  border-top-color: var(--tinta);
}

/* um aparte (> [!macete], > [!curiosidade]…): a bolha bege baixa, o sinal à mão e o nome em letra pequena */
.aparte {
  display: flex;
  gap: 10px;
  padding: 10px 14px 11px 12px;
  border-radius: 16px;
  background: var(--areia);
}

.aparte svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aparte span {
  display: block;
  font: 500 12.5px/17px var(--ui);
  letter-spacing: 0.2px;
  color: var(--tinta-suave);
}

.aparte p {
  margin-top: 3px;
  font-size: 15.5px;
  line-height: 23px;
  letter-spacing: -0.05px;
}

.resposta-titulo {
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 0;
}

/* a lista com marcador */
.lista {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.lista li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
}

.lista li::before {
  content: '•';
  color: var(--tinta-suave);
}

/* o teste no fim da resposta, na letra do chat */
.resposta .quiz-pergunta {
  font-size: 17px;
  line-height: 26.5px;
}

.resposta .quiz-opcao {
  padding: 11px 14px;
  font-size: 15.5px;
  line-height: 21px;
  transition:
    opacity 0.3s,
    background-color 0.3s,
    border-color 0.3s,
    transform 0.15s var(--curva);
}

.quiz-opcao.apagada {
  opacity: 0.55;
}

.quiz-opcao.aperta {
  transform: scale(0.985);
}

.quiz-porque {
  font-size: 15.5px;
  line-height: 23px;
  letter-spacing: -0.05px;
  color: var(--tinta-suave);
}

.vitrine[data-forma='celular'] .resposta .tabela {
  font-size: 14px;
}

.desenho {
  display: block;
  overflow: visible;
}

.t {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t.apoio {
  stroke: var(--pedra);
  stroke-width: 1.3;
}

.cheio {
  fill: var(--tinta);
  stroke: none;
}

.rot {
  font: italic 400 14px var(--leitura);
  fill: var(--tinta-suave);
}

.rot.pequeno {
  font-size: 12.5px;
  fill: var(--pedra-escura);
}

/* a matemática: as letras no itálico de leitura, os números e os sinais na letra do texto */
.m i,
.quadro-passos i,
.quadro-titulo i {
  font-family: var(--leitura);
  font-style: italic;
  font-size: 1.1em;
  letter-spacing: 0.01em;
}

.m sub {
  font-size: 0.58em;
  vertical-align: -0.3em;
  line-height: 0;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0.12em;
  vertical-align: middle;
  line-height: 1.12;
}

.frac > span:first-child {
  padding: 0 0.25em 0.1em;
  border-bottom: 1.5px solid currentColor;
}

.frac > span:last-child {
  padding: 0.1em 0.25em 0;
}

.raiz > span {
  display: inline-block;
  margin-left: -0.04em;
  padding: 0 0.08em;
  border-top: 1.5px solid currentColor;
  line-height: 1.05;
}

.passos {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.passo {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  row-gap: 3px;
}

.passo-selo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--branco);
  font: 600 12.5px/24px var(--ui);
  text-align: center;
}

.passo-frase {
  align-self: center;
}

.passo-conta {
  grid-column: 2;
  font-size: 18px;
  line-height: 1.5;
}

.voz-traco path,
.video-voz path {
  fill: none;
  stroke: var(--tinta);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* os exemplos embaixo da vitrine: um seletor só, como o Mensal/Anual dos planos */
.temas {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  margin-top: 30px;
  padding: 4px;
  border-radius: 999px;
  background: var(--areia);
  box-shadow: inset 0 0 0 1px var(--veio);
  overflow-x: auto;
  scrollbar-width: none;
}

.temas::-webkit-scrollbar {
  display: none;
}

.tema {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta-suave);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.2s,
    background-color 0.25s var(--curva),
    box-shadow 0.25s;
}

.tema:hover {
  color: var(--tinta);
}

.tema[aria-pressed='true'] {
  color: var(--tinta);
  background: var(--branco);
  box-shadow:
    0 0 0 1px var(--veio),
    0 4px 10px -6px rgba(42, 38, 32, 0.35);
}

/* ───────── seções ───────── */

.secao {
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(64px, 8.6vw, 112px) var(--margem);
}

.secao-cabeca {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(40px, 5.5vw, 64px);
  text-align: center;
}

.secao-cabeca.alinhada {
  align-items: flex-start;
  text-align: left;
}

.secao-titulo {
  font: 500 clamp(36px, 4.9vw, 60px) / 1.04 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.secao-sub {
  max-width: 32em;
  margin-top: 18px;
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--tinta-suave);
  text-wrap: pretty;
}

/* o surgir das peças ao rolar (sem JS, nada se esconde) */
.js .revela {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--curva),
    transform 0.9s var(--curva);
  transition-delay: var(--atraso, 0ms);
}

.js .revela.visto,
.js.sem-revela .revela {
  opacity: 1;
  transform: none;
}

/* na grade dos recursos quem surge é o conteúdo: a célula transparente mostraria o fio cinza por trás */
.js .recurso.revela {
  opacity: 1;
  transform: none;
}

.js .recurso.revela > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--curva),
    transform 0.9s var(--curva);
  transition-delay: var(--atraso, 0ms);
}

.js .recurso.revela.visto > *,
.js.sem-revela .recurso.revela > * {
  opacity: 1;
  transform: none;
}

/* ───────── a faixa de perguntas ───────── */

.faixa {
  padding: 8px 0 clamp(24px, 4vw, 40px);
  overflow: hidden;
}

.faixa-rotulo {
  margin-bottom: 18px;
  padding: 0 var(--margem);
  text-align: center;
  font-size: 14px;
  color: var(--pedra-escura);
}

.faixa-trilhos {
  display: grid;
  gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trilho {
  overflow: hidden;
}

.trilho-fila {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  animation: corre 80s linear infinite;
}

.trilho[data-sentido='direita'] .trilho-fila {
  animation-direction: reverse;
  animation-duration: 92s;
}

.trilho:hover .trilho-fila {
  animation-play-state: paused;
}

.trilho-fila li {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-right: 10px;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--veio);
  font-size: 15px;
  color: var(--tinta);
  white-space: nowrap;
}

.trilho-fila li span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--areia);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tinta-suave);
}

@keyframes corre {
  to {
    transform: translateX(-50%);
  }
}

/* ───────── o vídeo: a capa é um quadro parado de uma aula ───────── */

.video-secao {
  padding-top: clamp(48px, 7vw, 88px);
}

.video {
  --proporcao: 16 / 9;
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: var(--proporcao);
  border-radius: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  background: var(--marmore);
  box-shadow:
    0 0 0 1px rgba(27, 26, 24, 0.1),
    0 50px 100px -60px rgba(27, 26, 24, 0.5);
}

.video-capa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: var(--marmore);
  background-image:
    linear-gradient(rgba(27, 26, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  color: var(--tinta);
  cursor: pointer;
  overflow: hidden;
}

.video-quadro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--curva);
}

.video-capa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 48%, rgba(250, 250, 247, 0.15), rgba(250, 250, 247, 0.55));
  pointer-events: none;
}

.video-desenho {
  display: block;
  width: 78%;
  height: 74%;
  overflow: visible;
}

.video-legenda-aula {
  position: absolute;
  left: 50%;
  bottom: 11%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 1px var(--veio),
    0 10px 30px -18px rgba(42, 38, 32, 0.45);
  font-size: clamp(12px, 1.5vw, 16px);
  white-space: nowrap;
  transform: translateX(-50%);
}

.video-voz {
  display: block;
  width: clamp(44px, 5vw, 64px);
  height: clamp(18px, 2.2vw, 26px);
  overflow: visible;
}

.video-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(64px, 8.4vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--marmore);
  box-shadow:
    0 0 0 8px rgba(27, 26, 24, 0.06),
    0 20px 40px -16px rgba(27, 26, 24, 0.6);
  transition: transform 0.35s var(--curva);
}

.video-capa:hover .video-play {
  transform: scale(1.06);
}

.video-capa:hover .video-quadro {
  transform: scale(1.015);
}

.video-play svg {
  display: block;
  width: 34%;
  margin-left: 7%;
  fill: currentColor;
}

.video-legenda {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 32px);
  top: clamp(16px, 2.8vw, 28px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(13px, 1.4vw, 15px);
  text-align: left;
}

.video-legenda strong {
  font-weight: 600;
}

.video-legenda span {
  color: var(--pedra-escura);
}

.video-breve {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2.4vw, 24px);
  right: clamp(14px, 2.4vw, 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--tinta);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--marmore);
}

.video.com-video .video-breve {
  display: none;
}

.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ───────── o que ele faz ───────── */

.grade-recursos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--veio);
  box-shadow: 0 0 0 1px var(--veio);
}

.recurso {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 460px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--branco);
}

.recurso.largo {
  grid-column: span 2;
}

.recurso-visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: stretch;
  min-height: 280px;
}

.recurso-texto h3 {
  font: 600 19.5px/1.25 var(--display);
  letter-spacing: -0.02em;
}

.recurso-texto p {
  max-width: 34em;
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tinta-suave);
}

/* uma tela do app, recortada */
.tela {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
  background: var(--marmore);
  box-shadow:
    inset 0 0 0 1px var(--veio),
    inset 0 1px 0 #fff;
  overflow: hidden;
}

/* um iPhone que sobe do pé do cartão */
.recurso-celular {
  place-items: start center;
  overflow: hidden;
  min-height: 330px;
  max-height: 350px;
  margin: calc(-1 * clamp(22px, 2.6vw, 32px)) calc(-1 * clamp(22px, 2.6vw, 32px)) 0;
  padding-top: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(var(--areia), var(--branco));
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, #000 88%, transparent);
}

.celular-mini {
  width: 248px;
  height: 500px;
  border-radius: 40px;
  background: var(--marmore);
  box-shadow:
    0 0 0 7px #1c1b19,
    0 0 0 8px #45433f,
    0 30px 50px -30px rgba(27, 26, 24, 0.55);
  overflow: hidden;
}

.celular-mini-tela {
  height: 100%;
}

.status-mini {
  display: flex;
  height: 38px;
  padding: 6px 20px 0 28px;
  font-size: 12.5px;
}

.status-mini .status-ilha {
  top: 8px;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 12px;
}

.status-mini .status-icones svg {
  height: 10px;
}

/* explica desenhando */
.tela-resposta {
  padding: 22px 28px 26px;
}

.tela-resposta .fala-aluno {
  font-size: 15px;
  padding: 8px 15px;
}

.mini-resposta {
  max-width: 560px;
  margin-top: 16px;
}

.mini-paragrafo {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 16px;
  line-height: 1.6;
}

.mini-vinheta {
  display: block;
  width: 64px;
  height: 64px;
  overflow: visible;
}

.mini-paragrafo b {
  font-weight: 600;
}

.mini-numero {
  margin-top: 22px;
  padding-left: 80px;
}

.mini-numero-valor {
  position: relative;
  display: inline-block;
  font: 400 clamp(40px, 4.6vw, 52px) / 1 var(--titulo);
  letter-spacing: -0.03em;
}

.mini-numero-risco {
  position: absolute;
  left: -3%;
  bottom: -0.17em;
  width: 106%;
  height: 0.22em;
  overflow: visible;
  color: var(--tinta);
}

.mini-numero-nota {
  display: block;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--tinta-suave);
}

/* converse por voz */
.voz-tela {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 38px);
  padding: 14px 18px 28px;
}

.voz-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.voz-estado {
  font-size: 12px;
  font-weight: 500;
  color: var(--pedra-escura);
}

.voz-traco {
  display: block;
  width: 100%;
  height: 110px;
  margin-top: 26px;
  overflow: visible;
}

.voz-frase {
  min-height: 3.2em;
  margin-top: 14px;
  font: italic 400 16px/1.4 var(--leitura);
  text-align: center;
  color: var(--tinta);
  transition: opacity 0.4s var(--curva);
}

.voz-controles {
  display: flex;
  gap: 26px;
  margin-top: auto;
}

.voz-botao {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--areia);
}

.voz-fim {
  background: var(--tinta);
  color: var(--marmore);
}

/* corrige pela foto: a resposta com a folha marcada, como no app */
.correcao-tela {
  padding: 8px 14px;
}

.correcao-tela .fala-aluno {
  font-size: 12.5px;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 16px;
}

.correcao-tela .anexo-foto {
  width: 30px;
  height: 38px;
  border-radius: 6px;
}

.correcao-texto {
  margin: 10px 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.correcao-folha {
  position: relative;
  padding: 9px 10px 8px 24px;
  border-radius: 10px;
  background-color: #fffdf8;
  background-image: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(27, 26, 24, 0.09) 21px 22px);
  background-position: 0 24px;
  box-shadow:
    0 0 0 1px var(--veio),
    0 10px 20px -14px rgba(42, 38, 32, 0.4);
  font: italic 400 10.6px/22px var(--leitura);
  color: #2b2925;
}

.correcao-tema {
  margin: 0 0 2px -4px;
  font: 600 6.6px/16px var(--ui);
  letter-spacing: 0.02em;
  color: var(--tinta-suave);
}

.correcao-linhas {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: linha;
}

.correcao-linhas li {
  position: relative;
  white-space: nowrap;
}

.correcao-linhas li::before {
  counter-increment: linha;
  content: counter(linha);
  position: absolute;
  left: -17px;
  font: 400 7px/22px var(--ui);
  color: var(--pedra);
}

.correcao-linhas u {
  position: relative;
  text-decoration: none;
}

.correcao-linhas u::after,
.correcao-linhas .ok::after {
  content: attr(data-n);
  position: absolute;
  right: -7px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vinho);
  color: #fff;
  font: 700 7px/12px var(--ui);
  text-align: center;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.3s var(--curva),
    transform 0.4s cubic-bezier(0.34, 1.6, 0.5, 1);
}

.correcao-linhas u[data-n='3b']::after {
  display: none;
}

.correcao-linhas .ok {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-left: 4px;
}

.correcao-linhas .ok::after {
  right: -10px;
  background: var(--oliva);
}

.correcao-folha.marcada u::after,
.correcao-folha.marcada .ok::after {
  opacity: 1;
  transform: scale(1);
}

.correcao-marcas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.correcao-nota {
  margin-top: 10px;
  font-size: 12px;
  color: var(--tinta-suave);
}

.correcao-nota strong {
  margin-right: 4px;
  font: 400 22px/1 var(--titulo);
  letter-spacing: -0.02em;
  color: var(--tinta);
}

/* o quadro: a tela do quadro do app. Uma explicação dele é o título na letra do Platono (em azul: no quadro ele
   escreve numa cor própria), a figura, os passos com o selo, a fórmula e a faixa amarela do destaque
   (mobile/src/quadro/arranjos.ts); embaixo, a legenda do que ele disse, em cima da barra de pedir. */
.quadro-visual {
  place-items: stretch;
}

.tela-quadro {
  --egeu: #1f4e79;
  min-height: 440px;
  background-image:
    linear-gradient(rgba(27, 26, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(27, 26, 24, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.028) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
}

.quadro-topo {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quadro-vidro,
.quadro-trilho,
.quadro-legenda,
.quadro-campo {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px #ebe8e1,
    0 8px 18px -14px rgba(42, 38, 32, 0.35);
}

.quadro-vidro {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 13px;
  border-radius: 19px;
}

.quadro-vidro .icone {
  width: 17px;
  height: 17px;
}

.quadro-voltar {
  justify-content: center;
  width: 38px;
  padding: 0;
}

.quadro-nome {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quadro-acoes {
  margin-left: auto;
}

.quadro-trilho {
  position: absolute;
  right: 12px;
  top: 64px;
  display: grid;
  gap: 4px;
  padding: 5px;
  border-radius: 24px;
}

.quadro-trilho span {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.quadro-trilho .icone {
  width: 18px;
  height: 18px;
}

.quadro-trilho .ativo {
  background: var(--tinta);
  color: var(--marmore);
}

.quadro-cor i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tinta);
  box-shadow:
    0 0 0 2px var(--branco),
    0 0 0 3px var(--veio-forte);
}

.quadro-trilho .trilho-linha {
  width: 22px;
  height: 1px;
  margin: 2px auto;
  border-radius: 0;
  background: var(--veio);
}

.quadro-conteudo {
  position: absolute;
  left: 6%;
  top: 70px;
  width: 42%;
}

.quadro-titulo {
  font: italic 400 23px/1.2 var(--leitura);
  color: var(--egeu);
}

.quadro-titulo i,
.quadro-formula i {
  font-family: var(--leitura);
  font-style: italic;
}

.quadro-passos {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.quadro-passos li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.quadro-passos .selo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--egeu);
  color: var(--branco);
  font: 600 12px/24px var(--ui);
  text-align: center;
}

.quadro-passos p {
  font: 400 15.5px/1.45 var(--leitura);
}

.quadro-passos .quadro-formula {
  margin-top: 4px;
  font: 400 17px/1.3 var(--ui);
  text-align: center;
}

.quadro-destaque {
  display: inline-block;
  margin: 16px 0 0 36px;
  padding: 8px 16px;
  background: #f8e9af;
  box-shadow: inset 0 0 0 1px #ead68a;
  font: 600 16px/1.3 var(--ui);
  color: #8f6c2a;
}

.quadro-destaque i {
  font-family: var(--leitura);
  font-style: italic;
  font-weight: 500;
}

.quadro-desenho {
  position: absolute;
  right: 72px;
  top: 70px;
  width: 36%;
  height: 54%;
  overflow: visible;
}

.quadro-pe {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 8px;
}

.quadro-legenda {
  position: relative;
  justify-self: start;
  max-width: min(78%, 460px);
  padding: 9px 38px 9px 14px;
  border-radius: 18px;
  font: 400 14.5px/1.45 var(--leitura);
}

.quadro-legenda .icone {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: var(--pedra);
}

.quadro-campo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 23px;
  font: 400 15.5px/1 var(--leitura);
  color: var(--pedra);
}

.quadro-campo span {
  flex: 1;
}

.quadro-campo .icone {
  width: 19px;
  height: 19px;
  color: var(--tinta);
}

.quadro-campo .icone:last-child {
  color: var(--tinta-suave);
}

/* lê o seu material: os anexos esperando em cima da barra */
.tela-material {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px 14px;
}

.anexos {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anexos li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 7px;
  border-radius: 16px;
  background: var(--branco);
  box-shadow:
    0 0 0 1px var(--veio),
    0 8px 18px -16px rgba(42, 38, 32, 0.4);
}

.anexo-tipo {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 38px;
  border-radius: 11px;
  background: var(--areia);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tinta-suave);
}

.anexo-nome {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anexo-nome small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--pedra-escura);
}

.anexo-progresso b {
  font-weight: 500;
  color: var(--tinta-suave);
}

.material-campo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 7px 0 12px;
  border-radius: 25px;
  background: var(--branco);
  box-shadow:
    0 0 0 1px #ebe8e1,
    0 12px 26px -16px rgba(42, 38, 32, 0.32);
  font: 400 15px/1 var(--leitura);
  white-space: nowrap;
  overflow: hidden;
}

.material-campo > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.material-enviar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--marmore);
}

.material-enviar .icone {
  width: 18px;
  height: 18px;
}

/* faz o material de estudo */
.estudo-visual {
  place-items: stretch;
}

.tela-estudo {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 22px 24px;
}

.formatos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.formatos span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--branco);
  font-size: 13px;
  font-weight: 500;
  color: var(--tinta-suave);
  box-shadow: 0 0 0 1px var(--veio);
}

.formatos .ativo {
  background: var(--tinta);
  color: var(--marmore);
  box-shadow: none;
}

.teste {
  width: min(100%, 470px);
  text-align: left;
}

.teste-cabeca {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pedra-escura);
}

.teste-pergunta {
  margin-top: 8px;
  font: 400 21px/1.3 var(--titulo);
  letter-spacing: -0.015em;
}

.teste-opcoes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.teste-opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--veio-forte);
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s,
    box-shadow 0.2s,
    opacity 0.3s,
    transform 0.18s var(--curva);
}

.teste-opcao:hover {
  box-shadow: inset 0 0 0 1px var(--pedra);
}

.teste-opcao:active {
  transform: scale(0.99);
}

.teste-letra {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--areia);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tinta-suave);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.teste-opcao.certa {
  background: var(--oliva-claro);
  box-shadow: inset 0 0 0 1.5px var(--oliva);
}

.teste-opcao.certa .teste-letra {
  background: var(--oliva);
  color: var(--branco);
}

.teste-opcao.errada {
  background: var(--vinho-claro);
  box-shadow: inset 0 0 0 1.5px var(--vinho);
}

.teste-opcao.errada .teste-letra {
  background: var(--vinho);
  color: var(--branco);
}

.teste.respondido .teste-opcao:not(.certa) {
  opacity: 0.45;
}

.teste-retorno {
  min-height: 1.55em;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--tinta-suave);
}

.teste-retorno button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  color: var(--tinta);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* os miúdos */
.miudos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin: clamp(44px, 5vw, 60px) 0 0;
  padding: 0 4px;
  list-style: none;
}

.miudos .icone {
  width: 22px;
  height: 22px;
  color: var(--tinta);
}

.miudos h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}

.miudos p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tinta-suave);
}

/* ───────── como ele ensina ─────────
 * Uma conversa de verdade no meio, numa folha branca, e os seis gestos do método anotados na margem como um
 * professor anota: o número num círculo à mão e um fio até um risco ao longo do trecho (pagina.js). */

.metodo {
  position: relative;
  isolation: isolate;
  max-width: 1300px;
}

/* o papel quadriculado da abertura, sumindo para as bordas: as notas são escritas nele */
.metodo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 26, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 62%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 62%, #000 30%, transparent 80%);
}

.licao {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 42vw, 580px) minmax(0, 1fr);
  grid-template-rows: repeat(9, auto);
  column-gap: clamp(40px, 4.8vw, 76px);
  row-gap: 18px;
  font-size: 15.5px;
  line-height: 1.58;
}

.licao-folha {
  grid-column: 2;
  grid-row: 1 / -1;
  border-radius: 24px;
  background: var(--branco);
  box-shadow:
    0 0 0 1px var(--veio),
    0 44px 90px -50px rgba(42, 38, 32, 0.38);
}

.licao-marcas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.licao-marcas .par {
  color: var(--pedra);
  transition: color 0.3s;
}

.licao-marcas .par.foco {
  color: var(--tinta-suave);
}

.licao-marcas .par-num {
  color: var(--tinta);
}

.licao-fala,
.trecho,
.licao-fim {
  grid-column: 2;
  grid-row: var(--linha);
  min-width: 0;
  padding: 0 32px;
}

.licao-topo {
  padding-top: 26px;
}

.licao-fim {
  height: 10px;
}

.licao .fala-aluno {
  max-width: 86%;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.trecho {
  position: relative;
  isolation: isolate;
}

/* o trecho da nota sob o ponteiro ganha um fundo leve */
.trecho::before {
  content: '';
  position: absolute;
  inset: -7px 18px;
  z-index: -1;
  border-radius: 12px;
  background: rgba(27, 26, 24, 0.04);
  opacity: 0;
  transition: opacity 0.3s;
}

.trecho.foco::before {
  opacity: 1;
}

.trecho b {
  font-weight: 600;
}

.desenho-gelo {
  width: 100%;
  margin: 2px auto 0;
}

.licao .desenho-pe p {
  font-size: 14px;
}

/* a linha de raciocínio do chat: cada passo num círculo, ligado ao seguinte por um fio (Markdown.tsx) */
.raciocinio {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raciocinio li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
}

.raciocinio-num {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--pedra);
  border-radius: 50%;
  background: var(--marmore);
  font: 600 12px/20px var(--ui);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.raciocinio li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10.5px;
  top: 27px;
  bottom: -11px;
  width: 1px;
  background: var(--veio-forte);
}

/* o teste: entre dois fios, sem cartão; a certa em verde, a marcada em vinho (PecaNaResposta.tsx) */
.quiz {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--veio);
  border-bottom: 1px solid var(--veio);
}

.quiz-rotulo {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--pedra);
}

.quiz-pergunta {
  font-weight: 500;
}

.quiz-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--areia);
  font-size: 15px;
  line-height: 21px;
}

.quiz-opcao > span:first-child {
  flex: 1;
}

.quiz-opcao.certa {
  border-color: var(--oliva);
  background: var(--oliva-claro);
}

.quiz-opcao.errada {
  border-color: var(--vinho);
  background: var(--vinho-claro);
}

.quiz-sinal {
  font-weight: 600;
}

.quiz-opcao.certa .quiz-sinal {
  color: var(--oliva);
}

.quiz-opcao.errada .quiz-sinal {
  color: var(--vinho);
}

.quiz-explica {
  justify-self: start;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* as notas da margem: o número (o círculo à mão é de pagina.js), o gesto, uma linha e quem pensou nele.
   A nota não tem altura: fica no meio da linha do trecho e não empurra a conversa. */
.nota {
  position: relative;
  grid-row: var(--linha);
  align-self: center;
  height: 0;
}

.nota[data-lado='esq'] {
  grid-column: 1;
}

.nota[data-lado='dir'] {
  grid-column: 3;
}

.nota-corpo {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.nota[data-lado='esq'] .nota-corpo {
  grid-template-columns: minmax(0, 1fr) 28px;
  text-align: right;
}

.nota[data-lado='esq'] .nota-num {
  order: 2;
}

.nota-num {
  width: 28px;
  height: 28px;
  font: 600 13.5px/28px var(--ui);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.nota-texto h3 {
  padding-top: 3px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.nota-texto p {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tinta-suave);
  text-wrap: pretty;
}

.nota-quem {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pedra);
}

/* as notas entram uma a uma, junto do círculo de cada uma (o atraso casa com o de pagina.js) */
.js .nota-corpo {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.7s var(--curva),
    transform 0.7s var(--curva);
  transition-delay: calc(var(--n, 0) * 260ms + 560ms);
}

.js .licao.anotada .nota-corpo {
  opacity: 1;
  transform: none;
}

/* sem margem dos lados: a folha é a própria conversa, e cada nota vira uma etiqueta antes do seu trecho */
@media (max-width: 1000px) {
  .licao {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 22px 0 24px;
    border-radius: 24px;
    background: var(--branco);
    box-shadow:
      0 0 0 1px var(--veio),
      0 44px 90px -50px rgba(42, 38, 32, 0.38);
  }

  .licao-folha,
  .licao-fim {
    display: none;
  }

  .licao-fala,
  .trecho {
    padding: 0 20px;
  }

  .licao-topo {
    padding-top: 0;
  }

  .licao-fala + .nota,
  .trecho + .nota,
  .trecho + .licao-fala {
    margin-top: 22px;
  }

  .nota {
    height: auto;
    margin: 0 12px 12px;
  }

  .nota-corpo,
  .nota[data-lado='esq'] .nota-corpo {
    position: static;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
    padding: 9px 12px 10px 8px;
    border-radius: 14px;
    background: var(--marmore);
    text-align: left;
  }

  .nota[data-lado='esq'] .nota-num {
    order: 0;
  }

  .nota-num {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
    line-height: 26px;
  }

  .nota-texto h3 {
    padding-top: 2px;
    font-size: 14.5px;
  }

  .nota-texto p {
    margin-top: 1px;
    font-size: 13.5px;
  }

  .nota-quem {
    display: none;
  }

  .trecho::before {
    inset: -6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .nota-corpo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ───────── planos ───────── */

.periodo {
  display: inline-flex;
  gap: 2px;
  margin-top: 30px;
  padding: 4px;
  border-radius: 999px;
  background: var(--areia);
  box-shadow: inset 0 0 0 1px var(--veio);
}

.periodo-opcao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tinta-suave);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.25s var(--curva),
    color 0.25s,
    box-shadow 0.25s;
}

.periodo-opcao span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--oliva);
}

.periodo-opcao[aria-pressed='true'] {
  background: var(--branco);
  color: var(--tinta);
  box-shadow:
    0 0 0 1px var(--veio),
    0 4px 10px -6px rgba(42, 38, 32, 0.35);
}

.grade-planos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plano {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 28px;
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--veio);
}

.plano-destaque {
  box-shadow:
    0 0 0 1.5px var(--tinta),
    0 36px 70px -46px rgba(27, 26, 24, 0.5);
}

.plano-solido {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 66px;
  height: 66px;
  overflow: visible;
  pointer-events: none;
}

.plano h3 {
  padding-right: 72px;
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.025em;
}

.plano-jeito {
  margin-top: 6px;
  padding-right: 72px;
  font-size: 15px;
  color: var(--tinta-suave);
}

.plano-preco {
  margin-top: 30px;
}

.plano-valor {
  display: inline-block;
  font: 600 44px/1 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
}

.plano-nota {
  min-height: 1.45em;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pedra-escura);
}

.plano-titulo-linhas {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--veio);
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta-suave);
}

.plano-titulo-linhas + .plano-linhas {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.plano-linhas {
  display: grid;
  gap: 11px;
  margin: 22px 0 30px;
  padding: 20px 0 0;
  border-top: 1px solid var(--veio);
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}

.plano-linhas b {
  font-weight: 600;
}

.plano-linhas li,
.plano-todos li {
  position: relative;
  padding-left: 26px;
}

.plano-linhas li::before,
.plano-todos li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 13px;
  height: 7px;
  border-left: 1.7px solid var(--tinta);
  border-bottom: 1.7px solid var(--tinta);
  transform: rotate(-45deg) translate(1px, -1px);
}

.plano-botao {
  width: 100%;
  margin-top: auto;
}

.plano-todos {
  margin-top: 44px;
  text-align: center;
}

.plano-todos-titulo {
  font-size: 14px;
  color: var(--pedra-escura);
}

.plano-todos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px 32px;
  max-width: 940px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.plano-todos li {
  font-size: 15px;
  line-height: 1.45;
}

.plano-letra-miuda {
  margin-top: 22px;
  font-size: 13px;
  color: var(--pedra-escura);
}

/* ───────── perguntas ───────── */

.perguntas {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.perguntas .secao-cabeca {
  margin-bottom: 0;
}

.pergunta {
  border-bottom: 1px solid var(--veio);
}

.pergunta:first-child {
  border-top: 1px solid var(--veio);
}

.pergunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pergunta summary::-webkit-details-marker {
  display: none;
}

.pergunta-sinal {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.pergunta-sinal::before,
.pergunta-sinal::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6.2px;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--tinta);
  transition: transform 0.35s var(--curva);
}

.pergunta-sinal::after {
  transform: rotate(90deg);
}

.pergunta[open] .pergunta-sinal::after {
  transform: rotate(0deg);
}

.pergunta p {
  padding: 0 44px 24px 2px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-suave);
}

@supports (interpolate-size: allow-keywords) {
  .perguntas {
    interpolate-size: allow-keywords;
  }

  .pergunta::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.4s var(--curva),
      content-visibility 0.4s allow-discrete;
  }

  .pergunta[open]::details-content {
    height: auto;
  }
}

/* ───────── o convite ───────── */

.chamada {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 11vw, 144px) var(--margem) clamp(88px, 12vw, 152px);
  text-align: center;
}

.chamada-simbolo {
  display: block;
  width: 72px;
  height: 72px;
  overflow: visible;
  color: var(--tinta);
  fill: currentColor;
}

.chamada-titulo {
  margin-top: 30px;
  font: 500 clamp(42px, 6.2vw, 80px) / 1 var(--display);
  letter-spacing: -0.05em;
}

.chamada-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

/* ───────── o pé ───────── */

.pe {
  border-top: 1px solid var(--veio);
}

.pe-dentro {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 48px var(--margem) 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.pe-marca p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--tinta-suave);
}

.pe-links {
  display: flex;
  gap: clamp(48px, 9vw, 112px);
}

.pe-links p {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--pedra-escura);
}

.pe-links a {
  display: block;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--tinta);
  text-decoration: none;
}

.pe-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pe-base {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 18px var(--margem) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--pedra-escura);
}

/* ───────── larguras ───────── */

/* telas baixas de computador: a abertura mais justa, para a barra da vitrine começar à vista */
@media (min-width: 900px) and (max-height: 860px) {
  .hero {
    padding-top: 60px;
  }

  .hero-titulo {
    font-size: clamp(48px, 6.6vw, 88px);
  }

  .hero-sub {
    margin-top: 16px;
  }

  .hero-acoes {
    margin-top: 24px;
  }

  /* a fórmula acompanha os botões, que sobem junto: não encosta na janela do app */
  .hero-pecas .peca-formula {
    top: 226px;
  }
}

@media (max-width: 1240px) {
  .peca-formula {
    left: 2%;
    top: 250px;
  }

  .peca-lua {
    right: 1.5%;
    top: 8px;
    width: 180px;
  }
}

@media (max-width: 1100px) {
  .hero-pecas {
    display: none;
  }
}

@media (max-width: 1040px) {
  .grade-recursos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recurso[data-visual='estudo'] {
    grid-column: span 1;
  }

  .miudos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .grade-planos {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .topo-dentro {
    grid-template-columns: 1fr auto;
  }

  .topo-links,
  .topo-entrar {
    display: none;
  }

  .topo-menu {
    display: inline-block;
  }
}

@media (max-width: 680px) {
  :root {
    --topo: 58px;
  }

  .grade-recursos {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 26px;
  }

  .recurso.largo,
  .recurso[data-visual='estudo'] {
    grid-column: span 1;
  }

  .recurso {
    min-height: 0;
  }

  .tela-quadro {
    min-height: 610px;
  }

  .quadro-conteudo {
    left: 18px;
    right: 64px;
    width: auto;
  }

  .quadro-desenho {
    left: 24px;
    right: 64px;
    top: auto;
    bottom: 132px;
    width: auto;
    height: 150px;
  }

  .tela-resposta {
    padding: 18px 18px 22px;
  }

  .mini-numero {
    padding-left: 0;
  }

  .mini-paragrafo {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    font-size: 15px;
  }

  .mini-vinheta {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 640px) {
  .hero-acoes {
    width: 100%;
    max-width: 420px;
  }

  .hero-acoes .botao,
  .chamada-acoes .botao {
    flex: 1 1 0;
    padding: 0 12px;
    font-size: 15px;
  }

  .pergunta summary {
    font-size: 16.5px;
  }

  .pergunta p {
    padding-right: 8px;
  }

  .pe-base {
    flex-direction: column;
    gap: 4px;
  }

  .video-legenda-aula {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero-acoes .botao .icone,
  .chamada-acoes .botao .icone {
    display: none;
  }
}

/* ───────── menos movimento ───────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .revela,
  .js .recurso.revela > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .trilho {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .trilho-fila,
  .palco-cursor,
  .pensando path,
  .montando i,
  .js .palavra,
  .js .hero-sub,
  .js .hero-acoes,
  .js .vitrine,
  .js .peca {
    animation: none;
  }

  .palco-barra,
  .palco-saudacao,
  .palco-fio-dentro {
    transition: none;
  }

  .vitrine {
    transform: none;
  }
}

/* o aviso que aparece embaixo (o app do iPhone ainda não está na loja) */
.aviso {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--marmore);
  font-size: 14.5px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(27, 26, 24, 0.6);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--curva),
    transform 0.45s var(--curva);
}

.aviso.visivel {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* as moléculas do desenho do gelo (como ele ensina) */
.molecula {
  fill: var(--branco);
  stroke: var(--tinta);
  stroke-width: 1.4;
}
