/* Química com Eyder — folha única.
   Identidade: azul-tinta do logo na moldura, papel azulado na leitura, ciano de chama só como brilho.
   O menu são casas da tabela periódica; as famílias usam cores de teste de chama
   (estudar = cobalto, decifrar = sódio, laboratório = cobre, professor = lítio). */
/* Fonte: Archivo (OFL), guardada no site, com eixo de largura. Títulos usam a versão larga; texto, a normal.
   O terceiro arquivo traz só subscritos, sobrescritos e setas, para H₂SO₄ e Ca²⁺ saírem na mesma fonte. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fontes/archivo-latin.woff2) 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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fontes/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fontes/archivo-simbolos.woff2) format("woff2");
  unicode-range: U+B0-B3, U+B7, U+B9, U+D7, U+394, U+2070, U+2074-207B, U+2080-2089, U+2192, U+21C4, U+21CC, U+2212, U+2248, U+2264-2265; }
/* Cor da chama do topo; registrada para a troca de cor ser animada. */
@property --chama { syntax: "<color>"; inherits: true; initial-value: #2fe3b4; }
:root {
  --ink: #0b1d3f; --ink-2: #132a55; --ink-3: #1d3a6e; --flame: #3cd4ff;
  --paper: #eef3fa; --card: #fff; --text: #13203a; --muted: #4f5f7b; --line: #d3ddec;
  --cobalt: #1747d6; --cobalt-dark: #0f36a8;
  --ok: #12805a; --ok-bg: #e3f5ec; --no: #b8155f; --no-bg: #fbe6ef;
  --f-estudar: #2f6bff; --f-decifrar: #e08a12; --f-lab: #17a083; --f-prof: #e0365e;
  --radius: 14px; --side: 256px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-stretch: 112%; }
h1 { font-size: 2rem; font-weight: 760; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .9em; }
small { font-size: .82rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.lead { color: var(--muted); max-width: 68ch; }
[hidden] { display: none !important; }

/* ---------- Moldura ----------
   Conteúdo sempre numa coluna de até --wrap px, centralizada na área útil (com ou sem barra lateral).
   Visitante no computador: sem barra lateral, links no topo. Abaixo de 1024px: gaveta + barra de abas. */
:root { --wrap: 1200px; --gut: clamp(16px, 3.5vw, 40px); --pad: max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, #0d2149, var(--ink) 60%); color: #dbe6ff; padding: 20px 16px 28px; overflow-y: auto; z-index: 40; border-right: 1px solid #1f3766; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand img, .top-brand img { height: auto; }
.brand img { width: 150px; }
.side-close { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2a4a85; background: var(--ink-2); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.side-cta { display: grid; gap: 8px; padding-top: 6px; }
.side-cta .btn.ghost { color: #fff; border-color: #ffffff40; }
.side-link { color: #9fc0ff; text-align: center; font-weight: 600; padding: 6px; }
.work { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
body.visitor .side { display: none; }
body.visitor .work { margin-left: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; min-height: 72px; padding: 10px var(--pad); background: #0b1d3ff2; backdrop-filter: blur(14px); border-bottom: 1px solid #1f3766; }
.top-brand { display: none; flex: none; }
.top-brand img { width: 124px; }
body.visitor .top-brand { display: block; }
.top-links { display: none; gap: 4px; }
body.visitor .top-links { display: flex; }
.top-links a { color: #c9d6f2; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 9px; }
.top-links a:hover { color: #fff; background: var(--ink-2); }
.top-links a.on { color: #fff; background: var(--ink-3); }
.crumb { display: none; margin: 0; color: #9fb2d8; font-size: .92rem; }
.crumb strong { color: #fff; font-weight: 650; }
body:not(.visitor) .crumb { display: block; }
.account { margin-left: auto; display: flex; gap: 10px; align-items: center; }
main { flex: 1; width: 100%; padding: 32px var(--pad) 56px; }
main:focus { outline: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px var(--pad) 26px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.loading { color: var(--muted); padding: 40px 0; }
.tabbar { display: none; }

/* ---------- Casas da tabela (menu e títulos) ---------- */
.nav-group { margin-bottom: 18px; }
.nav-label { font-size: .78rem; color: #8ea3cc; margin: 0 0 6px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 5px 6px; border-radius: 10px; color: #cfdbf5; text-decoration: none; font-size: .94rem; }
.nav-item:hover { background: var(--ink-2); color: #fff; }
.nav-item.active { background: var(--ink-3); color: #fff; font-weight: 650; }
.el { --fam: var(--f-estudar); position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--fam); border-radius: 6px; background: var(--ink-2); color: #fff; }
.el-z { position: absolute; top: 2px; left: 4px; font-size: .62rem; line-height: 1; color: #a9bbdf; font-variant-numeric: tabular-nums; }
.el-sym { font-weight: 750; font-size: 1rem; letter-spacing: -.01em; padding-top: 4px; }
.el-decifrar { --fam: var(--f-decifrar); }
.el-lab { --fam: var(--f-lab); }
.el-prof { --fam: var(--f-prof); }
.nav-item.active .el { background: var(--fam); box-shadow: 0 0 0 3px #3cd4ff33, 0 0 18px #3cd4ff55; }
.nav-item.active .el-z { color: #fff; }
.el-lg { width: 64px; height: 64px; border-width: 2px; background: var(--ink); }
.el-lg .el-z { font-size: .72rem; top: 4px; left: 6px; }
.el-lg .el-sym { font-size: 1.55rem; }

.page-head { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.page-head h1 { margin: 0; }
.page-head > div { flex: 1; min-width: 0; }
.page-head .lead { margin: 4px 0 0; }

/* ---------- Conta no topo ---------- */
.who { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid #2a4a85; }
.who:hover { color: #fff; border-color: var(--flame); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 700; }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.row.center { justify-content: center; }
.row.end { justify-content: flex-end; margin-bottom: 0; }
.form { display: grid; gap: 14px; }
.form h1, .form h2 { margin-bottom: 0; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .93rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px; min-height: 42px; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: 2px solid #1747d633; outline-offset: 0; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--cobalt); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input[type=date] { width: auto; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; padding: 0 4px; }
.form-error { background: var(--no-bg); color: var(--no); border-radius: 9px; padding: 10px 12px; margin: 0; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; }
.filters label { min-width: 200px; flex: 1; }
.filters .btn { flex: none; }

/* ---------- Blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.notice { border-left: 4px solid var(--f-decifrar); background: #fff6e8; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 18px; max-width: 80ch; }
.gate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 620px; }
.empty { color: var(--muted); padding: 18px 0; }
/* Tela vazia que convida a agir: o recado e os caminhos para seguir estudando. */
.vazio { display: flex; gap: 22px; align-items: flex-start; max-width: 720px; padding: 28px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--cobalt) 35%, var(--line)); border-radius: 18px; }
.vazio h2 { margin: 0 0 6px; font-size: 1.3rem; }
.vazio p { color: var(--muted); margin: 0 0 18px; max-width: 52ch; }
.vazio .row { margin: 0; }
.tag { display: inline-block; font-size: .76rem; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: #e4ebf8; color: var(--ink-3); vertical-align: middle; }
.plain { padding-left: 1.1em; margin: 0; }
.plain li { margin: 6px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1.5px solid var(--line); margin: 0 0 22px; }
.tab { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tab.on { color: var(--text); border-bottom-color: var(--cobalt); }
.table { width: 100%; border-collapse: collapse; background: var(--card); margin: 12px 0; font-size: .93rem; }
.table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 650; }
.table tr.off td, .table tr.off th { color: var(--no); background: var(--no-bg); }
.status { font-size: .8rem; font-weight: 650; }
.s-publicada, .s-publicado { color: var(--ok); }
.s-rascunho { color: var(--f-decifrar); }
.s-arquivada, .s-arquivado { color: var(--muted); }

/* Leituras de instrumento: números grandes, rótulo embaixo, separadas por traço. */
.readings { display: flex; flex-wrap: wrap; margin: 6px 0 18px; }
.reading { display: grid; padding: 4px 26px 4px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.reading:last-child { border-right: 0; }
.reading-value { font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.reading-label { color: var(--muted); font-size: .88rem; }

/* ---------- Início ---------- */
/* O cartão do topo é iluminado pela chama escolhida (--chama): o brilho do fundo e a luz sobre a foto mudam juntos. */
.hero { --chama: #2fe3b4; position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; border: 1px solid color-mix(in srgb, var(--chama) 30%, #2c4f92); border-radius: 24px; overflow: hidden; color: #e8efff; margin: 0 0 8px;
  background: radial-gradient(ellipse 55% 60% at 22% 112%, color-mix(in srgb, var(--chama) 42%, transparent) 0, transparent 72%), linear-gradient(115deg, #0a1a39 10%, #0d2552 62%, #10306a);
  box-shadow: 0 24px 60px #0b1d3f33, inset 0 1px #ffffff14; transition: --chama .7s ease, border-color .7s ease; }
.hero-text { position: relative; z-index: 1; padding: clamp(28px, 5vw, 60px); align-self: center; }
.hero-kicker { color: #9fc0ff; font-weight: 600; font-stretch: 100%; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); font-stretch: 125%; font-weight: 800; line-height: .98; letter-spacing: -.03em; color: #fff; max-width: 11ch; margin-bottom: 20px; }
.hero p { max-width: 46ch; color: #c5d3f0; font-size: 1.05rem; }
.hero .row { margin-top: 24px; }
.hero .btn { min-height: 48px; padding: 11px 22px; }
.hero .btn.ghost { color: #fff; border-color: #ffffff55; }
.hero .btn.ghost:hover { border-color: var(--flame); color: var(--flame); }
/* A foto entra no painel por um degradê longo e em curva suave (sem degrau): a máscara vale também para a luz
   da chama por cima dela, senão a borda da luz desenha uma linha reta onde a foto começa. */
.hero-photo { --fundir: linear-gradient(to right, transparent 0, #0000000d 8%, #00000033 16%, #00000073 25%, #000000b8 34%, #000000e6 42%, #000 52%);
  position: relative; margin: 0; min-height: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 14%;
  mask-image: var(--fundir); -webkit-mask-image: var(--fundir); }
/* Luz da chama: tinge a foto por baixo e pela borda esquerda, como se a chama estivesse na bancada. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(ellipse 50% 55% at 62% 110%, var(--chama), transparent 70%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color; opacity: .28;
  background: linear-gradient(to top, var(--chama), transparent 65%); mask-image: var(--fundir); -webkit-mask-image: var(--fundir); }

/* Teste de chama: casas com o número atômico real; a escolhida acende na própria cor. */
.flame-test { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ffffff1c; }
.hero .ft-title { font-size: .9rem; color: #9fb2d8; margin-bottom: 10px; }
.ft-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 48px)); gap: 8px; }
.ft-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border-radius: 7px; border: 1.5px solid #ffffff30; background: #0b1d3fb0; color: #dbe6ff; font: inherit; cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s, color .25s; }
.ft-tile:hover { border-color: var(--c); color: #fff; }
.ft-z { position: absolute; top: 3px; left: 5px; font-size: .6rem; line-height: 1; opacity: .75; font-variant-numeric: tabular-nums; }
.ft-sym { font-weight: 750; font-size: 1.05rem; padding-top: 5px; }
.ft-tile[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 26%, #0b1d3f); color: #fff; box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); }
.hero .ft-caption { min-height: 4.6em; margin: 12px 0 0; font-size: .92rem; line-height: 1.5; color: #b7c6e6; max-width: 48ch; }
.ft-caption strong { color: #fff; }

.block { margin: 48px 0; }
.block > h2, .block-head h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 18px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link { font-weight: 600; text-decoration: none; }
.hero-aluno { min-height: 0; }
.hero-aluno .hero-kicker { color: #fff; font-size: 1.1rem; }
.hero-aluno h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 13ch; }
.hero-aluno .hero-photo img { object-position: center 18%; }
.progress { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.progress .row { margin-bottom: 0; }

/* Cartões das áreas: a fórmula grande faz o papel da imagem. */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 240px; padding: 92px 22px 22px; border-radius: 18px; color: #fff; text-decoration: none; border: 1px solid #ffffff1f; box-shadow: 0 12px 30px #0b1d3f26; transition: transform .2s ease, box-shadow .2s ease; }
.area-card:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px #0b1d3f40; }
.area-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.area-card p { color: #ffffffd0; font-size: .93rem; line-height: 1.5; margin-bottom: 10px; }
.area-count { margin-top: auto; font-size: .8rem; font-weight: 650; color: #ffffffb0; }
.area-formula { position: absolute; top: 14px; left: 20px; font-size: 4.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #ffffff2b; white-space: nowrap; }
.a1 { background: radial-gradient(circle at 85% 10%, #3c7bff66, transparent 55%), linear-gradient(165deg, #1b49c4, #0b1d3f 78%); }
.a2 { background: radial-gradient(circle at 85% 10%, #ffb34766, transparent 55%), linear-gradient(165deg, #a85d09, #23160b 80%); }
.a3 { background: radial-gradient(circle at 85% 10%, #3be0b366, transparent 55%), linear-gradient(165deg, #0d7f67, #071f1a 80%); }
.a4 { background: radial-gradient(circle at 85% 10%, #3cd4ff66, transparent 55%), linear-gradient(165deg, #0d6f96, #061a28 80%); }

/* Lista "O que você encontra": título à esquerda, linhas finas à direita. */
.features { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; align-items: start; }
.features > div:first-child { position: sticky; top: 96px; }
.features-lead { color: var(--muted); max-width: 34ch; margin: 0; }
.feature-list { margin: 0; border-top: 1px solid var(--line); }
.feature-list > div { display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.feature-list dt a { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; }
.feature-list dt a:hover { color: var(--cobalt); }
.feature-list dt .el { width: 38px; height: 38px; background: var(--fam); }
.feature-list dd { margin: 0; color: var(--muted); }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: 18px; background: linear-gradient(110deg, var(--ink), #133272); color: #dbe6ff; }
.strip h2 { color: #fff; margin-bottom: 4px; font-size: 1.3rem; }
.strip p { margin: 0; }
.strip .btn { flex: none; }

/* ---------- Entrar ---------- */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: center; min-height: calc(100vh - 260px); max-width: 1040px; margin: 0 auto; }
.auth-pitch h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -.03em; margin: 22px 0 16px; max-width: 14ch; }
.auth-pitch p { color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth-points li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--flame); box-shadow: 0 0 10px #3cd4ff; flex: none; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 10px 30px 28px; box-shadow: 0 24px 60px #0b1d3f1f; }
.auth-card .tabs { margin-bottom: 20px; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: .93rem; }
.auth-row a { font-weight: 600; }
.auth-title { font-size: 1.35rem; margin: 20px 0 16px; }
.auth-switch { text-align: center; color: var(--muted); font-size: .92rem; margin: 0; }
.pw { position: relative; display: block; }
.pw input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--cobalt); font: inherit; font-size: .88rem; font-weight: 650; padding: 6px 10px; cursor: pointer; border-radius: 7px; }
.btn.big { min-height: 50px; font-size: 1.02rem; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: #ffffff4d; }
.btn.ghost-dark:hover { color: var(--flame); border-color: var(--flame); }

/* ---------- Questões ---------- */
.count { color: var(--muted); font-size: .9rem; }
.q-list { list-style: none; padding: 0; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.q-list li + li { border-top: 1px solid var(--line); }
.q-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--text); }
.q-row:hover { background: #f5f8fd; color: var(--text); }
.q-row-topic { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #9fb0cc; }
.dot.acertou { background: var(--ok); border-color: var(--ok); }
.dot.errou { background: var(--no); border-color: var(--no); }
.crumbs { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
/* A questão é coluna de leitura: alternativas da mesma medida do enunciado, olho sem atravessar a tela. */
.question { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 900px; }
.q-meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.q-source { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.q-stem { font-size: 1.14rem; line-height: 1.65; max-width: 68ch; margin-bottom: 14px; }
.opts { border: 0; padding: 0; gap: 8px; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 400; cursor: pointer; }
.opt:hover { border-color: #9fb0cc; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-letter { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #9fb0cc; font-weight: 700; font-size: .88rem; }
.opt-text { padding-top: 2px; }
.opt:has(input:checked) { border-color: var(--cobalt); background: #eef3ff; }
.opt:has(input:checked) .opt-letter { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--flame); outline-offset: 2px; }
.opt.right, .opt.right:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.opt.right .opt-letter, .opt.right:has(input:checked) .opt-letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong, .opt.wrong:has(input:checked) { border-color: var(--no); background: var(--no-bg); }
.opt.wrong .opt-letter, .opt.wrong:has(input:checked) .opt-letter { background: var(--no); border-color: var(--no); color: #fff; }
.opt.dim { opacity: .65; }
.opt:has(input:disabled) { cursor: default; }
.verdict { margin-top: 16px; padding: 14px 16px; border-radius: 10px; }
.verdict.ok { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.verdict.no { background: var(--no-bg); border-left: 4px solid var(--no); }
.verdict strong { display: block; margin-bottom: 6px; }
.verdict p:last-child { margin-bottom: 0; }
.q-actions { margin-top: 16px; }
/* Figuras das questões: fundo branco (estruturas costumam ser desenho em PNG transparente) e altura contida. */
.q-img { display: block; max-width: 100%; max-height: 440px; height: auto; margin: 6px 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.opt-text .q-img { max-height: 170px; margin: 4px 0 0; padding: 4px; }
.verdict .q-img { margin: 10px 0; }

/* ---------- Simulados ---------- */
.exam { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; }
.exam p { margin: 4px 0; }
.exam-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.exam-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--paper); padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.exam-bar h1 { font-size: 1.2rem; margin: 0; flex: 1; }
.clock { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 1.2rem; }
.clock.late { color: var(--no); }
.save-state { font-size: .85rem; color: var(--muted); }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.qdot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); font-weight: 650; font-size: .88rem; }
.qdot.filled { background: var(--ink); color: #fff; border-color: var(--ink); }
.exam-q { margin-bottom: 22px; scroll-margin-top: 80px; }
.exam-q-n { font-size: 1rem; color: var(--muted); }
.score { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }

/* ---------- Erros e desempenho ---------- */
.err { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.err summary { cursor: pointer; font-weight: 600; }
.err details[open] summary { margin-bottom: 14px; }
.err .question { border: 0; padding: 0; }
.err-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-top: 12px; }
.err-foot label { min-width: 240px; }
.meter { display: inline-block; width: 160px; height: 10px; border-radius: 99px; background: #dfe7f4; overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--cobalt); }
.area-perf { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.area-perf summary { display: grid; grid-template-columns: 1fr auto 48px; gap: 14px; align-items: center; cursor: pointer; font-weight: 650; }

/* ---------- Decifrando ---------- */
.rank { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rank li { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr 90px; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.rank-name::before { content: counter(r) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-bar { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--f-decifrar) calc(var(--v) * 100%), transparent 0); }
.rank-n { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.rank.small li { grid-template-columns: minmax(160px, 1.2fr) 2fr 40px; font-size: .92rem; padding: 5px 0; }
.radar { display: grid; gap: 8px; }
.radar-area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.radar-area summary { cursor: pointer; font-weight: 650; }
.radar-area[open] summary { margin-bottom: 10px; }
.steps { padding-left: 1.3em; max-width: 75ch; }
.steps li { margin: 6px 0; }
.steps.small { font-size: .93rem; margin: 6px 0 0; }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.guide h3 small { font-weight: 500; margin-left: 6px; }
.guide dl { margin: 0; }
.guide dt { font-weight: 650; margin-top: 10px; }
.guide dd { margin: 3px 0 0; color: #33425e; max-width: 75ch; }
.drill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.drill summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.drill summary .tag { margin-right: 8px; }
.drill[open] summary { margin-bottom: 10px; }

/* ---------- STRIX ---------- */
.strix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.strix { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--f-decifrar); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.strix-pe { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; }
.strix h3 { margin: 0; font-size: 1rem; }
.strix p { margin: 0; }
.strix-ed { font-weight: 750; font-size: 1.25rem; }
.strix-ed span { font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.strix summary { cursor: pointer; color: var(--cobalt); font-weight: 600; font-size: .9rem; }
.answers { font-variant-numeric: tabular-nums; line-height: 1.8; margin-top: 6px !important; }
.strix .btn { justify-self: start; }

/* ---------- Tabela periódica ---------- */
.pt-tools { max-width: 340px; margin-bottom: 10px; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.legend-item { font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1.5px solid transparent; cursor: pointer; color: var(--text); }
.legend-item.on { border-color: var(--ink); }
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pt-scroll { overflow-x: auto; padding-bottom: 6px; }
.pt-grid { display: grid; grid-template-columns: repeat(18, minmax(34px, 1fr)); grid-template-rows: 18px repeat(7, auto) 14px repeat(2, auto); gap: 3px; min-width: 660px; }
.pt-group { font-size: .66rem; color: var(--muted); text-align: center; align-self: end; }
.pt-cell { position: relative; aspect-ratio: 1; border: 1px solid #00000014; border-radius: 4px; padding: 0; font: inherit; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.pt-cell .pt-z { position: absolute; top: 1px; left: 3px; font-size: .55rem; line-height: 1; }
.pt-cell .pt-sym { font-weight: 700; font-size: .88rem; padding-top: 3px; }
.pt-cell:hover { outline: 2px solid var(--ink); outline-offset: 0; z-index: 1; }
.pt-cell.sel { outline: 2.5px solid var(--cobalt); box-shadow: 0 0 0 4px #3cd4ff66; z-index: 2; }
.pt-cell.faded { opacity: .25; }
.pt-marker { display: grid; place-items: center; font-size: .58rem; color: var(--muted); border: 1px dashed #9fb0cc; border-radius: 4px; }
.pt-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
.pt-big { position: relative; width: 112px; height: 112px; border-radius: 10px; border: 1px solid #00000020; display: grid; place-items: center; margin-bottom: 14px; }
.pt-big .pt-z { position: absolute; top: 7px; left: 9px; font-size: .9rem; font-weight: 600; }
.pt-big .pt-sym { font-size: 2.6rem; font-weight: 750; letter-spacing: -.02em; }
.pt-big .pt-mass { position: absolute; bottom: 7px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.facts { margin: 12px 0 0; }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 10px; }
.facts dd { margin: 2px 0 0; }
.config { font-size: 1.02rem; line-height: 1.6; word-spacing: .15em; }
.c-alcalino { background: #fcd5ce; } .c-alcalino-terroso { background: #fde4c3; } .c-transicao { background: #f3eab5; }
.c-lantanideo { background: #e3f0c0; } .c-actinideo { background: #cdebd8; } .c-outros-metais { background: #c9e6ee; }
.c-semimetal { background: #cbd9f5; } .c-nao-metal { background: #ddd3f6; } .c-halogenio { background: #f2d0ea; } .c-gas-nobre { background: #e1e6ef; }

/* ---------- Balanceamento e estequiometria ---------- */
.equation { font-size: 1.25rem; line-height: 1.6; margin: 14px 0; }
.coef { color: var(--cobalt); margin-right: 2px; }
.arrow { margin: 0 6px; color: var(--muted); }
.train-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.15rem; }
.train-eq .row { width: 100%; }
.coef-in { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 500; }
.coef-in input { width: 56px; text-align: center; padding: 6px; min-height: 38px; font-size: 1rem; }
.plus { color: var(--muted); }
.result-big { font-size: 1.15rem; margin: 14px 0 4px; }
.challenge { margin-top: 18px; }
.inline-form { align-items: end; }
.inline-form label { min-width: 200px; }

/* ---------- Sua tabela periódica (progresso) ----------
   Casas na posição real do elemento. Apagada (0), contorno de chama (1), cobalto (2), verde aceso (3 = dominado). */
.progress-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.reading-value small { font-size: .55em; color: var(--muted); font-weight: 650; }
.week-bar { display: block; width: 140px; height: 6px; margin-top: 6px; border-radius: 99px; background: #dfe7f4; overflow: hidden; }
.week-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ok); }
.goal { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.goal select { min-height: 32px; padding: 3px 8px; width: auto; font-size: .85rem; }
.pe-grid { display: grid; grid-template-columns: repeat(18, minmax(30px, 1fr)); gap: 3px; min-width: 600px; }
.pe-grid.mini { grid-template-columns: repeat(18, 14px); gap: 3px; min-width: 0; }
.pe-grid.mini .pe { width: 14px; height: 14px; border-radius: 3px; }
.pe { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border-radius: 5px; border: 1.5px solid transparent; font: inherit; color: var(--muted); background: #e4ebf6; }
.pe-x { background: #eef2f8; color: #b8c4d8; border-color: #e1e8f2; }
.pe-x .pe-sym { font-weight: 500; }
.pe-0 { background: #fff; border-color: #c9d5e8; border-style: dashed; color: #7b8aa6; cursor: pointer; }
.pe-1 { background: #fff; border-color: var(--flame); color: var(--text); cursor: pointer; box-shadow: 0 0 8px #3cd4ff55; }
.pe-2 { background: #dce6ff; border-color: var(--cobalt); color: var(--ink); cursor: pointer; }
.pe-3 { background: var(--ok); border-color: var(--ok); color: #fff; cursor: pointer; box-shadow: 0 0 12px #12805a66; }
button.pe:hover { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.pe.sel { outline: 2.5px solid var(--ink); outline-offset: 2px; z-index: 2; }
.pe-z { position: absolute; top: 1px; left: 3px; font-size: .52rem; line-height: 1; opacity: .8; }
.pe-sym { font-weight: 700; font-size: .82rem; padding-top: 3px; }
.pe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pe-scroll { overflow-x: auto; padding-bottom: 6px; }
.pe-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.pe-legend li { display: flex; align-items: center; gap: 7px; }
.pe-legend .pe { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
.pe-detail h3 { margin: 0; }
.pe-detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pe-big { width: 64px; height: 64px; flex: none; border-radius: 8px; }
.pe-big .pe-sym { font-size: 1.5rem; }
.pe-big .pe-z { font-size: .7rem; top: 4px; left: 6px; }
.pe-el { margin: 0; font-size: .82rem; color: var(--muted); }
.pe-detail .row { margin-bottom: 0; }
.mini-table { display: grid; gap: 8px; justify-items: center; padding: 14px; border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--muted); }
.mini-table:hover { background: #e4ebf8; color: var(--text); }
.mini-caption { font-size: .82rem; font-weight: 600; }

/* ---------- Aulas ---------- */
.lesson-area > h2 { margin-bottom: 10px; }
.trail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.trail summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; }
.trail-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lessons { list-style: none; margin: 0; padding: 0 8px 8px; }
.lesson-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.lesson-row:hover { background: #f2f6fc; color: var(--text); }
.lesson-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; border: 1.5px solid var(--f-estudar); font-weight: 750; font-size: .9rem; color: var(--ink); }
.lesson-row.done .lesson-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-row.locked { color: var(--muted); }
.lesson-row.locked .lesson-n { border-style: dashed; border-color: #9fb0cc; color: var(--muted); }
.lesson-text { display: grid; gap: 2px; }
.lesson-text small { font-size: .86rem; }
.lesson-tag { font-size: .78rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.crumbs a + span::before, .crumbs span + a::before, .crumbs a + a::before { content: "/"; margin-right: 12px; color: #9fb0cc; }
.lesson { max-width: 900px; }
.lesson-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-stretch: 112%; margin-bottom: 8px; }
.lesson-pos { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
/* Capa do assunto: o desenho fica à direita da imagem e a metade esquerda é vazia de propósito,
   para o título entrar ali. O degradê cobre a emenda entre o texto e o desenho. */
.trail summary .trail-name { flex: 1; }
/* Miniatura: a imagem ampliada e presa à direita mostra só o desenho, sem a metade vazia. */
.trail-capa { position: relative; width: 96px; height: 60px; flex: none; overflow: hidden; border-radius: 8px; background: var(--ink); }
.trail-capa img { position: absolute; right: -4%; top: 50%; width: 200%; max-width: none; height: auto; transform: translateY(-50%); }
.lesson-head.capa { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 5 / 2; padding: clamp(22px, 4vw, 38px); border-radius: 16px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.lesson-head.capa::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 34%, #0b1d3fcc 50%, #0b1d3f00 72%); }
.capa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.capa .capa-txt { position: relative; z-index: 2; max-width: 56%; }
.capa h1 { color: #fff; }
.capa .lesson-pos, .capa .lead { color: #b9c8e6; }
@media (max-width: 640px) {
  /* Tela estreita: desenho em faixa no alto, texto embaixo no azul-tinta. */
  /* A imagem fica maior que a caixa e presa à direita, para mostrar o desenho e não a metade vazia.
     padding em % conta pela largura, então texto e degradê acompanham a altura da imagem. */
  .lesson-head.capa { padding-top: 62%; aspect-ratio: auto; }
  .capa-img { inset: 0 0 auto auto; width: 160%; max-width: none; height: auto; aspect-ratio: 16 / 9; }
  .lesson-head.capa::before { inset: 0 0 auto 0; height: 0; padding-top: 90%; background: linear-gradient(180deg, #0b1d3f00 40%, var(--ink) 92%); }
  .capa .capa-txt { max-width: none; }
  .trail-capa { width: 64px; height: 44px; }
}
.video { position: relative; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 50px #0b1d3f33; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: 1.04rem; line-height: 1.7; }
.lesson-body p { max-width: 75ch; }
.lesson-body p:last-child { margin-bottom: 0; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.lesson-nav a { display: grid; gap: 2px; text-decoration: none; font-weight: 650; max-width: 48%; }
.lesson-nav a small { color: var(--muted); font-weight: 500; }
.lesson-nav a.next { text-align: right; margin-left: auto; }

/* ---------- Planos e pagamento ----------
   Cada plano é um cartão; o destacado fica na moldura azul-tinta com o brilho de chama, como o topo do início. */
.plans-head { max-width: 640px; margin-bottom: 18px; }
.plans-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-stretch: 125%; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin: 22px 0 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 24px; }
.plan h2 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-days { color: var(--muted); margin-bottom: 18px; }
.plan-days span { font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-price { font-size: 2.5rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.plan-month { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.plan-text { flex: 1; margin-bottom: 20px; }
.plan.featured { color: #e8efff; border-color: #2fe3b480; background: radial-gradient(ellipse 80% 60% at 50% 110%, #2fe3b433, transparent 70%), linear-gradient(160deg, #10306a, var(--ink) 70%); box-shadow: 0 24px 60px #0b1d3f40, 0 0 0 1px #2fe3b433; }
.plan.featured h2, .plan.featured .plan-days span { color: #fff; }
.plan.featured .plan-days, .plan.featured .plan-month { color: #9fb2d8; }
.plan-flag { position: absolute; top: -12px; left: 24px; margin: 0; padding: 3px 12px; border-radius: 99px; background: #2fe3b4; color: var(--ink); font-size: .8rem; font-weight: 750; }
.pay-note { color: var(--muted); font-size: .92rem; }
.include-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.include-list li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; }
.include-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--ok); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.plans-head ~ .notice { max-width: none; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.notice.ok-notice { border-left-color: var(--ok); background: var(--ok-bg); }
.notice.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sub { font-size: 1rem; margin: 20px 0 6px; }
.purchases { font-size: .93rem; margin-bottom: 8px; }
/* Pagamento confirmado: a casa acende em verde (cor de acerto); aguardando, pulsa devagar. */
.paid { max-width: 680px; margin: 30px auto; text-align: center; }
.paid .lead { margin: 0 auto 22px; }
.paid .row { justify-content: center; }
.paid h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.03em; }
.paid-tile { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 22px; border: 2px solid var(--ok); border-radius: 12px; background: var(--ok); color: #fff; box-shadow: 0 0 0 6px #12805a22, 0 0 40px #12805a55; }
.paid-tile .el-z { top: 6px; left: 8px; font-size: .8rem; color: #ffffffcc; }
.paid-tile .el-sym { font-size: 2rem; font-weight: 800; }
.paid-tile.pending { background: var(--ink); border-color: var(--cobalt); box-shadow: 0 0 0 6px #1747d622; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px #1747d611, 0 0 30px #1747d655; } }

/* ---------- Painel do professor ---------- */
.admin-table td small { color: var(--muted); }
.opt-edit .opt-row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; }
.radio-label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pick-questions { max-height: 520px; overflow-y: auto; }
.pick-questions details { border-top: 1px solid var(--line); padding: 8px 0; }
.pick-questions summary { cursor: pointer; font-weight: 650; }
.pick-questions .check { align-items: flex-start; padding: 5px 0; font-size: .9rem; }
.hint { margin-top: -8px; }
.img-bar { display: flex; gap: 12px; align-items: flex-start; margin-top: -4px; }
.img-bar .btn { flex: none; }
.import-sum { margin: 18px 0 8px; }
.import-table td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.preview-opts { padding-left: 1.4em; }
.preview-opts li { margin: 5px 0; }
.preview-opts .right { color: var(--ok); font-weight: 650; }
/* Fila de revisão do professor: a questão como o aluno vê, com o gabarito marcado. */
.review-q { margin-bottom: 16px; }
.review-q .q-stem { margin-bottom: 12px; }
.review-origin { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.review-origin summary { cursor: pointer; font-weight: 650; }
.review-origin p { margin: 8px 0 0; max-width: 80ch; }

/* ---------- Diálogo e aviso ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--text); box-shadow: 0 30px 80px #0b1d3f55; }
dialog::backdrop { background: #0b1d3f99; }
.dialog-box { padding: 24px; display: grid; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 60; transition: transform .25s ease, visibility .25s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.bad { background: var(--no); }
.scrim { position: fixed; inset: 0; background: #0b1d3f88; z-index: 25; }

/* ---------- Telas menores ---------- */
@media (max-width: 1180px) {
  :root { --side: 228px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .pt-layout { grid-template-columns: 1fr; }
  .pt-detail { position: static; }
  .features { grid-template-columns: 1fr; gap: 4px; }
  .features > div:first-child { position: static; margin-bottom: 12px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .pe-layout { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}
/* Abaixo de 1024px: some a barra lateral fixa; ela vira gaveta, e entra a barra de abas embaixo. */
@media (max-width: 1023px) {
  .side, body.visitor .side { display: block; width: min(320px, 86vw); transform: translateX(-102%); transition: transform .24s ease; }
  .side.open { transform: none; box-shadow: 20px 0 60px #0008; }
  .side-close { display: grid; place-items: center; }
  .work { margin-left: 0; }
  .top-brand { display: block; }
  body:not(.visitor) .crumb { display: none; }
  .top-links, body.visitor .top-links { display: none; }
  .top { min-height: 62px; }
  .top-brand img { width: 108px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #0b1d3ff0; backdrop-filter: blur(16px); border-top: 1px solid #23427c; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; justify-content: center; color: #9fb2d8; text-decoration: none; font: inherit; font-size: .72rem; font-weight: 600; background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .tabbar .on, .tabbar [aria-expanded="true"] { color: #fff; }
  .tab-el { --fam: var(--f-estudar); display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--fam); border-radius: 5px; color: #fff; font-weight: 750; font-size: .78rem; background: var(--ink-2); }
  .tab-el.el-decifrar { --fam: var(--f-decifrar); } .tab-el.el-lab { --fam: var(--f-lab); }
  .tabbar .on .tab-el { background: var(--fam); box-shadow: 0 0 12px #3cd4ff66; }
  .tab-ico { display: grid; place-items: center; width: 28px; height: 28px; }
  .tab-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .exam-bar { top: 62px; }
  .auth { grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .auth-pitch .el, .auth-points { display: none; }
  .auth-pitch h1 { margin-top: 0; }
}
@media (max-width: 760px) {
  main { padding-top: 18px; }
  h1 { font-size: 1.6rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .hero-text { padding: 28px 22px 4px; }
  .hero .row .btn { flex: 1 1 auto; }
  .hero-photo { height: 300px; --fundir: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent); }
  .hero h1 { font-stretch: 112%; }
  .ft-tiles { gap: 6px; }
  .ft-sym { font-size: .95rem; }
  .hero-photo img { object-position: center 10%; }
  .block { margin: 36px 0; }
  .hero-aluno .hero-photo { display: none; }
  .hero-aluno .hero-text { padding-bottom: 22px; }
  .hero-aluno .ft-caption { min-height: 0; }
  .vazio { flex-direction: column; padding: 22px; }
  .areas { gap: 10px; }
  .area-card { min-height: 0; padding: 66px 16px 16px; }
  .area-card h3 { font-size: 1.08rem; }
  .area-card p { font-size: .86rem; }
  .area-formula { font-size: 2.6rem; top: 12px; left: 14px; }
  .feature-list > div { grid-template-columns: 1fr; gap: 6px; }
  .strip { flex-direction: column; align-items: stretch; padding: 22px; }
  .exam { flex-direction: column; align-items: stretch; }
  .two { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .mini-table { justify-self: start; }
  .lesson-row { grid-template-columns: 34px 1fr; }
  .lesson-tag { grid-column: 2; }
  .img-bar { flex-direction: column; }
  .hide-mobile { display: none; }
  .foot { flex-direction: column; }
  .auth-card { padding: 6px 18px 22px; border-radius: 18px; }
}
@media (max-width: 560px) {
  .page-head { gap: 12px; }
  .el-lg { width: 50px; height: 50px; }
  .el-lg .el-sym { font-size: 1.2rem; }
  .question { padding: 18px 16px; }
  .q-row { grid-template-columns: 12px 1fr; }
  .q-row-topic { display: none; }
  .readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading { min-width: 0; padding: 0 10px 0 0; margin-right: 10px; align-content: start; }
  .reading .week-bar { width: 100%; }
  .reading-value { font-size: 1.45rem; }
  .reading-label { font-size: .8rem; line-height: 1.35; }
  .rank li, .rank.small li { grid-template-columns: 1fr 70px; }
  .rank-bar { grid-column: 1 / -1; grid-row: 2; }
  .area-perf summary { grid-template-columns: 1fr 48px; }
  .area-perf .meter { display: none; }
  .who-name { display: none; }
  .who { padding: 3px; }
}
@media (max-width: 380px) {
  .areas { grid-template-columns: 1fr; }
}
/* Envio do vídeo protegido no editor da aula: a barra enche no envio e de novo na conversão. */
.envio { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: #f7f9fd; }
.envio h3 { margin: 0 0 8px; font-size: 1rem; }
.envio p { margin: 8px 0; max-width: 80ch; }
.envio .row { margin: 10px 0 0; }
.envio-bar { height: 10px; border-radius: 99px; background: #dfe7f4; overflow: hidden; }
.envio-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--cobalt); transition: width .6s var(--suave, ease); }
.envio[data-status="convertendo"] .envio-bar span { background: var(--f-decifrar); }
.ok-text { color: var(--ok); font-weight: 600; }

/* Excluir conta: escondida num details, em magenta (a cor do erro). */
.danger-zone { margin-top: 18px; border-color: color-mix(in srgb, var(--no) 40%, var(--line)); }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--no); }
.danger-zone .form { margin-top: 12px; }
.btn.danger { background: var(--no); border-color: var(--no); color: #fff; }
.btn.danger:hover { filter: brightness(.92); color: #fff; }
.small-print { margin-top: 16px; font-size: .85rem; }

/* Política de privacidade (privacidade.html): página fixa, fora do app. */
.legal-page { background: var(--paper); }
.legal-top { padding: 14px var(--pad); background: var(--ink); }
.legal { max-width: 760px; margin: 0 auto; padding: 36px var(--pad) 64px; line-height: 1.65; }
.legal h2 { margin: 32px 0 10px; font-size: 1.25rem; }
.legal li { margin-bottom: 6px; }

/* ---------- Player dos vídeos protegidos (player.js) ----------
   A marca d'água fica dentro do quadro (.player), que é o que vai para a tela cheia. */
.video.protegido { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 18px 50px #0b1d3f33; user-select: none; -webkit-user-select: none; outline: none; }
.player:focus-visible { box-shadow: 0 0 0 3px var(--flame); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player.janela { position: fixed; inset: 0; z-index: 90; border-radius: 0; aspect-ratio: auto; }
.pl-marca { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; display: block; visibility: visible; opacity: 1; }
.pl-marca-viva { position: absolute; max-width: 60%; color: #fff; opacity: .55; font-size: clamp(.72rem, 1.6vw, 1rem); font-weight: 650; text-shadow: 0 1px 3px #000c; white-space: nowrap; transition: left 1.6s ease, top 1.6s ease; }
.pl-marca-fundo { position: absolute; color: #fff; opacity: .08; font-size: clamp(.8rem, 2vw, 1.25rem); font-weight: 700; white-space: nowrap; transform: rotate(-24deg); }
.pl-grande { position: absolute; left: 50%; top: 50%; z-index: 3; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: #1747d6e6; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px #0008; transition: transform .3s var(--mola, ease), opacity .3s; }
.pl-grande svg { width: 34px; height: 34px; fill: currentColor; }
.pl-grande:hover { transform: scale(1.08); }
.player.tocando .pl-grande { opacity: 0; pointer-events: none; transform: scale(.7); }
.player.carregando::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #ffffff33; border-top-color: #fff; animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pl-aviso { position: absolute; left: 50%; bottom: 64px; z-index: 4; transform: translateX(-50%); max-width: 90%; margin: 0; padding: 10px 14px; border-radius: 10px; background: #0b1d3fe6; color: #fff; font-weight: 600; text-align: center; }
.pl-barra { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(transparent, #000c); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.player.tocando:not(.mexeu):not(:focus-within) .pl-barra { opacity: 0; }
.pl-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.pl-btn:hover { background: #ffffff1f; }
.pl-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.pl-som svg, .pl-cheia svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-som svg path:first-child { fill: currentColor; }
.pl-busca { flex: 1; width: auto; min-width: 60px; min-height: 0; height: 4px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--flame); cursor: pointer; }
.pl-vel, .pl-qual { width: auto; min-height: 0; padding: 4px 6px; border-radius: 8px; border: 1px solid #ffffff40; background: #0008; color: #fff; font: inherit; font-size: .8rem; }
@media (max-width: 560px) { .pl-vel, .pl-tempo { display: none; } .pl-barra { gap: 4px; padding: 20px 8px 6px; } }

/* ---------- Movimento ----------
   Tudo aqui é acabamento: a página funciona igual sem nada disso, e movimento reduzido desliga tudo (bloco no fim).
   Curvas: --mola para o que surge (passa um pouco e volta), --suave para o resto. */
:root { --suave: cubic-bezier(.2, .7, .2, 1); --mola: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes subir { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes surgir { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes esmaecer { from { opacity: 0; } }
@keyframes estalar { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } }
@keyframes encher { from { transform: scaleX(0); } }
@keyframes revelar-barra { from { clip-path: inset(0 100% 0 0); } }
@keyframes respirar { 50% { opacity: .78; } }
@keyframes flutuar { 50% { transform: translate(6px, -8px) rotate(-2deg); } }
@keyframes brilho { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes cintilar { 0%, 100% { box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); } 35% { box-shadow: 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 85%, transparent); } 60% { box-shadow: 0 0 0 1px var(--c), 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); } }
@keyframes bolha { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), -420px) scale(1.15); } }
@keyframes aproximar { from { transform: scale(1.1); } }
@keyframes acerto { 0% { box-shadow: 0 0 0 0 #13a36a66; } 100% { box-shadow: 0 0 0 14px #13a36a00; } }
@keyframes onda { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes tremer { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes reagir { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes girar-in { from { opacity: 0; transform: rotate(-90deg) scale(.5); } }

/* Entrada da tela: os blocos de cima sobem em cascata (--i vem do app.js). Sem preenchimento final, para não
   deixar transform parado nos pais (quebraria o que é sticky/fixed por dentro). */
.entrando > * { animation: subir .6s var(--suave) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.entrando .page-head .el { animation: girar-in .7s var(--mola) .1s backwards; }
/* Abaixo da dobra: fica escondido até entrar na tela; irmãos que chegam juntos entram em sequência (--r). */
.revelar:not(.visto) { opacity: 0; }
.revelar.visto { animation: subir .65s var(--suave) backwards; animation-delay: calc(var(--r, 0) * 70ms); }
.revelar:not(.visto) :is(.meter span, .week-bar span, .rank-bar) { animation-play-state: paused; }

/* Barra de reação no topo enquanto uma tela carrega. */
.reacao { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.reacao::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--flame), #2fe3b4, transparent); animation: reagir 1s ease-in-out infinite; }
.reacao.on { opacity: 1; }

/* Topo do início: texto entra em degraus, a foto se aproxima devagar, a luz da chama respira e solta bolhas. */
.hero-text > * { animation: subir .8s var(--suave) backwards; }
.hero-kicker { animation-delay: .1s !important; }
.hero h1 { animation-delay: .2s !important; }
.hero-text > p:not(.hero-kicker) { animation-delay: .35s !important; }
.hero-text > .row { animation-delay: .5s !important; }
.hero-text > .flame-test { animation-delay: .65s !important; }
.hero-photo img { animation: aproximar 2.4s var(--suave) backwards; }
.hero::after { animation: respirar 5s ease-in-out infinite; }
.ft-tile { transition: border-color .25s, background .25s, box-shadow .25s, color .25s, transform .3s var(--mola); }
.ft-tiles .ft-tile { animation: estalar .5s var(--mola) backwards; }
.ft-tile:nth-child(1) { animation-delay: .8s; } .ft-tile:nth-child(2) { animation-delay: .86s; } .ft-tile:nth-child(3) { animation-delay: .92s; }
.ft-tile:nth-child(4) { animation-delay: .98s; } .ft-tile:nth-child(5) { animation-delay: 1.04s; } .ft-tile:nth-child(6) { animation-delay: 1.1s; } .ft-tile:nth-child(7) { animation-delay: 1.16s; }
.ft-tile:hover { transform: translateY(-3px); }
.ft-tile[aria-pressed="true"] { transform: translateY(-2px) scale(1.06); }
/* A cintilação fica num pseudo-elemento: mudar a animação do próprio botão faria a entrada (estalar) tocar de novo. */
.ft-tile[aria-pressed="true"]::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none; animation: cintilar 1.4s ease-in-out infinite; }
.ft-caption { transition: opacity .3s; }
.bolhas { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bolhas span { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #ffffffcc, color-mix(in srgb, var(--chama) 60%, transparent) 45%, transparent 70%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--chama) 50%, transparent); animation: bolha var(--t) ease-in var(--d) infinite; transition: background .7s; }

/* Cartões das áreas: a fórmula flutua; ao passar o mouse, um reflexo atravessa o vidro. */
.area-card { transition: transform .35s var(--mola), box-shadow .35s ease; }
.area-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 26px 50px #0b1d3f4d; }
.area-formula { animation: flutuar 7s ease-in-out infinite; transition: color .35s, transform .35s; }
.area-card:nth-child(2) .area-formula { animation-delay: -1.8s; } .area-card:nth-child(3) .area-formula { animation-delay: -3.5s; } .area-card:nth-child(4) .area-formula { animation-delay: -5.2s; }
.area-card:hover .area-formula { color: #ffffff47; }
.area-card::after, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, #ffffff26, transparent); }
.area-card:hover::after { animation: brilho .9s ease; }
.strip { position: relative; overflow: hidden; }
.strip::after { animation: brilho 1.6s ease 1.2s; }
.feature-list dt .el { transition: transform .4s var(--mola), box-shadow .3s; }
.feature-list dt a:hover .el { transform: rotate(-8deg) scale(1.1); box-shadow: 0 0 16px #3cd4ff55; }
.feature-list dt a span:last-child { transition: transform .3s var(--suave); }
.feature-list dt a:hover span:last-child { transform: translateX(4px); }

/* Botões: afundam no toque; o principal ganha um reflexo ao passar o mouse. */
.btn { position: relative; overflow: hidden; transition: background .2s, border-color .2s, color .2s, transform .15s ease, box-shadow .25s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary:hover { box-shadow: 0 8px 22px #1747d640; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, #ffffff40, transparent); }
.btn.primary:hover::after { animation: brilho .8s ease; }
a, .link { transition: color .2s; }

/* Menu: a casa do item salta ao passar o mouse; a ativa respira. */
.nav-item { transition: background .2s, color .2s, transform .25s var(--suave); }
.nav-item:hover { transform: translateX(3px); }
.nav-item .el { transition: transform .4s var(--mola), box-shadow .3s, background .3s; }
.nav-item:hover .el { transform: rotate(-6deg) scale(1.08); }
.nav-item.active .el { animation: respirar-el 3.2s ease-in-out infinite; }
@keyframes respirar-el { 50% { box-shadow: 0 0 0 4px #3cd4ff22, 0 0 26px #3cd4ff77; } }
.side.open .nav-item { animation: subir .45s var(--suave) backwards; }
.side.open .nav-group:nth-child(2) .nav-item { animation-delay: .06s; } .side.open .nav-group:nth-child(3) .nav-item { animation-delay: .12s; } .side.open .nav-group:nth-child(4) .nav-item { animation-delay: .18s; }
.tabbar a .tab-el, .tabbar .tab-ico { transition: transform .35s var(--mola); }
.tabbar a.on .tab-el { animation: estalar .45s var(--mola); }
.top-links a, #top-links a { transition: color .2s, box-shadow .25s; }

/* Listas e cartões. */
.q-row { transition: background .2s, transform .25s var(--suave); }
.q-row:hover { transform: translateX(4px); }
.trail { transition: box-shadow .3s, border-color .3s, transform .3s var(--suave); }
.trail:hover { box-shadow: 0 10px 28px #0b1d3f14; border-color: #c9d5ea; }
.trail-capa img { transition: transform .6s var(--suave); }
.trail:hover .trail-capa img { transform: translateY(-50%) scale(1.08); }
details[open] > :not(summary) { animation: surgir .4s var(--suave); }
.card, .mini-table { transition: box-shadow .3s, transform .3s var(--suave), background .2s; }
.mini-table:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #0b1d3f1f; }
input, select, textarea { transition: border-color .2s, box-shadow .25s; }

/* Medidores enchem da esquerda para a direita. */
.meter span, .week-bar span { transform-origin: left; animation: encher 1.1s var(--suave) .3s backwards; }
.rank-bar { animation: revelar-barra 1.1s var(--suave) .25s backwards; }

/* Questão respondida agora (.agora): a certa pulsa e solta uma onda; a errada treme; o comentário sobe. */
.opt { transition: border-color .2s, background .2s, transform .2s var(--suave), box-shadow .2s; }
.opt:hover:not(:has(input:disabled)) { transform: translateX(3px); box-shadow: 0 4px 14px #0b1d3f0f; }
.opt-letter { position: relative; transition: background .2s, border-color .2s, color .2s, transform .3s var(--mola); }
.opt:has(input:checked:not(:disabled)) .opt-letter { transform: scale(1.12); }
.agora .opt.right { animation: acerto .9s ease-out .1s; }
.agora .opt.right .opt-letter::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: onda .9s ease-out .1s; }
.agora .opt.wrong { animation: tremer .45s ease; }
.agora .verdict { animation: subir .6s var(--suave) .25s backwards; }
.agora .q-actions { animation: subir .6s var(--suave) .4s backwards; }

/* Tabelas periódicas (laboratório e a do aluno): as casas entram numa onda diagonal (--d) e saltam ao passar o mouse. */
.pt-cell, .pe-grid .pe { animation: estalar .45s var(--mola) backwards; animation-delay: calc(var(--d, 0) * 22ms); }
.pt-cell { transition: transform .25s var(--mola), box-shadow .25s, opacity .3s; }
.pt-cell:hover { transform: scale(1.22); box-shadow: 0 8px 18px #0b1d3f40; z-index: 3; }
.pt-detail { transition: box-shadow .3s; }
.pt-big { animation: estalar .5s var(--mola); }
button.pe { transition: transform .25s var(--mola); }
button.pe:hover { transform: scale(1.15); z-index: 2; }

/* Capa da aula: aproximação lenta da imagem (Ken Burns) e o título subindo. */
.lesson-head.capa .capa-img { animation: aproximar 14s var(--suave) backwards; }
.lesson-head.capa .capa-txt { animation: subir .8s var(--suave) .25s backwards; }

/* Diálogo e aviso surgem com mola. */
dialog[open] { animation: surgir .35s var(--mola); }
dialog[open]::backdrop { animation: esmaecer .3s ease; }
.toast { transition: transform .45s var(--mola), visibility .45s; }
.paid-tile:not(.pending) { animation: estalar .6s var(--mola); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  .revelar { opacity: 1 !important; }
  .bolhas, .reacao { display: none; }
}
