/* Página de apresentação (início, sem login). Só carrega nessa página.
   Abertura com a "janela" do produto passando pelas telas; depois blocos
   texto + tela, cada um com uma interação. Usa as variáveis de tema do app.css,
   então segue a paleta e o tema Noite. As telas são desenhadas em HTML. */

.lp {
  --lp-coral-suave: color-mix(in srgb, var(--acc2) 16%, var(--surface));
  --lp-sombra: 0 30px 60px -30px color-mix(in srgb, var(--text) 40%, transparent),
    0 8px 20px -10px color-mix(in srgb, var(--text) 20%, transparent);
  overflow-x: clip;
}

/* Painéis e conversas escondidos pelo JS: o display das classes não pode vencer o hidden. */
.lp [hidden] {
  display: none !important;
}

.lp h1,
.lp h2,
.lp h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

.lp h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.lp h3 {
  font-size: 1.25rem;
}

.lp p {
  margin: 0;
}

.lp h1 em,
.lp h2 em {
  font-style: italic;
  color: var(--accent);
}

.lp-envolve {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

.lp-sobre {
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc2-texto);
}

.lp-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.lp-acoes [data-instalar] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-acoes [data-instalar][hidden] {
  display: none;
}

.lp .botao-grande {
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lp .botao-grande:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--text) 50%, transparent);
}

/* ---------- Abertura ---------- */
.lp-heroi {
  position: relative;
  padding-block: 56px 40px;
}

.lp-heroi-trilha {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lp-heroi-trilha path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.lp-heroi-grade {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  text-align: center;
}

.lp-heroi h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 400;
  max-width: 18ch;
  margin: 0 auto;
}

.lp-troca {
  color: var(--accent);
}

.lp-modulos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.lp-modulos li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
}

/* Celular: o topo cabe numa linha; "Criar conta" fica no botão grande do herói. */
@media (max-width: 600px) {
  .pagina-inicio .topo-criar {
    display: none;
  }
}

@keyframes lp-entra {
  from {
    transform: translateY(0.4em);
    opacity: 0;
    filter: blur(6px);
  }
}

.lp-heroi-sub {
  font: italic 400 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--serif);
  color: var(--acc2-texto);
  margin-top: 14px !important;
  text-wrap: balance;
}

.lp-heroi-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 58ch;
  margin: 22px auto 0 !important;
  color: var(--muted);
}

.lp-selos {
  display: flex;
  gap: 8px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.lp-selos li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* Janela do produto */
.lp-janela {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--lp-sombra);
  overflow: hidden;
  text-align: left;
}

.lp-janela-barra {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.lp-janela-barra i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.lp-url {
  margin-left: 12px;
  flex: 1;
  max-width: 340px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-janela-corpo {
  padding: 18px;
}

.lp-palco {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.lp-palco .lp-janela {
  animation: lp-sobe 1s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes lp-sobe {
  from {
    transform: translateY(40px);
    opacity: 0.3;
  }
}

.lp-telas {
  position: relative;
  height: 460px;
}

.lp-tela {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.6s, transform 0.6s, visibility 0.6s;
}

.lp-tela.lp-ativa {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lp-abas-tela {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.lp-abas-tela button,
.lp-abas button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 500 0.88rem var(--sans);
  cursor: pointer;
}

.lp-abas-tela button {
  border-radius: 999px;
  padding: 0.45em 1em;
  position: relative;
  overflow: hidden;
}

.lp-abas-tela button[aria-selected="true"] {
  color: var(--text);
  border-color: var(--accent);
}

.lp-abas-tela button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  animation: lp-enche 5s linear forwards;
}

.lp-abas-tela.lp-parado button::after {
  animation: none;
  width: 100%;
}

@keyframes lp-enche {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.lp-flutua {
  position: absolute;
  z-index: 3;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--lp-sombra);
  padding: 12px 14px;
  font-size: 0.85rem;
  text-align: left;
  animation: lp-boia 6s ease-in-out infinite;
}

.lp-flutua b {
  font-size: 0.95rem;
}

.lp-flutua-1 {
  left: -40px;
  bottom: 90px;
}

.lp-flutua-2 {
  right: -40px;
  top: -34px;
  animation-delay: -3s;
}

@keyframes lp-boia {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1180px) {
  .lp-flutua {
    display: none;
  }
}

/* Peças das telas desenhadas */
.lp-ui-cab {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.lp-ui-cab small {
  color: var(--muted);
}

.lp-ui-titulo {
  font: 500 1.6rem/1.1 var(--serif);
}

.lp-ui-cartao {
  display: grid;
  gap: 4px;
  align-content: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.lp-superficie {
  background: var(--surface);
}

.lp-linha {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-quebra {
  flex-wrap: wrap;
  gap: 8px;
}

.lp-entre {
  justify-content: space-between;
}

.lp-cresce {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lp-pilha {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lp-centro {
  text-align: center;
  align-self: start;
}

.lp-direita {
  text-align: right;
}

.lp-serif {
  font: 500 1.15rem/1.2 var(--serif);
}

.lp-grande {
  font-size: 1.3rem;
}

.lp-pequeno {
  font-size: 0.88rem;
}

.lp-rot {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lp-g2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

.lp-g3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lp-trilho {
  height: 8px;
  margin-top: 6px;
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
}

.lp-trilho div {
  height: 100%;
  background: var(--accent);
  border-radius: 9px;
}

.lp-trilho .lp-coral {
  background: var(--acc2);
}

.lp-capa {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--accent), var(--acc3));
}

.lp-capa-b {
  background: linear-gradient(135deg, var(--acc2), var(--acc3));
}

.lp-capa-c {
  background: linear-gradient(135deg, var(--mar), var(--accent));
}

.lp-capa-p {
  width: 40px;
  height: 40px;
}

.lp-capa-livro {
  width: 44px;
  height: 60px;
  border-radius: 6px;
}

.lp-mini-botao {
  justify-self: start;
  display: inline-block;
  margin-top: 6px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.8rem;
  font-weight: 600;
}

.lp-chip {
  display: inline-block;
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}

.lp-chip.lp-feito {
  background: var(--done-bg);
  color: var(--done-fg);
}

.lp-chip.lp-estudo {
  background: var(--study-bg);
  color: var(--study-fg);
}

.lp-chip.lp-coral {
  background: var(--lp-coral-suave);
  color: var(--acc2-texto);
}

@media (max-width: 720px) {
  .lp-g2,
  .lp-g3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-telas {
    height: 540px;
  }

  .lp-so-largo {
    display: none !important;
  }
}

/* Quadro com raias e setas */
.lp-quadro {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lp-raia {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
}

.lp-no {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font: 500 0.85rem/1.3 var(--sans);
  color: var(--text);
  text-align: left;
  transition: transform 0.2s, background 0.3s, border-color 0.3s, opacity 0.3s;
}

.lp-no-feito {
  border-color: var(--done-bd);
  background: var(--done-bg);
}

.lp-no-estudo {
  border-color: var(--acc3);
}

.lp-no-bloq {
  opacity: 0.55;
}

button.lp-no {
  cursor: pointer;
}

button.lp-no:hover {
  transform: translateY(-2px);
}

.lp-quadro svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.lp-seta {
  fill: none;
  stroke: var(--acc2);
  stroke-width: 1.8;
  stroke-dasharray: 5 5;
  animation: lp-corre 1.2s linear infinite;
}

.lp-seta-ponta {
  fill: var(--acc2);
}

@keyframes lp-corre {
  to {
    stroke-dashoffset: -20;
  }
}

.lp-quadro-demo {
  min-height: 300px;
}

.lp-status {
  min-height: 1.4em;
  margin-top: 10px !important;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

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

  .lp-quadro svg {
    display: none;
  }
}

/* Página */
.lp-pag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
}

.lp-pag-texto {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 0.95rem;
}

.lp-wiki {
  justify-self: start;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 0 4px;
  font-weight: 600;
}

.lp-callout {
  border-left: 3px solid var(--acc3);
  background: var(--study-bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.lp-callout b {
  color: var(--study-fg);
}

.lp-formula {
  font: 0.9rem var(--mono);
}

.lp-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: -3px;
  animation: lp-pisca 1s steps(2) infinite;
}

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

.lp-lateral {
  display: grid;
  gap: 8px;
  align-content: start;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  font-size: 0.85rem;
}

.lp-lateral .lp-rot:not(:first-child) {
  margin-top: 8px;
}

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

  .lp-lateral {
    display: none;
  }
}

/* Cartão de revisão que vira */
.lp-cartao-rev {
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  perspective: 1200px;
  cursor: pointer;
}

button.lp-cartao-rev:focus-visible {
  outline-offset: 6px;
}

.lp-gira {
  position: relative;
  display: block;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.lp-virado .lp-gira {
  transform: rotateY(180deg);
}

.lp-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--lp-sombra);
}

.lp-face p,
.lp-face-texto {
  font: 500 1.35rem/1.25 var(--serif);
}

.lp-verso {
  transform: rotateY(180deg);
  background: var(--accent-soft);
}

.lp-notas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lp-notas span {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
}

.lp-notas small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.lp-notas .lp-nota-certa {
  border-color: var(--accent);
}

/* Curva da memória */
.lp-curva {
  display: block;
  width: 100%;
  height: auto;
}

.lp-eixo {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.lp-esquece {
  fill: none;
  stroke: var(--acc2);
  stroke-width: 2.4;
  stroke-dasharray: 600;
  animation: lp-desenha 2.4s 0.3s ease both;
}

.lp-ponto-rev {
  fill: var(--accent);
}

.lp-curva text {
  fill: var(--muted);
  font: 12px var(--sans);
}

@keyframes lp-desenha {
  from {
    stroke-dashoffset: 600;
  }
}

/* ---------- Faixa "conversa com" ---------- */
.lp-faixa {
  padding-block: 28px;
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.lp-faixa p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.lp-marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: lp-rola 36s linear infinite;
}

.lp-marquee span {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 1.35rem var(--serif);
  color: var(--muted);
  white-space: nowrap;
}

.lp-marquee span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc2);
}

@keyframes lp-rola {
  to {
    transform: translateX(calc(-50% - 28px));
  }
}

/* ---------- Seções ---------- */
.lp-secao {
  padding-block: 110px;
}

.lp-secao-colada {
  padding-top: 20px;
}

.lp-secao-cab {
  max-width: 720px;
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.lp-secao-cab > p:last-child {
  font-size: 1.12rem;
  color: var(--muted);
}

/* Mosaico */
.lp-mosaico {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.lp-peca {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.lp-peca:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-sombra);
  border-color: var(--border-strong);
}

.lp-peca p {
  color: var(--muted);
  font-size: 0.96rem;
}

.lp-p-larga {
  grid-column: span 4;
}

.lp-p-meia {
  grid-column: span 3;
}

.lp-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.lp-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-peca-vis {
  margin-top: auto;
  padding-top: 8px;
}

.lp-barras {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 70px;
}

.lp-barras-alta {
  height: 150px;
  margin-top: 12px;
}

.lp-barras i {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 5px 5px 2px 2px;
  transform-origin: bottom;
  animation: lp-cresce 2.4s ease-in-out infinite alternate;
}

.lp-barras i:nth-child(odd) {
  background: var(--accent);
}

@keyframes lp-cresce {
  from {
    transform: scaleY(0.55);
  }
}

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

  .lp-peca,
  .lp-p-meia {
    grid-column: span 1;
  }

  .lp-p-larga {
    grid-column: span 2;
  }
}

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

  .lp-p-larga {
    grid-column: span 1;
  }
}

/* Blocos texto + tela */
.lp-bloco {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.lp-bloco + .lp-bloco {
  margin-top: 140px;
}

.lp-bloco.lp-inv {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.lp-inv .lp-bloco-texto {
  order: 2;
}

.lp-bloco-texto {
  display: grid;
  gap: 18px;
}

.lp-bloco-texto > p:not(.lp-sobre) {
  color: var(--muted);
  font-size: 1.08rem;
}

.lp-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.lp-lista li {
  display: flex;
  gap: 12px;
  align-items: start;
}

.lp-lista li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .lp-bloco,
  .lp-bloco.lp-inv {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .lp-inv .lp-bloco-texto {
    order: 0;
  }

  .lp-bloco + .lp-bloco {
    margin-top: 96px;
  }
}

/* Coleções */
.lp-abas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lp-abas button {
  border-radius: 10px;
  padding: 0.5em 0.9em;
  font-size: 0.9rem;
}

.lp-abas button[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.lp-col-painel {
  min-height: 300px;
  animation: lp-entra 0.5s ease;
}

.lp-tabela {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.lp-tabela td,
.lp-tabela th {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.lp-tabela th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.lp-tabela .lp-v {
  text-align: right;
}

.lp-rot + .lp-grande {
  display: block;
}

.lp-col-painel > .muted {
  margin-top: 12px;
}

.lp-crono {
  display: block;
  font: 600 1.6rem var(--serif);
  color: var(--acc2-texto);
  font-variant-numeric: tabular-nums;
}

.lp-saldo {
  font-size: 2rem;
  color: var(--accent);
}

.lp-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp-kanban > div {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 220px;
  background: var(--bg);
  border-radius: 10px;
  padding: 8px;
}

.lp-voa {
  animation: lp-voa 3.5s ease-in-out infinite;
}

@keyframes lp-voa {
  0%,
  30%,
  100% {
    transform: none;
  }
  50%,
  80% {
    transform: translateX(calc(100% + 18px));
  }
}

.lp-habitos {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.lp-habitos-7 {
  grid-template-columns: repeat(7, 1fr);
}

.lp-habitos i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--surface-2);
}

.lp-habitos .s {
  background: var(--accent);
}

.lp-habitos .m {
  background: color-mix(in srgb, var(--accent) 45%, var(--surface-2));
}

/* Chat com a IA */
.lp-chat {
  min-height: 360px;
}

.lp-conversa {
  display: grid;
  gap: 12px;
}

.lp-msg {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.93rem;
}

.lp-msg-eu {
  justify-self: end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}

.lp-msg-ia {
  justify-self: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.lp-ferr {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.78rem var(--mono);
  color: var(--muted);
}

.lp-ferr::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc3);
  box-shadow: 0 0 0 4px var(--study-bg);
}

.lp-conversa > .lp-aparece {
  animation: lp-entra 0.45s ease both;
}

.lp-conversa > .lp-esperando {
  display: none;
}

/* Para quem */
.lp-usos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.lp-uso {
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 2px solid var(--text);
  padding-top: 18px;
}

/* Seus dados */
.lp-seu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px);
}

.lp-seu .lp-sobre,
.lp-seu h2 em {
  color: inherit;
}

.lp-seu p:not(.lp-sobre) {
  opacity: 0.85;
  font-size: 1.08rem;
}

.lp-seu-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lp-seu-lista b {
  display: block;
  font: 500 1.15rem var(--serif);
  margin-bottom: 4px;
}

.lp-seu-lista span {
  opacity: 0.78;
  font-size: 0.92rem;
}

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

@media (max-width: 480px) {
  .lp-seu-lista {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chamada final e rodapé */
.lp-final {
  text-align: center;
  padding-block: 120px 90px;
}

.lp-final h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 400;
  max-width: 16ch;
  margin: 0 auto;
}

.lp-rodape {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  font-size: 0.88rem;
}

.lp-rodape .lp-envolve {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Entradas ao rolar: o conteúdo já nasce visível; só anima onde o navegador sabe. */
@supports (animation-timeline: view()) {
  .lp-revela {
    animation: lp-revela linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  @keyframes lp-revela {
    from {
      opacity: 0.15;
      transform: translateY(48px) scale(0.98);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition: none !important;
  }
}
