/* ═══════════════════════════════════════════════════════════════════
   UFVAI — Site institucional v2
   Identidade visual derivada do logotipo oficial:
   navy grafite #2E3242 · dourado #C9A227 · off-white #F2F2F0
   verde-sálvia #8FA382 · vinho #7B3B44
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #F2F2F0;
  --bg-alt: #EBEBE7;
  --surface: #FFFFFF;
  --ink: #2E3242;
  --body: #4A4F5C;
  --muted: #646976;
  --line: rgba(46, 50, 66, .14);
  --line-strong: rgba(46, 50, 66, .30);
  --gold: #C9A227;
  --gold-ink: #7D6216;          /* dourado escurecido p/ texto pequeno (WCAG AA) */
  --wine: #7B3B44;
  --sage: #8FA382;
  --sage-ink: #5F7355;
  --cta-bg: #2E3242;
  --footer-bg: #2E3242;
  --shadow: 0 24px 60px -30px rgba(46, 50, 66, .28);
  --radius: 12px;
  --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #171A24;
  --bg-alt: #1B1F2B;
  --surface: #212634;
  --ink: #EDEBE6;
  --body: #C6C9D2;
  --muted: #9AA0AE;
  --line: rgba(237, 235, 230, .14);
  --line-strong: rgba(237, 235, 230, .32);
  --gold: #C9A227;
  --gold-ink: #D9B441;
  --wine: #B98089;
  --sage: #9DB38F;
  --sage-ink: #A9BD9B;
  --cta-bg: #1F2430;
  --footer-bg: #12151D;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--gold); color: #2E3242; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 48px); }

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

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 100;
  background: var(--gold); color: #2E3242;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus { top: 12px; }

/* ── Marca (wordmark do logo: UFV navy + AI dourado, V/A encaixados) ── */
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand__word {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__word em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  margin-left: -0.075em;   /* V e A encaixados, como no logo */
}
.brand__word--inv { color: #F2F2F0; font-size: 1.5rem; }

/* ── Rótulos com tracking ampliado (estilo "INTELIGÊNCIA ARTIFICIAL") ── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ── Linhas finas (eco da linha sob o wordmark do logo) ─────────────── */
.rule {
  height: 1px;
  width: min(560px, 100%);
  background: linear-gradient(90deg, var(--line-strong), var(--line) 55%, transparent);
  margin: 26px 0 30px;
}
.rule--short {
  width: 88px;
  background: var(--gold);
  opacity: .85;
  margin: 22px 0 44px;
}

/* ── Botões ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease, background-color .25s ease;
}
.btn--gold {
  background: var(--gold);
  color: #2E3242;
  box-shadow: 0 12px 26px -14px rgba(201, 162, 39, .65);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(201, 162, 39, .8); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-ink); transform: translateY(-2px); }
.btn--ghost-inv { border-color: rgba(242, 242, 240, .42); color: #F2F2F0; }
.btn--ghost-inv:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 9px 18px; font-size: .84rem; white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; height: 70px;
  /* header um pouco mais largo que o conteúdo (1120px): é o único jeito de
     os 8 itens do menu caberem em UMA linha, em todos os idiomas */
  width: min(1200px, 100% - 48px);
}
.nav ul { display: flex; flex-wrap: nowrap; gap: 14px; }
.nav a {
  text-decoration: none; font-size: .83rem; font-weight: 500; color: var(--body);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a:hover { color: var(--ink); }

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

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-ink); transform: rotate(12deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; align-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.6px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ── Constelação (motivo de rede neural do logo) ────────────────────── */
.constel {
  position: absolute;
  width: clamp(240px, 34vw, 460px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.cl line { stroke-width: 1; }
.cl--a line { stroke: var(--wine); opacity: .32; }
.cl--b line { stroke: var(--gold); opacity: .38; }
.nd--wine { fill: var(--wine); }
.nd--gold { fill: var(--gold); }
.nd--sage { fill: var(--sage); }
.nd {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 4.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: .95; }
  50%      { transform: scale(1.45); opacity: .5;  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 13vh, 132px) 0 clamp(64px, 8vw, 100px);
}
.constel--tr { top: -50px; right: -70px; }
.constel--bl { bottom: -70px; left: -80px; transform: rotate(180deg); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
  position: relative;
}
.wordmark--xl {
  display: block;
  font-size: clamp(3.2rem, 8.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}
.hero__typed-line {
  display: block;
  margin-top: 12px;
  min-height: 1.7em;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 500;
  color: var(--body);
}
.caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
  max-width: 54ch;
  font-size: 1.02rem;
  line-height: 1.8;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Estatísticas animadas */
.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 4vw, 56px);
  justify-content: start;
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--gold-ink); }
.stat__label {
  margin-top: 2px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Mockup do chat ─────────────────────────────────────────────────── */
.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--wine { background: var(--wine); }
.dot--gold { background: var(--gold); }
.dot--sage { background: var(--sage); }
.chat__bar-title {
  margin-left: 10px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.chat__body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px;
  min-height: 330px;
}
.msg {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.65;
  animation: msgIn .45s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.msg--ai {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-bottom-left-radius: 4px;
  color: var(--body);
}
.chip {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
}
.chip--ok   { color: var(--sage-ink); border-color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, transparent); }
.chip--none { color: var(--wine);     border-color: var(--wine); background: color-mix(in srgb, var(--wine) 10%, transparent); }
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0);    opacity: .55; }
  50%      { transform: translateY(-5px); opacity: 1;   }
}
.chat__input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.chat__send {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.chat__send svg { width: 15px; height: 15px; fill: #2E3242; }

/* ── Seções ─────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 118px) 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  letter-spacing: -0.015em;
}
.section__title .accent { color: var(--gold-ink); }

/* Sobre */
.sobre__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}
.sobre__text p { line-height: 1.85; margin-bottom: 16px; }
.sobre__text strong { color: var(--ink); }
.sobre__markers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.marker {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.marker--ok   { color: var(--sage-ink); border-color: var(--sage); background: color-mix(in srgb, var(--sage) 10%, transparent); }
.marker--est  { color: var(--gold-ink); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.marker--none { color: var(--wine);     border-color: var(--wine); background: color-mix(in srgb, var(--wine) 8%, transparent); }

.sobre__list { display: flex; flex-direction: column; gap: 20px; }
.sobre__list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.sobre__list li:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-3px); box-shadow: var(--shadow); }
.sobre__icon {
  flex: none;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.sobre__icon svg, .card__icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gold-stroke { stroke: var(--gold); }
.sobre__list h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.sobre__list p { font-size: .92rem; line-height: 1.7; }

/* Funcionalidades */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  margin-bottom: 20px;
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .92rem; line-height: 1.7; }

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
  position: relative;
  counter-reset: passo;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 14%; right: 14%;
  height: 1px;
  background: var(--line-strong);
}
.step { text-align: center; position: relative; }
.step__node {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: 0 0 0 8px var(--bg);
  display: grid; place-items: center;
  position: relative; z-index: 1;
  transition: border-color .3s ease;
}
.step:hover .step__node { border-color: var(--gold); }
.step__num { font-weight: 600; font-size: 1.15rem; color: var(--gold-ink); }
.step h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: .92rem; line-height: 1.7; max-width: 32ch; margin-inline: auto; }

/* Casos de uso / depoimentos */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.quote:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-4px); box-shadow: var(--shadow); }
.quote__mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  line-height: .9;
  color: var(--gold);
  margin-bottom: 10px;
}
.quote blockquote { font-size: .95rem; line-height: 1.75; }
.quote figcaption {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footnote {
  margin-top: 22px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: .04em;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq + .faq { border-top: 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 4px;
  background: none; border: 0; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  text-align: left;
  transition: color .25s ease;
}
.faq__q:hover { color: var(--gold-ink); }
.faq__sign { position: relative; flex: none; width: 14px; height: 14px; }
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  background: var(--gold);
  transition: transform .3s ease;
}
.faq__sign::before { width: 14px; height: 2px; }
.faq__sign::after  { width: 2px; height: 14px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__a { padding: 0 4px 24px; line-height: 1.8; font-size: .95rem; }
.faq__a:not([hidden]) { animation: fadeDown .35s ease; }
.faq__a strong { color: var(--ink); }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* CTA final */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--cta-bg);
  padding: clamp(72px, 9vw, 110px) 0;
  text-align: center;
}
.cta h2 { color: #F2F2F0; font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.015em; }
.cta p { color: rgba(242, 242, 240, .78); max-width: 56ch; margin: 16px auto 32px; }
.cta .hero__cta { justify-content: center; margin-top: 0; }
.constel--cta { top: -90px; right: -90px; transform: rotate(90deg); opacity: .8; }

/* Constelações em fundos escuros (CTA e footer): linhas claras */
.cta .cl--a line, .footer .cl--a line { stroke: rgba(242, 242, 240, .30); }
.cta .cl--b line, .footer .cl--b line { stroke: rgba(201, 162, 39, .40); }
.cta .nd--wine, .footer .nd--wine { fill: #C58B93; }
.cta .nd--sage, .footer .nd--sage { fill: #A9BD9B; }
.cta .nd--gold, .footer .nd--gold { fill: #D9B441; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  padding-top: clamp(56px, 7vw, 84px);
}
.constel--footer { right: -80px; top: -80px; transform: rotate(90deg); opacity: .5; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 52px;
  position: relative;
}
.rule--footer {
  width: 190px;
  margin: 16px 0 12px;
  background: linear-gradient(90deg, rgba(242, 242, 240, .55), transparent);
}
.footer__tagline {
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .72rem;
  color: rgba(242, 242, 240, .62);
}
.footer__desc { margin-top: 14px; font-size: .88rem; line-height: 1.7; color: rgba(242, 242, 240, .72); max-width: 30ch; }
.footer h3 {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__col li { margin: 9px 0; }
.footer__col a {
  text-decoration: none;
  font-size: .9rem;
  color: rgba(242, 242, 240, .78);
  transition: color .25s ease;
}
.footer__col a:hover { color: var(--gold); }
.footer__col p { font-size: .88rem; line-height: 1.7; color: rgba(242, 242, 240, .72); }
.footer__disclaimer { margin-top: 12px; font-size: .8rem; color: rgba(242, 242, 240, .55); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(242, 242, 240, .14);
  padding: 20px 0 28px;
  font-size: .8rem;
  color: rgba(242, 242, 240, .6);
  position: relative;
}
.footer__motto { letter-spacing: .08em; }

/* ── Revelação ao rolar ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.cards > .reveal:nth-child(2), .quotes > .reveal:nth-child(2),
.steps > .reveal:nth-child(2), .sobre__list > .reveal:nth-child(2) { transition-delay: .1s; }
.cards > .reveal:nth-child(3), .quotes > .reveal:nth-child(3),
.steps > .reveal:nth-child(3), .sobre__list > .reveal:nth-child(3) { transition-delay: .2s; }
.cards > .reveal:nth-child(4) { transition-delay: .1s; }
.cards > .reveal:nth-child(5) { transition-delay: .2s; }
.cards > .reveal:nth-child(6) { transition-delay: .3s; }

/* ── Menu: 8 itens só cabem em UMA linha acima de 1240px ────────────── */
/* Antes de 17/10/2026 o menu tinha 7 itens e cabia em 1120px. Com o 8º
   ("Tutorial") o texto passou a quebrar em duas linhas e o header
   transbordava. O pior caso é o espanhol (precisa de ~1171px). Aqui o
   menu colapsa (hambúrguer) ANTES de quebrar, em todos os idiomas. */
@media (max-width: 1240px) {
  .nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 24px 18px; }
  .nav a { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ── Responsivo ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { max-width: 560px; }
  .sobre__grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 24px 18px; }
  .nav a { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .topbar .btn--sm { display: none; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { left: 27px; right: auto; top: 16px; bottom: 16px; width: 1px; height: auto; }
  .step {
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px; row-gap: 6px;
    text-align: left; align-items: start; align-content: start;
  }
  .step__node { grid-row: 1 / span 2; grid-column: 1; margin: 0; box-shadow: 0 0 0 6px var(--bg); }
  .step h3 { grid-row: 1; grid-column: 2; margin-bottom: 0; }
  .step p { grid-row: 2; grid-column: 2; margin-inline: 0; max-width: 46ch; }
}

@media (max-width: 640px) {
  .steps { gap: 26px; }
  .step { grid-template-columns: 46px 1fr; column-gap: 14px; }
  .step__node { width: 46px; height: 46px; }
  .step__num { font-size: 1.02rem; }
  .steps::before { left: 23px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .constel--tr { right: -120px; opacity: .8; }
  .constel--bl { left: -120px; opacity: .8; }
}

/* ── Movimento reduzido (WCAG 2.3.3) ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}

/* ── Demo animada: boot → Termos → tela principal ──────────────────── */
.demo__caption {
  margin-top: 14px;
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .05em;
  text-align: center;
}
.screen {
  position: relative;
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px;
  opacity: 0;
  transform: scale(.985);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.screen__panel.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .55s ease, transform .55s ease;
}

/* Estágio 1 — carregamento */
.panel--boot {
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
}
.wordmark--sm { font-size: 2rem; }
.wordmark--xs { font-size: 1.05rem; }
.boot__bar {
  width: min(320px, 78%);
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.boot__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-ink));
  transition: width .18s linear;
}
.boot__pct {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.boot__list { text-align: left; margin-top: 6px; }
.boot__list li {
  position: relative;
  padding-left: 24px;
  margin: 6px 0;
  font-size: .82rem;
  color: var(--muted);
  opacity: .38;
  transition: opacity .4s ease;
}
.boot__list li::before {
  content: "";
  position: absolute; left: 4px; top: .48em;
  width: 9px; height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.boot__list li.done { opacity: 1; }
.boot__list li.done::before {
  border-color: var(--sage);
  background: var(--sage);
  box-shadow: inset 0 0 0 2px var(--bg);
}
.boot__open {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.boot__open.show { opacity: 1; transform: none; animation: btnGlow 1.6s ease-in-out 2; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 12px 26px -14px rgba(201, 162, 39, .55); }
  50%      { box-shadow: 0 12px 34px -10px rgba(201, 162, 39, .95); }
}

/* Estágio 2 — Termos de Uso */
.panel--terms {
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin-inline: auto;
  inset: 0;
}
.terms__title {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}
.terms__box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px 14px;
  max-height: 86px;
  overflow: hidden;
}
.terms__box p { font-size: .76rem; line-height: 1.6; color: var(--muted); margin: 4px 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: .86rem;
  padding: 9px 12px;
  transition: border-color .25s ease;
}
.field input:focus { outline: none; }
.field--typing input { border-color: var(--gold); }
.check {
  display: flex; align-items: center; gap: 9px;
  font-size: .8rem;
  color: var(--body);
  cursor: default;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check > span:first-of-type {
  flex: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
  transition: background-color .25s ease, border-color .25s ease;
}
.check input:checked + span:first-of-type { background: var(--gold); border-color: var(--gold); }
.check input:checked + span:first-of-type::after {
  content: "";
  position: absolute; left: 4.5px; top: 1.5px;
  width: 5px; height: 9px;
  border: solid #2E3242;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.terms__btn {
  margin-top: 6px;
  align-self: center;
  opacity: .55;
  transition: opacity .3s ease, transform .2s ease, box-shadow .3s ease;
  pointer-events: none;
}
.terms__btn.ready { opacity: 1; }
.terms__btn.clicked { transform: scale(.96); box-shadow: 0 6px 18px -8px rgba(201, 162, 39, .9); }

/* Estágio 3 — tela principal (fiel ao wrapper real: claro e escuro) */
.screen {
  /* tema claro = padrão do app (Print 12 — Tema claro) */
  --t-bg: #ffffff;
  --t-panel: #ffffff;
  --t-tabs: #f4f4f1;
  --t-line: #dcdcd6;
  --t-ink: #2E3242;
  --t-muted: #6E7380;
  --t-gold: #8A6D10;
  --t-gold-solid: #C9A227;
  --t-green: #1A7F37;
  --t-blue: #0969DA;
  --t-red: #CF222E;
  --t-btn: #ffffff;
  --t-ctx-bar: #E8E8E3;
}
[data-theme="dark"] .screen {
  /* tema escuro = padrão do app (Print 03 — Interface principal) */
  --t-bg: #0d1117;
  --t-panel: #161b22;
  --t-tabs: #0d1117;
  --t-line: #30363d;
  --t-ink: #c9d1d9;
  --t-muted: #8b949e;
  --t-gold: #C9A227;
  --t-gold-solid: #C9A227;
  --t-green: #3fb950;
  --t-blue: #58a6ff;
  --t-red: #f85149;
  --t-btn: #21262d;
  --t-ctx-bar: #21262d;
}

.panel--app {
  padding: 0;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .62rem;
  line-height: 1.5;
}

/* barra superior */
.app-top {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px;
  background: var(--t-panel);
  border-bottom: 1px solid var(--t-line);
  flex: none;
}
.app-brand { font-size: .95rem; color: var(--t-ink); }
.app-ver {
  font-size: .5rem; color: var(--t-muted);
  border: 1px solid var(--t-line);
  border-radius: 999px; padding: 1px 6px;
}
.app-top .status {
  margin-left: 1px; font-size: .5rem; letter-spacing: .04em;
  color: var(--t-green);
}
.app-top .status-dot { width: 6px; height: 6px; background: var(--t-green); }
.app-icons {
  display: flex; align-items: center; gap: 8px;
  margin-left: 8px; color: var(--t-muted); font-size: .66rem;
}
.app-ico { opacity: .75; }
.app-ico--lang {
  font-size: .48rem; border: 1px solid var(--t-line);
  border-radius: 3px; padding: 0 4px; opacity: 1;
}
.app-actions { margin-left: auto; display: flex; gap: 5px; }
.app-btn {
  font-size: .48rem; padding: 2px 6px;
  border: 1px solid var(--t-line); border-radius: 3px;
  background: var(--t-btn); color: var(--t-ink);
  white-space: nowrap; line-height: 1.5;
}
.app-btn--gold {
  background: var(--t-gold-solid); border-color: var(--t-gold-solid);
  color: #2E3242; font-weight: 700;
}
.app-btn--exit {
  color: var(--t-red);
  border-color: color-mix(in srgb, var(--t-red) 40%, transparent);
}

/* abas */
.app-tabs {
  display: flex; align-items: flex-end; gap: 2px;
  height: 26px; padding: 0 6px;
  background: var(--t-tabs);
  border-bottom: 1px solid var(--t-line);
  flex: none;
}
.app-tab {
  font-size: .5rem; padding: 3px 8px;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: var(--t-muted); white-space: nowrap;
}
.app-tab.is-active {
  background: var(--t-panel); border-color: var(--t-line);
  color: var(--t-ink);
}
.app-tab-plus { font-size: .62rem; color: var(--t-muted); padding: 0 6px; }

/* terminal + contexto */
.app-main { display: flex; flex: 1; min-height: 0; }
.term {
  flex: 1; min-width: 0;
  padding: 8px 10px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--t-line) transparent;
}
.term::-webkit-scrollbar { width: 6px; }
.term::-webkit-scrollbar-thumb { background: var(--t-line); border-radius: 3px; }
.term-line {
  margin: 0 0 4px; white-space: pre-wrap; word-break: break-word;
  animation: termIn .22s ease both;
}
.term-line--sys { color: var(--t-green); }
.term-line--user { color: var(--t-ink); }
.term-line--user::before { content: "❯ "; color: var(--t-gold); }
.term-line--thought { color: var(--t-muted); }
.term-line--thought b { color: var(--t-gold); font-weight: 600; }
.term-block { margin: 0 0 6px; }
.term-block .term-line:last-child { margin-bottom: 0; }
.term-chip {
  display: inline-block; margin-left: 4px;
  padding: 0 4px; border-radius: 2px;
  font-size: .48rem; font-weight: 700; letter-spacing: .02em;
}
.term-chip--ok {
  color: var(--t-green);
  border: 1px solid color-mix(in srgb, var(--t-green) 45%, transparent);
}
.term-chip--none {
  color: var(--t-red);
  border: 1px solid color-mix(in srgb, var(--t-red) 45%, transparent);
}
.term-src {
  display: block; margin-top: 2px;
  color: var(--t-muted); font-size: .48rem;
}
.term-cursor {
  display: inline-block; width: 5px; height: 9px;
  background: var(--t-gold); vertical-align: -1px;
  animation: termBlink 1s step-end infinite;
}
@keyframes termIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}
@keyframes termBlink { 50% { opacity: 0; } }

.ctx {
  width: 168px; flex: none;
  padding: 8px 9px;
  border-left: 1px solid var(--t-line);
  background: var(--t-bg);
  color: var(--t-muted);
  font-size: .5rem; line-height: 1.45;
  overflow: hidden;
}
.ctx-title {
  color: var(--t-ink); font-size: .54rem; line-height: 1.4;
  margin-bottom: 8px;
}
.ctx-label {
  color: var(--t-muted);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .43rem; margin-top: 8px;
}
.ctx-meta { font-size: .48rem; }
.ctx-bar {
  height: 3px; background: var(--t-ctx-bar); border-radius: 999px;
  margin: 4px 0; overflow: hidden;
}
.ctx-bar span { display: block; height: 100%; width: 25%; background: var(--t-gold); }
.ctx hr { border: none; border-top: 1px solid var(--t-line); margin: 8px 0 4px; }

/* status + rodapé */
.app-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 20px; padding: 0 8px;
  background: var(--t-panel);
  border-top: 1px solid var(--t-line);
  color: var(--t-muted); font-size: .45rem;
  flex: none;
}
.app-foot {
  display: flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 8px;
  background: var(--t-panel);
  border-top: 1px solid var(--t-line);
  color: var(--t-muted); font-size: .44rem;
  flex: none; overflow: hidden;
}
.app-foot-brand { color: var(--t-gold); font-weight: 700; font-size: .55rem; }
.app-foot-chip {
  border: 1px solid var(--t-line); border-radius: 3px;
  padding: 1px 5px; color: var(--t-ink); white-space: nowrap;
}
.app-foot-link { color: var(--t-blue); white-space: nowrap; }
.app-foot-place { white-space: nowrap; }
.app-foot-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.app-foot-cta {
  border: 1px solid var(--t-gold); color: var(--t-gold);
  border-radius: 3px; padding: 1px 5px; white-space: nowrap;
}
.app-foot-pow { color: var(--t-muted); white-space: nowrap; }

.sysline {
  align-self: center;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 2px 0;
  animation: msgIn .45s ease both;
}
.msg__source {
  display: block;
  margin-top: 7px;
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--muted);
}
.screen__replay {
  position: absolute; top: auto; bottom: 54px; right: 10px; z-index: 6;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--t-line);
  border-radius: 50%;
  background: var(--t-panel);
  color: var(--t-muted);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.screen__replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen__replay:hover { color: var(--t-gold-solid); border-color: var(--t-gold-solid); transform: rotate(-40deg); }

/* v0.7.5 — demo fiel ao wrapper em telas estreitas */
@media (max-width: 700px) {
  .app-top { gap: 4px; padding: 0 6px; height: 32px; }
  .app-brand { font-size: .85rem; }
  .app-ver { display: none; }
  .app-top .status { font-size: .44rem; letter-spacing: 0; white-space: nowrap; }
  .app-icons { display: none; }
  .app-actions { gap: 3px; }
  .app-btn { font-size: .44rem; padding: 1px 4px; }
  .app-btn:not(.app-btn--gold):not(.app-btn--exit) { display: none; }
  .app-tabs { height: 24px; padding: 0 4px; }
  .app-tab { font-size: .45rem; padding: 2px 6px; }
  .app-tab:nth-child(2) { display: none; }
  .app-tab-plus { font-size: .55rem; padding: 0 4px; }
  .ctx { display: none; }
  .term { padding: 6px 8px; font-size: .56rem; }
  .term-line { margin-bottom: 3px; }
  .app-status { font-size: .4rem; padding: 0 6px; }
  .app-status-path {
    max-width: 54%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-foot { gap: 5px; font-size: .4rem; padding: 0 6px; }
  .app-foot-place, .app-foot-pow { display: none; }
  .app-foot-cta { font-size: .38rem; }
  .screen__replay { bottom: 50px; right: 8px; width: 24px; height: 24px; }
}

@media (max-width: 520px) {
  .screen { min-height: 560px; }
  .tb-chips { display: none; }
  .panel--terms { padding: 22px 18px; }
}

/* ── Novidades: ferramentas + linha do tempo ────────────────────────── */
.novidades__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.novidades__sub {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 20px;
}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color .3s ease, transform .3s ease;
}
.tool:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-3px); }
.tool h4 {
  margin: 0 0 8px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: .01em;
}
.tool h4::before { content: "+ "; color: var(--gold); }
.tool p { font-size: .84rem; line-height: 1.65; }
.novidades__note {
  margin-top: 20px;
  font-size: .84rem;
  line-height: 1.7;
  color: var(--muted);
}
.novidades__note a { color: var(--gold-ink); font-weight: 600; }
[data-theme="dark"] .novidades__note a { color: var(--gold); }

.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--line-strong);
}
.timeline li {
  position: relative;
  padding-bottom: 24px;
}
.timeline li:last-child { padding-bottom: 6px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__ver {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 8px;
}
.timeline__date {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.timeline p { margin-top: 6px; font-size: .88rem; line-height: 1.65; }

/* ── Como citar ─────────────────────────────────────────────────────── */
.cite__intro { line-height: 1.8; margin-bottom: 26px; }
.cite__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
}
.cite {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cite figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}
[data-theme="dark"] .cite figcaption { color: var(--gold); }
.cite pre {
  margin: 0;
  padding: 16px;
  overflow-x: hidden; /* sem rolagem lateral: o texto quebra de linha */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .76rem;
  line-height: 1.65;
  color: var(--body);
}

/* ── Rodapé: contato e versão ───────────────────────────────────────── */
.footer__contact { margin-top: 14px; }
.footer__contact a {
  color: var(--gold);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  transition: border-color .25s ease;
}
.footer__contact a:hover { border-color: var(--gold); }
.footer__ver {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .06em;
}

@media (max-width: 980px) {
  .novidades__grid { grid-template-columns: 1fr; }
}

/* ── Wordmark: "AI" sempre dourado como no logo oficial e no header ── */
.wordmark em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  margin-left: -0.075em;   /* V e A encaixados, como no logo */
}

/* ── Seletor de idiomas (PT/EN/ES/FR/ZH, com detecção automática) ──── */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  min-width: 178px; padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px;
  background: none; border: 0; border-radius: 8px;
  font-size: .88rem; color: var(--body);
  cursor: pointer;
}
.lang-menu button:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); }
.lang-menu button[aria-checked="true"] { color: var(--gold-ink); font-weight: 700; }
.lang-code {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--muted);
}
.lang-menu button[aria-checked="true"] .lang-code { border-color: var(--gold); color: var(--gold-ink); }

@media (max-width: 860px) {
  .lang-btn { height: 40px; padding: 0 10px; }
  .lang-btn #lang-current { display: none; }
}

/* ── Player da apresentação (iframe do deck HTML + capa + tela cheia) ─ */
.apres__lead { max-width: 70ch; line-height: 1.8; margin-bottom: 30px; }
.deck-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.deck-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: var(--surface);
}
.deck-cover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.deck-cover.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.deck-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold); color: #2E3242;
  border: 0; border-radius: 999px;
  padding: 15px 30px 15px 20px;
  font-size: .98rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(201, 162, 39, .7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.deck-play:hover { transform: translateY(-2px) scale(1.02); }
.deck-play svg { width: 26px; height: 26px; fill: #2E3242; }
.deck-open { font-size: .84rem; color: var(--muted); }
.deck-open:hover { color: var(--gold-ink); }
.deck-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.deck-player:fullscreen {
  max-height: none;
  border-radius: 0;
  border: 0;
}
@media (max-width: 640px) {
  .deck-player { aspect-ratio: 16 / 11; }
  .deck-play { padding: 13px 24px 13px 18px; font-size: .9rem; }
}
