/* TreinaSeg — estilos da plataforma. Paleta e formas vêm da logo: vermelho, azul-marinho e o escudo. */
:root {
  --ink: #121C2C;
  --ink-2: #1C2940;
  --ink-3: #2A3852;
  --text: #3D4755;
  --muted: #56606D;
  --line: #DFE3E8;
  --line-strong: #8A94A1;
  --ground: #F5F6F8;
  --card: #FFFFFF;
  --soft: #E6E9ED;
  --red: #E62E36;
  --red-btn: #D9262E;
  --red-btn-hover: #BE1F27;
  --red-text: #B81D25;
  --red-deep: #8F141B;
  --red-tint: #FDECEC;
  --on-dark: #B4BDC8;
  --on-dark-2: #C9D0D9;
  --radius: 18px;
  --shield: polygon(50% 0%, 100% 13%, 93% 75%, 50% 100%, 7% 75%, 0% 13%);
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #5B8DEF; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { flex: none; }
.boot { padding: 64px 24px; text-align: center; color: var(--muted); }

/* ---------- estrutura ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page { padding: 44px 0 88px; }
.section { padding: 80px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.row-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.grow { flex: 1 1 0; min-width: 0; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.split-main { flex: 999 1 560px; min-width: 0; }
.split-side { flex: 1 1 330px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; }
.cols > * { flex: 1 1 240px; min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; }

/* ---------- texto ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--red-text); }
.eyebrow.on-dark { color: var(--on-dark); }
.h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.h1 em { font-style: normal; color: var(--red); }
.h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.h4 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.link { color: var(--red-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.prose h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; font-weight: 700; font-size: 16px; line-height: 1.2; border-radius: 10px; border: 1.5px solid transparent; background: none; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--red-btn); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-btn-hover); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--soft); }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { color: var(--ink); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { border-color: var(--red-text); color: var(--red-text); }
.btn-danger:hover { background: var(--red-tint); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #FFFFFF; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- cabeçalho e rodapé ---------- */
.demo-banner { background: var(--ink-2); color: var(--on-dark-2); font-size: 14px; }
.demo-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.demo-banner b { color: #FFFFFF; }
.demo-banner button { background: none; border: 1px solid #5B6B85; color: #FFFFFF; border-radius: 8px; padding: 6px 12px; min-height: 36px; cursor: pointer; font-weight: 600; font-size: 14px; }
.hdr { background: #FFFFFF; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav a.nav-link { padding: 12px 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a.nav-link:hover { color: var(--red-text); }
.nav a.nav-link.active { color: var(--red-text); font-weight: 700; border-bottom-color: var(--red); }
.nav .btn { margin-left: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; margin-left: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.user-chip:hover { background: var(--soft); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.ftr { background: var(--ink); color: var(--on-dark); }
.ftr .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 36px; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.ftr-cols > div { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ftr-cols > div:first-child { flex: 2 1 280px; gap: 14px; }
.ftr-cols h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #FFFFFF; }
.ftr a:hover { color: #FFFFFF; }
.ftr-logo { width: 230px; height: auto; display: block; }
.ftr-base { padding-top: 24px; border-top: 1px solid var(--ink-3); font-size: 14px; }
.ftr-slim .wrap { padding-top: 26px; padding-bottom: 26px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.ftr-slim img { height: 34px; width: auto; display: block; }

/* ---------- peças ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-lg { padding: 30px; border-radius: 20px; }
.card-flat { background: var(--ground); border-radius: 14px; padding: 20px; }
.panel-dark { background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 28px; }
.panel-dark .muted { color: var(--on-dark-2); }
.nr { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 62px; background: var(--ink); color: #FFFFFF; clip-path: var(--shield); line-height: 1; }
.nr small { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; }
.nr b { font-size: 21px; font-weight: 800; }
.nr.red { background: var(--red); }
.nr.lg { width: 88px; height: 98px; }
.nr.lg small { font-size: 13px; }
.nr.lg b { font-size: 34px; }
.nr.sm { width: 46px; height: 52px; }
.nr.sm small { font-size: 9px; }
.nr.sm b { font-size: 17px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 58px; background: var(--red); color: #FFFFFF; font-size: 24px; font-weight: 800; clip-path: var(--shield); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.pill.dark { background: var(--ink); color: #FFFFFF; }
.pill.red { background: var(--red-tint); color: var(--red-deep); }
.pill.outline { background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); padding: 4px 12px; }
.chip { display: inline-block; font-size: 14px; font-weight: 600; background: var(--ink-2); color: #FFFFFF; padding: 9px 16px; border-radius: 999px; }
.chip.light { background: var(--soft); color: var(--ink); }
.bar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.bar.dark i { background: var(--ink); }
.bar.on-dark { background: var(--ink-3); height: 8px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > * { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 24px; }
.list > * + * { border-top: 1px solid var(--line); }
.list .num { color: var(--red-text); font-weight: 700; margin-right: 12px; }
.list .foot { background: var(--ground); }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--red-btn); margin-top: 2px; }
.empty { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--soft); color: var(--text); font-size: 15px; }
.notice.red { background: var(--red-tint); color: var(--red-deep); }
.notice.dark { background: var(--ink); color: #FFFFFF; }
.notice b { color: inherit; }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 150px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.tile b { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.tile span { font-size: 14px; color: var(--muted); }
.tile.alert { border-color: var(--red); background: var(--red-tint); }
.price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.price-lg { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- formulários ---------- */
.form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > * { flex: 1 1 200px; min-width: 0; }
.form-row > .w2 { flex: 2 1 280px; }
.form-row > .w3 { flex: 3 1 320px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 700; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; background: #FFFFFF; border: 1.5px solid var(--line-strong); border-radius: 10px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #5B8DEF; outline-offset: 1px; border-color: var(--ink); }
.field input[readonly] { background: var(--ground); color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red-btn); flex: none; }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #FFFFFF; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--ground); }
.radio-card input { flex: none; width: 20px; height: 20px; accent-color: var(--red-btn); }
.form-error { background: var(--red-tint); color: var(--red-deep); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.auth { max-width: 480px; margin: 0 auto; }

/* ---------- tabelas ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 16px 20px; white-space: nowrap; }
.table td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.hl td { background: var(--red-tint); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }
.btn-stack { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-stack .btn + .btn { margin-left: 0; }
.table td .pill { white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer; }
.tabs .active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* ---------- página inicial ---------- */
.hero { background: #FFFFFF; }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .lead { max-width: 520px; }
.hero-panel { flex: 1 1 400px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.hero-screen { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--ink-2); border-radius: 14px; }
.play { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 999px; background: var(--red); color: #FFFFFF; }
.hero-cert { display: flex; align-items: center; gap: 12px; background: #FFFFFF; color: var(--ink); border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 700; }
.hero-cert .ic { color: var(--red-btn); }
.strip { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 20px 24px; padding-top: 26px; padding-bottom: 26px; }
.strip .wrap > div { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 14px; font-weight: 700; }
.strip .ic { color: var(--red-btn); }
.course-card { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.course-card .top { display: flex; align-items: center; gap: 16px; }
.course-card .bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #FFFFFF; }
.band-dark .muted { color: var(--on-dark); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq > div { padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.faq > div + div { border-top: 1px solid var(--line); }
.faq p { font-size: 15px; color: var(--muted); }
.validate-box { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.validate-box > img { width: 84px; height: auto; flex: none; }
.validate-box > div { flex: 1 1 300px; min-width: 0; }
.validate-box form { flex: 1 1 340px; min-width: 0; margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-form input { flex: 1 1 200px; min-width: 0; }

/* ---------- curso ---------- */
.course-hero { background: var(--ink); color: #FFFFFF; }
.course-hero .wrap { padding-top: 36px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 24px; }
.course-hero .crumb { font-size: 14px; color: var(--on-dark); }
.course-hero .crumb a { text-decoration: underline; }
.course-hero .head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.course-hero .lead { color: var(--on-dark-2); font-size: 18px; max-width: 660px; }
.buy-card { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: underline; }

/* ---------- vídeo e sala de aula ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 18px; overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000000; }
.video-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--on-dark-2); font-size: 14px; font-weight: 600; }
.lessons { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.lessons a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--text); }
.lessons a:hover { background: var(--ground); }
.lessons a.current { background: var(--red-tint); color: var(--ink); font-weight: 700; }
.lessons .dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--muted); }
.lessons .done .dot { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.lessons .current .dot { background: var(--red-btn); border-color: var(--red-btn); color: #FFFFFF; }
.lessons .tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.pdf-tag { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--red-tint); border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--red-deep); }

/* ---------- prova ---------- */
.q-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.q-nav button { min-height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: #FFFFFF; font-weight: 700; color: var(--muted); cursor: pointer; }
.q-nav button.answered { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.q-nav button.current { background: var(--red-btn); border-color: var(--red-btn); color: #FFFFFF; }
.result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 30px; }
.result .score { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }

/* ---------- certificado ---------- */
.cert-sheet { position: relative; aspect-ratio: 297 / 210; background: #FFFFFF; border: 2px solid var(--ink); border-top: 12px solid var(--red); padding: 4.2% 5%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; color: var(--ink); container-type: inline-size; }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cert-top img { width: 24%; min-width: 120px; height: auto; display: block; }
.cert-no { font-size: clamp(9px, 1.5cqw, 13px); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cert-mid { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; text-align: center; }
.cert-kicker { font-size: clamp(9px, 1.5cqw, 14px); font-weight: 700; letter-spacing: 0.36em; text-transform: uppercase; color: var(--red-text); }
.cert-name { font-size: clamp(18px, 3.9cqw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.cert-text { max-width: 78%; font-size: clamp(10px, 1.75cqw, 17px); line-height: 1.6; color: var(--text); }
.cert-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.4cqw; }
.cert-sign { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.4cqw; font-size: clamp(8px, 1.35cqw, 13px); }
.cert-sign .line { border-top: 1.5px solid var(--ink); padding-top: 0.7cqw; font-weight: 700; }
.cert-sign .sig { height: 5.4cqw; display: flex; align-items: flex-end; justify-content: flex-start; }
.cert-sign .sig img { max-height: 100%; max-width: 100%; display: block; }
.cert-sign span { color: var(--muted); }
.cert-qr { flex: none; width: 9.5cqw; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 0.4cqw; font-size: clamp(7px, 1.1cqw, 11px); font-weight: 700; color: var(--muted); text-align: center; }
.cert-qr svg, .cert-qr img { width: 100%; height: auto; display: block; }
.cert-back { justify-content: flex-start; gap: 2.4cqw; }
.cert-back h3 { font-size: clamp(12px, 2.2cqw, 22px); font-weight: 800; }
.cert-back ol { list-style: decimal; padding-left: 2.6cqw; font-size: clamp(9px, 1.6cqw, 16px); line-height: 1.7; color: var(--text); columns: 2; column-gap: 5cqw; }
.cert-back p { font-size: clamp(8px, 1.35cqw, 13px); color: var(--muted); margin-top: auto; }
.cert-holder { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- painel do administrador ---------- */
.adm { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.adm-side { flex: 1 1 240px; min-width: 0; max-width: 100%; background: var(--ink); color: var(--on-dark-2); padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; }
.adm-side .brand img { height: 40px; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; }
.adm-nav .eyebrow { padding: 4px 12px 8px; }
.adm-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 10px; }
.adm-nav a:hover { background: var(--ink-2); color: #FFFFFF; }
.adm-nav a.active { background: var(--red-btn); color: #FFFFFF; font-weight: 700; }
.adm-nav .count { background: #FFFFFF; color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 2px 8px; }
.adm-side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.adm-side .foot a, .adm-side .foot button { display: block; width: 100%; padding: 11px 12px; min-height: 44px; font-size: 14px; font-weight: 600; border: 1px solid #3A4A66; border-radius: 10px; text-align: center; color: #FFFFFF; background: none; cursor: pointer; }
.adm-main { flex: 999 1 640px; min-width: 0; padding: 36px 32px 72px; display: flex; flex-direction: column; gap: 30px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.todo li + li { border-top: 1px solid var(--line); }
.mat-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mat-row .field { flex: 1 1 180px; }
.sig-preview { max-height: 90px; max-width: 280px; display: block; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px; background: #FFFFFF; }
.req-card { display: flex; flex-direction: column; gap: 14px; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.kv div { display: flex; flex-direction: column; }
.kv span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- diálogo e avisos ---------- */
dialog.dlg { border: 0; border-radius: 20px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--ink); box-shadow: 0 24px 64px rgba(18, 28, 44, .35); }
dialog.dlg::backdrop { background: rgba(18, 28, 44, .55); }
.dlg-in { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
dialog.dlg-sm { width: min(460px, calc(100vw - 32px)); }
#toast { position: fixed; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; pointer-events: none; z-index: 60; padding: 0 16px; }
.toast { background: var(--ink); color: #FFFFFF; border-radius: 12px; padding: 14px 20px; font-weight: 600; box-shadow: 0 12px 32px rgba(18, 28, 44, .3); max-width: 560px; }
.toast-erro { background: var(--red-deep); }

/* ---------- telas menores ---------- */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero .wrap { padding-top: 44px; padding-bottom: 52px; gap: 36px; }
  .brand img { height: 40px; }
  .nav a.nav-link { padding: 10px 9px; font-size: 15px; }
  .nav .btn { margin-left: 4px; }
  .card, .course-card { padding: 20px; }
  .adm-main { padding: 24px 16px 56px; }
  .adm-side { flex-basis: 100%; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav .eyebrow { width: 100%; }
  .adm-side .foot { flex-direction: row; margin-top: 0; }
  .buy-card { position: static; }
  .validate-box { padding: 24px; }
  .cert-back ol { columns: 1; }
  .user-chip span.name { display: none; }
}

/* ---------- impressão do certificado ---------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { background: #FFFFFF !important; }
  .hdr, .ftr, .demo-banner, #toast, .no-print { display: none !important; }
  .page, .wrap, .split, .split-main, .cert-holder { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
  .cert-sheet { width: 297mm; height: 210mm; aspect-ratio: auto; border-width: 0; border-top: 9mm solid var(--red); page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert-sheet:last-of-type { page-break-after: auto; break-after: auto; }
}
