/* Site público: landing e login. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-nav > a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-nav > a:not(.btn):hover {
  color: var(--text);
}

.site-nav .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-nav {
    gap: var(--space-2);
  }

  .site-nav > a:not(.btn) {
    display: none;
  }
}

/* Em tela de celular só cabe uma ação na barra; "Entrar" segue no hero, no rodapé e na página de cadastro. */
@media (max-width: 420px) {
  .site-nav .btn-ghost {
    display: none;
  }
}

/* hero: título grande, o fluxo da live como palco logo abaixo */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
}

.hero__lead {
  font-size: var(--text-md);
  color: var(--text-soft);
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-soft);
  max-width: 48ch;
}

@media (max-width: 900px) {
  .hero {
    padding-top: var(--space-6);
  }

  .hero__copy {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero__title {
    max-width: none;
  }
}

/* palco da demo: uma tela de transmissão, escura nos dois temas. Os valores
   repetem o tema escuro de tokens.css para os componentes do painel (feed-item,
   reply, chip) se pintarem sozinhos aqui dentro. */
.stage {
  --surface: oklch(0.21 0.012 195);
  --surface-2: oklch(0.25 0.012 195);
  --surface-3: oklch(0.3 0.012 195);
  --border: oklch(0.32 0.012 195);
  --text: oklch(0.93 0.008 195);
  --text-soft: oklch(0.76 0.01 195);
  --text-faint: oklch(0.64 0.01 195);
  --gift-text: oklch(0.82 0.12 25);
  --ai: oklch(0.8 0.1 300);
  --ai-soft: oklch(0.3 0.06 300);
  --live-text: oklch(0.82 0.12 150);
  --live-soft: oklch(0.3 0.06 150);
  --live: oklch(0.7 0.17 150);
  --brand: oklch(0.78 0.1 195);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: oklch(0.17 0.012 195);
  border: 1px solid var(--border);
  color: var(--text);
  color-scheme: dark;
  box-shadow: var(--shadow-2);
}

.stage__col {
  min-width: 0;
}

.stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 28px;
  margin-bottom: var(--space-4);
}

.stage__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
}

.stage__meta {
  font-size: var(--text-xs);
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

/* altura fixa para a coluna não pular a cada evento que entra */
.stage__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  min-height: 240px;
}

.feed-item {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--surface-2);
}

.feed-item__who {
  font-weight: 600;
  white-space: nowrap;
}

.feed-item__text {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.feed-item--gift .feed-item__text {
  color: var(--gift-text);
  font-weight: 600;
}

.feed-item--member .feed-item__text {
  font-style: normal;
  color: var(--text-faint);
}

.reply {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--ai);
  background: var(--ai-soft);
}

.reply__badge {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ai);
  color: var(--surface);
  font-size: var(--text-xs);
  font-weight: 700;
}

.reply__text {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

/* a resposta muda de "sugerida" para "publicada" quando o overlay a mostra */
.reply__state-live {
  display: none;
}

.reply .chip--ai {
  background: color-mix(in oklch, var(--ai-soft), var(--ai) 22%);
}

.reply.is-published .reply__state-draft {
  display: none;
}

.reply.is-published .reply__state-live {
  display: inline-flex;
}

/* quadro da transmissão: a cena é só um fundo; o overlay é o que importa */
.stage__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 20% 10%, oklch(0.36 0.07 195), transparent 60%),
    linear-gradient(160deg, oklch(0.27 0.04 260), oklch(0.2 0.03 300));
}

.stage__card {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-left: var(--space-1) solid var(--ai);
  border-radius: var(--radius-sm);
  background: oklch(0.14 0.012 195 / 0.92);
}

.stage__card-who {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ai);
}

.stage__card-text {
  margin-top: var(--space-1);
  font-size: var(--text-md);
  line-height: 1.3;
}

/* uma sequência orquestrada: os eventos entram em ordem (hero-demo.js) */
.stage [data-step].is-pending {
  opacity: 0;
  transform: translateY(var(--space-2));
}

.stage [data-step].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-4);
  }

  .stage__list {
    min-height: 0;
  }
}

/* seções */
.section {
  padding: var(--space-8) 0;
}

.section--alt {
  background: var(--surface-2);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.section__lead {
  color: var(--text-soft);
  margin: calc(-1 * var(--space-4)) 0 var(--space-5);
  max-width: var(--measure);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: passo;
}

.step {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: var(--text-xl);
}

.step p {
  color: var(--text-soft);
  max-width: 40ch;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-8);
}

.features h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.features p {
  color: var(--text-soft);
  max-width: 44ch;
}

/* Mesma borda esquerda das outras seções; só a medida de leitura é limitada. */
.limits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  max-width: 72ch;
}

.limits li {
  padding-left: var(--space-5);
  border-left: 3px solid var(--border-strong);
  color: var(--text-soft);
}

.limits strong {
  color: var(--text);
}

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

  .section {
    padding: var(--space-7) 0;
  }

  .section__title {
    font-size: var(--text-2xl);
  }
}

.form-card {
  max-width: 560px;
}

.site-footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

/* login */
.auth {
  min-height: calc(100vh - 64px - 96px);
  display: grid;
  place-items: center;
  padding: var(--space-7) var(--space-4);
}

.auth__card {
  width: 100%;
  max-width: 400px;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.auth__title {
  font-size: var(--text-2xl);
}

.auth__lead {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--text-soft);
}

.auth__card .form-error {
  margin-bottom: var(--space-4);
}

.auth__foot {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  text-align: center;
}
