/* World IT Mission — estilos de página (landing + portal). Usa tokens.css e components.css */

/* ===== Cabeçalho da landing ===== */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.site-header .brand img { width: 40px; height: 40px; }
.site-header .brand { font-size: 1.0625rem; }
.site-nav { display: flex; gap: var(--s-6); margin-left: auto; }
.site-nav a { font-size: var(--fs-small); font-weight: 700; color: var(--text-muted); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
.site-nav a:hover { color: var(--acid); }
.site-actions { display: flex; gap: var(--s-3); }
@media (max-width: 900px) { .site-nav { display: none; } .site-actions { margin-left: auto; } }
@media (max-width: 480px) { .site-actions .btn-ghost { display: none; } }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); align-items: center; padding-top: var(--s-9); padding-bottom: var(--s-9); }
.hero .lead { margin-top: var(--s-5); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: end; border: var(--border); background: var(--ink-2); display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 12.5% 12.5%; opacity: 0.55; }
.hero-art img { position: relative; width: 62%; height: auto; }
.hero-art .caption { position: absolute; left: var(--s-4); bottom: var(--s-3); font-size: var(--fs-label); color: var(--text-faint); letter-spacing: var(--track-label); text-transform: uppercase; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: var(--s-8); padding-bottom: var(--s-8); } .hero-art { justify-self: start; max-width: 320px; } }

/* Um único momento de movimento: o farol do símbolo acende e o conteúdo sobe */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise var(--t-slow) var(--ease-out) both; }
  .rise-2 { animation-delay: 120ms; } .rise-3 { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-art img { animation: rise 900ms var(--ease-out) 200ms both; }
}

/* ===== Missão (seção clara) ===== */
.statement { padding: var(--s-10) 0; }
.statement h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.75rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: var(--track-heading); max-width: 24ch; margin: 0; text-wrap: balance; }

/* ===== Lista do que a escola oferece ===== */
.offer { border-top: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: 1.1fr 1.6fr 120px 32px; gap: var(--s-5); align-items: center; padding: var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background var(--t-base) var(--ease-out), padding var(--t-base) var(--ease-out); }
.offer-row:hover { background: var(--ink-2); padding-left: var(--s-5); }
.offer-row h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
.offer-row p { margin: 0; color: var(--text-muted); }
.offer-row .tag { justify-self: end; }
.offer-row svg { width: 24px; height: 24px; color: var(--acid); }
@media (max-width: 760px) { .offer-row { grid-template-columns: 1fr 24px; } .offer-row p { grid-column: 1; } .offer-row .tag { justify-self: start; grid-column: 1; } .offer-row svg { grid-row: 1; grid-column: 2; } }

/* ===== Blocos de recurso ===== */
.feature .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy .lead { margin-top: var(--s-4); }
.feature-copy .btn { margin-top: var(--s-5); }
.feature-copy .tag { margin-bottom: var(--s-4); }
@media (max-width: 900px) { .feature .container { grid-template-columns: 1fr; gap: var(--s-6); } .feature.flip .feature-copy { order: 0; } }
.demo { border: var(--border); background: var(--ink-2); padding: var(--s-5); position: relative; }
.on-paper .demo { background: #fff; border-color: var(--line-on-paper); }
.demo-note { margin-top: var(--s-3); font-size: var(--fs-label); color: var(--text-faint); }

/* chat */
.chat { display: grid; gap: var(--s-3); }
.bubble { max-width: 86%; padding: var(--s-3) var(--s-4); font-size: 0.9375rem; line-height: 1.5; }
.bubble small { display: block; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.bubble.me { background: var(--ink-3); justify-self: start; }
.bubble.mentor { background: var(--acid); color: var(--ink); justify-self: end; }

/* gráfico */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); align-items: end; height: 240px; }
.bars i { display: block; background: var(--ink); height: var(--h); }
.bars i:nth-child(5) { background: var(--acid); outline: 1px solid var(--ink); }
.bars-axis { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); margin-top: var(--s-2); font-size: var(--fs-label); font-weight: 700; color: var(--text-muted); }

/* portfólio */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.work-card { --scrim: linear-gradient(to top, rgba(17,19,21,.9) 0%, rgba(17,19,21,.1) 60%); aspect-ratio: 3 / 4; border: var(--border); background: var(--ink-3); color: var(--paper); display: flex; align-items: flex-end; padding: var(--s-3); font-weight: 700; font-size: var(--fs-small); line-height: 1.2; }
@media (max-width: 520px) { .work { grid-template-columns: 1fr 1fr; } .work-card:last-child { display: none; } }

/* bootcamp */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--border); margin-top: var(--s-7); }
.step { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
.step:last-child { border-right: 0; }
.step h3 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.step h3 .em { display: block; font-size: 0.8em; }
.step p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* carreira + empresas */
.split { display: grid; grid-template-columns: 1fr 1fr; border: var(--border); }
.split > div { padding: var(--s-7) var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.split > div + div { border-left: 1px solid var(--line); }
.split ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); color: var(--text-muted); }
.split li { display: flex; gap: var(--s-3); align-items: baseline; }
.split li::before { content: ""; width: 8px; height: 8px; background: var(--acid); flex: none; translate: 0 -1px; }
.split .btn { justify-self: start; margin-top: var(--s-3); }
.split .acid { background: var(--acid); color: var(--ink); --text-muted: rgba(17,19,21,.78); --line: rgba(17,19,21,.2); }
.split .acid li::before { background: var(--ink); }
.split .acid .btn-primary { background: var(--ink); color: var(--paper); }
.split .acid .btn-primary:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* CTA final */
.final .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: end; }
.final form { display: grid; gap: var(--s-4); }
.final form .btn { justify-self: start; }
@media (max-width: 900px) { .final .container { grid-template-columns: 1fr; gap: var(--s-6); } }
.form-ok { color: var(--acid); font-weight: 700; }
footer.site-footer { padding: var(--s-7) 0; }
footer.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between; align-items: center; color: var(--text-muted); font-size: var(--fs-small); }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--acid); }

/* =====================================================
   PORTAL
   ===================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: var(--topbar-h) 1fr; min-height: 100vh; }
.app > .topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 15; }
.app .sidebar { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto; }
.menu-btn { display: none; }
.profile { padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); border-bottom: 1px solid var(--line); justify-items: start; }
.profile .avatar { width: 72px; height: 72px; }
.profile .avatar svg { width: 32px; height: 32px; }
.profile strong { font-size: 1.0625rem; line-height: 1.2; }
.profile .progress { width: 100%; font-size: var(--fs-label); }
.main { grid-template-columns: minmax(0, 1fr); min-width: 0; padding: var(--s-6) var(--s-6) var(--s-9); display: grid; gap: var(--s-8); align-content: start; }
.banner { background: var(--acid); color: var(--ink); display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; overflow: hidden; --text-muted: rgba(17,19,21,.78); }
.banner-copy { padding: var(--s-8) var(--s-7); display: grid; gap: var(--s-5); justify-items: start; }
.banner .btn-primary { background: var(--ink); color: var(--paper); }
.banner .btn-primary:hover { background: var(--paper); color: var(--ink); }
.banner-art { height: 100%; min-height: 260px; display: grid; place-items: center; background-image: linear-gradient(rgba(17,19,21,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.12) 1px, transparent 1px); background-size: 40px 40px; }
.banner-art img { width: min(58%, 240px); height: auto; }
@media (max-width: 900px) { .banner { grid-template-columns: 1fr; } .banner-art { display: none; } .banner-copy { padding: var(--s-6) var(--s-5); } }
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.rail-head p { margin: var(--s-1) 0 0; color: var(--text-muted); max-width: 70ch; }
.rail-ctrl { display: flex; gap: var(--s-2); flex: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.icon-btn:hover { background: var(--ink-3); border-color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.rail { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--s-3); scroll-padding-left: 0; }
.rail > * { flex: 0 0 clamp(200px, 22vw, 260px); scroll-snap-align: start; }
.resume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.resume-card { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4); border: var(--border); background: var(--ink-2); text-decoration: none; color: var(--text); transition: border-color var(--t-base) var(--ease-out); }
.resume-card:hover { border-color: var(--acid); }
.resume-card .thumb { aspect-ratio: 16 / 10; background: var(--ink-3); border: var(--border); }
.resume-card .progress { margin-top: var(--s-3); }
@media (max-width: 760px) { .resume { grid-template-columns: 1fr; } .resume-card { grid-template-columns: 112px 1fr; } }
.doubts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); border: var(--border); background: var(--ink-2); padding: var(--s-6); }
.doubts form { display: grid; gap: var(--s-4); align-content: start; }
.doubts form .btn { justify-self: start; }
.doubt-list { list-style: none; margin: 0; padding: 0; }
.doubt-list li { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.doubt-list li:first-child { border-top: 1px solid var(--line); }
.status { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; white-space: nowrap; }
.status.ok { color: var(--acid); } .status.wait { color: var(--text-muted); }
@media (max-width: 900px) { .doubts { grid-template-columns: 1fr; padding: var(--s-5); } }
.demo-flag { font-size: var(--fs-small); color: var(--text-faint); }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app .sidebar { position: fixed; z-index: 30; top: var(--topbar-h); left: 0; bottom: 0; height: auto; translate: -100% 0; transition: translate var(--t-base) var(--ease-out); }
  .app.menu-open .sidebar { translate: 0 0; }
  .menu-btn { display: grid; }
  .main { padding: var(--s-5) var(--gutter) var(--s-8); gap: var(--s-7); }
  .topbar .brand span.name { display: none; }
}

@media (max-width: 520px) { .topbar { gap: var(--s-3); padding: 0 var(--s-3); } .topbar .avatar[aria-label="Notificações"] { display: none; } .topbar .avatar[aria-label="Minha conta"] { margin-left: auto; } }

/* =====================================================
   TELA DE AULA
   ===================================================== */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--player-list-w); align-items: start; min-height: calc(100vh - var(--topbar-h)); }
.lesson-layout.focus { grid-template-columns: minmax(0, 1fr); }
.lesson-layout.focus .lesson-list { display: none; }
.lesson-main { min-width: 0; display: grid; gap: var(--s-6); align-content: start; padding-bottom: var(--s-9); }
.player { position: relative; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.player-screen { aspect-ratio: 16 / 9; width: 100%; --scrim: linear-gradient(to top, rgba(17,19,21,.85) 0%, rgba(17,19,21,.2) 45%, rgba(17,19,21,.35) 100%); background: var(--ink-3); }
.player-big { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--ink); z-index: 1; }
.player-big span { width: 88px; height: 88px; background: var(--acid); display: grid; place-items: center; transition: transform var(--t-base) var(--ease-out); }
.player-big:hover span { transform: scale(1.06); }
.player-big svg { width: 36px; height: 36px; }
.player.playing .player-big { opacity: 0; pointer-events: none; }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--s-3) var(--s-5) var(--s-4); display: grid; gap: var(--s-3); }
.scrub { position: relative; height: 6px; background: rgba(239,239,234,.28); cursor: pointer; }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--acid); }
.scrub input { position: absolute; inset: -8px 0; width: 100%; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.scrub:focus-within { outline: var(--focus); outline-offset: 4px; }
.controls { display: flex; align-items: center; gap: var(--s-2); }
.controls .ctl { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: var(--paper); cursor: pointer; transition: color var(--t-fast) var(--ease-out); }
.controls .ctl:hover { color: var(--acid); }
.controls .ctl svg { width: 26px; height: 26px; }
.controls .time { font-variant-numeric: tabular-nums; font-size: var(--fs-small); font-weight: 700; margin-left: var(--s-2); }
.controls .time span { color: var(--text-muted); font-weight: 400; }
.controls .spacer { flex: 1; }
.lesson-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 0 var(--s-6); }
.lesson-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lesson-actions .btn { min-height: 44px; }
.lesson-actions .btn[aria-pressed="true"] { background: var(--ink-3); color: var(--acid); border-color: var(--acid); }
.lesson-body { padding: 0 var(--s-6); display: grid; gap: var(--s-5); }
.tabpanel[hidden] { display: none; }
.tabpanel p { margin: 0 0 var(--s-4); color: var(--text-muted); max-width: var(--measure); }
.tabpanel p:first-child { color: var(--text); font-weight: 700; }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: var(--s-2); padding: 0 5px; background: var(--paper); color: var(--ink); font-size: 11px; border-radius: var(--radius-round); }
.comments-empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) 0; color: var(--text-faint); }
.comments-empty svg { width: 48px; height: 48px; }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.comment b { display: block; font-size: var(--fs-small); }
.comment p { margin: 2px 0 0; color: var(--text); font-weight: 400; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); }
.next-fab { position: absolute; right: 0; top: 50%; translate: 0 -50%; z-index: 3; width: 56px; height: 68px; display: grid; place-items: center; background: var(--acid); color: var(--ink); border: 0; cursor: pointer; transition: background var(--t-fast) var(--ease-out); }
.next-fab:hover { background: var(--paper); }
.next-fab svg { width: 24px; height: 24px; }
.lesson-list { position: sticky; top: var(--topbar-h); max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; border-left: 1px solid var(--line); background: var(--ink); }
.list-head { padding: var(--s-5); border-bottom: 1px solid var(--line); display: grid; gap: var(--s-2); }
.list-head .h4 { font-weight: 400; }
.module { border-bottom: 1px solid var(--line); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 20px; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-5); background: var(--ink-2); }
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: var(--ink-3); }
.module summary b { font-size: 1rem; line-height: 1.25; }
.module summary small { display: block; color: var(--text-faint); font-size: var(--fs-label); margin-top: 2px; }
.module summary svg { width: 20px; height: 20px; transition: rotate var(--t-base) var(--ease-out); }
.module[open] summary svg { rotate: 90deg; }
.lesson { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; cursor: pointer; }
.module .lesson:last-child { border-bottom: 0; }
.lesson.done .lesson-check { display: grid; }
.lesson .lesson-check { display: none; }
@media (max-width: 1100px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .lesson-list { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .lesson-main { padding-bottom: var(--s-7); }
  .lesson-head, .lesson-body { padding: 0 var(--gutter); }
}
@media (max-width: 520px) { .player-big span { width: 64px; height: 64px; } .controls .ctl { width: 36px; height: 36px; } .player-bar { padding: var(--s-2) var(--s-3) var(--s-3); } .controls .vol { display: none; } }

button.tab { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
button.tab[aria-selected="true"] { border-bottom-color: var(--acid); color: var(--text); }
.sr-only { position: absolute; left: -9999px; }

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--acid); }

/* Equipe */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.person { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-5); border: var(--border); background: var(--ink-2); }
.person-name { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.person p { margin: 0; color: var(--text-muted); }
/* Retrato: foto com o tratamento da marca; sem foto, monograma. Para usar foto: style="--photo:url(assets/team/nome.jpg)" */
.portrait { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--ink-3); border: var(--border); }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo, none) center / cover no-repeat; filter: grayscale(1) contrast(1.08) brightness(.92); }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25% 25%; }
.portrait[style*="--photo"]::after { background: var(--acid); mix-blend-mode: color; opacity: .6; }
.portrait span { font-family: var(--font-serif); font-style: italic; font-size: 3.25rem; letter-spacing: -0.03em; color: var(--acid); }
.portrait[style*="--photo"] span { display: none; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4); } .portrait span { font-size: 2.25rem; } }
