/* Portal do mentorado · Programa de Expansão (Sirius). Mobile-first, tema claro padrão.
   Referência visual aprovada em 10/09/2026: produtos/edu/_mockup/index.html (v2). */

:root {
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #EEF2F6; --line: rgba(14,27,42,.08);
  --text: #0E1B2A; --muted: rgba(14,27,42,.6); --subtle: rgba(14,27,42,.42);
  --accent: #0E8F8B; --accent-text: #0A7C79; --accent-soft: rgba(14,143,139,.11);
  --magenta: #B23BDD; --lilas: #8E4EE6; --danger: #C62D4B;
  --grad: linear-gradient(135deg, #B23BDD 0%, #0E8F8B 55%, #8E4EE6 100%);
  --locked: rgba(14,27,42,.22);
  --shadow: 0 6px 20px rgba(14,27,42,.06);
  --nav-bg: rgba(255,255,255,.96);
  --on-accent: #FFFFFF;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #040C13; --surface: #0E1318; --surface-2: rgba(255,255,255,.05); --line: rgba(255,255,255,.08);
  --text: #FFFFFF; --muted: rgba(255,255,255,.62); --subtle: rgba(255,255,255,.42);
  --accent: #00F6F5; --accent-text: #00F6F5; --accent-soft: rgba(0,246,245,.12);
  --magenta: #D24EFF; --lilas: #B66FFF; --danger: #FF3366;
  --grad: linear-gradient(135deg, #D24EFF 0%, #00F6F5 55%, #B66FFF 100%);
  --locked: rgba(255,255,255,.2);
  --shadow: none;
  --nav-bg: rgba(4,12,19,.94);
  --on-accent: #040C13;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.screen { flex: 1; padding: 28px 22px 110px; display: flex; flex-direction: column; gap: 22px; }
.screen.tight { padding-bottom: 28px; }

/* ── tipografia ─────────────────────────────────────────────────────────── */
.t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.15; text-wrap: balance; }
h1.t { font-size: 26px; } h2.t { font-size: 22px; } h3.t { font-size: 17px; letter-spacing: -.01em; } h4.t { font-size: 16px; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.small { font-size: 13px; color: var(--subtle); }
.label { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); margin: 0; }
.center { text-align: center; }
.erro { color: var(--danger); font-size: 14px; margin: 0; }

/* ── topo da tela ───────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 12px; }
.top .symb { width: 30px; height: 30px; flex: none; }
.top .hi { flex: 1; line-height: 1.2; min-width: 0; }
.top .hi b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .hi span { font-size: 13px; color: var(--muted); }
.round { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; }
.round svg { width: 17px; height: 17px; }

/* ── blocos ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.dim { opacity: .55; }
.btn { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; border-radius: 14px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: filter .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.grad { background: var(--grad); color: var(--on-accent); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.block { width: 100%; }
.btn.sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--accent-text); text-decoration: none; font-weight: 600; font-size: 14px; background: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 5px 10px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.pill.muted { background: var(--surface-2); color: var(--muted); }
.pill.hot { background: color-mix(in srgb, var(--magenta) 14%, transparent); color: var(--magenta); }

/* campos */
.field { width: 100%; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); padding: 15px 16px; font: inherit; font-size: 16px; }
.field:focus { border-color: var(--accent); outline: none; }
.field.ta { min-height: 130px; line-height: 1.45; resize: vertical; }
.field.num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 34px; text-align: center; font-variant-numeric: tabular-nums; padding: 18px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }

/* ── indicadores ────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 18px; padding: 12px 12px 10px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: 13px; color: var(--subtle); font-weight: 500; }
.stat span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s; }

/* próximo passo */
.next { display: flex; flex-direction: column; gap: 12px; }
.next .head { display: flex; align-items: center; gap: 12px; }
.next .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.next .ic svg { width: 22px; height: 22px; }
.next .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ── trilha ─────────────────────────────────────────────────────────────── */
.trail { display: flex; flex-direction: column; padding: 4px 0 0; }
.node { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; align-items: center; min-height: 74px; position: relative; }
.node::before { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 3px; background: var(--line); }
.node:first-child::before { top: 50%; } .node:last-child::before { bottom: 50%; }
.node.done::before { background: var(--accent); }
.node.atual::before { background: linear-gradient(var(--accent) 0%, var(--accent) 50%, var(--line) 50%); }
.node .pt { width: 44px; height: 44px; border-radius: 50%; margin-left: 6px; position: relative; z-index: 1; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; background: var(--surface); border: 3px solid var(--line); color: var(--subtle); }
.node.done .pt { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.node.atual .pt { width: 56px; height: 56px; margin-left: 0; background: var(--grad); border: 0; color: var(--on-accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.node.locked .pt { color: var(--locked); }
.node .pt svg { width: 18px; height: 18px; }
.node .txt { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; min-width: 0; }
.node .txt b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; }
.node.locked .txt b { color: var(--muted); }
.node .txt span { font-size: 13px; color: var(--muted); }
.node.atual .txt b { font-size: 17px; }
.node .txt .when { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.node.locked .txt .when { color: var(--subtle); }

/* ── encontros ──────────────────────────────────────────────────────────── */
.enc { display: flex; flex-direction: column; gap: 14px; }
.enc .meta { display: flex; align-items: center; gap: 10px; }
.enc .num { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; flex: none; }
.enc .num.off { background: var(--surface-2); color: var(--locked); }
.enc .meta .txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.enc p { margin: 0; font-size: 14px; color: var(--muted); }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tasks { display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); text-align: left; width: 100%; }
.task .box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--locked); flex: none; display: grid; place-items: center; background: var(--surface); color: var(--on-accent); }
.task.done .box { background: var(--accent); border-color: var(--accent); }
.task.done span { color: var(--muted); text-decoration: line-through; }
.task .box svg { width: 13px; height: 13px; }
.task[disabled] { opacity: .6; }
.md p { margin: 0 0 10px; font-size: 15px; }
.md ul { margin: 0 0 10px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md :last-child { margin-bottom: 0; }

/* listas */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.item:first-child { border-top: 0; padding-top: 4px; }
.item .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.item .ic svg { width: 18px; height: 18px; }
.item .txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.item .txt b { font-weight: 600; font-size: 15px; }
.item .arrow { color: var(--subtle); font-size: 20px; }
.item.locked .ic { background: var(--surface-2); color: var(--locked); }
.item.locked .txt b { color: var(--muted); }

/* ── formulário (uma pergunta por tela) ─────────────────────────────────── */
.qtop { display: flex; align-items: center; gap: 14px; }
.qtop .x { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 20px; flex: none; }
.qtop .prog { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.qtop .prog i { display: block; height: 100%; background: var(--grad); border-radius: 5px; transition: width .3s; }
.qtop .cnt { font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qbody { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.qbody .label { color: var(--accent-text); }
.q { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; margin: 0; text-wrap: balance; }
.help { font-size: 14px; color: var(--muted); margin: -6px 0 0; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { border-radius: 16px; border: 2px solid var(--line); padding: 15px 16px; font-size: 16px; color: var(--text); background: var(--surface); display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--locked); flex: none; }
.opt.multi::before { border-radius: 6px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.opt.on::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.qfoot { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.qfoot .small { font-variant-numeric: tabular-nums; }

.done-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 0 10px; }
.ring { width: 150px; height: 150px; }
.ring-txt { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; fill: var(--text); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.badge { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; }
.badge.now { background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge.todo { background: var(--surface-2); color: var(--locked); }
.resposta { padding: 12px 0; border-top: 1px solid var(--line); }
.resposta:first-child { border-top: 0; }
.resposta .small { display: block; margin-bottom: 2px; }
.resposta .vazia { color: var(--subtle); font-style: italic; }

/* ── login ──────────────────────────────────────────────────────────────── */
.login { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 28px; min-height: 100vh; }
.login .brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }
.login .brand .symb { width: 60px; height: 60px; }
.login .brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot { margin-top: auto; text-align: center; font-size: 12px; color: var(--subtle); padding-top: 24px; }
.foot a { color: var(--subtle); }

/* ── navegação ──────────────────────────────────────────────────────────── */
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: 80px; padding: 8px 10px calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--nav-bg); border-top: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 10; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--subtle); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 500; padding: 6px 0; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--accent-text); }
.nav a .b { position: relative; display: inline-flex; }
.nav a .b i { position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); border: 2px solid var(--surface); }
.dtop { display: none; }

/* ── desktop ────────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .app { max-width: 1080px; }
  .screen { padding: 32px 32px 48px; }
  .nav { display: none; }
  .dtop { display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .dtop .symb { width: 30px; height: 30px; }
  .dtop .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; }
  .dtop nav { display: flex; gap: 4px; margin-left: 20px; }
  .dtop nav a { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 12px; }
  .dtop nav a.on { color: var(--accent-text); background: var(--accent-soft); }
  .dtop .sp { flex: 1; }
  .jornada { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
  .jornada .col { display: flex; flex-direction: column; gap: 22px; }
  .narrow { max-width: 640px; width: 100%; margin: 0 auto; }
  .login { max-width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
