/* ==========================================================================
   AULA GRATUITA (07/11/2026): cadastro e página para assistir.
   Mesma identidade da página do curso (06-lp/site/css/estilo.css): chão preto,
   grafite como segunda superfície, âmbar só em ação. Títulos em Noto Serif
   Display, texto em Hanken Grotesk. Para trocar uma cor, mude só em :root.
   ========================================================================== */

@font-face {
  font-family: "Hanken Reserva";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.4%;
  ascent-override: 99.6%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Noto Serif Reserva";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 107.1%;
  ascent-override: 99.9%;
  descent-override: 27.1%;
  line-gap-override: 0%;
}

:root {
  --preto: #000000;
  --grafite: #191919;
  --carvao: #111111;
  --branco: #ffffff;
  --ambar: #f3ab5f;
  --ambar-claro: #ffc078;
  --erro: #ffb4a2;
  --texto: rgba(255, 255, 255, 0.86);
  --suave: rgba(255, 255, 255, 0.62);
  --linha: rgba(255, 255, 255, 0.16);
  --titulo: "Noto Serif Display", "Noto Serif Reserva", Georgia, "Times New Roman", serif;
  --corpo: "Hanken Grotesk", "Hanken Reserva", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --largura: 68rem;
  --margem: clamp(1.25rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ambar); color: var(--preto); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--branco); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 2px;
}

.miolo { width: min(100%, var(--largura)); margin-inline: auto; padding-inline: var(--margem); }

/* Cabeçalho */
.cabecalho { border-bottom: 1px solid var(--linha); }
.cabecalho .miolo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marca {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 500; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap; color: var(--branco); text-decoration: none;
}
.marca img { width: auto; height: 1.6rem; }
.cabecalho-link { font-size: 0.875rem; color: var(--suave); }

/* Títulos */
h1, h2 {
  font-family: var(--titulo); font-weight: 400; color: var(--branco);
  letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 8.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.12; }
.chamada {
  margin: 0 0 1rem; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ambar);
}
.sub { margin: 1.1rem 0 0; font-size: 1.125rem; color: var(--texto); max-width: 34rem; }

/* Topo do cadastro: texto e formulário à esquerda, prévia à direita */
.topo { padding-block: clamp(2.25rem, 7vw, 4.5rem); }
.topo-grade { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 60rem) {
  .topo-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; }
  .topo-grade h1 { font-size: clamp(2.6rem, 3.4vw, 3.4rem); }
  .topo-grade .previa { margin-top: 2.2rem; }
}

.previa { position: relative; margin: 0; border: 1px solid var(--linha); background: var(--carvao); cursor: pointer; }
.previa img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.previa::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.72));
}
.previa-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.5);
}
.previa-play svg { width: 1.6rem; height: 1.6rem; margin-left: 0.25rem; color: var(--branco); }
.previa figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 0.8rem; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--branco);
}
.previa figcaption span:last-child { color: var(--ambar); }

/* Formulário */
.cadastro { margin-top: 2rem; padding: 1.5rem; background: var(--grafite); border: 1px solid var(--linha); border-top: 2px solid var(--ambar); }
.cadastro label { display: block; margin-bottom: 0.9rem; font-size: 0.875rem; font-weight: 500; color: var(--branco); }
.cadastro input[type="text"], .cadastro input[type="email"] {
  display: block; width: 100%; margin-top: 0.35rem; min-height: 3rem; padding: 0.6rem 0.8rem;
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--branco);
  background: var(--preto); border: 1px solid var(--linha); border-radius: 3px;
}
.cadastro .armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cadastro-erro { margin: 0 0 0.9rem; color: var(--erro); font-size: 0.875rem; }
.cadastro-aviso { margin: 0.9rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--suave); }
.cadastro-aviso a { color: var(--texto); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 3.5rem; padding: 0.9rem 2rem; background: var(--ambar); color: var(--preto);
  font-family: var(--corpo); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
}
.botao:hover { background: var(--ambar-claro); }
.botao[disabled] { opacity: 0.7; cursor: progress; }
.botao--auto { width: auto; }

/* Blocos de conteúdo */
.bloco { padding-block: clamp(3rem, 9vw, 5.5rem); border-top: 1px solid var(--linha); }
.bloco--grafite { background: var(--grafite); }

.dicas { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: dica; }
@media (min-width: 48rem) { .dicas { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.dicas li {
  counter-increment: dica; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--linha);
}
.dicas li::before { content: counter(dica); font-family: var(--titulo); font-size: 1.5rem; line-height: 1.2; color: var(--ambar); }
.dicas strong { display: block; color: var(--branco); font-weight: 600; }
.dicas span { font-size: 0.9375rem; color: var(--suave); }

.autor { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .autor { grid-template-columns: 11rem 1fr; gap: 2.5rem; } }
.autor img { width: 11rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.autor p { margin: 0.75rem 0 0; max-width: 38rem; }

/* Página para assistir */
.video-moldura { position: relative; max-width: 60rem; aspect-ratio: 16 / 9; background: var(--carvao); border: 1px solid var(--linha); margin-top: 2rem; }
.video-moldura iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nota { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--suave); }
.curso { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .curso { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.curso p { margin: 1rem 0 0; max-width: 34rem; }
.curso .botao { margin-top: 1.75rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding-block: 2.5rem 6.5rem; font-size: 0.875rem; color: var(--suave); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: 0 0 1rem; }
.rodape a, .rodape button { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto); }
.rodape button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rodape p { margin: 0; }

/* Aviso de cookies (igual ao da página do curso) */
.cookies {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem;
  padding: 0.75rem var(--margem); padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--grafite); border-top: 1px solid var(--linha);
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; flex: 1 1 14rem; font-size: 0.8125rem; line-height: 1.45; }
.cookies div { display: flex; gap: 0.5rem; }
.cookies button {
  font: inherit; font-weight: 600; font-size: 0.875rem; min-height: 44px; padding: 0 1.25rem;
  border-radius: 3px; cursor: pointer; border: 1px solid var(--suave); background: transparent; color: var(--branco);
}
.cookies button[data-cookies="sim"] { border-color: var(--branco); background: var(--branco); color: var(--preto); }

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