/* Simulador Rota ANAC · Próxima Rota
   Ideia de layout: céu noturno fixo ao fundo; superfícies de cabine em azul-marinho;
   um único elemento claro por tela (cartão de embarque em papel). Tema único, escuro por escolha. */
:root {
  color-scheme: dark;
  --night: #06122B; --night-2: #081732; --cabin: #0B1B3A; --cabin-2: #10244B; --cabin-3: #173060;
  --line: rgba(150, 180, 255, .14); --line-2: rgba(150, 180, 255, .26);
  --blue: #1E6BFF; --blue-2: #3D82FF; --sky: #7FB0FF; --ice: #D6E4FF;
  --amber: #FFB020; --gold: #FFC56B; --ok: #2ED3A0; --bad: #FF4D6D;
  --paper: #F3F6FD; --paper-2: #E4EAF8; --ink: #0B1B3A; --ink-2: #44557A;
  --tx: #EEF3FF; --tx-2: #B4C2E0; --tx-3: #8496BD;
  --b1: #FF6F61; --b2: #FFB020; --b3: #2ED3A0; --b4: #4D94FF;
  --f-display: "Bricolage Grotesque", "Poppins", "Trebuchet MS", sans-serif;
  --f-body: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
  --side: 268px;
  --shadow: 0 18px 50px -18px rgba(0, 6, 24, .8);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--night); color: var(--tx); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
svg { display: block; flex: none; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx-2); } .dim { color: var(--tx-3); }
.eyebrow { font: 500 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tx-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- fundo: céu ---------- */
.skybg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(30, 107, 255, .34), transparent 62%),
    radial-gradient(900px 480px at 0% 108%, rgba(30, 107, 255, .16), transparent 60%),
    linear-gradient(180deg, #050E22 0%, var(--night) 40%, #071634 100%); }
.skybg .stars { position: absolute; inset: 0; height: 60%; }

/* ---------- casca ---------- */
#app { min-height: 100%; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; padding: 30px clamp(20px, 3.2vw, 48px) 72px; }
.wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.wrap.narrow { max-width: 820px; }

/* barra lateral */
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 24px 16px 18px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, rgba(9, 23, 52, .92), rgba(6, 16, 38, .92)); border-right: 1px solid var(--line); overflow-y: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; padding: 4px 8px; }
.wm-t { display: flex; flex-direction: column; gap: 3px; }
.wm-t b { font: 700 13px/1 var(--f-body); letter-spacing: .26em; color: #fff; }
.wm-t i { font: 500 11px/1 var(--f-mono); font-style: normal; letter-spacing: .06em; color: var(--sky); }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side .grp { font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; color: var(--tx-3); padding: 14px 12px 8px; }
.nv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--tx-2); font-weight: 600; font-size: 14.5px; position: relative; transition: background .18s, color .18s, transform .18s var(--ease); width: 100%; }
.nv:hover { background: rgba(120, 160, 255, .08); color: #fff; transform: translateX(2px); }
.nv[aria-current="page"] { background: linear-gradient(90deg, rgba(30, 107, 255, .32), rgba(30, 107, 255, .06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(90, 150, 255, .35); }
.nv[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); box-shadow: 0 0 14px var(--amber); }
.nv .badge { margin-left: auto; }
.badge { font: 600 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 20px; background: rgba(255, 176, 32, .16); color: var(--gold); }
.side .rank { margin-top: auto; padding: 14px; border-radius: 18px; background: var(--cabin); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; width: 100%; }
.rank .av { grid-row: span 2; }
.rank b { font-size: 14px; } .rank small { color: var(--tx-3); font-size: 12px; }
.rank .bar { grid-column: 1 / -1; margin-top: 8px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), #0F3FA8); font: 700 15px/1 var(--f-display); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.bar { height: 6px; border-radius: 6px; background: rgba(150, 180, 255, .16); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width .8s var(--ease); }
.bar.blue > i { background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* topo + dock (mobile) */
.top { display: none; }
.dock { display: none; }
@media (max-width: 1023px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 14px 16px 128px; }
  .top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 16px; margin: 0;
    background: linear-gradient(180deg, rgba(6, 18, 43, .96), rgba(6, 18, 43, .82)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .top .wordmark { padding: 0; gap: 9px; margin-right: auto; }
  .top .wm-t b { font-size: 11.5px; } .top .wm-t i { font-size: 10px; }
  .pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 20px; background: var(--cabin-2); border: 1px solid var(--line); font: 600 13px/1 var(--f-body); }
  .pill svg { color: var(--amber); }
  .top .av { width: 36px; height: 36px; font-size: 14px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center; position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); width: min(430px, calc(100% - 24px)); height: 68px; padding: 0 8px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(23, 48, 96, .92), rgba(11, 27, 58, .96)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(150, 185, 255, .28); box-shadow: 0 20px 44px -10px rgba(0, 4, 20, .9), inset 0 1px 0 rgba(255, 255, 255, .1); }
  .dk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; border-radius: 18px; color: var(--tx-3); font: 600 10.5px/1 var(--f-body); letter-spacing: .01em; position: relative; transition: color .18s; }
  .dk[aria-current="page"] { color: #fff; }
  .dk[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--amber); }
  .dk[aria-current="page"] svg { color: var(--sky); }
  .fly { justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 25%, #5C9BFF, var(--blue) 55%, #0E47C4); border: 4px solid var(--night); box-shadow: 0 10px 24px -4px rgba(30, 107, 255, .75), inset 0 2px 0 rgba(255, 255, 255, .3); transition: transform .2s var(--ease); }
  .fly:active { transform: scale(.94); }
  .fly svg { transform: rotate(-45deg); }
  .fly-l { position: absolute; left: 50%; transform: translateX(-50%); bottom: 9px; font: 700 10.5px/1 var(--f-body); color: #fff; pointer-events: none; }
}
.focus-mode .side, .focus-mode .top, .focus-mode .dock { display: none; }
.focus-mode .shell { display: block; }
.focus-mode .main { padding-bottom: 40px; }

/* ---------- superfícies ---------- */
.panel { background: linear-gradient(180deg, rgba(16, 36, 75, .78), rgba(11, 27, 58, .78)); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.panel.flat { background: rgba(11, 27, 58, .6); }
.ptitle { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ptitle h2 { font-size: 20px; }
.link { color: var(--sky); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: #fff; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(28px, 4.4vw, 40px); }
.pagehead p { color: var(--tx-2); max-width: 60ch; margin-top: 8px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap-x { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 15px; transition: transform .16s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.pri { background: linear-gradient(180deg, #3C84FF, var(--blue)); color: #fff; box-shadow: 0 12px 26px -10px rgba(30, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn.pri:hover { box-shadow: 0 16px 32px -10px rgba(30, 107, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .28); transform: translateY(-1px); }
.btn.gold { background: linear-gradient(180deg, var(--gold), var(--amber)); color: #2A1A00; box-shadow: 0 12px 26px -12px rgba(255, 176, 32, .8); }
.btn.ghost { border: 1.5px solid var(--line-2); color: var(--tx); }
.btn.ghost:hover { border-color: var(--sky); background: rgba(120, 160, 255, .08); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 15px; font-size: 13.5px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 20px; font: 600 12px/1 var(--f-body); background: rgba(150, 180, 255, .12); color: var(--tx-2); white-space: nowrap; }
.chip.b { background: color-mix(in srgb, var(--bc) 18%, transparent); color: var(--bc); }
.chip.ok { background: rgba(46, 211, 160, .16); color: var(--ok); } .chip.bad { background: rgba(255, 77, 109, .16); color: var(--bad); } .chip.gold { background: rgba(255, 176, 32, .16); color: var(--gold); }
.bc1 { --bc: var(--b1); } .bc2 { --bc: var(--b2); } .bc3 { --bc: var(--b3); } .bc4 { --bc: var(--b4); }

/* ---------- Lia ---------- */
.lia-av { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--gold); }
.lia-av svg { display: block; }
.speech { position: relative; background: var(--cabin-2); border: 1px solid var(--line-2); border-radius: 20px 20px 20px 6px; padding: 14px 16px; font-size: 15px; color: var(--tx); max-width: 46ch; }
.speech b { color: var(--gold); }
.lia-wave { transform-origin: 170px 140px; animation: wave 2.4s var(--ease) infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(12deg); } 80% { transform: rotate(-6deg); } 90% { transform: rotate(8deg); } }
.lia-confetti { animation: pop 1.6s var(--ease) infinite alternate; transform-origin: 100px 60px; }
@keyframes pop { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }

/* ---------- Painel: cena ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 30px 32px 96px; isolation: isolate;
  background: linear-gradient(180deg, #0A2A6E 0%, #1552C8 58%, #5C9DFF 92%, #FFC56B 135%); border: 1px solid rgba(150, 190, 255, .3); }
.hero .stars { position: absolute; inset: 0; height: 55%; z-index: -1; }
.hero .cloud { position: absolute; z-index: -1; }
.hero .c1 { right: 30%; top: 22px; animation: drift 38s linear infinite alternate; } .hero .c2 { right: 190px; bottom: 96px; } .hero .c3 { left: 34%; bottom: 20px; animation: drift 50s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.hero .plane-art { position: absolute; right: 230px; top: 26px; z-index: -1; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-1.500deg); } }
.hero .lia-art { position: absolute; right: 40px; bottom: 58px; z-index: 0; filter: drop-shadow(0 10px 20px rgba(0, 10, 40, .4)); }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .speech { margin-top: 16px; background: rgba(6, 18, 43, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-color: rgba(190, 215, 255, .3); max-width: 52ch; }
.hero .eyebrow { color: #CFE0FF; margin-bottom: 12px; }
.lift { margin-top: -84px; position: relative; z-index: 2; padding: 0 18px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.sidecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

@media (max-width: 720px) {
  .hero { padding: 22px 20px 96px; border-radius: 26px; }
  .hero .plane-art { right: -30px; top: 34px; width: 130px; height: auto; }
  .hero .c1, .hero .c3 { display: none; } .hero .c2 { right: -40px; bottom: 150px; width: 150px; height: auto; opacity: .5 !important; }
  .hero .eyebrow { max-width: calc(100% - 90px); line-height: 1.5; }
  .hero .lia-art { width: 96px; height: auto; right: 6px; bottom: 60px; }
  .hero h1 { max-width: 11ch; } .hero .speech { max-width: calc(100% - 92px); font-size: 14px; }
  .lift { padding: 0 6px; margin-top: -70px; }
  .sidecards { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}

/* cartão de embarque */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 208px; background: var(--paper); color: var(--ink); border-radius: 26px; position: relative; box-shadow: 0 30px 60px -24px rgba(0, 6, 30, .9), 0 2px 0 rgba(255, 255, 255, .6) inset; }
.pass-main { padding: 22px 24px 22px; min-width: 0; }
.pass-stub { padding: 22px 20px; border-left: 2px dashed #B8C5E2; position: relative; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #F3F6FD, #E8EEFB); border-radius: 0 26px 26px 0; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: #0B2152; }
.pass-stub::before { top: -12px; } .pass-stub::after { bottom: -12px; }
.pass .lbl { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; color: #6B7B9E; text-transform: uppercase; }
.pass .val { font: 600 14px/1.2 var(--f-body); margin-top: 5px; color: var(--ink); }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1.5px solid #D5DDF0; }
.pass-head .brand { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--f-body); letter-spacing: .2em; }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 16px 0 6px; }
.pass-route .code { font: 800 clamp(34px, 6vw, 50px)/.95 var(--f-display); letter-spacing: -.03em; }
.pass-route .code small { display: block; font: 600 12px/1.25 var(--f-body); letter-spacing: 0; color: var(--ink-2); margin-top: 6px; max-width: 20ch; }
.pass-route .to { text-align: right; } .pass-route .to small { margin-left: auto; }
.pass-line { height: 2px; background-image: linear-gradient(90deg, #9FB0D4 50%, transparent 0); background-size: 10px 2px; position: relative; min-width: 40px; }
.pass-line svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 0 6px; box-sizing: content-box; }
.pass-fields { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px; margin: 14px 0 4px; }
.tasks { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #DCE3F3; width: 100%; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.task:hover { border-color: var(--blue); transform: translateX(3px); box-shadow: 0 6px 16px -10px rgba(30, 107, 255, .7); }
.task .tk { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #A9B8D8; display: grid; place-items: center; color: transparent; flex: none; }
.task.done .tk { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.done .tt { text-decoration: line-through; color: #7A89AA; }
.task .tt { font-weight: 650; font-size: 14.5px; line-height: 1.25; } .task .ts { font-size: 12.5px; color: #6B7B9E; }
.task .go { margin-left: auto; color: var(--blue); flex: none; }
@media (min-width: 1100px) { .lift .tasks { display: grid; grid-template-columns: 1fr 1fr; } }
.pass-cta { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pass-cta .hint { font-size: 13px; color: var(--ink-2); }
.stub-big { font: 800 44px/.9 var(--f-display); letter-spacing: -.03em; }
.stub-big small { font: 600 13px/1 var(--f-body); letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.barcode { width: 100%; height: 40px; color: var(--ink); margin-top: auto; }
.pass-stub .mono { font-size: 11px; color: #6B7B9E; }
@media (max-width: 720px) {
  .pass { grid-template-columns: 1fr; }
  .pass-main { padding: 18px 16px 16px; }
  .pass-stub { border-left: 0; border-top: 2px dashed #B8C5E2; border-radius: 0 0 26px 26px; flex-direction: row; align-items: center; padding: 14px 16px; }
  .pass-stub::before, .pass-stub::after { top: -13px; bottom: auto; } .pass-stub::before { left: -12px; } .pass-stub::after { left: auto; right: -12px; }
  .pass-stub .barcode { width: 96px; margin: 0 0 0 auto; }
  .pass-fields { grid-template-columns: repeat(2, 1fr); }
  .stub-big { font-size: 34px; } .stub-x, .pass-stub > .mono { display: none; }
}
.stat { background: linear-gradient(180deg, rgba(23, 48, 96, .95), rgba(11, 27, 58, .95)); border: 1px solid var(--line-2); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.stat .ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 176, 32, .14); color: var(--gold); flex: none; }
.stat .ico.blue { background: rgba(77, 148, 255, .16); color: var(--sky); } .stat .ico.green { background: rgba(46, 211, 160, .14); color: var(--ok); }
.stat b { font: 700 22px/1 var(--f-display); display: block; } .stat span { font-size: 12.5px; color: var(--tx-3); line-height: 1.2; display: block; margin-top: 3px; }
@media (max-width: 720px) { .stat { flex-direction: column; align-items: flex-start; padding: 12px; gap: 8px; } .stat .ico { width: 34px; height: 34px; } .stat b { font-size: 19px; } }

/* mapa de rota */
.route { position: relative; }
.route svg.map { width: 100%; height: auto; overflow: visible; }
.route .trail { stroke: rgba(160, 190, 255, .3); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; fill: none; }
.route .flown { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 6px rgba(255, 176, 32, .7)); transition: stroke-dashoffset 1.6s var(--ease); }
.route text { font-family: var(--f-body); fill: var(--tx-2); }
.route .code { font: 700 15px var(--f-mono); fill: #fff; letter-spacing: .08em; }
.route .rplane { transition: transform 1.6s var(--ease); }
.stop { cursor: pointer; } .stop:hover circle.halo { opacity: .35; }
.stop circle.halo { opacity: .16; transition: opacity .2s; }

/* janelas de prontidão */
.wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.win { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px 10px 16px; border-radius: 22px; background: rgba(11, 27, 58, .6); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; width: 100%; }
.win:hover { transform: translateY(-3px); border-color: var(--bc); }
.port, .port .glass, .port .shade, .port .mini { display: block; }
.port { position: relative; width: 92px; height: 124px; border-radius: 46px / 50px; background: #DDE6F8; padding: 8px; box-shadow: inset 0 -5px 0 #B5C3E0, inset 0 3px 0 #fff, 0 12px 20px -10px rgba(0, 0, 0, .6); }
.port .glass { position: relative; width: 100%; height: 100%; border-radius: 38px / 42px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 55%, #0B2A6B) 0%, color-mix(in srgb, var(--bc) 85%, #fff) 70%, #FFE2B0 115%); box-shadow: inset 0 0 0 2px rgba(6, 18, 43, .5); }
.port .glass .cloud { position: absolute; left: -8px; bottom: 10px; } .port .glass .cl2 { left: 34px; bottom: 34px; }
.port .glass .mini { position: absolute; right: 9px; top: 16px; transform: rotate(-12deg); }
.port .shade { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: repeating-linear-gradient(180deg, #EEF2FB 0 7px, #D3DCEF 7px 8px); border-bottom: 5px solid #AEBBD8; transition: height 1.4s var(--ease); }
.win .pct { font: 800 26px/1 var(--f-display); } .win .pct small { font: 600 13px var(--f-body); color: var(--tx-3); }
.win .nm { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--bc); }
.win .sub { font-size: 12.5px; color: var(--tx-3); line-height: 1.3; }
@media (max-width: 720px) { .wins { grid-template-columns: repeat(2, 1fr); gap: 10px; } .port { width: 78px; height: 104px; } }

/* listas */
.item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; background: rgba(120, 160, 255, .06); border: 1px solid transparent; width: 100%; transition: background .18s, border-color .18s, transform .18s var(--ease); }
button.item:hover, a.item:hover { background: rgba(120, 160, 255, .12); border-color: var(--line-2); transform: translateX(3px); }
.item .tag { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 600 13px/1 var(--f-mono); background: color-mix(in srgb, var(--bc, var(--blue)) 20%, transparent); color: var(--bc, var(--sky)); flex: none; }
.item .t { font-weight: 650; font-size: 15px; line-height: 1.25; } .item .s { font-size: 13px; color: var(--tx-3); margin-top: 2px; }
.item .end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; color: var(--tx-3); }
.list { display: flex; flex-direction: column; gap: 8px; }
.empty { display: flex; align-items: center; gap: 16px; padding: 10px 4px; color: var(--tx-2); font-size: 14.5px; }

/* ---------- Plano ---------- */
.weeks { display: flex; flex-direction: column; gap: 22px; }
.week h3 { font: 500 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--tx-3); text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.week h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.day { position: relative; display: grid; grid-template-columns: 58px 1fr; border-radius: 18px; background: rgba(16, 36, 75, .7); border: 1px solid var(--line); overflow: hidden; min-height: 96px; width: 100%; transition: transform .18s var(--ease), border-color .18s; }
.day:hover { transform: translateY(-2px); border-color: var(--line-2); }
.day .dt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: color-mix(in srgb, var(--kc, var(--blue)) 16%, transparent); border-right: 1.5px dashed var(--line-2); color: var(--kc, var(--sky)); }
.day .dt b { font: 800 24px/1 var(--f-display); color: #fff; } .day .dt span { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.day .bd { padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.day .kd { font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kc, var(--sky)); }
.day .tt { font-weight: 650; font-size: 14px; line-height: 1.3; }
.day .ss { font-size: 12.5px; color: var(--tx-3); }
@media (min-width: 1240px) {
  .days { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 10px; }
  .day { grid-template-columns: 1fr; grid-template-rows: auto 1fr; grid-column: var(--col); min-height: 150px; }
  .day .dt { flex-direction: row; justify-content: flex-start; gap: 7px; padding: 9px 12px; border-right: 0; border-bottom: 1.5px dashed var(--line-2); }
  .day .dt b { font-size: 18px; order: -1; }
  .day .bd { padding: 11px 12px 14px; } .day .tt { font-size: 13.5px; }
  .day.today::after { top: 9px; right: 8px; }
}
.day.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 30px -16px rgba(255, 176, 32, .7); }
.day.today::after { content: "HOJE"; position: absolute; right: 10px; top: 10px; font: 600 10px/1 var(--f-mono); letter-spacing: .14em; color: #2A1A00; background: var(--gold); padding: 4px 7px; border-radius: 10px; }
.day.done { opacity: .62; } .day.done .tt { text-decoration: line-through; }
.day.late { border-color: rgba(255, 77, 109, .5); }
.day .dn { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #06122B; display: grid; place-items: center; }
.k-estudo { --kc: var(--sky); } .k-treino { --kc: var(--gold); } .k-check, .k-completo { --kc: var(--b1); } .k-revisao { --kc: var(--ok); } .k-vespera { --kc: #C9D6F2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--tx-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--kc); margin-right: 6px; }
.banner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(90deg, rgba(255, 176, 32, .18), rgba(255, 176, 32, .05)); border: 1px solid rgba(255, 176, 32, .4); flex-wrap: wrap; }
.banner.bad { background: linear-gradient(90deg, rgba(255, 77, 109, .18), rgba(255, 77, 109, .04)); border-color: rgba(255, 77, 109, .45); }
.banner p { flex: 1; min-width: 200px; font-size: 14.5px; }

/* ---------- Aulas ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 650; font-size: 14px; color: var(--tx-2); border: 1.5px solid var(--line); display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--bc, var(--sky)); }
.tab[aria-selected="true"] { background: color-mix(in srgb, var(--bc, var(--blue)) 20%, transparent); border-color: var(--bc, var(--blue)); color: #fff; }
.bhead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r-l); background: linear-gradient(100deg, color-mix(in srgb, var(--bc) 26%, var(--cabin)), var(--cabin) 70%); border: 1px solid color-mix(in srgb, var(--bc) 40%, transparent); }
.bhead .big { font: 800 44px/1 var(--f-display); color: var(--bc); letter-spacing: -.03em; }
.bhead h2 { font-size: 20px; } .bhead p { font-size: 14px; color: var(--tx-2); margin-top: 4px; }
@media (max-width: 720px) { .bhead { grid-template-columns: auto 1fr; } .bhead .ring { display: none; } .bhead .big { font-size: 34px; } }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cap { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(16, 36, 75, .6); border: 1px solid var(--line); width: 100%; transition: transform .18s var(--ease), border-color .18s, background .18s; }
.cap:hover { transform: translateY(-2px); border-color: var(--bc); background: rgba(16, 36, 75, .95); }
.cap .no { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 600 15px/1 var(--f-mono); background: color-mix(in srgb, var(--bc) 18%, transparent); color: var(--bc); position: relative; }
.cap.done .no::after { content: ""; position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306122B' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 0 3px var(--cabin); }
.cap .t { font-weight: 650; font-size: 15px; line-height: 1.25; } .cap .s { font-size: 12.5px; color: var(--tx-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.meter { width: 44px; height: 6px; border-radius: 4px; background: rgba(150, 180, 255, .16); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--mc, var(--ok)); border-radius: 4px; }

/* aula */
.lesson { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; }
.lhead { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 26px 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--bc) 34%, #0B1B3A), #0B1B3A 75%); border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent); }
.lhead .cloud { position: absolute; right: -30px; top: 18px; opacity: .1; }
.lhead .no { font: 800 64px/.9 var(--f-display); color: var(--bc); letter-spacing: -.04em; }
.lhead h1 { font-size: clamp(26px, 4.4vw, 36px); margin-top: 10px; max-width: 20ch; }
.lhead .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-2); font-weight: 600; font-size: 14px; min-height: 44px; }
.back:hover { color: #fff; }
.prose { font-size: 16.5px; line-height: 1.68; color: #DCE5F8; }
.prose p { margin: 0 0 12px; } .prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: #fff; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.prose li::marker { color: var(--bc, var(--sky)); font-weight: 700; }
.lsec h3 { font-size: 21px; margin: 6px 0 12px; display: flex; gap: 12px; align-items: baseline; }
.lsec h3 span { font: 500 12px var(--f-mono); color: var(--bc); letter-spacing: .1em; }
.ltable { overflow-x: auto; margin: 4px 0 14px; border-radius: 16px; border: 1px solid var(--line-2); }
.ltable table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; min-width: 440px; }
.ltable th { text-align: left; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; color: var(--bc, var(--sky)); padding: 12px 14px; background: rgba(120, 160, 255, .1); }
.ltable td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #DCE5F8; }
.ltable td:first-child { font-weight: 650; color: #fff; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 20px; margin: 4px 0 14px; }
.callout .who { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; margin-bottom: 7px; }
.callout .prose { font-size: 15.5px; }
.callout.mac { background: linear-gradient(120deg, rgba(255, 176, 32, .17), rgba(255, 176, 32, .05)); border: 1px solid rgba(255, 176, 32, .38); } .callout.mac .who { color: var(--gold); }
.callout.trap { background: linear-gradient(120deg, rgba(255, 77, 109, .16), rgba(255, 77, 109, .04)); border: 1px solid rgba(255, 77, 109, .4); } .callout.trap .who { color: var(--bad); }
.callout.note { background: rgba(77, 148, 255, .1); border: 1px solid rgba(77, 148, 255, .32); } .callout.note .who { color: var(--sky); }
.callout .ci { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.callout.trap .ci { background: rgba(255, 77, 109, .2); color: var(--bad); } .callout.note .ci { background: rgba(77, 148, 255, .2); color: var(--sky); }
.figure { background: var(--paper); border-radius: 20px; padding: 16px 16px 10px; margin: 4px 0 14px; color: var(--ink); }
.figure svg { width: 100%; height: auto; max-height: 300px; max-width: 560px; margin: 0 auto; }
.figure .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.figure figcaption, .figure .cap-t { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.minute { border-radius: var(--r-l); padding: 20px 22px; background: var(--paper); color: var(--ink); position: relative; }
.minute h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.minute ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.minute li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.45; font-weight: 500; }
.minute li svg { color: var(--blue); margin-top: 1px; }
.minute .kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.minute .kw span { font: 500 12.5px/1 var(--f-mono); padding: 8px 10px; border-radius: 10px; background: #fff; border: 1.5px solid #D5DDF0; }
.lsteps { display: flex; flex-direction: column; gap: 8px; }
.stick { position: sticky; bottom: 16px; z-index: 5; display: flex; gap: 10px; padding: 10px; border-radius: 22px; background: rgba(11, 27, 58, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.stick .btn { flex: 1; }
@media (max-width: 1023px) { .stick { bottom: 96px; } .focus-mode .stick { bottom: 14px; } }

/* ---------- Questões ---------- */
.session { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.sbar { display: flex; align-items: center; gap: 12px; }
.sbar .x { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cabin-2); border: 1px solid var(--line); color: var(--tx-2); flex: none; }
.sbar .x:hover { color: #fff; border-color: var(--line-2); }
.sbar .prog { flex: 1; } .sbar .cnt { font: 500 13px/1 var(--f-mono); color: var(--tx-2); white-space: nowrap; }
.timer { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--cabin-2); border: 1px solid var(--line-2); font: 500 16px/1 var(--f-mono); }
.timer.low { color: var(--bad); border-color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.qcard { background: linear-gradient(180deg, rgba(16, 36, 75, .9), rgba(11, 27, 58, .9)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3.4vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.qmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qstem { font: 600 clamp(19px, 2.800vw, 23px)/1.36 var(--f-display); letter-spacing: -.01em; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 13px 15px; min-height: 60px; border-radius: 18px; border: 1.5px solid var(--line-2); background: rgba(120, 160, 255, .05); font-size: 16px; line-height: 1.35; transition: transform .15s var(--ease), border-color .15s, background .15s; width: 100%; }
.opt .k { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 500 14px/1 var(--f-mono); background: rgba(150, 180, 255, .14); color: var(--tx-2); transition: all .15s; }
.opt:not([disabled]):hover { border-color: var(--sky); background: rgba(120, 160, 255, .12); transform: translateX(4px); }
.opt.sel { border-color: var(--blue); background: rgba(30, 107, 255, .2); } .opt.sel .k { background: var(--blue); color: #fff; }
.opt.right { border-color: var(--ok); background: rgba(46, 211, 160, .14); } .opt.right .k { background: var(--ok); color: #06122B; }
.opt.wrong { border-color: var(--bad); background: rgba(255, 77, 109, .13); animation: shake .4s; } .opt.wrong .k { background: var(--bad); color: #fff; }
.opt.cut { opacity: .35; text-decoration: line-through; pointer-events: none; }
.opt[disabled] { cursor: default; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.fb { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 20px; animation: rise .35s var(--ease); }
.fb.ok { background: rgba(46, 211, 160, .12); border: 1px solid rgba(46, 211, 160, .4); } .fb.no { background: rgba(255, 77, 109, .1); border: 1px solid rgba(255, 77, 109, .4); }
.fb h4 { font-size: 17px; margin-bottom: 6px; } .fb.ok h4 { color: var(--ok); } .fb.no h4 { color: var(--bad); }
.fb .prose { font-size: 15px; } .fb .src { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(6, 18, 43, .5); font-size: 14px; color: var(--tx-2); border-left: 3px solid var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qactions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.qactions .sp { flex: 1; }
@media (max-width: 560px) { .qactions .btn.pri, .qactions .btn.gold { flex: 1 1 100%; order: 3; } .qactions .sp { display: none; } .qactions .btn.ghost { flex: 1; } .sbar .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sbar .prog { min-width: 0; } }
.helpbox { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 176, 32, .1); border: 1px dashed rgba(255, 176, 32, .5); animation: rise .3s var(--ease); }
.helpbox .prose { font-size: 15px; }
.navgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.navgrid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.navgrid button { aspect-ratio: 1; text-align: center; padding: 0; border-radius: 10px; font: 500 12.5px/1 var(--f-mono); background: rgba(150, 180, 255, .1); color: var(--tx-2); border: 1.5px solid transparent; position: relative; }
.navgrid button.ans { background: rgba(30, 107, 255, .34); color: #fff; } .navgrid button.cur { border-color: var(--gold); color: #fff; }
.navgrid button.flag::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.navgrid button.r { background: rgba(46, 211, 160, .28); color: #fff; } .navgrid button.w { background: rgba(255, 77, 109, .3); color: #fff; }
.navsec { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--bc); margin: 10px 0 8px; }
.exam { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; max-width: 1100px; margin: 0 auto; align-items: start; }
.exam aside { position: sticky; top: 20px; }
@media (max-width: 960px) { .exam { grid-template-columns: 1fr; } .exam aside { position: static; } }

/* modos */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mode { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--bc, var(--blue)) 20%, var(--cabin)), var(--cabin) 70%); border: 1px solid color-mix(in srgb, var(--bc, var(--blue)) 34%, transparent); min-height: 150px; width: 100%; transition: transform .2s var(--ease), box-shadow .2s; }
.mode:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px var(--bc, var(--blue)); }
.mode .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc, var(--blue)) 24%, transparent); color: var(--bc, var(--sky)); }
.mode h3 { font-size: 19px; margin-top: 6px; } .mode p { font-size: 13.5px; color: var(--tx-2); line-height: 1.4; }
.mode .n { position: absolute; right: 16px; top: 16px; font: 500 12px var(--f-mono); color: var(--tx-3); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .lab { font-weight: 650; font-size: 13.5px; color: var(--tx-2); }
.input { height: 52px; border-radius: 15px; border: 1.5px solid var(--line-2); background: rgba(6, 18, 43, .6); padding: 0 16px; font-size: 16px; color: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 107, 255, .25); }
.input::placeholder { color: var(--tx-3); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FB0FF' stroke-width='2.500' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; min-height: 20px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); font-weight: 650; font-size: 14.5px; color: var(--tx-2); transition: all .15s; }
.seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px var(--blue); }
.seg.days button { width: 46px; padding: 0; }

/* ---------- resultado ---------- */
.result { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.rhero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(160deg, #0F3A96, #0B1B3A 80%); border: 1px solid var(--line-2); }
.rhero.pass { background: linear-gradient(160deg, #0E6B58, #0B1B3A 80%); border-color: rgba(46, 211, 160, .5); }
.rhero h1 { font-size: clamp(28px, 5vw, 42px); } .rhero p { color: var(--tx-2); margin-top: 10px; max-width: 46ch; }
.stamp { display: inline-flex; flex-direction: column; align-items: center; padding: 12px 22px; border: 4px double currentColor; border-radius: 14px; font: 800 26px/1 var(--f-display); letter-spacing: .06em; transform: rotate(-8deg); color: var(--ok); animation: stamp .5s .25s var(--ease) both; text-transform: uppercase; margin-top: 18px; }
.stamp small { font: 500 11px/1 var(--f-mono); letter-spacing: .2em; margin-top: 6px; }
.stamp.no { color: var(--gold); }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.400); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.score { font: 800 64px/1 var(--f-display); letter-spacing: -.04em; } .score small { font: 600 18px var(--f-body); color: var(--tx-3); letter-spacing: 0; }
@media (max-width: 640px) { .rhero { grid-template-columns: 1fr; padding: 22px; } .rhero .lia-art { position: absolute; right: 4px; top: 10px; width: 92px; height: auto; } .rhero h1 { max-width: 9ch; } .rhero .eyebrow { padding-right: 96px; line-height: 1.5; } .rhero .score { margin-top: 6px; } }
.sbrow { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sbrow:first-of-type { border-top: 0; }
.sbrow .sg { font: 600 14px var(--f-mono); color: var(--bc); letter-spacing: .1em; }
.gauge { position: relative; height: 12px; border-radius: 8px; background: rgba(150, 180, 255, .14); }
.gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--bc); transition: width 1s var(--ease); }
.gauge::after { content: ""; position: absolute; left: 70%; top: -5px; bottom: -5px; width: 2px; background: #fff; border-radius: 2px; }
.gauge::before { content: "70%"; position: absolute; left: 70%; top: -20px; transform: translateX(-50%); font: 500 10px var(--f-mono); color: var(--tx-3); }
.rev { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rev .st { font-weight: 650; line-height: 1.4; } .rev .an { font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; } .rev .an.ok { color: var(--ok); } .rev .an.no { color: var(--bad); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- flashcards ---------- */
.fcwrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.fcard { perspective: 1400px; height: min(360px, 52vh); width: 100%; }
.fcard .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.fcard.flip .in { transform: rotateY(180deg); }
.fcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; }
.fcard .front { background: linear-gradient(160deg, color-mix(in srgb, var(--bc) 30%, var(--cabin-2)), var(--cabin)); border: 1.5px solid color-mix(in srgb, var(--bc) 50%, transparent); box-shadow: var(--shadow); }
.fcard .backf { background: var(--paper); color: var(--ink); transform: rotateY(180deg); box-shadow: var(--shadow); }
.fcard .face h2 { font-size: clamp(22px, 4.4vw, 28px); line-height: 1.22; }
.fcard .tip { font: 500 11.5px var(--f-mono); letter-spacing: .14em; color: var(--tx-3); text-transform: uppercase; } .fcard .backf .tip { color: #6B7B9E; }
.fcard .corner { position: absolute; left: 22px; top: 20px; }
.boxes { display: flex; gap: 6px; justify-content: center; } .boxes i { width: 34px; height: 6px; border-radius: 4px; background: rgba(150, 180, 255, .18); } .boxes i.on { background: var(--gold); }

/* ---------- Lia chat ---------- */
.chat { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; min-height: calc(100dvh - 120px); }
.chathead { display: flex; align-items: center; gap: 14px; }
.chathead h1 { font-size: 26px; } .chathead p { font-size: 13.5px; color: var(--tx-3); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 6px 0 12px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; animation: rise .3s var(--ease); }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bub { padding: 13px 16px; border-radius: 20px 20px 20px 6px; background: var(--cabin-2); border: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.55; min-width: 0; }
.msg.me .bub { background: var(--blue); border-color: transparent; border-radius: 20px 20px 6px 20px; color: #fff; }
.bub .quote { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(6, 18, 43, .55); border-left: 3px solid var(--bc, var(--gold)); font-size: 14.5px; }
.bub .quote .q-h { font: 500 11px/1.2 var(--f-mono); letter-spacing: .1em; color: var(--bc, var(--gold)); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; align-items: center; text-transform: uppercase; }
.bub .quote .ltable { margin: 6px 0 0; } .bub .quote .ltable table { min-width: 0; font-size: 13.5px; } .bub .quote .ltable td, .bub .quote .ltable th { padding: 8px 9px; }
.bub .sugs, .sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sug { min-height: 36px; padding: 6px 13px; border-radius: 18px; border: 1.5px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--sky); text-align: left; line-height: 1.25; }
.sug:hover { background: rgba(120, 160, 255, .12); color: #fff; }
.composer { position: sticky; bottom: 16px; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(11, 27, 58, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.composer .input { border: 0; background: transparent; box-shadow: none !important; }
.composer .btn { min-height: 52px; width: 52px; padding: 0; border-radius: 16px; }
@media (max-width: 1023px) { .composer { bottom: 96px; } .chat { min-height: calc(100dvh - 240px); } }
.typing i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-right: 4px; animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- desempenho ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 18px; border-radius: 20px; background: rgba(16, 36, 75, .7); border: 1px solid var(--line); }
.kpi b { font: 800 32px/1 var(--f-display); display: block; letter-spacing: -.02em; } .kpi span { font-size: 13px; color: var(--tx-3); display: block; margin-top: 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--f-mono); fill: var(--tx-3); }
.crow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 120px 52px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; width: 100%; }
.crow:hover .ct { color: #fff; }
.crow .cn { font: 500 12.5px var(--f-mono); color: var(--bc); } .crow .ct { color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .cp { font: 500 13px var(--f-mono); text-align: right; }
@media (max-width: 560px) { .crow { grid-template-columns: 40px minmax(0, 1fr) 60px 44px; } }

/* ---------- acesso / onboarding ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); }
.auth-art { position: relative; overflow: hidden; padding: 40px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: linear-gradient(180deg, #071A45 0%, #0F45B4 52%, #5A9BFF 88%, #FFC56B 128%); }
.auth-art .stars { position: absolute; inset: 0; height: 50%; z-index: -1; }
.auth-art h1 { font-size: clamp(34px, 4.200vw, 56px); max-width: 12ch; margin-top: 7vh; }
.auth-art h1 em { font-style: normal; color: var(--gold); }
.auth-art .lead { font-size: 18px; color: #DCE8FF; max-width: 40ch; margin-top: 18px; }
.auth-art .plane-art { position: absolute; right: -70px; top: 44%; width: 400px; height: auto; z-index: -1; animation: bob 6s ease-in-out infinite; }
.auth-art .cloud { position: absolute; z-index: -1; }
.auth-art .ca { right: 8%; top: 9%; } .auth-art .cb { left: 46%; top: 47%; } .auth-art .cc { left: -60px; bottom: 16%; }
.auth-art .lia-art { position: absolute; right: 6%; bottom: -8px; }
.auth-art .runway { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 48px); opacity: .9; z-index: 1; }
.proofs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 420px; }
.proof { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; color: #fff; }
.proof span { width: 34px; height: 34px; border-radius: 11px; background: rgba(6, 18, 43, .45); display: grid; place-items: center; color: var(--gold); flex: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px clamp(20px, 4vw, 56px); background: var(--night); }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-box h2 { font-size: 30px; } .auth-box .sub { color: var(--tx-2); margin-top: -8px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--tx-3); font: 500 11px var(--f-mono); letter-spacing: .14em; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-tag { font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--gold); background: rgba(255, 176, 32, .1); border: 1px dashed rgba(255, 176, 32, .45); padding: 10px 12px; border-radius: 12px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 20px 0; min-height: 300px; }
  .auth-art h1 { margin-top: 26px; font-size: 32px; max-width: 11ch; } .auth-art .lead { font-size: 15px; max-width: 24ch; padding-bottom: 28px; }
  .auth-art .lia-art { width: 118px; height: auto; right: 10px; } .auth-art .plane-art { width: 170px; height: auto; top: 16px; right: -30px; }
  .proofs { display: none; }
  .auth-form { padding: 26px 20px 44px; align-items: flex-start; }
}
.onb { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.onb-card { width: 100%; max-width: 640px; background: linear-gradient(180deg, rgba(16, 36, 75, .92), rgba(11, 27, 58, .94)); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); }
.onb-top { display: flex; align-items: center; gap: 14px; }
.steps { display: flex; gap: 6px; flex: 1; } .steps i { flex: 1; height: 5px; border-radius: 4px; background: rgba(150, 180, 255, .18); transition: background .3s; } .steps i.on { background: var(--gold); }
.onb-q { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.onb-q .speech { max-width: none; font-size: 17px; } .onb-q .speech h2 { font-size: 22px; margin-bottom: 6px; }
.onb-body { display: flex; flex-direction: column; gap: 16px; animation: rise .35s var(--ease); }
.onb-nav { display: flex; justify-content: space-between; gap: 12px; }
.lvl { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.lvl .sg { font: 600 14px var(--f-mono); color: var(--bc); letter-spacing: .1em; } .lvl .sg small { display: block; font: 500 11px var(--f-body); color: var(--tx-3); letter-spacing: 0; margin-top: 3px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line-2); width: 100%; transition: all .15s; }
.choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 176, 32, .1); }
.choice .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(120, 160, 255, .12); display: grid; place-items: center; color: var(--sky); }
.choice[aria-pressed="true"] .ico { background: var(--gold); color: #2A1A00; }
.choice b { display: block; font-size: 16px; } .choice span { font-size: 13.5px; color: var(--tx-2); }

/* paywall */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 20px; border-radius: 22px; border: 1.5px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; background: rgba(11, 27, 58, .7); }
.plan.best { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 176, 32, .12), rgba(11, 27, 58, .7)); position: relative; }
.plan .price { font: 800 34px/1 var(--f-display); } .plan .price small { font: 600 13px var(--f-body); color: var(--tx-3); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--tx-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; } .plan li svg { color: var(--ok); margin-top: 2px; }

/* modal / folha / toast */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 22, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: 88dvh; overflow: auto; background: var(--cabin-2); border: 1px solid var(--line-2); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); animation: rise .28s var(--ease); }
.modal h2 { font-size: 22px; } .modal p { color: var(--tx-2); font-size: 15px; }
.modal .acts { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; } .modal .acts .btn { flex: 1; }
.scrim.sheet { align-items: flex-end; padding: 0; }
.sheet .modal { max-width: 520px; border-radius: 28px 28px 0 0; padding: 12px 18px max(22px, env(safe-area-inset-bottom)); animation: up .3s var(--ease); }
.sheet .modal::before { content: ""; width: 44px; height: 5px; border-radius: 4px; background: var(--line-2); margin: 0 auto 6px; }
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 1024px) { .scrim.sheet { align-items: center; padding: 18px; } .sheet .modal { border-radius: 26px; padding: 24px; } .sheet .modal::before { display: none; } }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 100px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.toast svg { color: var(--amber); }
@media (min-width: 1024px) { .toasts { bottom: 30px; left: calc(50% + var(--side) / 2); } }

.about { display: flex; flex-direction: column; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; } .swatches span { width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); display: flex; align-items: flex-end; padding: 4px; font: 500 8.500px var(--f-mono); }
.glos { columns: 2 280px; column-gap: 26px; } .glos p { break-inside: avoid; margin-bottom: 10px; font-size: 14.5px; color: var(--tx-2); } .glos b { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ajustes finos de celular */
@media (max-width: 640px) {
  .ltable table { min-width: 0; font-size: 13.5px; } .ltable th, .ltable td { padding: 9px 10px; }
  .auth-art .cb, .auth-art .cc { display: none; } .auth-art .ca { right: 30%; top: 12%; width: 150px; height: auto; opacity: .35 !important; }
  .onb { padding: 14px 12px; align-items: flex-start; }
  .onb-q { gap: 10px; } .onb-q .lia-art { width: 76px; height: auto; }
  .onb-q .speech { font-size: 15px; padding: 12px 14px; } .onb-q .speech h2 { font-size: 19px; }
  .lvl { grid-template-columns: 1fr; gap: 8px; } .lvl .sg small { display: inline; margin-left: 8px; }
  .lvl .seg { display: grid; grid-template-columns: repeat(3, 1fr); } .lvl .seg button { padding: 0 6px; font-size: 13.5px; }
  .onb-nav .btn { padding: 0 16px; }
  .pagehead .btn { width: 100%; }
  .panel { padding: 18px 16px; border-radius: 22px; }
  .ptitle h2 { font-size: 18px; }
  .prose { font-size: 16px; }
  .lhead { padding: 22px 20px; } .lhead .no { font-size: 52px; }
  .modes { grid-template-columns: 1fr; } .mode { min-height: 0; }
  .grid.g4 .mode h3 { font-size: 17px; }
}
.fcard, .fcard .in { display: block; } .fcard .face { align-items: center; }
.pagehead .chip { white-space: normal; height: auto !important; min-height: 32px; padding: 7px 12px; line-height: 1.3; }
.sbrow ~ .sbrow .gauge::before { display: none; }
@media (max-width: 640px) { .sbrow .hide-m { display: none; } .sbrow.four { grid-template-columns: 50px 1fr auto !important; } .chart text { font-size: 10px; } }
a.btn { text-decoration: none; } .plan .chip { align-self: flex-start; }
@media (min-width: 961px) { .exam aside .navgrid { gap: 7px; } .exam { grid-template-columns: minmax(0, 1fr) 340px; } }
.sched { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1.5px solid #D5DDF0; }
.sched .mono { font-size: 12.5px; color: var(--ink); font-weight: 500; } .sched .link { margin-left: auto; min-height: 32px; }
.sched + .tasks { margin-top: 10px; }
.task .at { font-size: 12.5px; color: var(--blue); font-weight: 500; flex: none; width: 42px; }
.task.pause { background: transparent; border-style: dashed; padding: 7px 12px 7px 48px; } .task.pause:hover { transform: none; box-shadow: none; border-color: #DCE3F3; }
@media (min-width: 1100px) { .lift .task.pause { grid-column: 1 / -1; } }

/* =====================================================================
   Responsivo: tablet e telas intermediárias
   - 1024–1279 (iPad deitado, notebooks pequenos): barra lateral recolhida em trilho de ícones
   - 700–1023 (iPad em pé): topo + dock, margens maiores e grades de 2/3 colunas
   ===================================================================== */
.modes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modes.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .modes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .modes.three, .modes.four { grid-template-columns: 1fr; } }

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --side: 88px; }
  .side { padding: 22px 12px 16px; align-items: center; gap: 10px; }
  .side > .wordmark { padding: 0; } .side > .wordmark .wm-t { display: none; }
  .side nav { align-items: center; gap: 4px; }
  .side .grp { font-size: 0; padding: 0; width: 36px; height: 1px; background: var(--line-2); margin: 12px auto; }
  .nv { width: 58px; height: 52px; padding: 0; justify-content: center; gap: 0; border-radius: 16px; }
  .nv > span:not(.badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nv:hover { transform: none; }
  .nv[aria-current="page"]::before { left: -12px; }
  .nv .badge { position: absolute; top: 3px; right: 1px; margin: 0; padding: 3px 5px; font-size: 10px; background: #3A2A0A; }
  .side .rank { width: 64px; padding: 10px 8px; grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .side .rank b, .side .rank small { display: none; }
  .side .rank .bar { width: 40px; margin-top: 10px; }
  .main { padding: 28px 32px 64px; }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .main { padding: 22px 28px 132px; }
  .top { padding: 12px 28px; }
  .dock { width: 480px; height: 72px; }
  .dk { font-size: 11.5px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .tab { justify-content: flex-start; }
  .wrap { gap: 24px; }
}
/* cena do painel: avião não cobre a saudação em larguras médias */
@media (min-width: 721px) and (max-width: 1279px) {
  .hero .plane-art { width: 200px; height: auto; right: 168px; top: 10px; }
  .hero .c1 { right: 36%; }
  .hero h1 { max-width: 13ch; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .hero { padding: 26px 26px 96px; }
  .hero .lia-art { width: 128px; height: auto; right: 22px; }
  .hero .speech { max-width: calc(100% - 150px); }
  .pass { grid-template-columns: minmax(0, 1fr) 176px; }
  .pass-stub { padding: 20px 16px; }
  .stub-big { font-size: 38px; }
  .wins { gap: 12px; } .port { width: 84px; height: 113px; }
}
/* cartão de embarque: cabeçalho nunca quebra em celular pequeno */
.pass-head .brand, .pass-head .mono { white-space: nowrap; }
@media (max-width: 400px) {
  .pass-head .brand { letter-spacing: .12em; font-size: 10px; }
  .pass-head .mono { font-size: 10.5px !important; }
  .pass-route .code { font-size: 34px; }
  .hero h1 { font-size: 28px; }
}
/* teclas de atalho só fazem sentido com teclado */
@media (hover: none) and (pointer: coarse) { .kbd-hint { display: none !important; } }

/* tela de acesso em tablet */
@media (min-width: 641px) and (max-width: 900px) {
  .auth-art { min-height: 440px; padding: 28px 40px 0; }
  .auth-art h1 { font-size: 46px; max-width: 13ch; margin-top: 34px; }
  .auth-art .lead { font-size: 17px; max-width: 34ch; }
  .auth-art .lia-art { width: 170px; right: 36px; }
  .auth-art .plane-art { width: 250px; top: 22px; right: -20px; }
  .auth-form { padding: 36px 40px 56px; justify-content: center; }
  .auth-box { max-width: 480px; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(400px, 460px); }
  .auth-art .plane-art { width: 280px; top: 30%; right: -60px; }
  .auth-art .lia-art { width: 150px; height: auto; right: 4%; }
  .auth-art .lead { font-size: 16.5px; max-width: 32ch; }
  .proofs { max-width: calc(100% - 170px); }
  .proof { font-size: 14px; }
}
@media (min-width: 901px) and (max-height: 820px) { .auth-art h1 { margin-top: 4vh; } }

/* carregando / erro de conexão */
.loadbox { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 420px; }
.loadbox p { color: var(--tx-2); }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(150, 180, 255, .2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* oferta no "Ativar acesso" */
.plan .price s { font: 600 15px var(--f-body); color: var(--tx-3); margin-right: 4px; }
.plan .price small { display: block; margin-top: 6px; }
.plan li.no { color: var(--tx-3); } .plan li.no svg { color: var(--tx-3); }
.banner.offer { background: linear-gradient(90deg, rgba(30, 107, 255, .16), rgba(30, 107, 255, .04)); border-color: rgba(127, 176, 255, .4); }
.banner.offer p b { color: var(--gold); }
/* grade do check-ride: alvos de toque de verdade em tablet deitado */
@media (min-width: 961px) { .exam aside { max-height: calc(100dvh - 40px); overflow-y: auto; } }
@media (min-width: 961px) and (pointer: coarse), (min-width: 961px) and (max-width: 1279px) { .exam aside .navgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .exam aside .navgrid button { font-size: 14px; border-radius: 12px; } }
@media (min-width: 721px) and (max-width: 1100px) { .hero .plane-art { width: 176px; right: 150px; top: 6px; } }
@media (min-width: 901px) and (max-width: 1279px) {
  .auth-art .plane-art { width: 230px; top: 50%; right: -70px; }
  .auth-art .ca { right: 2%; top: 3%; width: 150px; height: auto; opacity: .6 !important; }
  .auth-art .cb { left: 52%; top: 58%; }
  .auth-art .lead { max-width: 28ch; }
}
