/* Folha da página nova (hoje só pt). As telas do app (capturas e mini-lição)
   mantêm as cores e a fonte do app. */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/dmsans-latin.woff2?v=468d56b6b2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif itálica: só no fim de dois títulos (topo e lista de espera) */
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrumentserif-italic-latin.woff2?v=6ee678c33f) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins: a fonte do app, só nas telas da mini-lição (só baixa quando elas aparecem) */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/poppins-latin-400.woff2?v=3dc5d0c524) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/poppins-latin-500.woff2?v=289e0afc8b) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/poppins-latin-600.woff2?v=872e862918) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/poppins-latin-700.woff2?v=197a3cbd72) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --card: #070B16;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.08);
  --accent: #6366F1;        /* índigo do botão principal do app (ThemeData seedColor) */
  --accent-text: #818CF8;   /* índigo claro do app, para texto pequeno no preto */
  --action: #FF7A2E;        /* laranja: só nos botões de ação */
  --title: #FFFFFF;
  --text: #C8C8C8;
  --note: #7A7A7A;
  --radius: 24px;
  --max: 1120px;
  --gutter: 20px;
  --section: 44px;          /* metade do espaço entre seções (88 px no celular) */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: linear-gradient(#0B1220 0 50%, #F6F3EE 50% 100%); }
body { margin: 0; color: var(--text); font: 400 16px/1.6 var(--font); }
h1, h2, h3 { font-family: var(--font); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--title); }
/* fim de título em itálico serifado, no índigo do fundo (claro no escuro, escuro no claro) */
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.1em; line-height: 1; color: var(--accent-text); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
b, strong { color: var(--title); font-weight: 600; }
/* sem viúvas (navegador sem suporte ignora): textos corridos com as últimas linhas equilibradas, títulos balanceados.
   Fora: o título do topo (quebra à mão, espaço fixo antes de "falar.") e as telas do app dentro do celular da demo. */
p, li, summary, figcaption, .all-col span { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
.dm-app :is(p, li, h2, h3, span) { text-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Coluna central e ritmo entre seções */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.block { padding-block: var(--section); }
.block h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1.15; }
.lead { margin-top: 12px; color: var(--text); }
/* Rótulo acima do título */
.kicker {
  font: 500 13px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 12px !important;
}

/* Cabeçalho: cápsula no topo da página (sobe com a rolagem); o logo fica na borda da coluna */
.site-head { position: relative; z-index: 2; padding-inline: calc(var(--gutter) - 14px); margin-top: 10px; }
.capsule {
  max-width: calc(var(--max) - 2 * var(--gutter) + 28px); margin-inline: auto;
  display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 13px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 600 17px var(--font); color: var(--title); }
.brand img { border-radius: 8px; }
.head-links { display: flex; gap: 18px; margin-inline-start: auto; font-size: 14px; }
.head-links:empty { display: none; }
.head-links a { text-decoration: none; color: var(--text); }
.head-links a:hover { color: var(--title); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-inline-start: auto;
  border: 1px solid var(--border-strong); border-radius: 999px; background: transparent;
}
.head-links:not(:empty) + .lang { margin-inline-start: 0; }
.lang .globe { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.6; flex: none; }
.lang { position: relative; padding: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--title); font: 500 14px var(--font); cursor: pointer; max-width: 46vw;
}
.lang-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-chev { width: 16px; height: 16px; fill: var(--text); flex: none; transition: transform .2s ease; }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-btn:focus { outline: none; }
.lang-btn:focus-visible, .lang.open { border-color: var(--accent); }
.lang:has(.lang-btn:focus-visible) { border-color: var(--accent); }
/* Menu de idiomas: escuro, no tom do cabeçalho */
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: -1px; z-index: 30; width: 270px; max-height: min(70vh, 560px); overflow-y: auto;
  padding: 6px; border-radius: 18px; background: #0E101A; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6), 0 8px 20px -8px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: lmIn .16s ease-out;
}
.lang-menu[hidden] { display: none; }
@keyframes lmIn { from { opacity: 0; transform: translateY(-4px); } }
.lang-menu-t { display: none; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a {
  display: flex; align-items: baseline; gap: 6px; padding: 9px 12px; border-radius: 12px; text-decoration: none;
  color: var(--title); font: 500 15px/1.3 var(--font); transition: background-color .15s ease;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .07); }
.lang-menu a:focus { outline: none; }
.lang-menu a:focus-visible { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 2px var(--accent); }
.lm-t { color: var(--note); font-weight: 400; font-size: 14px; }
.lang-menu a[aria-current="page"] { align-items: center; }
.lang-ok { width: 18px; height: 18px; fill: var(--accent-text); margin-inline-start: auto; flex: none; }
@media (prefers-reduced-motion: reduce) { .lang-menu, .lang-chev { animation: none; transition: none; } }
/* Celular: folha de baixo para cima (o desfoque do cabeçalho sai enquanto ela está aberta, para a folha ficar presa à tela) */
@media (max-width: 600px) {
  html.lang-sheet .capsule { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.lang-sheet .site-head { z-index: 60; }
  .lang-menu {
    position: fixed; inset: 0; top: 0; width: auto; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none;
    background: rgba(0, 0, 0, .5); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; animation: lmFade .2s ease-out;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .lang-menu[hidden] { display: none; }
  .lang-menu-t {
    display: block; padding: 18px 22px 8px; border-radius: 22px 22px 0 0; background: #0E101A; border-top: 1px solid rgba(255, 255, 255, .1);
    font: 500 12px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--note); animation: lmUp .24s ease-out;
  }
  .lang-menu-t::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
  .lang-menu ul { max-height: 66vh; overflow-y: auto; padding: 0 10px calc(14px + env(safe-area-inset-bottom)); background: #0E101A; animation: lmUp .24s ease-out; }
  .lang-menu a { padding: 13px 12px; font-size: 16px; }
}
@keyframes lmFade { from { background: rgba(0, 0, 0, 0); } }
@keyframes lmUp { from { transform: translateY(40px); opacity: .6; } }

/* Topo */
.hero { position: relative; z-index: 1; overflow-x: clip; display: grid; gap: 28px; padding-block: 22px 28px; }
.hero h1 { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.08; }
.subtitle { margin-top: 14px; color: var(--text); font-size: 17px; text-wrap: balance; max-width: 36em; }
/* celular: subtítulo com a largura toda da coluna (o balance encurtava as linhas) */
@media (max-width: 600px) { .subtitle { max-width: none; text-wrap: pretty; } }
.nobr { white-space: nowrap; }
/* Pílula acima do título */
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px !important; padding: 6px 14px;
  border: 1px solid rgba(129, 140, 248, .5); border-radius: 999px; background: rgba(129, 140, 248, .09);
  font: 500 12px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
}
.pill-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
/* Link discreto para a mini-lição */
.try-link {
  display: inline-block; margin-top: 14px; color: var(--accent-text); font-size: 15px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(129, 140, 248, .35);
}
.try-link:hover { border-bottom-color: var(--accent-text); }
/* Link de avanço no pé do topo */
.next-link {
  grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 4px;
  font-size: 14px; color: rgba(255, 255, 255, .62); text-decoration: none;
}
.next-link:hover { color: var(--title); }

/* Bloco de ação (topo, mini-lição e fim) */
.waitlist { display: grid; gap: 10px; margin-top: 22px; }
.waitlist input[type="email"] {
  width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--card); color: var(--title); font: 400 16px var(--font);
}
.waitlist input[type="email"]::placeholder { color: var(--note); }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
/* no fundo escuro, borda mais visível: campo e botão laranja leem como uma ação só */
.band-dark .waitlist input[type="email"] { border-color: rgba(255, 255, 255, .24); }
.band-dark .waitlist input[type="email"]::placeholder { color: #A3A8B6; }
.band-dark .waitlist input[type="email"]:focus { border-color: var(--accent); }
.waitlist button {
  width: 100%; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--action); color: #1A0F06; font: 600 16px var(--font);
}
.waitlist button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.waitlist button:disabled { opacity: .7; cursor: default; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { font-weight: 500; }
.status.ok { color: var(--accent-text); }
.status.err { color: #FFB4A0; }
/* oferta e nota iguais em toda a página: oferta em cinza, menor que o subtítulo, sem bolinha, em
   linhas equilibradas (em vez de diminuir a fonte); nota menor e mais apagada, mas legível.
   No escuro (topo): cinza claro; no claro (bloco lilás e convite da lição 2): cinzas escuros. */
.offer { margin-top: 16px; color: var(--text); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.note { margin-top: 6px; font-size: 13px; color: #8E92A0; }
.band-light .offer { color: #57534C; }
.offer strong { font-weight: 600; color: inherit; }
:lang(ja) .offer strong, :lang(ko) .offer strong, :lang(zh) .offer strong { white-space: nowrap; }   /* negrito da oferta não quebra no meio */
.offer-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.offer-link:hover { color: var(--accent-text); }
.band-light .note { color: #6B675F; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; min-width: 160px; padding: 13px 24px; border-radius: 999px;
  background: var(--action); color: #1A0F06; font: 600 16px var(--font); text-decoration: none;
}
.store[aria-disabled="true"] { opacity: .55; cursor: default; }

/* Depois do cadastro: curso desejado (opcional) */
.pick { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.pick-title { font-weight: 500; color: var(--title); }
.pick-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pick-list button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 42px;
  background: rgba(255, 255, 255, .03); color: var(--title); border: 1px solid var(--border); border-radius: 999px;
  font: 500 14px var(--font); cursor: pointer; text-align: start;
}
.pick-list button[aria-pressed="true"] { border-color: var(--accent); }
.pick-list img { border-radius: 50%; flex: none; }
.pick-saved { margin-top: 8px; color: var(--accent-text); font-weight: 500; }
.pick-saved:empty { display: none; }
.pick-title[hidden], .pick-list[hidden] { display: none; }
.pick-done { display: grid; justify-items: start; gap: 8px; }
.pick-done[hidden] { display: none; }
.pick-ok { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--title); font-weight: 600; }
.pick-ok img { border-radius: 50%; flex: none; }
.pick-go { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pick-change { padding: 0; border: 0; background: none; color: var(--note); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pick-change:hover { color: var(--text); }
.band-light .end .pick-done { justify-items: center; }

/* Cards da página */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card.has-title { box-shadow: inset 2px 0 0 var(--accent); }
[dir="rtl"] .card.has-title { box-shadow: inset -2px 0 0 var(--accent); }

/* Celular vitrine: moldura fina, halo índigo localizado */
.showcase { position: relative; margin: 0; justify-self: center; display: grid; justify-items: center; gap: 14px; isolation: isolate; }
.showcase::before {
  content: ""; position: absolute; z-index: -1; left: var(--halo-x, 50%); top: var(--halo-y, 50%);
  width: 240%; height: 125%; transform: translate(-50%, -50%);
  /* Brilho grande e difuso: núcleo #1E2A6B pequeno atrás do aparelho, passando por
     #0C1D47 e caindo em curva suave até o preto, sem contorno */
  background: radial-gradient(closest-side,
    #1E2A6B 0%, #1E2A6B 26%, rgba(27, 40, 102, .96) 34%, rgba(20, 35, 88, .88) 42%, rgba(12, 29, 71, .74) 50%,
    rgba(12, 29, 71, .54) 58%, rgba(12, 29, 71, .35) 66%, rgba(12, 29, 71, .2) 74%, rgba(12, 29, 71, .1) 82%,
    rgba(12, 29, 71, .04) 90%, rgba(12, 29, 71, 0) 100%);
  pointer-events: none;
}
.device {
  position: relative; width: min(300px, 78vw); padding: 7px; border-radius: 42px;
  background: linear-gradient(160deg, #1c2233, #05070d 55%, #151a28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .7);
}
/* Reflexo leve num canto da moldura (índigo, sem laranja) */
.device::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, rgba(129, 140, 248, .22), rgba(129, 140, 248, 0) 45%);
  mix-blend-mode: screen;
}
.screen { position: relative; overflow: hidden; border-radius: 35px; background: #fff; aspect-ratio: 1080 / 2130; }
.screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .3s ease;
}
.screen .shot.is-active { opacity: 1; }
.thumbs { display: flex; gap: 2px; }
.thumb {
  display: grid; justify-items: center; gap: 5px; padding: 0 4px; border: 0; border-radius: 8px;
  min-width: 48px; /* área de toque ≥ 48×48 sem mudar a miniatura */
  background: none; cursor: pointer; font: inherit;
}
.thumb img {
  display: block; width: 40px; height: 56px; object-fit: cover; object-position: top;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--card);
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.thumb span { font: 500 11px/1.2 var(--font); color: var(--text); white-space: nowrap; transition: color .2s; }
.thumb:hover img { opacity: 1; }
.thumb[aria-pressed="true"] img { border-color: var(--accent); opacity: 1; }
.thumb[aria-pressed="true"] span { color: var(--accent-text); }
.thumb:focus { outline: none; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Celular do topo com 8 telas: miniaturas com bandeira, fileira um pouco além do celular */
.showcase.rotate .screen { aspect-ratio: 640 / 1292; }
.showcase.rotate .thumbs { gap: 0; }
.showcase.rotate .thumb { padding: 0 3px; min-width: 52px; }
.thumb-pic { position: relative; display: block; }
.showcase.rotate .thumb-pic > img:first-child { width: 36px; height: 50px; }
.thumb .thumb-flag {
  position: absolute; right: -5px; bottom: -4px; width: 16px; height: 16px; border: 0; border-radius: 50%;
  object-fit: cover; opacity: 1; box-shadow: 0 0 0 1.5px #0B1220;
}
/* Até 600px: duas fileiras de 4, centralizadas */
@media (max-width: 600px) {
  .showcase.rotate .thumbs { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; row-gap: 10px; }
}
@media (max-width: 420px) {
  .showcase.rotate .thumbs { padding: 4px 6px 2px; }
  .showcase.rotate .thumb { min-width: 48px; padding: 0 1px; }
  .showcase.rotate .thumb span:last-child { font-size: 10px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.device { animation: rise .6s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .device { animation: none; }
  .screen .shot { transition: none; }
}

.pick-list img[src*="/latin."], .course-list img[src*="/latin."] { background: #fff; }

/* 13 cursos */
.course-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.course-list li {
  flex: 0 0 calc(50% - 5px); display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px;
}
.course-list img { border-radius: 50%; flex: none; }
.course-list span { font-size: 15px; line-height: 1.3; color: var(--title); overflow-wrap: anywhere; }

/* Cursos: mapa-múndi de pontos (textura na largura toda) e, logo abaixo, o painel na coluna */
.mapsec { position: relative; overflow-x: clip; }
.mpanel-col { position: relative; z-index: 2; margin-top: 12px; }
.mpanel { display: grid; justify-items: start; min-width: 0; }
.mp-say, .mp-head { min-width: 0; width: 100%; }
/* título do bloco: no celular, acima do mapa; no computador, na metade direita, sobre os números */
.map-title-m { margin-bottom: 20px; }
.mp-head { display: none; }
/* frase sob o título, em cinza claro */
.map-sub { margin-top: 10px !important; font-size: 17px; line-height: 1.5; color: var(--text); text-wrap: balance; }
/* fileira de níveis (no lugar do título): acesos em índigo, os demais só com contorno */
.lvls { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lv-grp { display: grid; gap: 8px; justify-items: start; }
.lv-k { margin-bottom: 12px !important; }
.lv-row { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lv {
  min-width: 52px; padding: 8px 12px; border-radius: 999px; text-align: center;
  font: 600 16px/1.2 var(--font); letter-spacing: .02em;
}
.lv-grp.on .lv { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(99, 102, 241, .35); }
.lv-grp.off .lv { border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .38); padding: 7px 11px; }
.lv-cap { margin: 0; font-size: 13px; line-height: 1.3; }
.lv-grp.on .lv-cap { color: var(--accent-text); }
.lv-grp.off .lv-cap { color: var(--note); }
/* pílula do certificado: mesmo formato da pílula do topo, em dourado (tom do certificado); leva à seção do certificado */
.lv-cert {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 14px 6px 11px;
  border: 1px solid rgba(252, 211, 77, .5); border-radius: 999px; background: rgba(252, 211, 77, .08);
  font: 500 12px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #FDE68A; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.lv-cert:hover { background: rgba(252, 211, 77, .16); border-color: rgba(252, 211, 77, .8); }
.lv-cert:focus { outline: none; }
.lv-cert:focus-visible { outline: 2px solid #FCD34D; outline-offset: 3px; }
.lv-medal { width: 16px; height: 16px; flex: none; fill: #FCD34D; }
.lv-medal-in { fill: #6B4A05; }
@media (max-width: 600px) { .lv-cert { letter-spacing: .05em; padding-inline: 10px 12px; } }
:lang(ar) .lv-cert, :lang(hi) .lv-cert, :lang(zh) .lv-cert, :lang(ja) .lv-cert, :lang(ko) .lv-cert { letter-spacing: 0; }
@media (max-width: 420px) {
  .lvls { gap: 10px 14px; }
  .lv-row { gap: 6px; }
  .lv { min-width: 44px; padding: 7px 8px; font-size: 15px; }
  .lv-grp.off .lv { padding: 6px 7px; }
}
/* curso de chinês (rótulos HSK, mais longos): pílulas mais justas para a fileira caber numa linha;
   a altura fica a mesma do A1–C1 */
.lvls.hsk .lv { min-width: 0; padding-inline: 9px; letter-spacing: 0; }
.lvls.hsk .lv-grp.off .lv { padding-inline: 8px; }
@media (max-width: 420px) {
  .lvls.hsk { gap: 10px; }
  .lvls.hsk .lv-row { gap: 4px; }
  .lvls.hsk .lv { font-size: 13px; line-height: 18px; padding-inline: 6px; }
  .lvls.hsk .lv-grp.off .lv { padding-inline: 5px; }
}
/* altura fixa: trocar de idioma não muda nada de tamanho */
.mpanel-stage { position: relative; width: 100%; height: calc(clamp(52px, 14vw, 76px) * 1.05 + 4px); }
.mpg { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; opacity: 0; visibility: hidden; }
.mpg.cur { opacity: 1; visibility: visible; }
.mpg-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mpg-word {
  font-size: clamp(52px, 14vw, 76px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; color: var(--title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mpg.long .mpg-word { font-size: clamp(40px, 10.5vw, 58px); }
/* curso · romanização · tradução, logo abaixo da saudação (troca junto com ela) */
.mpanel-meta { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* alto-falante junto à saudação; onda discreta enquanto toca */
.mpg-snd {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; opacity: .7; transition: opacity .2s, background .2s;
}
.mpg-snd:hover { opacity: 1; background: rgba(99, 102, 241, .14); }
.mpg-snd svg { width: 20px; height: 20px; fill: var(--accent-text); }
.mpg-snd:focus { outline: none; }
.mpg-snd:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; opacity: 1; }
.mc-bars { display: none; align-items: center; gap: 2px; width: 16px; height: 16px; }
.mc-bars i { display: block; width: 2.5px; height: 100%; border-radius: 2px; background: var(--accent-text); transform-origin: 50% 50%; animation: mcBar .9s ease-in-out infinite; }
.mc-bars i:nth-child(2) { animation-delay: -.3s; }
.mc-bars i:nth-child(3) { animation-delay: -.6s; }
.mc-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes mcBar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.mpg-snd.playing { opacity: 1; }
.mpg-snd.playing svg { display: none; }
.mpg-snd.playing .mc-bars { display: flex; }
/* 13 bandeiras: todas disponíveis; a do idioma atual com anel */
.map-flags { display: grid; grid-template-columns: repeat(7, 40px); gap: 2px; margin: 6px 0 0 -8px; }
.mf {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s;
}
.mf img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.mf img[src*="/latin."] { background: #fff; }
.mf:hover { opacity: 1; transform: scale(1.1); }
.mf.on { opacity: 1; }
.mf.on img { box-shadow: 0 0 0 2px #0B1220, 0 0 0 3.5px var(--accent); }
.mf:focus { outline: none; }
.mf:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mpanel-hint { margin-top: 18px !important; font-size: 13px; color: var(--note); }
/* dica com o nome do curso, ao passar o mouse ou focar com Tab (embaixo, para não cobrir a instrução) */
.mf { position: relative; }
.mf::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%);
  white-space: nowrap; pointer-events: none; padding: 3px 9px; border-radius: 999px; z-index: 5;
  background: rgba(255, 255, 255, .94); color: #151515; font: 500 12px/1.4 var(--font); opacity: 0; transition: opacity .15s;
}
.mf:hover::after, .mf:focus-visible::after { opacity: 1; }
/* Mapa */
/* o mundo inteiro visível, com folga nas laterais */
.map-wrap { position: relative; isolation: isolate; min-width: 0; width: 100%; padding-inline: max(16px, 3%); }
.map-pic {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
}
@media (max-width: 639px) {
  /* no celular o mapa é baixo: esmaecimento mais curto para os continentes ficarem legíveis */
  .map-pic {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 90%, transparent 100%);
  }
}
.map-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 48%; width: 110%; height: 130%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(30, 42, 107, .55), rgba(12, 29, 71, .32) 45%, rgba(12, 29, 71, .1) 75%, rgba(12, 29, 71, 0));
  pointer-events: none;
}
.map { position: relative; width: 100%; touch-action: manipulation; }
.map-dots { display: block; width: 100%; height: 100%; }
.map-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-arcs path {
  fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0;
  transition: opacity .5s ease;
}
.map.lit .map-arcs path { opacity: .16; transition-delay: 1.4s; }
.map.lit .map-arcs path.go { opacity: .55; stroke: var(--accent-text); transition-delay: 0s; }
/* Ponto aceso: área de clique nula (o mapa escolhe o ponto mais próximo do cursor) */
.mp {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border: 0; border-radius: 50%;
  background: none; pointer-events: none; z-index: 1;
}
.mp span {
  position: absolute; inset: 2px; border-radius: 50%; background: var(--accent-text);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .35), 0 0 12px rgba(129, 140, 248, .7);
  opacity: 0; transform: scale(.3); transition: opacity .45s ease, transform .45s ease, inset .3s ease, background .3s ease, box-shadow .3s ease;
  transition-delay: calc(var(--w) * .1s);
}
.map.lit .mp span { opacity: 1; transform: none; }
.mp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-text); opacity: 0;
}
.map.lit .mp::after { animation: mapPulse 3.2s ease-out infinite; animation-delay: calc(1.6s + var(--w) * .25s); }
@keyframes mapPulse { 0% { opacity: .55; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
/* cidade atual: acende forte */
.mp.on span {
  inset: -2px; background: #fff; transition-delay: 0s;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .55), 0 0 18px 4px rgba(129, 140, 248, .85), 0 0 36px 8px rgba(99, 102, 241, .45);
}
.mp.on { z-index: 3; }
.mp.hov:not(.on) span { inset: 0; background: #C7CBFF; transition-delay: 0s; }
/* anel fino que sai do ponto ativo enquanto o som toca */
.mp.ring::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid #C7CBFF; opacity: 0;
  animation: mpRing 1.3s ease-out;
}
@keyframes mpRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
/* nome da cidade junto ao ponto (ativo e, no computador, o que está sob o mouse) */
.map-city {
  position: absolute; z-index: 4; pointer-events: none; white-space: nowrap;
  font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #C7CBFF;
  text-shadow: 0 0 6px #000, 0 0 2px #000;
}
.map-city.hov { color: var(--text); }
.map.hovering { cursor: pointer; }
/* Cometa: uma luz pequena que percorre o arco até o próximo idioma */
.map-comet { fill: #E0E3FF; opacity: 0; filter: drop-shadow(0 0 3px #818CF8) drop-shadow(0 0 6px rgba(99, 102, 241, .8)); }
/* Celular: pontos a ~10 px um do outro na Europa; ponto, brilho e pulso menores */
@media (max-width: 639px) {
  .mp span { inset: 3px; box-shadow: 0 0 0 1px rgba(99, 102, 241, .4), 0 0 6px rgba(129, 140, 248, .6); }
  .mp.on span { inset: 1px; box-shadow: 0 0 0 2px rgba(129, 140, 248, .55), 0 0 10px 2px rgba(129, 140, 248, .85), 0 0 20px 4px rgba(99, 102, 241, .4); }
  @keyframes mapPulseSm { 0% { opacity: .5; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
  .map.lit .mp::after { animation-name: mapPulseSm; }
  @keyframes mpRingSm { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
  .mp.ring::before { animation-name: mpRingSm; }
}
@media (min-width: 900px) {
  .mpanel-col { margin-top: 20px; }
  /* duas metades abaixo do mapa: à esquerda a saudação e as bandeiras (numa linha);
     à direita, alinhados ao topo da saudação, o título e os dois números */
  .mpanel { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; justify-items: stretch; }
  .map-flags { grid-template-columns: repeat(13, 40px); gap: 0; }
  .map-title-m { display: none; }
  .mp-head { display: block; align-self: center; }   /* níveis no meio da altura da coluna da saudação */
}
@media (prefers-reduced-motion: reduce) {
  .mp span, .map-arcs path { transition: none; }
  .mp span { opacity: 1; transform: none; }
  .map .mp::after, .map.lit .mp::after { animation: none; }
  .map-arcs path { opacity: .16; }
  .map-comet { display: none; }
  .mp.ring::before { animation: none; }
  .mpg-snd.playing svg { display: block; }
  .mpg-snd.playing .mc-bars { display: none; }
}

/* Perguntas: linhas entre os itens, sem caixas */
.faq { margin-top: 24px; border-bottom: 1px solid var(--border-strong); }
.faq details { border-top: 1px solid var(--border-strong); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 17px; color: var(--title); list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus { outline: none; }
.faq summary { -webkit-tap-highlight-color: transparent; }   /* sem o realce do toque no celular */
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq details p { padding-bottom: 20px; color: var(--text); max-width: 760px; }
.faq details p:not(:last-of-type) { padding-bottom: 10px; }   /* resposta em dois parágrafos */


/* Rodapé */
.footer { position: relative; padding-block: 32px 40px; display: grid; gap: 18px; justify-items: center; text-align: center; }
/* linha fina em cima, na largura da coluna */
.footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--border); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.foot-links a { text-decoration: none; color: var(--text); }
.foot-links a:hover { color: var(--title); }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; }
.social .dot { fill: var(--text); stroke: none; }
.social a:hover svg { stroke: var(--title); }
.copy { color: var(--note); font-size: 13px; }

@media (max-width: 639px) {
}
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .course-list li { flex-basis: calc(33.333% - 7px); }
  .pick-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --section: 72px; } /* 144 px entre seções */
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 18px; }
  .device { width: 280px; }
  /* Centro da luz um pouco acima e para o lado de fora (longe da coluna do texto) */
  .hero .showcase { --halo-x: 62%; --halo-y: 42%; }
  .hero .waitlist, .end .waitlist { grid-template-columns: 1fr auto; }
  .waitlist button { width: auto; }
  .waitlist .status { grid-column: 1 / -1; }
  .course-list li { flex-basis: calc(25% - 8px); }
}

/* ───────────── Mini-lição (telas do app em 360×710 dp, em escala) ───────────── */
.demo-head { text-align: center; }
.demo-show { margin-top: 18px; }
.demo-show .device { width: min(340px, 86vw); }
@media (min-width: 900px) { .demo-show .device { width: 320px; } }
.demo-screen { background: #F5F7FA; }
.demo-ctrl { min-height: 36px; display: flex; justify-content: center; align-items: flex-start; }
.demo-skip {
  background: none; border: 0; color: var(--note); font: 500 13px var(--font);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 12px;
}
.demo-skip:hover { color: var(--title); }
.demo-join { max-width: 520px; margin: 18px auto 0; }
.demo-invite { text-align: center; font-size: clamp(20px, 5vw, 26px); margin: 0 0 14px; animation: dmInvite .5s ease-out both; }
@keyframes dmInvite { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-invite { animation: none; } }
.dm-app {
  position: absolute; top: 0; left: 0; width: 360px; height: 710px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  font-family: Poppins, Inter, system-ui, sans-serif; color: #1A1A2E; line-height: 1.35; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.dm-app [hidden] { display: none !important; }
.dm-app p { margin: 0; }
.dm-app button { font-family: inherit; }
.dm-app button:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.dm-ic { fill: currentColor; flex: none; }
.dm-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #F5F7FA; outline: none; }
.dm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.dm-body::-webkit-scrollbar { display: none; }

/* barra do app */
.dm-top {
  flex: none; height: 56px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px;
  background: #fff; border-bottom: 1px solid #EEF0F3;
}
.dm-flag { display: inline-flex; padding: 4px 10px; border: 1px solid #E5E7EB; border-radius: 14px; background: #F8FAFC; }
.dm-flag img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.dm-chips { display: flex; gap: 8px; }
.dm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.dm-fire { background: #F3F4F6; color: #9CA3AF; transition: background .4s, color .4s; }
.dm-fire .dm-emo { filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.dm-fire.lit { background: #FFEDE5; color: #FF6B35; }
.dm-fire.lit .dm-emo { filter: none; opacity: 1; }
.dm-coins { background: #FFF7DB; color: #B45309; }
.dm-coins .dm-ic { color: #FFB800; }

/* trilha */
.dm-trail { background: #F8FAFC; }
.dm-trail-body { padding: 12px 12px 18px; }
.dm-unit {
  display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 12px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 6px 14px rgba(16, 185, 129, .25);
}
.dm-unit-n { font-size: 12px; font-weight: 600; opacity: .85; }
.dm-unit-t { font-size: 17px; font-weight: 700; }
.dm-card { background: #fff; border-radius: 24px; border: 1.5px solid rgba(16, 185, 129, .2); padding: 14px 0 22px; }
.dm-path { position: relative; width: 336px; }
.dm-line { position: absolute; left: 0; top: 0; }
.dm-line path { fill: none; stroke: rgba(16, 185, 129, .45); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.dm-row { position: absolute; left: 0; width: 336px; height: 150px; }
.dm-node-wrap { position: absolute; top: 22px; width: 80px; height: 80px; display: grid; place-items: center; }
.dm-row.l .dm-node-wrap { left: 30px; }
.dm-row.r .dm-node-wrap { left: 226px; }
.dm-txt { position: absolute; top: 14px; }
.dm-row.l .dm-txt { left: 120px; right: 12px; }
.dm-row.r .dm-txt { left: 12px; right: 120px; text-align: right; }
.dm-t { font-size: 16px; font-weight: 600; color: #1F2937; line-height: 1.25; margin-bottom: 3px !important; }
.dm-d { font-size: 12px; color: #6B7280; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dm-pills { display: flex; gap: 6px; margin-top: 6px !important; }
.dm-row.r .dm-pills { justify-content: flex-end; }
.dm-pc, .dm-px { display: inline-flex; align-items: center; gap: 3px; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.dm-pc { background: #FEF3C7; border: 1px solid #FCD34D; color: #B45309; }
.dm-pc .dm-ic { color: #F59E0B; }
.dm-px { background: #EDE9FE; border: 1px solid #C4B5FD; color: #7C3AED; }
.dm-row.locked .dm-txt { opacity: .55; }
.dm-node {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; box-shadow: 0 5px 0 #D1D5DB;
}
.dm-face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 2.5px solid #10B981;
}
.dm-face img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dm-node.open { transform: scale(1.18); box-shadow: 0 5px 0 #059669; }
.dm-pulse { animation: dmPulse 1.4s ease-in-out infinite; }
@keyframes dmPulse { 0%, 100% { transform: scale(1.18); } 50% { transform: scale(1.24); } }
.dm-node.done { box-shadow: 0 5px 0 #D97706; }
.dm-node.done .dm-face { border: 3.5px solid #F59E0B; background: #FEF9E7; }
.dm-node.locked { cursor: default; box-shadow: 0 5px 0 #E5E7EB; }
.dm-node.locked .dm-face { background: #F5F5F5; border-color: #E5E7EB; color: #9CA3AF; }
.dm-num {
  position: absolute; top: -6px; right: -8px; background: #10B981; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 10px; border: 2px solid #fff;
}
.dm-node.locked .dm-num { background: #9CA3AF; }
.dm-done {
  position: absolute; bottom: -4px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FCD34D, #B45309);
}
.dm-startpill {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #10B981; color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 8px; white-space: nowrap;
}
.dm-chal { display: grid; justify-items: center; gap: 6px; margin-top: 4px; text-align: center; }
.dm-trophy {
  position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 40px;
  background: #E5E7EB; border: 4px solid #9CA3AF; box-shadow: 0 6px 0 #D1D5DB; filter: grayscale(1);
}
.dm-lockb {
  position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #9CA3AF; color: #fff; border: 3px solid #fff;
}
.dm-chal-l { background: #F3F4F6; color: #6B7280; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 8px; margin-top: 8px; }
.dm-chal-t { font-size: 20px; font-weight: 700; color: #1F2937; }
.dm-chal-s { font-size: 13px; color: #9CA3AF; }
.dm-test {
  position: relative; margin-top: 14px; border-radius: 24px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, #10B981, #059669); filter: saturate(.35);
}
.dm-test-lock { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); }
.dm-test-t { font-size: 18px; font-weight: 700; padding-right: 40px; }
.dm-test-s { font-size: 12px; line-height: 1.45; opacity: .9; margin-top: 4px !important; }
.dm-test-chips { display: flex; gap: 6px; margin-top: 10px !important; }
.dm-test-chips span { background: rgba(255, 255, 255, .2); border-radius: 10px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.dm-test-btn { display: block; text-align: center; background: #fff; color: #059669; border-radius: 14px; padding: 10px; font-size: 14px; font-weight: 600; margin-top: 12px; opacity: .75; }
.dm-toast { position: absolute; left: 50%; bottom: 80px; z-index: 6; transform: translate(-50%, 8px); max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 999px; background: #1E2130; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3;
  text-align: center; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dm-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .dm-toast { transition: none; } }
.dm-nav { flex: none; height: 64px; background: #fff; border-top: 1px solid #F0F1F4; display: flex; justify-content: space-around; align-items: center; }
.dm-nav-i { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: #6B7280; cursor: default; user-select: none; }
.dm-nav-i:not(.on) { opacity: .35; pointer-events: none; }
.dm-nav-ic { display: grid; place-items: center; padding: 3px 14px; border-radius: 14px; }
.dm-nav-i.on { color: #6366F1; }
.dm-nav-i.on .dm-nav-ic { background: rgba(99, 102, 241, .15); }
.dm-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.dm-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 20px 20px;
  animation: dmSheet .25s ease-out;
}
@keyframes dmSheet { from { transform: translateY(100%); } to { transform: none; } }
.dm-grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: #E5E7EB; margin: 0 auto 14px; }
.dm-sheet-k { font-size: 11px; font-weight: 700; color: #10B981; letter-spacing: 1px; }
.dm-sheet-t { font-size: 22px; font-weight: 700; margin-top: 4px !important; }
.dm-sheet-d { font-size: 14px; color: #6B7280; margin: 6px 0 18px !important; }

/* botão Continuar */
.dm-foot { flex: none; background: #fff; padding: 16px; box-shadow: 0 -2px 10px rgba(0, 0, 0, .05); }
.dm-cta {
  width: 100%; height: 56px; border-radius: 16px; border: 0; background: #6366F1; color: #fff; font-size: 17px; font-weight: 600;
  display: flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .35), 0 6px 16px rgba(99, 102, 241, .2), 0 2px 8px rgba(0, 0, 0, .08);
}

/* vocabulário */
.dm-vhead { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.dm-backb {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; color: #1A1A2E; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05); cursor: pointer;
}
.dm-count { background: rgba(99, 102, 241, .1); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #6366F1; }
.dm-vtitle { font-size: 17px; font-weight: 600; }
.dm-video {
  position: relative; margin: 8px 20px 0; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.dm-video video, .dm-mcv video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-playb {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.dm-vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .3); }
.dm-vbar span { display: block; height: 100%; width: 0; background: #fff; }
.dm-word { font-size: 30px; font-weight: 700; letter-spacing: -.5px; text-align: center; margin: 22px 20px 2px !important; line-height: 1.2; }
.dm-tr { font-size: 17px; color: #6B7280; text-align: center; margin: 0 20px 18px !important; }
.dm-tip {
  display: flex; gap: 12px; margin: 0 20px 14px; padding: 16px; border-radius: 14px;
  background: rgba(99, 102, 241, .06); border: 1px solid rgba(99, 102, 241, .12);
}
.dm-tip-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(99, 102, 241, .12); color: #6366F1; display: grid; place-items: center; }
.dm-tip p { font-size: 14px; font-weight: 500; color: rgba(99, 102, 241, .85); line-height: 1.5; }
.dm-tip b { font-weight: 700; color: #6366F1; }
.dm-ex {
  display: flex; gap: 14px; align-items: center; width: calc(100% - 40px); margin: 0 20px 10px; padding: 14px; text-align: left;
  background: #fff; border-radius: 14px; border: 1px solid #E5E7EB; cursor: pointer; color: inherit;
}
.dm-ex.on { border: 1.5px solid rgba(99, 102, 241, .4); }
.dm-spk { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #6366F1; color: #fff; display: grid; place-items: center; }
.dm-ex-t { display: block; font-size: 15px; font-weight: 600; }
.dm-ex-tr { display: block; font-size: 13.5px; color: #6B7280; }

/* exercícios */
.dm-exs { background: #FAFAFC; }
.dm-exs.review { background: #FFFBF2; }
.dm-xhead {
  flex: none; display: grid; grid-template-columns: 36px 40px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .03)); box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.dm-xclose { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid #EEEEEE; background: #fff; color: #6B7280; display: grid; place-items: center; cursor: pointer; }
.dm-xnum { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, #10B981, #059669); }
.dm-xinfo { display: grid; min-width: 0; }
.dm-xt { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-xs { font-size: 13px; color: #6B7280; }
.dm-xs.rv { color: #D97706; font-weight: 600; }
.dm-score { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.dm-score .ok, .dm-score .bad { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-left: 4px; }
.dm-score .ok { background: rgba(16, 185, 129, .15); color: #10B981; }
.dm-score .bad { background: rgba(239, 68, 68, .15); color: #EF4444; }
.dm-prog { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.dm-bar { flex: 1; height: 6px; border-radius: 3px; background: #EEEEEE; overflow: hidden; }
.dm-bar span { display: block; height: 100%; background: linear-gradient(90deg, #10B981, #059669); transition: width .4s; }
.dm-pct { font-size: 12px; font-weight: 700; color: #10B981; }
.dm-xbody { padding: 16px; }
.dm-img { display: grid; place-items: center; margin-bottom: 16px; }
.dm-img img { max-width: 100%; max-height: 260px; border-radius: 16px; object-fit: contain; }
.dm-sent { font-size: 20px; font-weight: 600; text-align: center; line-height: 1.4; margin-bottom: 20px !important; }
.dm-blank { color: #E0E0E0; border-bottom: 2px solid #6366F1; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-opt {
  min-height: 48px; padding: 16px; border-radius: 14px; border: 1px solid #6366F1; background: #fff; color: #1A1A2E;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.dm-mcv { position: relative; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 16px; aspect-ratio: 16 / 9; max-height: 250px; cursor: pointer; }
.dm-q { font-size: 18px; font-weight: 600; margin-bottom: 12px !important; }
.dm-mc { display: grid; gap: 10px; }
.dm-mco {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: #fff; border: 1px solid #E5E7EB; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); font-size: 15px; font-weight: 600; color: #1A1A2E; cursor: pointer;
}
.dm-let { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #6366F1; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.dm-mco.right { background: rgba(16, 185, 129, .08); border: 1.5px solid #10B981; }
.dm-mco.right .dm-let { background: #10B981; }
.dm-mco.wrong { background: rgba(239, 68, 68, .08); border: 1.5px solid #EF4444; }
.dm-mco.wrong .dm-let { background: #EF4444; }
.dm-st { margin-left: auto; }
.dm-mco.right .dm-st { color: #10B981; }
.dm-mco.wrong .dm-st { color: #EF4444; }
.dm-oi { font-size: 18px; font-weight: 600; margin-bottom: 12px !important; }
.dm-ap {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .2);
}
.dm-ap-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #6366F1; color: #fff; display: grid; place-items: center; cursor: pointer; }
.dm-ap-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(99, 102, 241, .2); overflow: hidden; }
.dm-ap-bar span { display: block; height: 100%; width: 0; background: #6366F1; }
.dm-ap-speed { border: 1px solid rgba(99, 102, 241, .3); background: #fff; color: #6366F1; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 4px 8px; cursor: pointer; }
.dm-ans {
  min-height: 70px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 12px; margin-bottom: 18px;
  background: #fff; border-radius: 16px; border: 2px solid #E5E7EB;
}
.dm-ans.has { border-color: rgba(99, 102, 241, .3); }
.dm-ph { color: #9CA3AF; }
.dm-pool { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dm-tile {
  padding: 12px 18px; border-radius: 12px; border: 1px solid #6366F1; background: #fff; color: #1A1A2E;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.dm-tile.on { background: #6366F1; color: #fff; border-radius: 10px; padding: 8px 12px; }
.dm-tile.used { opacity: .25; cursor: default; }
.dm-sum { background: #fff; border-radius: 16px; border: 1px solid #EEEEEE; padding: 14px; margin-bottom: 12px; }
.dm-sum-l { font-size: 13px; font-weight: 600; color: #6B7280; margin-bottom: 8px !important; }
.dm-sum .dm-sent { margin: 0 !important; }
.dm-g { color: #10B981; font-weight: 700; }
.dm-r { color: #EF4444; text-decoration: line-through; }
.dm-corr { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; padding: 8px 10px; border-radius: 10px; background: rgba(16, 185, 129, .08); color: #059669; font-size: 13px; font-weight: 600; }
.dm-ord { font-size: 17px; font-weight: 600; line-height: 1.6; }
.dm-fb { background: #fff; border-radius: 16px; border: 1px solid #EEEEEE; padding: 12px; animation: dmUp .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes dmUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.dm-fb-h { display: flex; align-items: center; gap: 12px; }
.dm-fb-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.dm-fb.ok .dm-fb-ic { background: linear-gradient(135deg, #10B981, #34D399); }
.dm-fb.bad .dm-fb-ic { background: linear-gradient(135deg, #EF4444, #F87171); }
.dm-fb-tt { display: grid; }
.dm-fb-tt b { font-size: 17px; }
.dm-fb.ok .dm-fb-tt b { color: #10B981; }
.dm-fb.bad .dm-fb-tt b { color: #EF4444; }
.dm-fb-tt small { font-size: 11px; color: #6B7280; }
.dm-fb-e { margin-left: auto; font-size: 24px; }
.dm-fb-ans { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(16, 185, 129, .08); color: #10B981; }
.dm-fb-ans span { display: grid; }
.dm-fb-ans small { font-size: 10px; font-weight: 600; color: #059669; }
.dm-fb-ans b { font-size: 14px; color: #1A1A2E; }
.dm-fb-x { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(245, 158, 11, .08); color: #F59E0B; }
.dm-fb-x span { font-size: 12px; color: #616161; line-height: 1.45; }
.dm-fb-x small { display: block; font-size: 10px; font-weight: 600; color: #D97706; margin-bottom: 2px; }
.dm-fb-x b { color: #1A1A2E; }
.dm-fb-cta {
  margin-top: 12px; width: 100%; border: 0; border-radius: 12px; padding: 12px; color: #fff; font-size: 15px; font-weight: 600;
  display: flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer;
}
.dm-fb.ok .dm-fb-cta { background: linear-gradient(90deg, #10B981, #34D399); }
.dm-fb.bad .dm-fb-cta { background: linear-gradient(90deg, #EF4444, #F87171); }

/* lição concluída */
.dm-comp { background: #F8FAFC; overflow: hidden; }
.dm-blob { position: absolute; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; }
.dm-blob.a { top: -80px; right: -90px; background: radial-gradient(rgba(99, 102, 241, .14), rgba(99, 102, 241, 0) 70%); }
.dm-blob.b { bottom: 60px; left: -100px; background: radial-gradient(rgba(16, 185, 129, .14), rgba(16, 185, 129, 0) 70%); }
.dm-cbody { position: relative; padding: 24px 20px; text-align: center; }
.dm-seal {
  width: 100px; height: 100px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 10px 25px rgba(16, 185, 129, .35);
  animation: dmPop .8s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes dmPop { from { transform: scale(0); } to { transform: none; } }
.dm-ct { font-size: 26px; font-weight: 700; }
.dm-cs { font-size: 15px; color: #6B7280; margin: 4px 0 18px !important; }
.dm-learned { margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; background: #EEF2FF; border: 1px solid #C7D2FE; }
.dm-ln-k { font-size: 12px; font-weight: 600; color: #4F46E5; text-transform: uppercase; letter-spacing: .04em; }
.dm-ln-v { margin-top: 4px !important; font-size: 17px; font-weight: 700; color: #1F2937; line-height: 1.3; }
.dm-learned.chars .dm-ln-v { font-size: 24px; letter-spacing: .02em; }
/* lista longa (latim): duas linhas menores e selo menor, para a Ofensiva continuar inteira */
.dm-comp.long .dm-seal { width: 76px; height: 76px; margin-bottom: 10px; }
.dm-comp.long .dm-ln-v { font-size: 15px; }
.dm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dm-stat { display: grid; justify-items: center; gap: 2px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #EEF0F3; }
.dm-stat-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.dm-stat b { font-size: 20px; }
.dm-stat small { font-size: 12px; color: #6B7280; }
.dm-streak {
  text-align: left; border-radius: 16px; padding: 14px; color: #fff;
  background: linear-gradient(135deg, #FF6B35, rgba(255, 107, 53, .85)); box-shadow: 0 4px 8px rgba(255, 107, 53, .3);
}
.dm-sk-h { display: flex; gap: 10px; align-items: center; }
.dm-sk-h b { display: block; font-size: 16px; }
.dm-sk-h small { display: block; font-size: 11px; opacity: .9; }
.dm-flame {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 20px;
  animation: dmLight 1s .5s both;
}
@keyframes dmLight { from { filter: grayscale(1); opacity: .4; transform: scale(.6); } 60% { transform: scale(1.25); } to { filter: none; opacity: 1; transform: none; } }
.dm-sk-bar { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-top: 12px; overflow: hidden; }
.dm-sk-bar span { display: block; height: 100%; width: var(--w); background: #fff; border-radius: 4px; animation: dmGrow .8s .9s both; }
@keyframes dmGrow { from { width: 0; } }
.dm-conf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.dm-conf i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; animation: dmFall 2.4s ease-in forwards; }
@keyframes dmFall { to { transform: translateY(740px) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .dm-pulse, .dm-seal, .dm-flame, .dm-sk-bar span, .dm-fb, .dm-sheet { animation: none !important; }
  .dm-conf { display: none; }
  .dm-bar span, .dm-fire, .dm-fire .dm-emo { transition: none; }
}

/* ───────────── Dois atos: escuro (topo + mapa) e claro (mini-lição → rodapé) ───────────── */
/* Cada ato tem fundo de borda a borda; a página troca de cor uma vez só, com corte seco.
   O ato claro redefine as cores, e os componentes acompanham. */
.band-dark { background: #0B1220; overflow: clip; }
.band-light, .band-foot {
  background: #F6F3EE; overflow: clip; color: var(--text);
  --title: #151515; --text: #4A4A4A; --note: #7A7A7A; --accent-text: #4F46E5;
  --border: #DDD5C8; --border-strong: #DDD5C8; --card: #FFFFFF;
}
.band-light .status.err { color: #B4380B; }
/* Mini-lição no claro: sombra que se espalha suave, sem borda (no lugar do halo) */
.demo-show::before { display: none; }
.demo-show .device {
  box-shadow: 0 0 0 1px rgba(21, 21, 21, .08), 0 30px 70px -10px rgba(32, 28, 64, .2), 0 10px 24px -6px rgba(32, 28, 64, .12);
}
/* Embaixo do aparelho: antes de começar, o botão e a nota; depois, "Pular"/"Recomeçar" (mesmo espaço) */
.demo-under { display: grid; justify-items: center; margin-top: 12px; }
.demo-under > * { grid-area: 1 / 1; }
.demo-cta { display: grid; justify-items: center; gap: 8px; }
.demo-start {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: #4F46E5; color: #fff; font: 600 16px var(--font); box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .45);
}
.demo-start svg { width: 18px; height: 18px; fill: currentColor; }
.demo-start:hover { background: #4338CA; }
.demo-start:focus-visible { outline: 2px solid #4F46E5; outline-offset: 3px; }
.demo-note { font-size: 13px; color: #5F5A52; text-align: center; text-wrap: balance; }   /* um pouco mais escura que as notas: lida junto com o botão */
.demo.started .demo-cta { visibility: hidden; }
/* Mãozinha com pulso sobre o COMEÇAR (só nos primeiros segundos) */
.dm-hand {
  position: absolute; z-index: 4; width: 34px; height: 34px; margin: 2px 0 0 -10px; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
}
.dm-hand.on { opacity: 1; animation: dmTap 1.1s ease-in-out infinite; }
.dm-hand svg { width: 100%; height: 100%; fill: #fff; stroke: #151515; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.dm-hand::before {
  content: ""; position: absolute; left: 6px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, .7); animation: dmRing 1.1s ease-out infinite;
}
@keyframes dmTap { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-2px, -5px); } }
@keyframes dmRing { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
/* Entrada da lição grátis: só título e guia, uma vez (a classe pre-in sai quando a seção aparece) */
.demo .demo-head, .demo .dm-guide, .demo .dm-gcard { transition: opacity .5s ease, transform .5s ease; }
.demo.pre-in .demo-head, .demo.pre-in .dm-guide, .demo.pre-in .dm-gcard { opacity: 0; transform: translateY(14px); }
/* Guia: "AGORA" + a instrução do momento (depois de começar); barra em 4 partes que nunca volta */
/* a frase da lição e o "AGORA" ocupam a mesma célula: só um aparece, nada se move */
.g-slot { display: grid; margin-top: 28px; }
.g-slot > * { grid-area: 1 / 1; }
/* computador: antes de começar, a escolha do curso (bandeiras, nome, botão e nota); depois, "AGORA",
   a instrução e a barra — os dois no mesmo espaço */
.g-pre, .g-cur { align-self: start; }
.demo.agora .g-pre { visibility: hidden; }
.dp-flags { display: grid; grid-template-columns: repeat(7, 42px); gap: 2px; margin-left: -8px; }
.dpf { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dpf img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; transition: transform .15s; box-shadow: 0 0 0 1px #DDD5C8; }   /* contorno fino: bandeiras com branco não se perdem no fundo claro */
.dpf img[src*="/latin."] { background: #fff; }
.dpf:hover img { transform: scale(1.1); }
.dpf.on img { box-shadow: 0 0 0 2px #F6F3EE, 0 0 0 4px #4F46E5; }
.dpf:focus { outline: none; }
.dpf:focus-visible { outline: 2px solid #4F46E5; outline-offset: -2px; }
.dpf::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); z-index: 5;
  white-space: nowrap; pointer-events: none; padding: 3px 9px; border-radius: 999px; background: rgba(21, 21, 21, .88); color: #fff;
  font: 500 12px/1.4 var(--font); opacity: 0; transition: opacity .15s;
}
.dpf:hover::after, .dpf:focus-visible::after { opacity: 1; }
.dp-name { margin-top: 14px !important; font-size: 17px; font-weight: 500; color: var(--title); }
/* o que a lição pratica: some com a escolha quando a lição começa */
.dp-desc { margin-top: 4px !important; max-width: 30em; font-size: 15px; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.dc-desc { margin: -4px auto 12px !important; max-width: 30em; padding-inline: 4px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--text); text-wrap: balance; }
.demo.started .dc-desc { visibility: hidden; }
.g-pre .demo-start { margin-top: 16px; }
.g-pre .demo-note { margin-top: 8px !important; }
.g-k { font: 500 12px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--note); }
.g-now { margin-top: 8px !important; min-height: 2.5em; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--title); }
.demo:not(.agora) .g-cur, .demo:not(.agora) .dm-gcard { visibility: hidden; }
/* depois de tocar na lição 2: o convite (acima do formulário) toma o lugar do "AGORA"; a barra fica */
.demo.invited .g-k, .demo.invited .g-now { display: none; }
.demo.invited .dm-gcard { visibility: hidden; }
.g-switch { margin-top: 14px; padding: 4px 0; border: 0; background: none; font: 500 14px/1.3 var(--font); color: var(--note); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g-switch:hover { color: var(--title); }
.demo.ended .g-switch { display: none; }
/* no fim, a escolha (oculta) deixa de ocupar espaço, para o convite, o formulário e as bandeiras caberem na altura do celular */
.demo.ended .g-pre { display: none; }
.dj-more { display: none; }
.g-bar { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.g-seg { display: block; height: 4px; border-radius: 2px; background: #DDD5C8; transition: background-color .3s ease; }
.g-bar li.now .g-seg { background: #4F46E5; }
.g-bar li.done .g-seg { background: #B7B3F2; }
.g-bar li.done .g-name { color: #6B66C9; }
.g-bar li.done .g-name::before { content: "✓ "; }
.g-name { display: block; margin-top: 8px; font-size: 13px; color: #5C574F; }
.g-bar li.now .g-name { color: var(--title); font-weight: 600; }
.flash { animation: gFlash .25s ease-out; }
@keyframes gFlash { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* Celular: cartão pequeno com a etapa e a ação do momento, acima do aparelho (espaço reservado) */
.dm-gcard {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 6px; max-width: 340px; height: 96px; overflow: hidden;
  margin: 16px auto 0; padding: 8px 16px; border-radius: 16px; background: #fff; border: 1px solid #DDD5C8;
  font-size: 14px; line-height: 1.35; color: var(--text); text-align: center;
}
.dm-gcard b { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #4F46E5; }
.dm-gcard b::after { content: " ·"; color: var(--note); letter-spacing: 0; }

/* Características: mosaico (vídeo real + desenhos no visual do app, em Poppins) e certificado de exemplo */
.demo { padding-bottom: 0; }
.feats { padding-top: 56px; }
.fx-grid { display: grid; gap: 12px; margin-top: 28px; }
.fx { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #DDD5C8; overflow: hidden; }
.fx-vis { background: #F6F3EE; border-bottom: 1px solid #EEE8DE; }
/* tela 4: fundo levíssimo da cor da função só na demonstração (o vídeo não muda).
   Para trocar, mude os valores; para desligar, apague a variável (volta o fundo neutro de antes). */
.feats { --fx-speak-bg: #FFEEE2; --fx-ex-bg: #EFF8F2; --fx-review-bg: #F1F0FD; }
.fx-speak .fx-vis { background: var(--fx-speak-bg, #F6F3EE); }
.fx-t { padding: 18px 22px 22px; }
.fx h3 { font-size: 18px; line-height: 1.3; }
.fx-t p { margin-top: 4px !important; color: #4A4A4A; font-size: 15px; }
.fx-t .fx-word { margin: 0 0 6px !important; font-size: 14px; color: var(--note); }
.fx-word b { font-weight: 600; color: #4F46E5; }
.fx-vv { aspect-ratio: 4 / 3; background: #E9E4DA; }
.fx-vv { position: relative; }
.fx-clip { display: block; width: 100%; height: 100%; object-fit: cover; }
/* pausar/reproduzir: ícone pequeno no canto */
.fx-pp { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(21, 21, 21, .55); color: #fff; cursor: pointer; transition: background .15s; }
.fx-pp:hover { background: rgba(21, 21, 21, .75); }
.fx-pp:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #4F46E5; }
.fx-pp svg { width: 16px; height: 16px; fill: currentColor; }
.fx-pp svg + svg, .fx-pp.paused svg:first-child { display: none; }
.fx-pp.paused svg + svg { display: block; }
.fx-vis svg { fill: currentColor; flex: none; }
/* fala: frase em pt → microfone → "Você disse" + selo verde */
.fs { display: grid; gap: 12px; justify-items: center; padding: 20px 18px; font-family: "Poppins", var(--font); color: #1A1A2E; }
.fs-card, .fs-rec { width: 100%; max-width: 340px; border-radius: 16px; background: #fff; border: 1px solid #EEF0F4; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); padding: 14px 16px; }
.fs-say { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #F97316; }
.fs-say svg { width: 16px; height: 16px; }
.fs-pr { margin-top: 4px !important; font-size: 17px; font-weight: 600; line-height: 1.35; }
.fs-mic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #F97316, rgba(249, 115, 22, .85)); box-shadow: 0 6px 12px rgba(249, 115, 22, .5); }
.fs-mic svg { width: 26px; height: 26px; }
.fs-rec { background: #F2FBF7; border-color: rgba(16, 185, 129, .3); box-shadow: none; }
.fs-yl { font-size: 11px; font-weight: 600; color: #757575; }
.fs-said { margin-top: 2px !important; font-size: 15px; line-height: 1.3; }
.fs-ok { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px !important; padding: 3px 10px 3px 6px; border-radius: 999px;
  background: rgba(16, 185, 129, .12); color: #0E9F6E; font-size: 12px; font-weight: 700; }
.fs-ok svg { width: 16px; height: 16px; color: #10B981; }
/* completar: palavra encaixada em verde, opções apagadas */
.fb { display: grid; gap: 16px; align-content: center; padding: 22px 18px; min-height: 150px; font-family: "Poppins", var(--font); color: #1A1A2E; background: var(--fx-ex-bg, #FAFAFC); }
.fb-s { text-align: center; font-size: 18px; font-weight: 600; line-height: 1.5; }
.fb-gap { display: inline-block; padding: 0 6px; border-bottom: 2px solid #10B981; color: #10B981; font-weight: 700; line-height: 1.3; }
.fb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-opts span { padding: 9px 4px; border-radius: 12px; border: 1px solid #6366F1; background: #fff; text-align: center; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: .35; }
.fb-opts .fb-ok { opacity: 1; border-color: #10B981; background: #ECFDF5; color: #047857; }   /* resposta escolhida */
/* revisão: verso do cartão + De novo, Difícil, Bom, Fácil */
.fr { display: grid; gap: 12px; padding: 18px; min-height: 150px; font-family: "Poppins", var(--font); background: var(--fx-review-bg, #FAFAFC); }
.fr-card { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid rgba(99, 102, 241, .2); box-shadow: 0 8px 16px rgba(0, 0, 0, .06); }
.fr-chip { padding: 4px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .1)); color: #6366F1; font-size: 13px; font-weight: 600; }
.fr-tr { font-size: 22px; font-weight: 700; color: #1A1A2E; }
.fr-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fr-b { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 30%, #fff); }
.fr-b svg { width: 18px; height: 18px; }
/* tela 4: entrada em sequência e cada cartão "acontece" uma vez (classes postas pelo app.js; sem JS, estado final) */
.feats.fx-pre .fx { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1); }
.feats.fx-pre .fx.fx-in { opacity: 1; transform: none; }
.fx-speak.fx-wait .fs-rec { opacity: 0; transform: translateY(6px); }
.feats.fx-pre .fs-rec { transition: opacity .35s ease, transform .35s ease; }
.fx-speak.fx-act .fs-mic { animation: fxPulse .45s ease-in-out 2; }
@keyframes fxPulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(249, 115, 22, .18), 0 6px 12px rgba(249, 115, 22, .5); } }
.fb { position: relative; }
.fx-ex.fx-wait .fb-gap { color: transparent; border-bottom-color: #C9C9D6; }
.feats.fx-pre .fb-gap { transition: color .25s ease, border-color .25s ease; }
/* começo: as três opções no estilo normal; o toque deixa "suitcase" verde e a palavra sobe até o espaço */
.fx-ex.fx-wait .fb-opts span { opacity: 1; border-color: #6366F1; background: #fff; color: #1A1A2E; }
.fx-ex.fx-wait.fx-act .fb-opts .fb-ok { border-color: #10B981; background: #ECFDF5; color: #047857; animation: fxPress .3s ease; }
@keyframes fxPress { 50% { transform: scale(.93); } }
.feats.fx-pre .fb-opts span { transition: opacity .3s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.fb-fly { position: absolute; z-index: 1; color: #10B981; font-size: 18px; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none;
  transition: transform .6s cubic-bezier(.3, .8, .3, 1); }
.fx-review.fx-act .fr-b:nth-child(3) { animation: fxTap .9s ease both; }
@keyframes fxTap {
  25% { transform: scale(.9); }
  50% { transform: scale(1.04); background: color-mix(in srgb, var(--c) 28%, #fff); border-color: var(--c); box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 30%, transparent); }
  80% { transform: none; background: color-mix(in srgb, var(--c) 28%, #fff); border-color: var(--c); }
}
@media (hover: hover) and (pointer: fine) {
  .fx { transition: transform .25s ease, box-shadow .25s ease; }
  .fx:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26, 26, 46, .08); }
}
@media (prefers-reduced-motion: reduce) { .fx:hover { transform: none; } }
.fr-b b { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
/* Certificado de exemplo (visual do level_test_certificate_screen.dart, com a fonte do site) */
.fcert { display: grid; gap: 28px; align-items: center; }
.fcert-txt .lead { max-width: 460px; }
.cc-wrap { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.cc-tag { position: absolute; z-index: 2; top: -13px; right: 18px; padding: 5px 12px; border-radius: 999px; background: #4F46E5; color: #fff;
  font: 700 12px/1.2 var(--font); letter-spacing: .18em; box-shadow: 0 6px 14px -4px rgba(79, 70, 229, .5); }
.cc { position: relative; padding: 28px 24px 24px; border-radius: 24px; border: 2px solid #FCD34D; color: #A16207; text-align: left;
  background: linear-gradient(135deg, #FEFCE8, #FFFBEB, #FEF3C7); box-shadow: 0 12px 36px -14px rgba(120, 72, 8, .18), 0 2px 6px rgba(120, 72, 8, .05); }
.cc p { margin: 0 !important; }
.cc-k { position: absolute; width: 26px; height: 26px; border: 0 solid #D97706; }
.cc-k.tl { top: 32px; left: 32px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.cc-k.tr { top: 32px; right: 32px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.cc-k.bl { bottom: 32px; left: 32px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.cc-k.br { bottom: 32px; right: 32px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }
.cc > :not(.cc-k) { position: relative; }
.cc-brand { text-align: center; font-size: 15px; font-weight: 800; letter-spacing: 4px; color: #92400E; }
.cc-orn { display: block; width: 40px; height: 2px; margin: 4px auto 0; background: linear-gradient(90deg, transparent, #D97706, transparent); }
.cc-title { margin-top: 14px !important; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.cc-s { font-size: 11px; }
.cc-l { margin-top: 18px !important; }
.cc-name { margin-top: 4px !important; font-size: 24px; font-weight: 700; font-style: italic; color: #78350F; line-height: 1.2; }
.cc hr { border: 0; height: 1px; background: rgba(217, 119, 6, .12); margin: 14px 0; }
.cc hr.cc-hr1 { background: rgba(217, 119, 6, .2); margin: 7px 0; }
.cc-lv { margin-top: 4px !important; font-size: 38px; font-weight: 900; letter-spacing: 2px; color: #92400E; line-height: 1.1; }
.cc-lang { margin: 2px 0 !important; font-size: 18px; font-weight: 700; color: #78350F; }
.cc-score { font-size: 28px; font-weight: 800; color: #92400E; line-height: 1.2; }
.cc-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.cc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(217, 119, 6, .07); }
.cc-rows li:last-child { border-bottom: 0; }
.cc-rows span { font-size: 13px; color: #78350F; }
.cc-rows b { font-size: 14px; font-weight: 700; color: #92400E; }
.cc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }   /* sem espaço, o código desce para a linha de baixo */
.cc-foot p { display: grid; gap: 2px; }
.cc-foot p + p { text-align: right; }
.cc-foot small { font-size: 10px; letter-spacing: 1px; }
.cc-foot b { font-size: 12px; font-weight: 600; color: #92400E; white-space: nowrap; }
.cc-seal { display: grid; place-items: center; width: 52px; height: 52px; margin: 18px auto 0; border-radius: 50%; color: #fff;
  background: linear-gradient(90deg, #F59E0B, #D97706); box-shadow: 0 4px 16px rgba(217, 119, 6, .3); }
.cc-seal svg { width: 26px; height: 26px; fill: currentColor; }
.cc-cert { margin-top: 6px !important; text-align: center; font-size: 9px; letter-spacing: 1px; }
/* Tudo o que tem no app */
.allsec .all-cols { margin-top: 12px; }
.all-cols { display: grid; gap: 8px 32px; }
.all-col h3 { font: 700 14px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #4F46E5; margin: 18px 0 6px; }
.all-col ul { list-style: none; margin: 0; padding: 0; }
.all-col li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid #DDD5C8; }
.all-col b { font-weight: 600; font-size: 15px; color: var(--title); }
.all-col span { font-size: 14px; color: #4A4A4A; }
/* Lista de espera final: bloco largo lilás dentro da coluna */
.end {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto var(--section);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 64px); background: #EEEAF8; border-radius: 28px;
}
.end .waitlist { max-width: 640px; }
/* página nova: rótulo, título, formulário, oferta e nota centralizados numa coluna mais estreita */
.band-light .end { text-align: center; }
.band-light .end > * { max-width: 540px; margin-inline: auto; }
.band-light .end .waitlist { max-width: 540px; }
.band-light .end .offer { color: #4A4640; }
.end-when { margin-top: 8px; font-size: 15px; font-weight: 400; color: #6B675F; text-wrap: balance; }
@media (min-width: 900px) {
  /* mosaico: vídeo à esquerda nas duas linhas; à direita, fala em cima (largo) e exercícios + revisão embaixo */
  .fx-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); grid-template-areas: "v s s" "v e r"; }
  .fx-video { grid-area: v; } .fx-speak { grid-area: s; } .fx-ex { grid-area: e; } .fx-review { grid-area: r; }
  .fx-video .fx-vv { flex: 1; aspect-ratio: auto; min-height: 260px; }
  .fs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 18px; }
  .fx-ex .fx-vis, .fx-review .fx-vis { flex: 1; }
  /* texto na margem dos títulos; o certificado logo ao lado (sem o vão de meia página) */
  .fcert { grid-template-columns: minmax(0, 460px) auto; justify-content: start; column-gap: clamp(48px, 6vw, 88px); }
  .fcert .cc-wrap { justify-self: start; width: 420px; }   /* mais largo: espaço entre a data e o código */
}
@media (min-width: 900px) {
  /* celular jogável à esquerda (na borda da coluna); à direita, centralizado em relação a ele */
  .demo-duo {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(56px, 8vw, 120px);
    grid-template-areas: "pick ." "show ." "show head" "show guide" "show join" "show ." "under .";
    grid-template-rows: auto 1fr auto auto auto 1fr auto;
  }
  /* a coluna da direita centraliza em relação ao celular; o botão fica numa linha logo abaixo */
  .demo-phone { display: contents; }
  .demo-head { grid-area: head; text-align: start; }
  .demo-show { grid-area: show; margin: 0; justify-self: start; }
  .demo-under { grid-area: under; }
  /* no computador, a escolha fica na coluna da direita: sem seletor acima e sem botão embaixo do aparelho */
  .demo-duo .demo-course, .demo-under .demo-cta, .demo-duo .dc-desc { display: none; }
  .dm-guide { grid-area: guide; max-width: 520px; }
  .demo-join { grid-area: join; margin: 26px 0 0; max-width: 520px; }
  .demo-join .demo-invite { text-align: start; }
  .dj-more { display: block; margin-top: 12px; }
  .demo.ended .demo-join { margin-top: 14px; }
  .demo-show { align-self: start; }   /* a moldura nunca estica com a coluna da direita */
  .dj-k { font-size: 14px; color: var(--note); }
  .dj-flags { display: flex; flex-wrap: wrap; gap: 0; margin: 6px 0 0 -6px; }
  .dpf.sm { width: 32px; height: 32px; }
  .dpf.sm img { width: 20px; height: 20px; }
  .dpf.sm.on img { box-shadow: 0 0 0 2px #F6F3EE, 0 0 0 3.5px #4F46E5; }
  .dm-gcard { display: none; }
  .feats { padding-top: 72px; }
  .all-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* itens alinhados na horizontal: cada coluna usa as linhas da grade (rótulo + 3 itens) */
  .all-col { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .all-col ul { display: contents; }
  .all-col li { align-content: start; }
}
@media (max-width: 899px) {
  .dm-guide { display: none; }
}
/* Celular: o cartão do AGORA reservava 112 px vazios entre o título e o seletor antes de começar.
   Agora o seletor vem logo abaixo do título e o cartão divide a mesma célula com a descrição da lição
   (antes de começar aparece a descrição; depois, o cartão), com altura fixa: nada salta. */
@media (max-width: 600px) {
  .demo-duo { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo-phone { display: contents; }
  .demo-head { grid-row: 1; }
  .demo-course { grid-row: 2; margin-top: 32px; }
  .demo-duo .dc-desc, .demo-duo .dm-gcard { grid-row: 3; grid-column: 1; align-self: start; }
  .demo-duo .dc-desc { margin: 0 auto !important; }
  .demo-duo .dm-gcard { height: 76px; margin: 0 auto; width: 100%; }
  .demo-show { grid-row: 4; }
  .demo-under { grid-row: 5; }
  .demo-join { grid-row: 6; }
}
@media (prefers-reduced-motion: reduce) {
  .g-seg { transition: none; }
  .dm-hand { display: none; }
}

/* ───────────── Computador (≥ 1024 × 650): navegação bloco a bloco (classe .fp, ligada pelo app.js) ───────────── */
/* Topo, mapa e lição grátis têm a altura da janela, com o conteúdo centralizado; características e
   perguntas podem ser mais altas. A rolagem é animada pelo script (sem rolagem suave do CSS). */
html.fp { scroll-behavior: auto; }
html.fp .hero { min-height: calc(100vh - 60px); align-content: center; padding-block: 8px 80px; }
html.fp .hero .device { width: clamp(200px, calc((100vh - 236px) / 2.02), 280px); }
/* link de avanço no pé do topo, sempre na primeira tela */
html.fp .next-link { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; white-space: nowrap; }
html.fp .mapsec { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
html.fp .map { max-width: calc((100vh - 300px) * 1800 / 670); margin-inline: auto; }
html.fp .demo { min-height: 100vh; display: grid; align-content: center; padding-block: 24px; }
/* blocos claros que cabem numa tela: conteúdo centralizado na altura */
html.fp .feats, html.fp .allsec, html.fp .certsec, html.fp .faqsec { min-height: 100vh; display: grid; align-content: center; padding-block: 24px; }
/* tela final: caixa lilás + rodapé; o espaço acima da caixa é ajustado no app.js para ocupar a janela */
html.fp .end { margin-top: 24px; margin-bottom: 24px; }
/* janela baixa: o mosaico encolhe só nos espaços verticais (os textos mantêm o tamanho); o vídeo acompanha a coluna da direita */
@media (max-height: 739px) {
  html.fp .feats, html.fp .allsec, html.fp .certsec, html.fp .faqsec { padding-block: 16px; }
  html.fp .feats .kicker { margin-bottom: 8px !important; }
  html.fp .fx-grid { margin-top: 16px; gap: 10px; }
  html.fp .fx-t { padding: 12px 18px 14px; }
  html.fp .fs { padding: 12px 16px; }
  html.fp .fs-card, html.fp .fs-rec { padding: 10px 14px; }
  html.fp .fb, html.fp .fr { padding: 12px 14px; gap: 8px; min-height: 0; }
  html.fp .fr-card { padding: 8px; gap: 4px; }
  html.fp .fr-b { padding: 6px 2px; }
  html.fp .fx-video .fx-vv { min-height: 0; }
}
/* Tudo o que tem no app: conjunto um pouco acima do centro */
html.fp .allsec { padding-bottom: 14vh; }
/* janela baixa: o certificado de exemplo fica mais compacto para o bloco caber numa tela */
@media (max-height: 820px) {
  html.fp .cc { padding: 20px 22px 16px; }
  html.fp .cc-k.tl, html.fp .cc-k.tr { top: 24px; } html.fp .cc-k.bl, html.fp .cc-k.br { bottom: 24px; }
  html.fp .cc-title { margin-top: 10px !important; } html.fp .cc-l { margin-top: 12px !important; }
  html.fp .cc hr { margin: 9px 0; } html.fp .cc hr.cc-hr1 { margin: 5px 0; }
  html.fp .cc-lv { font-size: 34px; } html.fp .cc-rows { margin-top: 6px; } html.fp .cc-rows li { padding: 3px 0; }
  html.fp .cc-seal { width: 44px; height: 44px; margin-top: 12px; } html.fp .cc-seal svg { width: 22px; height: 22px; }
}
html.fp .demo-show .device { width: clamp(220px, calc((100vh - 150px) / 1.98), 320px); }
/* cortina clara entre o mapa e a lição grátis */
.fp-curtain {
  position: fixed; inset: 0; z-index: 65; visibility: hidden; pointer-events: none; background: #F6F3EE;
  transform: translateY(100%); box-shadow: 0 -24px 60px rgba(0, 0, 0, .35);
}
/* bolinhas laterais: o bloco atual em índigo; o nome aparece ao passar o mouse */
.fp-dots { display: none; }
html.fp .fp-dots { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 70; display: grid; gap: 2px; }
.fp-dots button { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.fp-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8A8FA3;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); transition: transform .2s, background-color .2s;
}
.fp-dots button:hover::before { background: #6B7086; transform: scale(1.2); }
.fp-dots button.on::before { background: #6366F1; transform: scale(1.35); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.fp-dots span {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  padding: 4px 10px; border-radius: 999px; background: rgba(21, 21, 21, .85); color: #fff; font: 500 12px/1.4 var(--font);
  opacity: 0; transition: opacity .15s;
}
.fp-dots button:hover span, .fp-dots button:focus-visible span { opacity: 1; }
.fp-dots button:focus { outline: none; }
.fp-dots button:focus-visible::before { box-shadow: 0 0 0 2px #6366F1, 0 0 0 4px rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) {
  .fp-dots button::before { transition: none; }
}

/* ───────────── Mini-lição: seletor de curso ───────────── */
.demo-course { position: relative; display: flex; justify-content: center; margin-bottom: 12px; }
.dc-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #DDD5C8; color: #151515; font: 500 14px var(--font);
}
.dc-btn img, .dc-list img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #DDD5C8; }
.dc-btn svg { width: 18px; height: 18px; fill: #6B675F; }
.dc-btn:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }
.dc-list {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 6; margin: 0; padding: 6px; list-style: none;
  min-width: 200px; background: #fff; border: 1px solid #DDD5C8; border-radius: 14px; box-shadow: 0 12px 30px rgba(32, 28, 64, .16);
}
.dc-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none;
  color: #151515; font: 500 14px var(--font); cursor: pointer; text-align: start;
}
.dc-list button:hover, .dc-list button[aria-selected="true"] { background: #EEEAF8; }
.dc-list button:focus-visible { outline: 2px solid #4F46E5; outline-offset: -2px; }

/* ───────────── Mini-lição: gramática, traçado de kana e ligar pares (como no app) ───────────── */
.dm-ghead {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 20px 18px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 70%, #000), var(--gc), color-mix(in srgb, var(--gc) 70%, #fff));
  border-radius: 0 0 24px 24px;
}
.dm-ghead .dm-backb { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.dm-ghead .dm-count { background: rgba(255, 255, 255, .2); color: #fff; }
.dm-gtitle { font-size: 18px; font-weight: 700; line-height: 1.25; }
.dm-gbody { padding: 14px 0 20px; }
.dm-gcon { margin: 0 16px 14px; padding: 14px 16px; background: #fff; border-radius: 16px; border: 1px solid #EEF0F4; font-size: 14px; line-height: 1.55; color: #374151; }
.dm-gcon p + p { margin-top: 8px !important; }
.dm-gk { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--gc); margin-bottom: 6px !important; }
.dm-gk .dm-ic { fill: var(--gc); }
.dm-gtab { width: calc(100% - 32px); margin: 0 16px 14px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #EEF0F4; font-size: 14px; }
.dm-gtab th, .dm-gtab td { padding: 9px 12px; text-align: left; border-top: 1px solid #F1F2F6; }
.dm-gtab tr:first-child td, .dm-gtab th { border-top: 0; }
.dm-gtab th { background: color-mix(in srgb, var(--gc) 12%, #fff); color: var(--gc); font-weight: 700; }
.dm-gk1 { font-size: 22px; font-weight: 600; color: var(--gc); width: 1%; white-space: nowrap; }
.dm-gsec { margin: 4px 20px 10px !important; font-size: 15px; font-weight: 700; }
.dm-ex-tip { display: block; margin-top: 4px; font-size: 12.5px; color: #9CA3AF; }
.dm-kana { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.dm-kr { font-size: 44px; font-weight: 700; line-height: 1.1; color: #6366F1; }
.dm-kpill { margin-top: 6px; padding: 6px 18px; border-radius: 20px; background: rgba(99, 102, 241, .12); color: #6366F1; font-size: 14px; font-weight: 600; }
.dm-km { margin-top: 10px !important; padding: 0 24px; font-size: 18px; font-style: italic; color: rgba(0, 0, 0, .54); }
.dm-kbox { margin-top: 12px; width: 284px; height: 284px; background: #fff; border: 1.5px solid #E0E0E0; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); transition: background-color .12s; }
.dm-kbox.ok { background: rgba(76, 175, 80, .15); }
.dm-kbox.bad { background: rgba(244, 67, 54, .18); }
.dm-kcv { display: block; touch-action: none; cursor: crosshair; }
.dm-kcv path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dm-kcv .kg { stroke: rgba(158, 158, 158, .25); stroke-width: 8; }
.dm-kcv .kx { stroke: rgba(99, 102, 241, .45); stroke-width: 9; }
.dm-kcv .ku path { stroke: #6366F1; stroke-width: 10; }
.dm-kcv .kn circle { fill: #BDBDBD; }
.dm-kcv .kn.on circle { fill: #6366F1; }
.dm-kcv .kn text { fill: #fff; font: 700 13px Poppins, system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; }
.dm-kana.kata .dm-kr, .dm-kana.kata .dm-kpill { color: #EC4899; }
.dm-kbtns { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.dm-kbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(99, 102, 241, .35); background: rgba(99, 102, 241, .08); color: #6366F1; font-size: 14px; font-weight: 600;
}
.dm-kbtn .dm-ic { fill: #6366F1; }
.dm-kexp { margin-top: 12px !important; padding: 0 20px; font-size: 13px; color: rgba(0, 0, 0, .54); }
.dm-kdlg { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.dm-kdlg-c { width: 300px; padding: 20px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; align-items: center; }
.dm-kdlg-r { font-size: 32px; font-weight: 700; color: #6366F1; line-height: 1.1; }
.dm-kdlg-s { margin-top: 2px !important; font-size: 13px; color: rgba(99, 102, 241, .7); }
.dm-kdlg-box { margin-top: 12px; width: 240px; height: 240px; background: #FAFAFA; border: 1.5px solid #EEEEEE; border-radius: 16px; overflow: hidden; }
.dm-kdlg-box svg { display: block; width: 100%; height: 100%; }
.dm-kdlg-box path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dm-kdlg-box .kg { stroke: rgba(158, 158, 158, .25); stroke-width: 8; }
.dm-kdlg-box .ka { stroke: #6366F1; stroke-width: 2.8; }
.dm-kdlg-c.kata .dm-kdlg-r, .dm-kdlg-c.kata .dm-kdlg-s { color: #EC4899; }
.dm-kdlg-c.kata .ka { stroke: #EC4899; }
.dm-kdlg-x { margin-top: 14px; padding: 10px 22px; border: 0; border-radius: 12px; background: #F3F4F6; color: #1A1A2E; font-size: 15px; font-weight: 600; cursor: pointer; }
.dm-mp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-mpc { display: grid; gap: 10px; align-content: start; }
.dm-mpi {
  min-height: 52px; padding: 10px 12px; border-radius: 14px; border: 2px solid #E5E7EB; background: #fff; color: #1A1A2E;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.dm-mpi:not(.r) { font-size: 20px; }
.dm-mpi.sel { border-color: #6366F1; background: rgba(99, 102, 241, .08); }
.dm-mpi.ok { border-color: #10B981; background: rgba(16, 185, 129, .1); color: #047857; cursor: default; }
.dm-mpr { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; }
.dm-mpr b { color: #10B981; }
.dm-sum .dm-mp { display: block; }

/* ───────────── Mini-lição: ouvir e escolher, traçado de hangul, título de tabela ───────────── */
.dm-gtt { margin: 0 20px 8px !important; font-size: 14px; font-weight: 700; color: var(--gc); }
.dm-ish { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin-bottom: 12px !important; }
.dm-ish-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(99, 102, 241, .1); }
.dm-ish-ic .dm-ic { fill: #6366F1; }
.dm-isimg { position: relative; }
.dm-isplay {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; padding: 0;
  background: #6366F1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.dm-isplay .dm-ic { fill: #fff; }
.dm-ishero { display: grid; place-items: center; height: 150px; margin-bottom: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(99, 102, 241, .15), rgba(99, 102, 241, .05)); }
.dm-isplay.big { position: static; width: 84px; height: 84px; border-width: 8px; }
.dm-hr { font-size: 18px; font-weight: 600; letter-spacing: 1px; color: rgba(99, 102, 241, .75); }
.dm-hc { font-size: 44px; font-weight: 700; line-height: 1.1; color: #6366F1; }
.dm-hn { font-size: 13px; font-weight: 500; letter-spacing: .5px; color: rgba(99, 102, 241, .6); }
.dm-kcv.hg .kg { stroke-width: 6; }
.dm-kcv.hg .kx { stroke-width: 7; }
.dm-kcv.hg .ku path { stroke-width: 8; }
.dm-kcv.hg .kn circle { fill: rgba(189, 189, 189, .45); }
.dm-kcv.hg .kn.on circle { fill: rgba(99, 102, 241, .9); }
.dm-kcv.hg .kn text { font-size: 11px; }
.dm-kdlg-c.hg .kg { stroke-width: 6; }
.dm-kdlg-c.hg .dm-kdlg-r { font-size: 44px; }
.dm-kdlg-c.hg .ka { stroke-width: 34; }

/* Lição grátis: a escolha do curso (bandeiras, nome, descrição, botão e nota) num cartão branco,
   no estilo dos cartões de "Como você aprende"; o celular fica fora */
.demo-cardbg { display: none; }
@media (min-width: 900px) {
  .g-pre {
    padding: 22px 26px 22px; border-radius: 20px; background: #fff; border: 1px solid #DDD5C8;
    box-shadow: 0 1px 2px rgba(32, 28, 64, .04), 0 14px 32px -16px rgba(32, 28, 64, .16);
  }
  /* largura = fileira de bandeiras + margem interna; o texto quebra dentro dela (não alarga o cartão) */
  .g-pre { justify-self: start; width: fit-content; max-width: 100%; }
  .g-pre .dp-name, .g-pre .dp-desc, .g-pre .demo-note { width: 0; min-width: 100%; }
  .g-pre .dp-name { color: #4F46E5; font-weight: 600; }
}
/* até 899 px: cartão acima do celular, com seletor, descrição, botão e nota; "Pular"/"Recomeçar" ficam embaixo do celular */
@media (max-width: 899px) {
  .demo-duo { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo-phone, .demo-under { display: contents; }
  .demo-head { grid-row: 1; }
  .demo-cardbg {
    display: block; grid-row: 2 / 5; grid-column: 1; justify-self: center; width: min(100%, 460px); margin-top: 28px;
    border-radius: 20px; background: #fff; border: 1px solid #DDD5C8;
    box-shadow: 0 1px 2px rgba(32, 28, 64, .04), 0 14px 32px -16px rgba(32, 28, 64, .16);
  }
  .demo-duo .demo-course { grid-row: 2; grid-column: 1; position: relative; z-index: 3; margin: 28px 0 0; padding: 22px 0 14px; }
  .demo-duo .dc-desc { grid-row: 3; grid-column: 1; position: relative; z-index: 1; align-self: start; margin: 0 auto !important; padding: 0 22px; max-width: 420px; }
  .demo-duo .dm-gcard { grid-row: 3 / 5; grid-column: 1; align-self: center; position: relative; z-index: 1; height: 76px; margin: 0 auto; width: min(100%, 460px); }
  .demo-cta { grid-row: 4; grid-column: 1; position: relative; z-index: 1; padding: 14px 0 22px; }
  .demo-cta .demo-note { padding-inline: 16px; }   /* nota em 2 linhas não encosta na borda do cartão */
  .demo-show { grid-row: 5; grid-column: 1; margin-top: 22px; }
  .demo-ctrl { grid-row: 6; grid-column: 1; justify-self: center; margin-top: 12px; }
  .demo-join { grid-row: 7; grid-column: 1; }
  .demo.started .demo-cardbg { visibility: hidden; }
}

/* Página 404 */
body.nf { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px 16px; background: #0B1220; color: #C8C8C8; font-family: var(--font); text-align: center; }
.nf-box { max-width: 460px; }
.nf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.nf-logo img { border-radius: 10px; }
.nf-code { margin: 32px 0 4px; font-size: 64px; font-weight: 700; line-height: 1; color: #818CF8; }
.nf h1 { margin: 8px 0; font-size: 26px; color: #fff; }
.nf p { margin: 0; }
.nf-btn { display: inline-block; margin-top: 24px; padding: 12px 22px; border-radius: 999px; background: #FF7A2E; color: #1A1A1A; font-weight: 600; text-decoration: none; }
.nf-btn:focus-visible, .nf-logo:focus-visible { outline: 2px solid #818CF8; outline-offset: 3px; }
