/* TreinoSales — visual de prática diária, original. Fontes self-hosted (fonts.css + fonts/), sem CDN nem scripts de terceiros. */
/* Paleta A (site harmonizado, 28/11/2026): variáveis mapeadas de
   sales-trainer/logo/final-v3/paletas/A-site-harmonizada.css.
   Contraste: branco só sobre violeta/índigo/rose-d/tinta; sobre coral, menta, céu e ouro usa-se tinta (ou #3b2a00 no ouro).
   ink-3 (#8f8bb0) não se usa em texto pequeno (falha AA). */
:root {
  --bg: #f7f5ff;
  --paper: #ffffff;
  --ink: #1f1a3d;
  --ink-2: #5b5680;
  --ink-3: #8f8bb0;
  --line: #e6e2f5;
  --violet: #6c4cf1; --violet-d: #4f33c9; --violet-l: #ece7ff;
  --coral: #ff6b4a; --coral-d: #d94a2b; --coral-l: #ffe9e3;
  --sky: #2ea8f2; --sky-d: #1a83c4; --sky-l: #e2f3fe;
  --sun: #ffb020; --sun-d: #d98a00; --sun-l: #fff3d6;
  --mint: #14b88a; --mint-d: #0b8f6a; --mint-l: #dcf7ee;
  --rose: #f0447a; --rose-d: #c42a5c; --rose-l: #ffe4ee;
  --indigo: #3a4bd8; --indigo-d: #2735a8; --indigo-l: #e3e7ff;
  --ok: #14b88a; --ok-d: #0b8f6a; --ok-l: #dcf7ee;
  --bad: #f0445a; --bad-d: #c22a3f; --bad-l: #ffe5e8;
  --gold: #ffc531; --gold-d: #e0a100; --gold-l: #fff4cc;
  --gold-ink: #3b2a00;
  --gray: #e7e5ef; --gray-d: #c9c5d8;
  --bg-dark: #1f1a3d;
  --paper-dark: #2b2552;
  --line-dark: #3d3766;
  --logo-ink: #1f1a3d;
  --logo-accent: #f0447a;
  --radius: 20px;
  /* --font e --font-display vêm de fonts.css (tema D por omissão: Fraunces + Manrope). */
  --max: 480px;
  --kb: 0px;
}
* , *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
.app { width: min(100%, var(--max)); margin: 0 auto; min-height: 100dvh; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botões 3D ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 14px 20px;
  border-radius: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem;
  background: var(--c, var(--violet)); color: #fff; box-shadow: 0 5px 0 var(--cd, var(--violet-d)); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd, var(--violet-d)); }
.btn:focus-visible, .opt:focus-visible, .chip:focus-visible, .node-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn.ghost { --c: var(--paper); --cd: var(--line); color: var(--violet-d); border: 2px solid var(--line); }
.btn.ok { --c: var(--ok); --cd: var(--ok-d); }
.btn.bad { --c: var(--bad); --cd: var(--bad-d); }
.btn[disabled], .btn.is-disabled { --c: var(--gray); --cd: var(--gray-d); color: #a19dba; cursor: not-allowed; transform: none; }
.btn.link { background: none; box-shadow: none; color: var(--violet-d); min-height: 48px; text-transform: none; letter-spacing: 0; }

/* Paleta A · contraste: branco falha sobre coral, menta, céu e ouro. */
.btn.ok { color: var(--ink); }
.u-coral .unit-banner, .u-coral .node-btn, .u-coral .pop,
.u-sky .unit-banner, .u-sky .node-btn, .u-sky .pop,
.u-mint .unit-banner, .u-mint .node-btn, .u-mint .pop,
.u-rose .unit-banner, .u-rose .node-btn, .u-rose .pop { color: var(--ink); }
.u-sun .unit-banner, .u-sun .node-btn, .u-sun .pop { color: var(--gold-ink); }
.tile.t-xp b { color: var(--gold-ink); }
.tile.t-acc b, .tile.t-str b { color: var(--ink); }
.avatar { color: var(--ink); }
.perks li::before { background: var(--ok-l); color: var(--ok-d); }
.res-ok .res-ico, .o-head .res-ico { color: var(--ink); }
.pipe-sum div { color: var(--ink); }
.gain { color: var(--ink); }


/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0; margin-right: auto; }
.logo-mark { display: block; height: 26px; width: auto; }
.side-brand .logo-mark { height: 30px; }
.ld-top .side-brand .logo-mark { height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-size: .95rem; }
.chip svg { width: 22px; height: 22px; }
.chip.streak { color: var(--coral-d); } .chip.xp { color: var(--sun-d); } .chip.energy { color: var(--sky-d); }
.chip.energy.off { color: var(--ink-2); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); }
.icon-btn:active { background: var(--line); }
.icon-btn svg { width: 24px; height: 24px; }
.proto { margin: 10px 14px 0; padding: 8px 12px; border-radius: 12px; background: var(--sun-l); color: #7a5200; font-size: .78rem; font-weight: 700; text-align: center; }

/* ---------- Cartão do objetivo diário ---------- */
.goal { margin: 14px; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--line); display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.goal h2 { margin: 0 0 2px; font-size: 1.05rem; }
.goal p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.bar { height: 14px; border-radius: 999px; background: var(--gray); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--coral)); transition: width .6s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.bar > span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); }
.goal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg); border: 2px solid var(--line); }
.lang button { min-height: 36px; padding: 0 12px; border-radius: 9px; font-weight: 800; font-size: .8rem; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.level-tag { font-size: .8rem; font-weight: 800; color: var(--violet-d); background: var(--violet-l); padding: 6px 10px; border-radius: 10px; }

/* ---------- Percurso ---------- */
.path { padding: 4px 14px 120px; }
.unit { margin-top: 18px; }
.unit-banner { border-radius: var(--radius); padding: 14px 16px; color: #fff; background: var(--uc); box-shadow: 0 5px 0 var(--ucd); display: flex; align-items: center; gap: 12px; }
.unit-banner small { display: block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-size: .72rem; }
.unit-banner h2 { margin: 2px 0; font-size: 1.2rem; letter-spacing: -.01em; }
.unit-banner p { margin: 0; font-size: .88rem; opacity: .92; }
.unit-banner .count { margin-left: auto; font-weight: 900; font-size: .85rem; background: rgba(255,255,255,.22); border-radius: 10px; padding: 6px 9px; white-space: nowrap; }
.u-violet { --uc: var(--violet); --ucd: var(--violet-d); --ul: var(--violet-l); }
.u-coral { --uc: var(--coral); --ucd: var(--coral-d); --ul: var(--coral-l); }
.u-sky { --uc: var(--sky); --ucd: var(--sky-d); --ul: var(--sky-l); }
.u-sun { --uc: var(--sun); --ucd: var(--sun-d); --ul: var(--sun-l); }
.u-mint { --uc: var(--mint); --ucd: var(--mint-d); --ul: var(--mint-l); }
.u-rose { --uc: var(--rose); --ucd: var(--rose-d); --ul: var(--rose-l); }
.u-indigo { --uc: var(--indigo); --ucd: var(--indigo-d); --ul: var(--indigo-l); }
.nodes { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.node { display: flex; flex-direction: column; align-items: center; transform: translateX(var(--x, 0)); width: 100%; }
.node-btn { position: relative; width: 74px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--uc); color: #fff; box-shadow: 0 7px 0 var(--ucd); transition: transform .08s, box-shadow .08s; }
.node-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ucd); }
.node-btn svg { width: 34px; height: 34px; }
.node-btn .num { font-weight: 900; font-size: 1.4rem; }
.node.done .node-btn { background: var(--gold); box-shadow: 0 7px 0 var(--gold-d); color: #7a5200; }
.node.locked .node-btn { background: var(--gray); box-shadow: 0 7px 0 var(--gray-d); color: #a19dba; }
.node.current .node-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 5px solid var(--ul); animation: ring 1.6s ease-in-out infinite; }
.node-label { margin-top: 12px; max-width: 220px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.node.locked .node-label { color: var(--ink-2); }
.start-bubble { margin-bottom: 10px; padding: 7px 12px; border-radius: 12px; background: var(--paper); border: 2px solid var(--line); color: var(--uc); font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; position: relative; animation: bob 1.4s ease-in-out infinite; }
.start-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--paper); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.pop { width: 100%; margin-top: 16px; border-radius: var(--radius); padding: 16px; background: var(--uc); color: #fff; box-shadow: 0 5px 0 var(--ucd); animation: pop .22s ease-out; text-align: left; }
.node.locked .pop { background: var(--paper); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.pop h3 { margin: 0 0 4px; font-size: 1.05rem; }
.pop p { margin: 0 0 12px; font-size: .88rem; opacity: .92; }
.pop .btn { --c: #fff; --cd: rgba(0,0,0,.18); color: var(--ucd); }
.node.locked .pop .btn { --c: var(--violet); --cd: var(--violet-d); color: #fff; }
.unit-mascot { display: flex; justify-content: flex-end; margin: -6px 0 -30px; pointer-events: none; }
/* ---------- Lição ---------- */
.lesson { min-height: 100dvh; display: flex; flex-direction: column; }
.l-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); }
.progress { flex: 1; height: 16px; border-radius: 999px; background: var(--gray); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .45s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.progress > span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.4); }
.l-body { flex: 1; padding: 6px 16px 150px; }
.l-kicker { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 4px 0 6px; }
.l-title { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 14px; }
.tip { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; }
.tip-bubble { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; font-size: .92rem; color: var(--ink-2); position: relative; }
.mail { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.mail summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; min-height: 56px; }
.mail summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--sky); }
.avatar.sent { background: var(--violet); }
.mail-from { font-weight: 800; font-size: .92rem; line-height: 1.2; }
.mail-meta { font-size: .76rem; color: var(--ink-2); }
.mail-subj { font-size: .86rem; color: var(--ink-2); font-weight: 700; margin-top: 2px; }
.flag { font-size: .68rem; font-weight: 900; padding: 4px 7px; border-radius: 8px; background: var(--bg); color: var(--ink-2); border: 2px solid var(--line); }
.mail-body { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }
.fict { display: block; padding: 0 14px 12px; font-size: .7rem; color: var(--ink-2); }
.q { font-weight: 800; font-size: 1.05rem; margin: 4px 0 12px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { width: 100%; text-align: left; min-height: 56px; padding: 14px 14px 14px 52px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); position: relative; font-size: .95rem; line-height: 1.35; transition: transform .08s, box-shadow .08s, border-color .15s, background .15s; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.opt .key { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-size: .78rem; font-weight: 900; color: var(--ink-2); }
.opt.sel { border-color: var(--sky); background: var(--sky-l); box-shadow: 0 4px 0 var(--sky); }
.opt.sel .key { border-color: var(--sky); color: var(--sky-d); }
.opt.right { border-color: var(--ok); background: var(--ok-l); box-shadow: 0 4px 0 var(--ok); animation: pop .3s ease-out; }
.opt.wrong { border-color: var(--bad); background: var(--bad-l); box-shadow: 0 4px 0 var(--bad); animation: shake .4s; }
.opt[disabled] { cursor: default; }
.sentence { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px; font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }
.blank { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--violet); color: var(--violet-d); font-weight: 800; padding: 0 4px; }
.answer-line { min-height: 64px; border: 2px dashed var(--gray-d); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; background: var(--paper); }
.answer-line:empty::before { content: attr(data-empty); color: var(--ink-2); font-size: .88rem; padding: 12px 6px; }
.bank { display: flex; flex-direction: column; gap: 8px; }
.piece { width: 100%; text-align: left; min-height: 52px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); font-size: .92rem; line-height: 1.35; }
.piece:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.piece.used { visibility: hidden; }
.answer-line .piece { border-color: var(--violet-l); box-shadow: 0 4px 0 var(--violet-l); }
.order-right .answer-line .piece { border-color: var(--ok); background: var(--ok-l); box-shadow: 0 4px 0 var(--ok); }
.order-wrong .answer-line { animation: shake .4s; border-color: var(--bad); }
.compose textarea { width: 100%; min-height: 168px; max-height: 50vh; resize: vertical; border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: var(--paper); font-size: 1rem; line-height: 1.5; scroll-margin-bottom: 140px; }
.compose textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-l); }
.compose-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 8px 2px 0; font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.compose-meta.bad { color: var(--bad-d); }
.hint { font-size: .88rem; color: var(--ink-2); background: var(--violet-l); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }

/* ---------- Barra inferior e folha de resultado ---------- */
.l-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--line); }
.l-foot .inner { width: min(100%, calc(var(--max) - 32px)); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.l-foot.res-ok { background: var(--ok-l); border-color: transparent; animation: slideup .25s ease-out; }
.l-foot.res-bad { background: var(--bad-l); border-color: transparent; animation: slideup .25s ease-out; }
.res-head { display: flex; align-items: center; gap: 10px; }
.res-head h3 { margin: 0; font-size: 1.2rem; }
.res-ok .res-head h3 { color: var(--ok-d); } .res-bad .res-head h3 { color: var(--bad-d); }
.res-why { margin: 0; font-size: .92rem; color: var(--ink-2); }
.res-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 40px; }
.res-ok .res-ico { background: var(--ok); } .res-bad .res-ico { background: var(--bad); }
.res-ico svg { width: 24px; height: 24px; }
html.kb-open .l-foot { position: static; padding-bottom: 14px; }
html.kb-open .l-body { padding-bottom: 16px; }
html.kb-open .compose textarea { min-height: 120px; max-height: 34vh; }

/* ---------- Revisão da resposta escrita ---------- */
.review-head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin: 4px 0 14px; }
.ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--rc, var(--ok)) calc(var(--p) * 1%), var(--gray) 0); animation: pop .4s ease-out; }
.ring span { width: 74px; height: 74px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; }
.ring small { display: block; font-size: .62rem; color: var(--ink-2); font-weight: 800; margin-top: -6px; }
.review-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
.review-head p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.crit { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crit li { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; }
.crit .mk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; color: #fff; }
.crit .ok .mk, .crit li.ok .mk { background: var(--ok); }
.crit li.partial .mk { background: var(--sun); }
.crit li.miss .mk { background: var(--bad); }
.crit li.pen { border-color: var(--bad-l); background: #fff8f9; }
.crit li.pen .mk { background: var(--bad-d); }
.crit .lbl { font-weight: 800; font-size: .92rem; }
.crit .msg { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.crit .quote { margin: 6px 0 0; padding: 6px 10px; border-left: 4px solid var(--line); border-radius: 4px; background: var(--bg); font-size: .84rem; color: var(--ink); font-style: italic; }
.crit li.pen .quote { border-left-color: var(--bad); }
.crit .pts { font-weight: 900; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.crit li.pen .pts { color: var(--bad-d); }
.box { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.box h3 { margin: 0 0 6px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.box ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .9rem; }
.box details summary { cursor: pointer; font-weight: 800; color: var(--violet-d); min-height: 40px; display: flex; align-items: center; }
.model { margin: 6px 0 0; white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }

/* ---------- Celebração ---------- */
.celebrate { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 18px 140px; position: relative; overflow: hidden; }
.celebrate h1 { margin: 10px 0 4px; font-size: 1.8rem; color: var(--sun-d); letter-spacing: -.02em; }
.celebrate > p { margin: 0 0 18px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.tile { border-radius: 16px; border: 2px solid var(--tc); overflow: hidden; background: var(--paper); animation: pop .4s ease-out both; }
.tile:nth-child(2) { animation-delay: .1s; } .tile:nth-child(3) { animation-delay: .2s; }
.tile b { display: block; background: var(--tc); color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 5px 4px; }
.tile span { display: block; font-weight: 900; font-size: 1.35rem; padding: 10px 4px; color: var(--tcd); }
.t-xp { --tc: var(--sun); --tcd: var(--sun-d); } .t-acc { --tc: var(--ok); --tcd: var(--ok-d); } .t-str { --tc: var(--coral); --tcd: var(--coral-d); }
.goal-mini { width: 100%; margin-top: 16px; text-align: left; font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }

/* ---------- Paywall ---------- */
.pay { padding: 8px 16px 40px; }
.pay-hero { text-align: center; padding: 8px 0 6px; }
.pay-hero h1 { margin: 6px 0 6px; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.2; }
.pay-hero p { margin: 0; color: var(--ink-2); }
.example-tag { display: inline-block; padding: 5px 10px; border-radius: 10px; background: var(--sun-l); color: #7a5200; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.plans { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.plan { position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 4px 0 var(--line); }
.plan.feat { border-color: var(--violet); box-shadow: 0 4px 0 var(--violet-d); }
.plan .tag { position: absolute; top: -12px; right: 14px; background: var(--violet); color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 9px; }
.plan h3 { margin: 0; font-size: 1rem; }
.plan .price { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; margin: 2px 0 4px; }
.plan p { margin: 0; color: var(--ink-2); font-size: .86rem; }
.pay-note { text-align: center; font-size: .86rem; color: var(--ink-2); margin: 10px 0 0; }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 700; }
.perks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: 0 0 24px; }

/* ---------- Folha de definições ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(31, 26, 61, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: min(100%, var(--max)); background: var(--paper); border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: slideup .25s ease-out; max-height: 90dvh; overflow: auto; }
.sheet h2 { margin: 0 0 12px; font-size: 1.2rem; }
.set-row { padding: 12px 0; border-top: 2px solid var(--line); }
.set-row label, .set-row .lbl { font-weight: 800; display: block; margin-bottom: 8px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; background: var(--paper); }
.seg button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-l); color: var(--violet-d); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: .9rem; width: min(92%, 420px); text-align: center; animation: slideup .25s ease-out;  pointer-events: none; }
.foot-note { padding: 0 14px 30px; font-size: .78rem; color: var(--ink-2); text-align: center; }

/* ---------- Mascote ---------- */
.mascot { display: inline-block; }
.mascot.bounce { animation: bob 1.6s ease-in-out infinite; }
.mascot.jump { animation: jump .7s ease-out 2; }
.mascot.sad { animation: shake .5s; }

/* ---------- Animações ---------- */
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes jump { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.05); } }
@keyframes ring { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .6; } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.toast.out { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 720px) { .l-title { font-size: 1.5rem; } }

/* v2 polish */
.mail-meta, .mail-subj { display: block; }
.ring span { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring small { margin-top: 3px; }
.celebrate .l-foot { background: transparent; border-top: 0; width: 100%; }
.celebrate .l-foot .inner { align-items: stretch; }

/* ================= v3: avatar Mentor, Feed, Boss, Pipeline, Álbum ================= */
.av { display: inline-block; line-height: 0; }
.av svg { overflow: visible; }
.av .av-head, .av .av-body, .av .av-arm { transform-box: fill-box; transform-origin: 50% 90%; }
.av-idle .av-body { animation: breathe 3.2s ease-in-out infinite; }
.av-anim.av-nod .av-head { animation: nod .9s ease-in-out 2; }
.av-anim.av-frown .av-head { animation: tilt 1s ease-in-out; }
.av-anim.av-cheer { animation: jump .7s ease-out 2; }
.av-anim.av-think .av-head { animation: tilt 2.4s ease-in-out infinite; }
.av-anim.av-sad .av-head { animation: droop 1.2s ease-in-out; }
.av-anim.av-handshake .av-arm { animation: reach 1s ease-out; transform-origin: 0% 100%; }
.av.bounce { animation: bob 1.6s ease-in-out infinite; }
.av.jump { animation: jump .7s ease-out 2; }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.015); } }
@keyframes nod { 0%,100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(0) translateY(2px); } 60% { transform: rotate(0) translateY(-1px); } }
@keyframes tilt { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes droop { 0% { transform: translateY(0); } 50%,100% { transform: translateY(2px); } }
@keyframes reach { 0% { transform: translate(-10px, 8px) rotate(-8deg); } 70% { transform: translate(2px, -1px); } 100% { transform: none; } }

/* Barra de separadores */
.with-tabs { padding-bottom: calc(142px + env(safe-area-inset-bottom)); } /* 86px da barra + o botão fixo «Dar feedback» (e folga) */
@media (max-width: 899px) {
  /* A área rolável termina acima da barra e do botão, para os cartões não ficarem por baixo no 1.º ecrã. */
  body:has(.app.with-tabs) { overflow: hidden; }
  .app.with-tabs {
    min-height: 0;
    height: calc(100dvh - 142px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 16px;
    box-sizing: border-box;
  }
}
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 35; width: min(100%, var(--max)); display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-top: 2px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; border-radius: 14px; font-weight: 800; font-size: .74rem; color: var(--ink-2); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="true"] { color: var(--violet); background: var(--violet-l); }
html.kb-open .tabbar { display: none; }

.agenda-mini { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 18px; padding: 10px 14px; border-radius: 18px; text-align: left;
  background: linear-gradient(120deg, #241a52, #4b2fd0); color: #fff; box-shadow: 0 5px 0 #1a1240; }
.agenda-mini span { display: flex; flex-direction: column; font-size: .88rem; flex: 1; }
.agenda-mini b { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #ffd66b; }
.agenda-mini .go { flex: 0 0 auto; font-weight: 900; background: #ffc531; color: #241a52; padding: 8px 12px; border-radius: 12px; }

/* Hub, Pipeline e Álbum */
.hub { padding: 4px 16px 20px; }
.pg-title { font-size: 1.5rem; margin: 8px 0 4px; letter-spacing: -.02em; }
.hub .sub { margin: 0 0 14px; color: var(--ink-2); font-size: .9rem; }
.agenda { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #2a1d66, #6c4cf1 70%, #ff6b4a); color: #fff; border-radius: 24px; padding: 14px; margin: 6px 0 14px; box-shadow: 0 6px 0 #1d1350; }
.agenda small { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #ffd66b; font-size: .72rem; }
.agenda h2 { margin: 2px 0 6px; font-size: 1.15rem; line-height: 1.25; }
.agenda .bubble { margin: 0; background: rgba(255,255,255,.16); border-radius: 12px; padding: 6px 10px; font-size: .86rem; }
.btn.big { min-height: 62px; font-size: 1.1rem; }
.btn.sun { --c: var(--gold); --cd: var(--gold-d); color: #3b2a00; }
.f-count { font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.f-count.center { text-align: center; margin: 8px 0 14px; }
.blitz-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; margin-bottom: 14px; background: var(--sun-l); border: 2px solid #ffd98a; }
.blitz-card h3 { margin: 0 0 2px; display: flex; gap: 6px; align-items: center; font-size: 1rem; }
.blitz-card h3 svg { width: 20px; height: 20px; color: var(--sun-d); }
.blitz-card p { margin: 0; font-size: .85rem; color: var(--ink-2); }
.blitz-card > div { flex: 1; }
.blitz-card .btn { width: auto; min-height: 48px; padding: 10px 14px; }
.blitz-card.locked { background: var(--gray); border-color: var(--gray-d); }
.blitz-card .lock svg { width: 28px; height: 28px; color: var(--ink-2); }
.mastery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mastery li { display: grid; grid-template-columns: 1fr 90px 64px; gap: 8px; align-items: center; font-size: .84rem; font-weight: 700; }
.mastery .bar, .goal-mini .bar { height: 10px; background: var(--gray); border-radius: 99px; overflow: hidden; }
.mastery .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--mint)); border-radius: 99px; }
.mastery em { font-style: normal; font-size: .74rem; color: var(--ink-2); text-align: right; font-weight: 900; }
.box.tier { display: flex; gap: 12px; align-items: center; }
.box.tier p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.box .set-row:first-child { border-top: 0; padding-top: 4px; }
.pipe-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pipe-sum div { background: linear-gradient(160deg, #0f8a6a, #14b88a); color: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 0 #0b6e54; }
.pipe-sum small { display: block; font-weight: 800; opacity: .85; font-size: .72rem; }
.pipe-sum b { font-size: 1.05rem; white-space: nowrap; }
.deal { border-top: 2px solid var(--line); padding: 10px 0; }
.deal:first-of-type { border-top: 0; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.stages span { font-size: .6rem; font-weight: 800; text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--gray); color: var(--ink-2); }
.stages span.on { background: var(--mint-l); color: var(--mint-d); }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 12px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 0 var(--line); }
.tcard.rare { border-color: #e0a100; background: linear-gradient(160deg, #fffaf0, #fff3d0); box-shadow: 0 4px 0 #e0a100; }
.tcard.founder { border-color: var(--violet); background: linear-gradient(160deg, #f6f2ff, #ece7ff); box-shadow: 0 4px 0 var(--violet); }
.tcard.locked { background: repeating-linear-gradient(135deg, #f3f1fa 0 10px, #ecebf5 10px 20px); box-shadow: none; }
.tc-tag { font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.tcard.rare .tc-tag { color: #a06d00; }
.tc-q { margin: 0; font-weight: 800; font-size: .86rem; line-height: 1.35; }
.tc-a { margin: 0; font-size: .76rem; font-weight: 800; color: var(--ink-2); }
.tc-s, .tc-src, .tc-o { margin: 0; font-size: .66rem; color: var(--ink-2); }
.tc-lock { margin: auto 0 0; display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--ink-2); font-size: .86rem; }
.tc-lock svg { width: 18px; height: 18px; }
.tcard.big { min-height: 0; padding: 18px; text-align: left; animation: flipin .6s ease-out; }
.tcard.big .tc-q { font-size: 1.05rem; }
.tcard.big.rare { box-shadow: 0 0 0 4px #ffe28a, 0 6px 0 #e0a100; }
@keyframes flipin { 0% { transform: perspective(600px) rotateY(90deg) scale(.8); opacity: 0; } 60% { transform: perspective(600px) rotateY(-8deg) scale(1.03); opacity: 1; } 100% { transform: none; } }

/* Feed: ecrã imersivo, escuro, cartão vivo */
.app.feed { background: radial-gradient(120% 80% at 50% 0%, #3a2896 0%, #1a1240 55%, #120c2e 100%); color: #fff; padding-bottom: 30px; }
.f-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; background: linear-gradient(#1a1240 70%, transparent); }
.f-top .icon-btn { color: #d7d0ff; }
.f-top > b { color: #ffd66b; }
.dealbar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; }
.dealbar i { height: 10px; border-radius: 99px; background: rgba(255,255,255,.16); transition: background .3s; }
.dealbar i.on { background: linear-gradient(90deg, #14b88a, #7af0c8); box-shadow: 0 0 10px rgba(20,184,138,.6); }
.dealbar span { font-size: .66rem; font-weight: 900; color: #a8f5d9; margin-left: 4px; white-space: nowrap; }
.f-combo { display: flex; align-items: center; gap: 3px; padding: 6px 9px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 900; }
.f-combo svg { width: 18px; height: 18px; color: #ff9a6b; }
.f-combo.hot { background: linear-gradient(90deg, #ff6b4a, #ffb020); animation: pop .3s; }
.f-combo.hot svg { color: #fff; }
.f-combo em { font-style: normal; background: #ffc531; color: #3b2a00; border-radius: 99px; padding: 1px 6px; font-size: .78rem; }
.app.feed .f-count { text-align: right; padding: 0 16px; color: #a39bd6; }
.f-body { padding: 6px 14px 20px; }
.f-card { background: #fff; color: var(--ink); border-radius: 26px; padding: 16px; box-shadow: 0 10px 0 rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.06); animation: cardin .35s ease-out; }
@keyframes cardin { from { transform: translateY(40px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.f-client { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.f-client b { display: block; font-size: .95rem; }
.f-client small { display: block; color: var(--ink-2); font-size: .74rem; font-weight: 700; }
.f-client > div { flex: 1; }
.f-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--sky), var(--violet)); flex: 0 0 auto; }
.f-ava.big { width: 74px; height: 74px; font-size: 1.4rem; }
.f-client .flag { font-size: .7rem; font-weight: 900; border: 2px solid var(--line); border-radius: 8px; padding: 2px 6px; color: var(--ink-2); }
.f-mail { background: var(--bg); border-radius: 16px; padding: 10px 12px; font-size: .92rem; border-left: 4px solid var(--violet); margin-bottom: 12px; }
.f-q { font-size: 1.12rem; margin: 0 0 12px; line-height: 1.3; }
.f-modelnote { margin: -6px 0 10px; font-size: .8rem; font-weight: 800; color: var(--sun-d); }
.f-opts { display: grid; gap: 10px; }
.f-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; min-height: 56px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); font-weight: 700; font-size: .95rem; transition: transform .1s; }
.f-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.f-opt .k { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 2px solid var(--line); font-size: .76rem; font-weight: 900; color: var(--ink-2); }
.f-opt.right { border-color: var(--ok); background: var(--ok-l); box-shadow: 0 4px 0 var(--ok); animation: pop .35s; }
.f-opt.wrong { border-color: var(--bad); background: var(--bad-l); box-shadow: 0 4px 0 var(--bad); animation: shake .45s; }
.f-opt.dim { opacity: .55; }
.f-opt.model { border-color: var(--sun); box-shadow: 0 4px 0 var(--sun); background: var(--sun-l); }
.f-weak { background: var(--bad-l); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-weight: 700; color: var(--bad-d); }
.f-weak small { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.f-stem { background: var(--violet-l); border-radius: 14px; padding: 12px; margin-bottom: 12px; font-weight: 800; }
.f-stem .blank { display: inline; background: #fff; border-bottom: 3px solid var(--violet); padding: 0 4px; border-radius: 4px; }
.f-spot { display: grid; gap: 8px; }
.f-part { text-align: left; padding: 12px; border-radius: 14px; border: 2px dashed var(--gray-d); background: #fff; font-weight: 700; min-height: 52px; }
.f-part.wrong-part { border-style: solid; border-color: var(--bad); background: var(--bad-l); text-decoration: line-through; text-decoration-color: var(--bad); }
.f-part.miss { border-style: solid; border-color: var(--sun); }
.f-part.model { border-style: solid; border-color: var(--sun); background: var(--sun-l); }
.f-swipe { position: relative; padding: 26px 18px; border-radius: 22px; background: linear-gradient(160deg, #fff, #f3f0ff); border: 2px solid var(--line); font-size: 1.1rem; font-weight: 800; text-align: center; touch-action: pan-y; user-select: none; transition: transform .25s, opacity .25s; cursor: grab; }
.f-swipe p { margin: 0; }
.f-swipe .hint-l, .f-swipe .hint-r { position: absolute; top: 8px; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.f-swipe .hint-l { left: 12px; color: var(--bad); } .f-swipe .hint-r { right: 12px; color: var(--ok); }
.f-swipe.lean-r { box-shadow: 0 0 0 3px var(--ok); } .f-swipe.lean-l { box-shadow: 0 0 0 3px var(--bad); }
.f-swipe.gone-right { transform: translateX(16px) rotate(3deg); border-color: var(--ok); }
.f-swipe.gone-left { transform: translateX(-16px) rotate(-3deg); border-color: var(--bad); }
.f-swbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.f-swbtns svg { width: 20px; height: 20px; }
.f-modelhint { text-align: center; font-weight: 900; color: var(--sun-d); }
.f-res { margin-top: 14px; border-radius: 22px; padding: 14px; animation: cardin .3s ease-out; }
.f-res.ok { background: #d9fbef; color: #064e3b; }
.f-res.bad { background: #ffe9ec; color: #7a1325; }
.f-res .row { display: flex; justify-content: space-between; align-items: center; }
.f-res .row b { font-size: 1.3rem; }
.f-res p { margin: 6px 0 10px; }
.gain { font-weight: 900; color: #fff; background: linear-gradient(90deg, #14b88a, #2ea8f2); padding: 4px 12px; border-radius: 99px; animation: floatup .8s ease-out; }
.loss, .loss-chip { font-weight: 900; color: #5b5680; background: #ece9f5; padding: 4px 12px; border-radius: 99px; }
@keyframes floatup { 0% { transform: translateY(14px) scale(.8); opacity: 0; } 60% { transform: translateY(-4px) scale(1.1); opacity: 1; } 100% { transform: none; } }
.swipe-hint { display: block; text-align: center; margin-top: 6px; font-weight: 800; font-size: .74rem; opacity: .7; animation: bob 1.6s ease-in-out infinite; }
.btn.rew { --c: #5b4bb7; --cd: #3d318a; }
.f-mentor { display: flex; gap: 10px; align-items: flex-end; margin: 8px 0 12px; }
.f-mentor .bubble { margin: 0; background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-weight: 700; font-size: .9rem; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.f-rewind { background: #fff; color: var(--ink); border-radius: 26px; padding: 18px; text-align: center; animation: rewindin .6s ease-out; }
.f-rewind .rew-ico svg { width: 72px; height: 72px; animation: spinback 1.2s ease-out; }
@keyframes spinback { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes rewindin { 0% { transform: translateX(30px); opacity: 0; filter: saturate(0); } 100% { transform: none; opacity: 1; filter: none; } }
.f-rewind h2 { margin: 6px 0 2px; } .f-rewind .sub { margin: 0 0 8px; color: var(--ink-2); }
.f-quote { margin: 14px 0; padding: 12px; border-radius: 16px; background: var(--violet-l); font-weight: 800; text-align: left; }
.f-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.f-principle { text-align: left; background: var(--bg); border-radius: 16px; padding: 12px; margin: 10px 0; color: var(--ink); }
.f-principle small, .f-guided small, .f-model small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; color: var(--violet); }
.f-principle p { margin: 4px 0; font-size: .92rem; } .f-principle cite { font-style: normal; font-size: .7rem; color: var(--ink-2); }
.f-guided { text-align: left; border: 2px dashed var(--line); border-radius: 16px; padding: 12px; margin: 10px 0 14px; }
.f-guided p { margin: 4px 0 8px; } .f-guided .ans { background: var(--mint-l); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.f-boss { background: #fff; color: var(--ink); border-radius: 26px; padding: 16px; box-shadow: 0 0 0 3px #ffc531, 0 10px 0 rgba(0,0,0,.25); }
.f-boss-tag { display: inline-block; margin: 0; font-weight: 900; font-size: .72rem; letter-spacing: .14em; color: #3b2a00; background: linear-gradient(90deg, #ffc531, #ff9a3c); padding: 4px 10px; border-radius: 99px; }
.f-boss h2 { margin: 6px 0 10px; font-size: 1.1rem; }
.f-boss textarea { width: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 12px; font-size: 16px; resize: vertical; min-height: 150px; margin: 8px 0; }
.f-boss textarea:focus { outline: none; border-color: var(--violet); }
.f-timer { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-2); }
.f-timer b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sky) calc(var(--p) * 1%), var(--gray) 0); font-size: .78rem; position: relative; }
.f-timer.over b { background: var(--gray); }
.f-boss-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.f-boss-btns .btn { min-height: 48px; font-size: .9rem; }
.linkbtn { display: block; width: 100%; margin-top: 10px; min-height: 44px; font-weight: 800; color: var(--ink-2); text-decoration: underline; }
.f-model { background: var(--sun-l); border-radius: 16px; padding: 12px; margin: 10px 0; }
.f-model p { margin: 4px 0 8px; white-space: pre-wrap; font-size: .92rem; }
.f-boss .review-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.f-boss .review-head h2 { margin: 0 0 6px; }
.f-boss .gain { display: inline-block; }
.f-chal { background: linear-gradient(90deg, #ffc531, #ff9a3c); color: #3b2a00; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; font-weight: 800; }
.f-chal p { margin: 0 0 8px; } .f-chal .acc { font-weight: 700; } .f-chal small { display: block; margin-top: 6px; font-size: .7rem; opacity: .75; }
.f-chal .btn.sun { --c: #fff; --cd: #d98a00; }
.f-compare h3 { margin: 10px 0 6px; } .res2 { font-weight: 800; margin: 0 0 4px; }
.cmp { border-radius: 14px; padding: 10px 12px; margin: 8px 0; background: var(--bg); }
.cmp small { font-weight: 900; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.cmp p { margin: 4px 0 0; white-space: pre-wrap; font-size: .9rem; }
.cmp.friend { background: var(--sky-l); } .cmp.friend small { color: var(--sky-d); }
.cmp.model { background: var(--sun-l); } .cmp.model small { color: var(--sun-d); }
.f-share { background: #fff; color: var(--ink); border-radius: 26px; padding: 16px; text-align: center; }
.f-share h2 { margin: 4px 0; }
.f-share img { width: 100%; border-radius: 18px; box-shadow: 0 6px 0 var(--line); margin: 10px 0; }
.f-share-ph { aspect-ratio: 4 / 5; border-radius: 18px; background: var(--gray); margin: 10px 0; display: grid; place-items: center; }
.f-share .note { font-size: .8rem; color: var(--ink-2); }
.f-share .post { text-align: left; background: var(--bg); border-radius: 14px; padding: 10px 12px; font-size: .88rem; }
.draft-tag { display: inline-block; margin: 2px 0 6px; font-size: .7rem; font-weight: 900; color: #8a5a00; background: var(--sun-l); border: 1px dashed var(--sun); border-radius: 99px; padding: 3px 10px; }
.f-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.f-share-btns .btn { min-height: 48px; font-size: .9rem; text-decoration: none; }
.btn.wa { --c: #1fa855; --cd: #137a3c; } .btn.li { --c: #1d6fb8; --cd: #124c80; }
.f-link { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font-size: .78rem; color: var(--ink-2); margin-bottom: 10px; }
.f-field { display: block; text-align: left; font-weight: 800; font-size: .86rem; margin: 10px 0 6px; }
.f-field input { display: block; width: 100%; margin-top: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font-size: 16px; }
.f-check { display: flex; gap: 8px; align-items: center; text-align: left; font-size: .86rem; font-weight: 700; margin: 6px 0 10px; min-height: 44px; }
.f-check input { width: 22px; height: 22px; }

/* Sobreposições: combo, carta, deal, domínio */
.f-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(12, 8, 34, .72); backdrop-filter: blur(3px); animation: fade .2s; }
.f-ov-box { position: relative; overflow: hidden; width: min(100%, 420px); background: #fff; color: var(--ink); border-radius: 28px; padding: 22px 18px 18px; text-align: center; animation: pop .4s ease-out; }
.f-ov-box .confetti i { animation-name: fall; }
.ov-k { margin: 6px 0 0; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--violet); }
.ov-mult { margin: 0; font-size: 4rem; font-weight: 900; line-height: 1; background: linear-gradient(90deg, #ff6b4a, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .5s; }
.ov-val { margin: 2px 0; font-size: 2.2rem; font-weight: 900; color: var(--mint-d); }
.ov-line { color: var(--ink-2); font-weight: 700; }
.f-ov-box.deal { background: linear-gradient(180deg, #e9fff6, #fff 55%); }
.deal-scene { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.client-hand { margin-left: -6px; margin-bottom: 18px; animation: reach 1s ease-out reverse; }
.win2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 14px; }
.win2 span { display: inline-flex; align-items: center; gap: 4px; background: var(--mint-l); color: var(--mint-d); font-weight: 900; font-size: .82rem; padding: 6px 10px; border-radius: 99px; }
.win2 svg { width: 16px; height: 16px; }
.win2.small { justify-content: flex-start; margin: 6px 0 0; }
.win2.small span { font-size: .7rem; padding: 4px 8px; }
.f-ov-box .btn { margin-top: 12px; }

/* Cliente à espera (60 s) */
.blitz-mode { background: radial-gradient(120% 80% at 50% 0%, #7a3b00 0%, #2a1240 60%, #120c2e 100%); }
.f-blitz-top { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; }
.f-blitz-top .bt { flex: 1; height: 14px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.f-blitz-top .bt span { display: block; height: 100%; background: linear-gradient(90deg, #ffc531, #ff6b4a); border-radius: 99px; transition: width .2s linear; }
.f-blitz-top b { min-width: 42px; text-align: right; color: #ffd66b; }
.bscore { min-width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #ffc531; color: #3b2a00; font-weight: 900; font-size: 1.2rem; }
.blitz-mode .f-card { margin: 0 14px; }
.f-blitz-end { margin: 20px 14px; background: #fff; color: var(--ink); border-radius: 26px; padding: 22px 18px; text-align: center; animation: pop .4s; }
.f-blitz-end h1 { margin: 6px 0 0; color: var(--sun-d); }
.f-blitz-end .big { font-size: 1.4rem; font-weight: 900; margin: 4px 0; }
.f-blitz-end .rec { display: inline-block; background: linear-gradient(90deg, #ffc531, #ff9a3c); color: #3b2a00; font-weight: 900; padding: 6px 14px; border-radius: 99px; }
.f-blitz-end .btn { margin-top: 10px; }
.limit-note { background: var(--sun-l); border: 2px solid #ffd98a; border-radius: 14px; padding: 10px 12px; font-weight: 700; color: #6b4a00; }
.brand .av { margin-right: 4px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  .av *, .av, .f-card, .f-res, .gain, .f-ov-box, .tcard.big, .f-rewind, .f-rewind .rew-ico svg, .swipe-hint, .ov-mult { animation: none !important; }
}

/* Paleta A: ink-2 #5b5680 já cumpre AA (6.3:1); não se sobrepõe. */
.f-share .post, .cmp p, .f-model p, .f-mail, .tc-q, .tc-s { overflow-wrap: anywhere; }
.f-link { max-width: 100%; display: block; }
.f-share, .f-boss, .f-card, .f-rewind { min-width: 0; max-width: 100%; }
html, body { overflow-x: clip; }
.app.feed { overflow-x: clip; }

/* =====================================================================
   v4 · DESKTOP (>= 1024 px). O telemóvel (< 1024 px) não é afetado.
   Coluna lateral + palco central; lição e boss com email à esquerda e resposta à direita.
   ===================================================================== */
.l-head, .l-mail, .l-work { min-width: 0; }
.kbd-hint, .side { display: none; }
kbd { font: 800 .72rem/1 var(--font); display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line); margin: 0 2px; }

@media (min-width: 1024px) {
  html, body { font-size: 17px; }
  body { background: radial-gradient(900px 500px at 85% -10%, #e9e2ff 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #fff0e9 0%, transparent 60%), var(--bg); background-attachment: fixed; }
  :root { --max: 1100px; }

  /* ---- Shell ---- */
  .shell { display: grid; grid-template-columns: 308px minmax(0, 1fr); gap: 28px; max-width: 1520px; margin: 0 auto; padding: 16px 28px 28px; align-items: start; }
  .side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 4px 4px 4px 0; scrollbar-width: thin; }
  .stage { min-width: 0; position: relative; }
  .stage > .app { width: 100%; max-width: none; min-height: calc(100dvh - 44px); }
  .shell .top, .shell .tabbar, .shell .agenda-mini, .shell .goal, .shell .app > .proto + .goal { display: none; }
  .shell .app.with-tabs { padding-bottom: 24px; }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; text-align: left; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); transition: background .15s; }
  .side-brand:hover { background: var(--violet-l); }
  .side-brand svg { flex: 0 0 auto; }
  .side-nav { display: grid; gap: 4px; }
  .side-nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 800; color: var(--ink-2); transition: background .15s, color .15s, transform .12s; text-align: left; }
  .side-nav button svg { width: 22px; height: 22px; }
  .side-nav button:hover { background: var(--violet-l); color: var(--violet-d); transform: translateX(2px); }
  .side-nav button[aria-current="page"] { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-d); }
  .side-mentor { display: grid; grid-template-columns: 112px 1fr; gap: 6px; align-items: center; padding: 10px; border-radius: 22px; background: linear-gradient(145deg, #2a1d66, #6c4cf1 75%); color: #fff; }
  .side-mentor svg { width: 112px; height: 112px; }
  .side-say small { display: block; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; color: #ffd66b; margin-bottom: 4px; }
  .side-say p { margin: 0; font-size: .86rem; line-height: 1.35; background: rgba(255,255,255,.16); padding: 7px 10px; border-radius: 12px; }
  .side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { display: grid; justify-items: center; gap: 1px; padding: 10px 4px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); text-align: center; min-width: 0; }
  .stat .ic svg { width: 24px; height: 24px; display: block; }
  .stat .flame { color: var(--coral); } .stat .star { color: var(--sun-d); } .stat .lv { color: var(--violet); }
  .stat b { font-size: 1.15rem; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stat small { font-size: .66rem; color: var(--ink-2); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .side-card { padding: 12px 14px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); }
  .side-card .bar { margin-top: 0; }
  .side-card .bar.big { height: 16px; }
  .side-card p { margin: 6px 0 10px; font-size: .9rem; font-weight: 700; }
  .side-sub { margin: 8px 0 0 !important; font-size: .8rem !important; color: var(--ink-2); }
  .side-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .84rem; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
  .side-row b { color: var(--ink); }
  .side-k { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
  .btn.small { min-height: 42px; font-size: .82rem; padding: 8px 14px; border-radius: 13px; box-shadow: 0 4px 0 var(--cd, var(--violet-d)); }
  .side-link { padding: 0; transition: transform .12s, border-color .15s; }
  .side-link:hover { transform: translateY(-2px); border-color: var(--violet); }
  .side-link button { width: 100%; padding: 12px 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; text-align: left; }
  .side-link .side-k { flex: 1 0 100%; }
  .side-link b { font-size: 1.2rem; }
  .side-link span { color: var(--ink-2); font-weight: 800; font-size: .9rem; }
  .side-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

  /* ---- Interação: cursores, hover, foco ---- */
  .btn, .opt, .piece, .node-btn, .f-opt, .f-part, .icon-btn, .chip, .lang button, .linkbtn, .side button, .tcard, .plan { cursor: pointer; }
  .btn[disabled], .opt[disabled], .piece[disabled], .f-opt[disabled] { cursor: not-allowed; }
  .btn:not([disabled]):hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 7px 0 var(--cd, var(--violet-d)); }
  .btn:not([disabled]):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd, var(--violet-d)); }
  .opt:not([disabled]):hover, .f-opt:not([disabled]):hover { border-color: var(--violet); background: var(--violet-l); transform: translateY(-2px); }
  .piece:not([disabled]):hover, .f-part:not([disabled]):hover { border-color: var(--violet); transform: translateY(-2px); }
  .node-btn:hover { transform: scale(1.07); }
  .icon-btn:hover, .lang button:hover { background: var(--violet-l); }
  .tcard:not(.locked):hover { transform: translateY(-4px) rotate(-.6deg); transition: transform .15s; }
  .linkbtn:hover { text-decoration: underline; }
  :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 12px; }
  .f-opt:focus-visible, .f-part:focus-visible, .piece:focus-visible, .side button:focus-visible, .lang button:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
  .app.feed :focus-visible { outline-color: #ffd66b; }
  textarea:focus-visible { outline: none; }

  /* ---- Percurso ---- */
  .shell .path { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 8px 36px; padding: 4px 6px 24px; align-items: start; }
  .shell .proto { margin: 2px 6px 0; }
  .unit { margin-top: 14px; }

  /* ---- Lição: email à esquerda, resposta à direita ---- */
  .shell .app.lesson { background: var(--paper); border: 2px solid var(--line); border-radius: 28px; box-shadow: 0 6px 0 var(--line); overflow: clip; min-height: calc(100dvh - 44px); }
  .shell .l-top { background: var(--paper); padding: 16px 24px; border-bottom: 2px solid var(--bg); }
  .shell .l-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 36px; padding: 20px 28px 36px; align-items: start; }
  .shell .l-head { grid-column: 1 / -1; }
  .shell .l-title { font-size: 1.9rem; margin-bottom: 12px; }
  .shell .l-kicker { font-size: .8rem; }
  .shell .tip { max-width: 860px; grid-template-columns: 56px 1fr; }
  .shell .tip-bubble { font-size: 1rem; }
  .shell .l-mail { position: sticky; top: 92px; }
  .shell .l-mail .mail { margin-bottom: 0; border-radius: 22px; }
  .shell .l-mail .mail summary { cursor: default; padding: 16px 20px; }
  .shell .mail-from { font-size: 1.02rem; } .shell .mail-meta { font-size: .82rem; } .shell .mail-subj { font-size: .98rem; }
  .shell .mail-body { padding: 4px 20px 22px; font-size: 1.04rem; line-height: 1.65; max-height: calc(100dvh - 330px); overflow: auto; }
  .shell .l-work .q { font-size: 1.3rem; line-height: 1.35; margin-top: 0; }
  .shell .opt { font-size: 1.04rem; min-height: 60px; }
  .shell .compose textarea { min-height: 300px; font-size: 1.06rem; line-height: 1.55; max-height: 60vh; }
  .shell .app.lesson[data-type="review"] .l-body { grid-template-columns: minmax(0, 860px); justify-content: center; }
  .shell .l-foot { position: sticky; bottom: 0; left: auto; right: auto; margin-top: auto; padding: 16px 28px; border-radius: 0 0 26px 26px; }
  .shell .l-foot .inner { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 6px; align-items: center; }
  .shell .l-foot .inner > .btn { grid-column: 2; grid-row: 1 / span 4; width: auto; min-width: 280px; }
  .shell .l-foot .inner > :not(.btn) { grid-column: 1; }
  .shell .bank { gap: 10px; }
  .shell .bank .piece { position: relative; padding-left: 38px; }
  .shell .bank .piece::before { content: attr(data-n); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 900; background: var(--violet-l); color: var(--violet-d); }

  /* ---- Treino (hub), pipeline, álbum ---- */
  .shell .hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 6px 6px 24px; align-items: start; grid-auto-flow: dense; }
  .shell .hub > * { margin: 0; }
  .shell .hub .pg-title, .shell .hub .sub, .shell .hub .agenda, .shell .hub > .btn.big, .shell .hub .f-count, .shell .hub .pipe-sum, .shell .hub .blitz-card { grid-column: 1 / -1; }
  .shell .hub > .btn.big { max-width: 460px; justify-self: start; }
  .shell .hub .f-count { text-align: left; }
  .shell .hub .pg-title { font-size: 2rem; }
  .shell .hub .agenda { padding: 22px 26px; }
  .shell .hub .agenda h2 { font-size: 1.5rem; }
  .shell .album { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .shell [data-view="album"] .hub, .shell [data-testid="album"] { display: block; }
  .shell [data-testid="pipeline"] .box { grid-column: 1 / -1; }
  .shell .pipe-sum { gap: 14px; } .shell .pipe-sum b { font-size: 1.5rem; }

  /* ---- Feed: painel escuro, cartas legíveis, sem esticar ---- */
  .shell.v-feed .stage { background: radial-gradient(120% 80% at 50% 0%, #3a2896 0%, #1a1240 55%, #120c2e 100%); border-radius: 28px; min-height: calc(100dvh - 44px); box-shadow: 0 6px 0 rgba(26,18,64,.35); }
  .shell.v-feed .stage > .app.feed { background: none; margin: 0 auto; width: min(100%, 760px); min-height: calc(100dvh - 100px); }
  .shell.v-feed .stage > .app.feed[data-fview="boss"] { width: min(100%, 1120px); }
  .shell.v-feed .f-top { background: none; padding-top: 18px; }
  .shell.v-feed .f-body { padding: 10px 20px 24px; }
  .shell .f-card { padding: 26px 28px; border-radius: 30px; }
  .shell .f-q { font-size: 1.45rem; line-height: 1.3; }
  .shell .f-opt { font-size: 1.06rem; min-height: 62px; padding: 14px 16px; }
  .shell .f-res { font-size: 1.02rem; }
  .shell .f-boss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 28px; padding: 24px 28px; align-items: start; }
  .shell .f-boss > .f-boss-tag, .shell .f-boss > h2, .shell .f-boss > .f-client, .shell .f-boss > .client { grid-column: 1 / -1; justify-self: start; }
  .shell .f-b-mail { position: sticky; top: 72px; }
  .shell .f-b-mail .mail { margin-bottom: 0; }
  .shell .f-b-mail .mail summary { cursor: default; }
  .shell .f-b-mail .mail-body { font-size: 1.02rem; max-height: calc(100dvh - 300px); overflow: auto; }
  .shell .f-boss textarea { min-height: 260px; font-size: 1.05rem; }
  .shell .f-ov-box { width: min(100%, 520px); padding: 30px 28px 24px; }

  /* ---- Dica de atalhos ---- */
  .shell .kbd-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; position: sticky; bottom: 14px; margin: 14px auto 0; width: fit-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 16px; background: rgba(31,26,61,.92); color: #fff; font-size: .82rem; font-weight: 700; z-index: 25; box-shadow: 0 6px 20px rgba(31,26,61,.25); backdrop-filter: blur(6px); }
  .kbd-hint .kh { display: inline-flex; align-items: center; gap: 4px; }
  .kbd-hint .kh em, .kbd-hint .kh-help em { font-style: normal; opacity: .85; margin-left: 4px; }
  .kbd-hint kbd { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
  .kh-help { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 10px; color: #fff; }
  .kh-help:hover { background: rgba(255,255,255,.14); }
  .kh-all { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }
  .kh-all h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd66b; }
  .kh-all p { display: flex; justify-content: space-between; gap: 14px; margin: 4px 0; }
  .kh-all em { font-style: normal; opacity: .85; text-align: right; }
  .kh-all small { grid-column: 1 / -1; opacity: .7; font-weight: 600; }

  /* ---- Planos / definições ---- */
  .app[data-view="paywall"] { max-width: 1100px; }
  .app[data-view="paywall"] .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .sheet-bg { align-items: center; }
  .sheet { width: min(100%, 520px); border-radius: 24px; }
  .app.celebrate { max-width: 680px; }

  /* ---- Landing ---- */
  .app.landing { width: min(100%, 1240px); padding: 0 32px 40px; }
}

/* Landing: também legível em ecrãs pequenos (rota #/inicio) */
.landing { padding: 0 16px 32px; }
.ld-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.ld-top .side-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: -.02em; }
.ld-top-r { display: flex; align-items: center; gap: 14px; }
.ld-top .linkbtn { font-weight: 800; color: var(--violet-d); }
.ld-hero { display: grid; gap: 28px; align-items: center; padding: 22px 0 36px; }
.ld-kick { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--violet-l); color: var(--violet-d); font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ld-copy h1 { margin: 14px 0 12px; font-size: 2rem; line-height: 1.12; letter-spacing: -.03em; }
.ld-sub { margin: 0 0 22px; font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.ld-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ld-cta .btn { width: auto; min-width: 260px; }
.ld-free { margin: 18px 0 4px; font-weight: 800; color: var(--mint-d); }
.ld-note { margin: 0; font-size: .86rem; color: var(--ink-2); }
.ld-demo { position: relative; }
.ld-demo-t { display: block; margin-bottom: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--ink-2); }
.ld-pane { display: grid; gap: 12px; padding: 16px; border-radius: 28px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 8px 0 var(--line), 0 24px 50px rgba(108,76,241,.14); }
.ld-pane .mail { margin: 0; }
.ld-pane .mail-body { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ld-reply textarea { width: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg); resize: none; pointer-events: none; }
.ld-how, .ld-units { padding: 28px 0; }
.ld-how h2, .ld-units h2, .ld-keys h2 { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: -.02em; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ld-steps li { padding: 18px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); }
.ld-steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; box-shadow: 0 3px 0 var(--violet-d); }
.ld-steps h3 { margin: 10px 0 4px; font-size: 1.1rem; } .ld-steps p { margin: 0; color: var(--ink-2); }
.ld-count { margin: -6px 0 14px; color: var(--ink-2); font-weight: 700; }
.ld-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ld-grid li { padding: 16px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ld-grid small { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; color: var(--violet); }
.ld-grid h3 { margin: 0; font-size: 1.05rem; } .ld-grid p { margin: 0; color: var(--ink-2); font-size: .9rem; flex: 1; }
.ld-grid em { font-style: normal; font-weight: 800; color: var(--ink-2); font-size: .8rem; margin-top: 6px; }
.ld-keys { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 20px 0; padding: 26px 30px; border-radius: 28px; background: linear-gradient(135deg, #2a1d66, #6c4cf1 70%, #ff6b4a); color: #fff; }
.ld-keys h2 { color: #fff; } .ld-keys p { margin: 0; opacity: .92; max-width: 36em; }
.ld-keys .btn { width: auto; min-width: 260px; --c: var(--gold); --cd: var(--gold-d); color: #3b2a00; }
.ld-foot p { margin: 0; text-align: center; font-size: .8rem; color: var(--ink-2); }
@media (min-width: 1024px) {
  .ld-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 56px; }
  .ld-copy h1 { font-size: 3.1rem; }
  .ld-steps { grid-template-columns: repeat(3, 1fr); }
  .ld-grid { grid-template-columns: repeat(4, 1fr); }
  .ld-pane { transform: rotate(.8deg); transition: transform .25s; }
  .ld-pane:hover { transform: rotate(0) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .ld-pane, .side-nav button, .side-link { transition: none; } }
.lang button { white-space: nowrap; }
@media (min-width: 1024px) {
  .stat:last-child b { font-size: .9rem; }
  .shell .app.lesson { min-height: calc(100dvh - 112px); }
  .shell.v-lesson .kbd-hint { position: static; margin: 14px auto 0; }
  .shell.v-feed .f-body { padding-top: 22px; }
}

/* =====================================================================
   v4.1 · Tipografia premium (temas D/A/B em fonts.css, ST_CONFIG.fontTheme).
   Títulos e números grandes na serifa; corpo, UI e emails na sans.
   Labels maiúsculas com tracking. A energia (cores, sombras, combos) mantém-se.
   ===================================================================== */
h1, h2, .l-title, .pg-title, .unit-banner h2, .agenda h2,
.review-head h2, .res-head h3, .pop h3, .celebrate h1,
.pay-hero h1, .f-q, .q, .ld-copy h1, .ld-how h2, .ld-units h2, .ld-keys h2,
.ld-steps h3, .ld-grid h3, .f-blitz-end h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  letter-spacing: var(--font-display-tracking, -.025em);
  font-variation-settings: var(--font-display-variation, normal);
  font-optical-sizing: auto;
  line-height: 1.18;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}
/* O H1 da landing vai em peso leve: a serifa de alto contraste já basta àquele tamanho. */
.ld-copy h1, .pay-hero h1, .celebrate h1 {
  font-weight: var(--font-display-light);
  letter-spacing: -.03em;
}
.l-title { font-size: 1.5rem; margin-bottom: 16px; }
.q { font-size: 1.18rem; line-height: 1.3; }
.pg-title { font-size: 1.7rem; }
.celebrate h1 { font-size: 2.05rem; }
.unit-banner h2 { font-size: 1.28rem; }
.agenda h2 { font-size: 1.28rem; }

/* Números grandes: XP, scores, combos, valores do deal. */
.ring span, .tile span, .stat b, .pipe-sum b, .node-btn .num,
.ov-mult, .ov-val, .f-blitz-end .big, .bscore, .side-link b,
.gain, .f-res .row b {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
}
.ov-mult { letter-spacing: -.04em; }
.ring span { font-size: 1.65rem; }

/* Nome do nível na sidebar fica na sans (cabe «Aprendiz» / «Vendedor»). */
.stat:last-child b {
  font-family: var(--font);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 0;
  font-variant-numeric: normal;
}

/* Labels maiúsculas pequenas: tracking ligeiro, peso 600. */
.l-kicker, .unit-banner small, .box h3, .side-k, .ld-kick, .ld-demo-t,
.ld-grid small, .tile b, .agenda small, .start-bubble, .f-boss-tag,
.side-say small, .ov-k, .tc-tag, .example-tag, .draft-tag {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: var(--label-tracking, .12em);
}
.btn { letter-spacing: .08em; font-weight: 700; }
.btn.link { letter-spacing: 0; }

/* Citações no feedback: itálico da serifa (editorial). O modelo e o email ficam na sans. */
.crit .quote, .f-quote { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.45; }

html, body { line-height: 1.5; }
pre.mail-body, .mail-body, .model, .compose textarea, #f-reply, #reply { font-family: var(--font); line-height: 1.6; }

@media (min-width: 1024px) {
  .shell .l-title { font-size: 2.15rem; line-height: 1.15; }
  .shell .l-work .q { font-size: 1.42rem; }
  .shell .f-q { font-size: 1.6rem; line-height: 1.22; }
  .shell .hub .pg-title { font-size: 2.25rem; }
  .ld-copy h1 { font-size: 3.35rem; line-height: 1.06; }
  .side-brand { font-size: 1.4rem; }
  .shell .hub .agenda h2 { font-size: 1.65rem; }
  .shell .mail-from { font-family: var(--font); font-weight: 700; }
}

/* ---------- Proteção da sequência (27/11/2026) ---------- */
.pay-prot { margin: 18px 0 0; padding: 16px 18px; border-radius: 20px; background: linear-gradient(145deg, #2a1d66, #6c4cf1 75%); color: #fff; text-align: left; }
.pay-prot h2 { margin: 0 0 6px; font-size: 1.15rem; color: #fff; }
.pay-prot p { margin: 0; color: rgba(255,255,255,.92); }
.plan-prot { margin-top: 8px !important; font-weight: 700; color: var(--violet-d) !important; }
.plan:first-child .plan-prot { color: var(--ink-2) !important; font-weight: 600; }
.sim-banner { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-l); color: var(--ok-d); font-weight: 700; text-align: center; }
.prot-bg { align-items: center; }
.prot-sheet { width: min(100%, 480px); border-radius: 28px; text-align: center; padding: 22px 22px 20px; }
.prot-sheet h2 { margin: 8px 0 8px; font-family: var(--font-display); font-weight: var(--font-display-weight); letter-spacing: -.02em; }
.prot-sheet p { margin: 0 0 16px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; text-align: left; }
.prot-sheet .prot-note { margin: 0 0 14px; font-size: .86rem; color: var(--ink-2); font-weight: 600; text-align: center; }
.prot-sheet .btn { margin-top: 0; }
.prot-sheet .btn.ghost { margin-top: 10px; }
@media (min-width: 1024px) {
  .pay-prot h2 { font-size: 1.45rem; }
  .prot-sheet { padding: 28px 32px 24px; }
  .prot-sheet p { font-size: 1.05rem; }
}

.price-hold { margin: 4px 0 0 !important; font-size: .78rem !important; font-weight: 700; color: var(--ink-2) !important; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- v4.4 · percurso oficial (15 lições, 3 módulos) ---------- */
.unit-banner .mod-lock { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 5px 10px; border-radius: 10px; background: rgba(0,0,0,.18); font-weight: 700; font-size: .82rem; opacity: 1 !important; }
.unit-banner .mod-lock svg { width: 15px; height: 15px; flex: none; }
.unit-banner .mod-lock.open { background: rgba(255,255,255,.2); }
.unit.mod-locked .unit-banner { filter: saturate(.55); }
.reason h2.q { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.35rem; margin: 0 0 4px; }
.reason-sub { margin: 0 0 12px; color: var(--ink-2); }
.reason ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reason details { border: 2px solid var(--line); border-radius: 16px; background: var(--paper); padding: 12px 14px; }
.reason summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; list-style: none; }
.reason summary::-webkit-details-marker { display: none; }
.reason summary span { font-size: .8rem; font-weight: 700; color: var(--violet-d); white-space: nowrap; }
.reason details[open] summary span { visibility: hidden; }
.reason details p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.5; }
.facts { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--violet-l); }
.facts small { display: block; font-weight: 800; font-size: .72rem; letter-spacing: var(--label-tracking, .08em); text-transform: uppercase; color: var(--violet-d); margin-bottom: 6px; }
.facts ul { margin: 0; padding-left: 18px; }
.facts li { margin: 2px 0; }
.mail.mine .avatar { background: var(--violet); color: #fff; }
.mail-none { margin: 10px 14px 0; padding: 8px 12px; border-radius: 12px; background: #fff6d6; color: #6b5200; font-size: .88rem; font-weight: 600; }
.o-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--paper); }
.o-head .res-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--ok); }
.o-head.bad .res-ico { background: var(--bad); }
.o-head .res-ico svg { width: 24px; height: 24px; }
.o-head h2 { margin: 0 0 2px; }
.o-head p { margin: 0; color: var(--ink-2); }
.o-xp { margin-left: auto; font-weight: 900; font-size: 1.1rem; white-space: nowrap; color: var(--ok-d, #0b7a5a); }
.o-head.bad .o-xp { color: var(--bad); }
.o-review h3 { margin-top: 14px; }
.o-review h3:first-child { margin-top: 0; }
.o-review details summary { cursor: pointer; font-weight: 700; }
.reason-list { padding-left: 18px; }
.reason-list li { margin: 6px 0; }
ul.soft, ul.chan { margin: 0; padding-left: 18px; }
ul.soft li, ul.chan li { margin: 6px 0; }
.lcard { position: relative; margin: 0; padding: 18px 18px 14px; border-radius: 20px; background: linear-gradient(160deg, #fffdf6, #f6f0ff); border: 2px solid var(--line); }
.lcard blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
.lcard figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.lcard .q-cols { display: grid; gap: 14px; }
@media (min-width: 1024px) { .lcard .q-cols { grid-template-columns: 1fr 1fr; } }
.lcard .q-cols small { display: block; font-weight: 800; font-size: .7rem; letter-spacing: var(--label-tracking, .08em); text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.lcard .q-or blockquote { font-style: italic; color: var(--ink-2); }
.q-verify { position: absolute; top: -11px; right: 14px; padding: 3px 9px; border-radius: 8px; background: #ffe1d6; color: #8a2b0b; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.q-note { margin: 8px 0 0; font-size: .78rem; color: #8a2b0b; font-weight: 600; }
.bonus-line { margin: 6px 0 0; font-weight: 800; color: var(--violet-d); }

/* v4.5: F2 (assunto + corpo), nota da L8, carta verificada, caixa de e-mail «brief» */
.subject-row { display: grid; gap: 6px; margin: 0 0 12px; }
.subject-row label, .body-lbl { font-weight: 800; font-size: .74rem; letter-spacing: var(--label-tracking, .08em); text-transform: uppercase; color: var(--violet-d); }
.body-lbl { display: block; margin: 0 0 6px; }
.subject-row input { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper); font: inherit; font-size: 1.02rem; }
.subject-row input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-l); }
.subject-rule { color: var(--ink-2); font-weight: 700; font-size: .78rem; }
.mail-note { margin: 0 14px 14px; padding: 9px 12px; border-radius: 12px; background: #fff6d6; color: #6b5200; font-size: .86rem; line-height: 1.45; }
.mail.brief .avatar { background: var(--violet-l); color: var(--violet-d); }
.q-verify.ok { background: #dff6ec; color: #0b5a3f; }
.model-subject { margin: 0 0 8px; }

/* v4.6: F6 (campos), F7 (conta), carta 1 com fallback */
.fields, .calc { display: grid; gap: 12px; margin: 0 0 8px; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-weight: 800; font-size: .74rem; letter-spacing: var(--label-tracking, .08em); text-transform: uppercase; color: var(--violet-d); }
.field-row textarea, .field-row input { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper); font: inherit; font-size: 1rem; }
.field-row textarea { min-height: 64px; resize: vertical; }
.field-row textarea:focus, .field-row input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-l); }
.calc-inputs { padding: 12px 14px; border-radius: 16px; background: var(--violet-l); }
.calc-inputs small { display: block; font-weight: 800; font-size: .72rem; letter-spacing: var(--label-tracking, .08em); text-transform: uppercase; color: var(--violet-d); margin-bottom: 6px; }
.calc-inputs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.calc-inputs li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.calc-inputs b { font-variant-numeric: tabular-nums; }
.calc-formula { color: var(--ink-2); font-weight: 600; font-size: .78rem; }
.model-fields { margin: 0 0 10px; display: grid; gap: 4px 12px; grid-template-columns: minmax(8rem, 32%) 1fr; }
.model-fields dt { font-weight: 800; font-size: .8rem; color: var(--violet-d); }
.model-fields dd { margin: 0 0 8px; }
.lcard.fallback { padding-top: 18px; }


/* Escolha obrigatória da variante PT-PT / PT-BR (28/11/2026). */
.locale-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); }
.locale-box { width: min(100%, 720px); background: var(--paper); border: 2px solid var(--line); border-radius: 28px; padding: 28px 24px 24px; text-align: center; }
.locale-box h1 { margin: 0 0 8px; font-size: 1.8rem; }
.locale-sub { margin: 0 0 22px; color: var(--ink-2); line-height: 1.5; }
.locale-grid { display: grid; gap: 12px; margin: 0 0 18px; }
.locale-card { display: block; width: 100%; text-align: left; padding: 18px 18px 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.locale-card h2 { margin: 0 0 4px; font-size: 1.35rem; }
.locale-card p { margin: 0; color: var(--ink-2); }
.locale-card.on { border-color: var(--violet); background: var(--violet-l); box-shadow: 0 0 0 3px rgba(108, 76, 241, .18); }
.locale-need { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; }
.locale-box .btn { width: 100%; }
.lang-confirm { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--violet-l); text-align: left; }
.lang-confirm p { margin: 0 0 10px; }
.lang-confirm .btn { margin-right: 8px; }
.set-row b { display: block; margin-bottom: 8px; }
@media (min-width: 1024px) {
  .locale-box { padding: 36px 40px 32px; }
  .locale-box h1 { font-size: 2.15rem; }
  .locale-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Onboarding Premium (quiz de nivelamento) e paywall no ecrã de vitória da L15 */
.onb-box { text-align: left; }
.onb-box h1 { text-align: left; margin-top: 8px; }
.onb-box .example-tag { display: inline-block; margin-bottom: 8px; }
.onb-box .btn.big + .btn { margin-top: 10px; width: 100%; }
.onb-box textarea { width: 100%; margin: 12px 0; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; font: inherit; min-height: 180px; resize: vertical; }
.onb-box .facts { margin: 0 0 16px; }
.app.celebrate .cel-pay { margin: 18px 16px 28px; padding: 18px 16px 20px; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; text-align: left; }
.app.celebrate .cel-pay h2 { margin: 8px 0 8px; font-size: 1.45rem; }
.app.celebrate .cel-pay .plans { margin-top: 12px; }
@media (min-width: 900px) {
  .app.celebrate.cel-paywall, .app.celebrate:has(.cel-pay) { max-width: 1100px; }
}

/* v4.7: barra de nível no telemóvel, citação na vitória, subida de nível, partilha no percurso oficial */
.top-lv { position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--gray); overflow: hidden; }
.top-lv > span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width .6s ease; }
.lvl-card { margin: 0 14px 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--line); }
.lvl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lvl-row b { font-size: 1rem; color: var(--violet-d); }
.lvl-count { font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.lvl-card .bar > span { background: linear-gradient(90deg, var(--violet), var(--mint)); }
.lvl-next { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
.side-count { margin: 4px 0 0; font-size: .82rem; font-weight: 800; color: var(--ink-2); }
.chan-apply { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--mint-l); color: var(--mint-d); font-weight: 800; font-size: .9rem; }
.celebrate .cel-card { width: 100%; max-width: 560px; text-align: left; margin: 16px 0 0; }
.cel-share { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 12px; }
.cel-share .btn { flex: 1 1 150px; }
.levelup .lu-kick { margin: 8px 0 0; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.levelup h1 { color: var(--violet-d); }
.cmp-box p { margin: 6px 0; font-size: .92rem; color: var(--ink-2); white-space: pre-wrap; }
.o-chal-banner { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--violet-l); color: var(--violet-d); font-size: .9rem; }
.o-view { padding: 16px 14px 40px; }

/* ---------- v4.7: correcções de contraste WCAG AA (kit de marca de 28/11/2026, brand-kit.md secção 4) ----------
   Só muda a cor do texto ou do fundo onde o par falhava; a paleta e os tokens ficam iguais.
   Tons «calculados» (#cc3f22, #0077b7, #0b7a5a, #a8a0db) vêm do kit, com a mesma matiz e só a luminosidade alterada. */
.btn.bad { --c: var(--bad-d); --cd: color-mix(in srgb, var(--bad-d) 72%, #000); }
.res-bad .res-ico, .o-head.bad .res-ico, .crit li.miss .mk { background: var(--bad-d); }
.btn[disabled], .btn.is-disabled { color: var(--ink-2); }
.u-violet .unit-banner small { opacity: 1; }
.node.done .node-btn { color: var(--gold-ink); }
.chip.streak { color: #cc3f22; } .chip.xp { color: var(--gold-ink); } .chip.energy { color: #0077b7; }
.tile.t-xp span { color: var(--gold-ink); }
.perks li::before { background: var(--ok); color: var(--ink); }
.win2 span { color: #0b7a5a; }
.res-ok .res-ico, .o-head .res-ico, .crit .ok .mk, .crit li.ok .mk { color: var(--ink); }
.crit li.partial .mk { color: var(--gold-ink); }
.gain { color: var(--ink); }
.celebrate h1, .f-blitz-end h1 { color: var(--gold-ink); }
.o-xp { color: #0b7a5a; }
.o-head.bad .o-xp { color: var(--bad-d); }
.ld-keys, .agenda { background: linear-gradient(135deg, #2a1d66, #6c4cf1); }
.agenda small { color: #fff; }
.u-coral .start-bubble, .u-sky .start-bubble, .u-mint .start-bubble { color: var(--ink); }
.u-sun .start-bubble { color: var(--gold-ink); }
.u-rose .start-bubble { color: var(--rose-d); }
.app.feed .f-count { color: #a8a0db; }
.f-modelnote, .f-modelhint, .cmp.model small { color: var(--gold-ink); }
.levelup h1 { color: var(--violet-d); }

/* v4.7: missões de fim de módulo e check-in */
.celebrate .mission-box { width: 100%; max-width: 560px; text-align: left; margin: 12px 0 0; }
.mission-box p { margin: 6px 0; font-size: .92rem; color: var(--ink-2); }
.mission-box p b { color: var(--ink); }
.mission-note { font-size: .82rem; color: var(--ink-2); }
.mission-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mission-btns .btn { flex: 1 1 150px; }
.mission-card { margin: 0 14px 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--violet-l); border: 2px solid var(--line); display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.mission-card p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }
.mission-card .btn { width: auto; min-width: 150px; }
.ci-main { padding: 16px 16px 40px; max-width: 560px; margin: 0 auto; }
.ci-main h2 { margin: 6px 0 12px; }
.ci-main h3 { margin: 16px 0 8px; font-size: 1rem; }
.ci-opts { display: grid; gap: 8px; }
.ci-opt { text-align: left; min-height: 52px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); font-weight: 800; color: var(--ink); }
.ci-opt.sel { border-color: var(--violet); background: var(--violet-l); box-shadow: 0 4px 0 var(--violet); }
.ci-main .btn { margin-top: 12px; }

/* Lançamento: paywall com Grátis (informativo) e Premium (anual pré-selecionado, mensal como alternativa) */
.plan .seg.bill { margin: 10px 0 8px; gap: 6px; flex-wrap: nowrap; }
.plan .seg.bill button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 8px; font-size: .9rem; }
.plan .seg.bill button small { font-size: .68rem; font-weight: 800; color: var(--violet-d); letter-spacing: .02em; }
.plan .vat { margin: 2px 0 6px !important; font-size: .8rem !important; font-weight: 700; color: var(--ink-2) !important; }
.app[data-view="checkout"] .plans { display: block; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Teste gratuito: feedback no fim de cada módulo, ligações de feedback e privacidade */
.celebrate .fb-box { width: 100%; max-width: 560px; text-align: left; margin: 12px 0 0; }
.fb-sub { margin: 4px 0 8px; font-size: .92rem; color: var(--ink-2); }
.fb-rate { display: flex; gap: 8px; margin-bottom: 8px; }
.fb-star { flex: 1 1 0; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--violet-d); font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.fb-star.sel { background: var(--violet); border-color: var(--violet-d); color: #fff; }
.fb-star:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.fb-comment { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); resize: vertical; margin-bottom: 8px; }
.fb-send { text-decoration: none; }
.fb-send[aria-disabled="true"] { background: var(--gray); box-shadow: 0 4px 0 var(--gray-d); color: #6a6685; pointer-events: none; }
.foot-links { text-align: center; }
.foot-links a { display: inline-block; width: auto; min-height: 44px; line-height: 44px; margin: 0 10px; font-weight: 800; color: var(--violet-d); text-decoration: underline; }
.set-row a.btn { text-decoration: none; margin-bottom: 8px; }
.set-row a.linkbtn { display: block; text-align: center; font-weight: 800; color: var(--violet-d); text-decoration: underline; }

/* Beta pública: selo no cabeçalho, perguntas do fim do módulo, mensagem "mais módulos em breve" */
.badge-beta-app { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6c4cf1; background: #efeafe; border: 1px solid #cdbffa; vertical-align: middle; }
.fb-q { margin: 14px 0 6px; }
.fb-qt { margin: 0 0 8px; font-weight: 600; }
.fb-ends { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; opacity: .75; margin-top: 4px; }
.fb-gen { margin-top: 22px; }
.fb-opt { flex: 1 1 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid #d9d4f2; background: #fff; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.fb-opt.sel { border-color: #6c4cf1; background: #efeafe; }
.beta-more { margin: 14px 0; }
.beta-done { margin: 18px 0 6px; }
.top .icon-btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .brand .logo-mark { width: 118px; height: auto; }
  .badge-beta-app { margin-left: 4px; padding: 0 5px; font-size: .56rem; letter-spacing: .04em; }
}
/* Telefones estreitos (320, 360 e 390): o selo Beta não pode empurrar a roda dentada para fora. 1440 fica de fora. */
@media (max-width: 400px) {
  .top { gap: 2px; padding: 8px 6px; }
  .brand .logo-mark { width: 96px; height: auto; }
  .badge-beta-app { margin-left: 2px; padding: 0 4px; font-size: .5rem; letter-spacing: 0; }
  .top .chip { min-height: 32px; padding: 0 5px; font-size: .8rem; gap: 2px; }
  .top .chip svg { width: 16px; height: 16px; }
  .top .icon-btn { width: 36px; height: 36px; }
  .top .icon-btn svg { width: 20px; height: 20px; }
  .top .brand { margin-right: 4px; }
}
@media (max-width: 339px) {
  .top { gap: 1px; padding: 8px 4px; }
  .brand .logo-mark { width: 84px; }
  .badge-beta-app { padding: 0 3px; }
  .top .chip { padding: 0 3px; font-size: .75rem; }
}


/* Feedback da beta: pedido no fim de cada lição, caixa do módulo em destaque, lembrete e botão fixo «Dar feedback» */
.fb-lesson { margin-top: 12px; }
.fb-box-mod { border: 2px solid #6c4cf1; background: #f6f2ff; box-shadow: 0 8px 0 #d4c8f6; padding: 20px 18px 18px; margin-top: 16px; }
.fb-box-mod > h3 { font-size: 1.2rem; }
.fb-lead { margin: 0 0 8px; font-weight: 700; }
.fb-remind { margin: 16px 16px 8px; padding: 14px 16px; border-radius: 18px; background: #efeafe; border: 1px solid #cdbffa; }
.fb-remind h3 { margin: 0 0 6px; font-size: 1rem; }
.fb-remind p { margin: 0; }
.fb-remind-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fab-feedback { position: fixed; z-index: 36; left: auto; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 800; letter-spacing: .01em; text-decoration: none; color: #fff; background: #6c4cf1; box-shadow: 0 4px 14px rgba(80, 50, 180, .3); white-space: nowrap; }
html:has(.app.with-tabs) .fab-feedback { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
html:has(.l-foot) .fab-feedback { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
html.kb-open .fab-feedback,
html:has([data-testid="settings"]) .fab-feedback { display: none; }
@media (max-width: 400px) {
  .fab-feedback { font-size: .8rem; min-height: 36px; padding: 0 12px; }
}
@media (min-width: 900px) {
  .fab-feedback { left: auto; right: 28px; bottom: 28px; }
  html:has(.app.with-tabs) .fab-feedback,
  html:has(.l-foot) .fab-feedback { left: auto; right: 28px; bottom: 28px; }
  .shell ~ .fab-feedback,
  body:has(.shell) .fab-feedback { right: 28px; }
}

/* ---------- Contas (beta pública): só aparece quando ST_CONFIG.accounts.enabled ---------- */
.acct-box { text-align: left; max-width: 520px; }
.acct-box h1 { text-align: center; }
.acct-box .locale-sub { text-align: center; }
.acct-tabs { margin-bottom: 18px; }
.acct-lbl { display: block; font-weight: 800; margin: 14px 0 6px; }
.acct-input { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); color-scheme: light; -webkit-text-fill-color: var(--ink); }
.acct-input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.acct-input::placeholder { color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); opacity: 1; }
.acct-input::-webkit-input-placeholder { color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); opacity: 1; }
.acct-input:-webkit-autofill, .acct-input:-webkit-autofill:hover, .acct-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset; background-color: var(--paper);
}
.fb-comment { color: var(--ink); background: var(--paper); color-scheme: light; -webkit-text-fill-color: var(--ink); }
.fb-comment::placeholder { color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); opacity: 1; }
.acct-code { letter-spacing: .35em; text-align: center; font-size: 1.5rem; font-weight: 800; }
.acct-chk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.acct-chk input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--violet); }
.acct-chk a { color: var(--violet-d); font-weight: 800; }
.acct-err { color: var(--bad-d); font-weight: 800; margin: 12px 0 0; }
.acct-box .btn { margin-top: 14px; }
.acct-danger { color: var(--bad-d); border-color: var(--bad); }
.fb-bg .fb-sheet h2 { margin: 0 0 6px; }
.fb-bg .fb-sub { margin: 0 0 8px; color: var(--ink-2); }
.fb-bg .fb-rate { display: flex; gap: 8px; margin: 10px 0 0; }
.fb-bg .fb-comment { margin-top: 12px; }
.fb-bg .fb-skip { margin-top: 6px; font-weight: 700; color: var(--ink-2); }

/* ---------- Onboarding da beta (8 ecrãs) ---------- */
.onb-prog { display: flex; gap: 6px; margin: 0 0 18px; }
.onb-prog span { flex: 1; height: 6px; border-radius: 3px; background: var(--gray); }
.onb-prog span.on { background: var(--violet); }
.onb-group { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.onb-group legend { padding: 0; }
.onb-hint { margin: 0 0 8px; text-align: left; }
.onb-mini { display: block; font-weight: 700; font-size: .92rem; margin: 10px 0 6px; color: var(--ink-2); }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip { min-height: 46px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.onb-chip.sel, .onb-chip[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-l); color: var(--violet-d); }
.onb-chip:focus-visible, .acct-chk input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.onb-wide { flex: 1 1 100%; text-align: left; font-weight: 700; }
.onb-social .onb-chip { flex: 1 1 120px; }
@media (max-width: 420px) { .onb-chip { padding: 8px 12px; } .acct-box { padding-left: 18px; padding-right: 18px; } }

/* Saudação da home e botão Voltar do onboarding */
.home-greet { margin: 10px 16px 0; font-size: 1.05rem; font-weight: 700; color: var(--ink, inherit); }
.onb-back { display: inline-block; width: auto; margin: 0 0 8px; padding: 0 4px 0 0; min-height: 44px; font-weight: 700; text-align: left; }
.acct-err-inline { margin: 2px 0 10px; }


/* Redesenho mobile: logótipo na página de registo e botão em maiúsculas e minúsculas */
.onb-logo { display: flex; justify-content: center; align-items: center; min-height: 44px; margin: 0 0 16px; }
.onb-logo .logo-mark { height: 22px; width: auto; max-width: none; flex: none; }
.locale-screen .btn, .acct-box .btn {
  text-transform: none;
  letter-spacing: 0;
}
.acct-chk { min-height: 48px; align-items: center; }
.acct-chk input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; }

