/**
 * i18n por CSS — sem fetch nem frameworks.
 *
 * Marcadores:
 *   .t         — texto curto inline (display toggle)
 *   .t--block  — parágrafos simples
 *   .t--stack  — reserva altura da variante mais longa (grid sobreposto)
 */

.t > [lang],
.t--block > [lang] {
  display: none;
}

/* Português */
html[lang='pt-BR'] .t > [lang='pt'],
html[lang='pt'] .t > [lang='pt'],
html[lang='pt-BR'] .t--block > [lang='pt'],
html[lang='pt'] .t--block > [lang='pt'] {
  display: inline;
}

html[lang='pt-BR'] .t--block > [lang='pt'],
html[lang='pt'] .t--block > [lang='pt'] {
  display: block;
}

/* English */
html[lang='en'] .t > [lang='en'],
html[lang='en'] .t--block > [lang='en'] {
  display: inline;
}

html[lang='en'] .t--block > [lang='en'] {
  display: block;
}

/* Español */
html[lang='es'] .t > [lang='es'],
html[lang='es'] .t--block > [lang='es'] {
  display: inline;
}

html[lang='es'] .t--block > [lang='es'] {
  display: block;
}

/* Deutsch */
html[lang='de'] .t > [lang='de'],
html[lang='de'] .t--block > [lang='de'] {
  display: inline;
}

html[lang='de'] .t--block > [lang='de'] {
  display: block;
}

/* ── Stack: altura estável (todas as línguas medem o bloco) ── */

.t--stack {
  display: grid;
  grid-template: 1fr / 1fr;
  align-content: start;
}

.t--stack > [lang] {
  grid-area: 1 / 1;
  display: block;
  visibility: hidden;
  pointer-events: none;
  margin: 0;
}

html[lang='pt-BR'] .t--stack > [lang='pt'],
html[lang='pt'] .t--stack > [lang='pt'],
html[lang='en'] .t--stack > [lang='en'],
html[lang='es'] .t--stack > [lang='es'],
html[lang='de'] .t--stack > [lang='de'] {
  visibility: visible;
  pointer-events: auto;
}

/* Slots com altura mínima por zona */
.hero-title.t--stack {
  min-height: clamp(7.5rem, 22vw, 11rem);
}

.hero-subtitle.t--stack {
  min-height: 4.75rem;
}

.signup-card__title.t--stack {
  min-height: 4.5rem;
}

.section-title.t--stack {
  min-height: clamp(2.75rem, 8vw, 4rem);
}

.section-lead.t--stack {
  min-height: 3.75rem;
}

.step__text.t--stack {
  min-height: 4.25rem;
}

.card__text.t--stack {
  min-height: 4.5rem;
}

.card__title.t--stack {
  min-height: 2.75rem;
}

.faq-item__answer.t--stack {
  min-height: 3.25rem;
}

.audience-card > p.t--stack {
  min-height: 4.5rem;
}

.cta-band h2.t--stack {
  min-height: 2.75rem;
}

.cta-band p.t--stack {
  min-height: 2.75rem;
}

.live-strip__text.t--stack {
  min-height: 1.25rem;
}

.stat-item__label.t--stack {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-card__badge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-height: 1.25rem;
}

.signup-card__badge-row > .t--stack {
  min-height: 1.25rem;
}

/* ── Dropdown de idioma ─────────────────────────────────── */

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

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

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lang-dropdown__trigger:hover {
  border-color: var(--violet-500);
}

.lang-dropdown__trigger[aria-expanded='true'] {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.lang-dropdown__flag {
  width: 1.375rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.lang-dropdown__chevron {
  display: none;
}

@media (min-width: 480px) {
  .lang-dropdown__trigger {
    width: auto;
    min-width: 4.25rem;
    padding: 0 0.625rem;
    justify-content: space-between;
  }

  .lang-dropdown__chevron {
    display: block;
    flex-shrink: 0;
    color: var(--slate-500);
  }
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 80;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.lang-dropdown__menu[hidden] {
  display: none;
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.lang-dropdown__option:hover {
  background: var(--violet-50);
}

.lang-dropdown__option[aria-selected='true'] {
  background: var(--violet-50);
  color: var(--violet-700);
  font-weight: 700;
}

.lang-dropdown__option-flag {
  width: 1.25rem;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Header / nav — larguras estáveis */
.nav-desktop {
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav-desktop a {
  white-space: nowrap;
  min-width: 0;
}

.header-cta {
  min-width: 7.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header-cta {
    min-width: 8.75rem;
  }
}

.live-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  text-align: center;
  min-height: var(--live-strip-h);
  align-content: center;
}

@media (min-width: 640px) {
  .live-strip__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }

  .live-strip__inner > span:last-of-type {
    text-align: right;
  }
}

.hero-copy {
  display: grid;
  gap: 0;
  align-content: start;
}

.marquee-band__head {
  display: grid;
  gap: 0.25rem 1rem;
  align-items: baseline;
}

@media (min-width: 640px) {
  .marquee-band__head {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-item summary.t--stack {
  min-height: 3rem;
  align-items: center;
}

.faq-item summary {
  display: flex;
  align-items: center;
}
