/* =====================================================================
   Portal do Educador Financeiro — estilos públicos
   Paleta: azul-marinho, branco e dourado discreto. Personalizável via --brand / --accent.
   ===================================================================== */


:root {
  --brand: #0B1F3A;
  --brand-rgb: 11, 31, 58;
  --accent: #B08A46;
  --accent-rgb: 176, 138, 70;
  --primary: var(--brand);
  --primary-ink: #fff;
  --accent-ink: #1a1306;
  --accent-text: color-mix(in srgb, var(--accent) 78%, #000);
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #F1EDE4;
  --surface-brand: var(--brand);
  --text: #14213A;
  --heading: var(--brand);
  --muted: #586174;
  --border: #E3DED3;
  --border-strong: #CFC7B8;
  --link: color-mix(in srgb, var(--brand) 85%, #2a6db0);
  --success: #1F7A4D; --success-bg: #E7F4EC;
  --danger: #B42318; --danger-bg: #FDECEA;
  --warning: #8A5A00; --warning-bg: #FFF4DC;
  --info: #1F5C99; --info-bg: #E8F1FB;
  --chart-1: var(--brand); --chart-2: var(--accent); --chart-3: #3A7CA5; --chart-4: #8494A4;
  --radius: 14px; --radius-sm: 9px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 25, 45, .06);
  --shadow: 0 1px 2px rgba(15, 25, 45, .05), 0 8px 24px -12px rgba(15, 25, 45, .14);
  --shadow-lg: 0 24px 60px -24px rgba(15, 25, 45, .28);
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-heading: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --heading-weight: 700;
  --container: 1180px;
  --header-h: 68px;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: color-mix(in srgb, var(--brand) 30%, #cfe0f5);
  --primary-ink: #0A1424;
  --accent-text: color-mix(in srgb, var(--accent) 70%, #fff);
  --bg: #0A1424;
  --surface: #0F1C31;
  --surface-2: #14243D;
  --surface-brand: #0D1A2E;
  --text: #E5EBF3;
  --heading: #F2F5FA;
  --muted: #9CA9BA;
  --border: #22344F;
  --border-strong: #2E4466;
  --link: #9EC3EE;
  --success: #6FD3A0; --success-bg: #10291E;
  --danger: #FF8A80; --danger-bg: #331414;
  --warning: #F3C164; --warning-bg: #2E2410;
  --info: #8CC0F5; --info-bg: #10233A;
  --chart-1: #8FB6E8; --chart-2: var(--accent); --chart-3: #63B3C9; --chart-4: #7F8EA3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.01em; }
h1, h2, .h1, .h2, .h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: -.02em; }
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); }
h2, .h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3, .h3 { font-size: 1.3rem; }
.h4 { font-size: 1.2rem; font-family: var(--font-heading); font-weight: var(--heading-weight); }
h4, .h5 { font-size: 1.06rem; }
h5, h6, .h6 { font-size: .95rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
small, .small { font-size: .875rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: rgba(var(--accent-rgb), .3); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--primary-ink); }
.muted { color: var(--muted); }
.center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container.narrow, .narrow { max-width: 820px; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-alt { background: var(--surface-2); }
.section-pt { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-tight { gap: 0 14px; }
.span-2 { grid-column: span 2; }

/* ---------------------------------------------------------------- Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* O desfoque fica num pseudo-elemento: backdrop-filter no próprio cabeçalho quebraria o menu móvel (position: fixed). */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-items: start; text-decoration: none; color: var(--heading); font-weight: 700; letter-spacing: -.01em; flex-shrink: 0; }
.brand:hover { color: var(--heading); }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 1.1rem; box-shadow: inset 0 -2px 0 rgba(var(--accent-rgb), .9); }
[data-theme="dark"] .brand-mark { background: color-mix(in srgb, var(--brand) 60%, #24426d); }
.brand-text { font-family: var(--font-heading); font-size: 1.18rem; font-weight: 600; max-width: 260px; line-height: 1.15; }
.brand-mark, .brand-logo { grid-row: span 2; }
.brand-text { align-self: end; }
.brand-tagline { grid-column: 2; align-self: start; font-family: var(--font-sans); font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1.25; letter-spacing: 0; max-width: 360px; }
.brand:has(.brand-logo) { grid-template-columns: auto; row-gap: 4px; }
.brand:has(.brand-logo) .brand-logo { grid-row: auto; }
.brand:has(.brand-logo) .brand-tagline { grid-column: 1; }
.brand:not(:has(.brand-tagline)) .brand-text, .brand:not(:has(.brand-tagline)) .brand-logo { align-self: center; grid-row: span 2; }
.brand-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a, .sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 520; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.main-nav > ul > li > a:hover, .sub-toggle:hover { background: var(--surface-2); color: var(--heading); }
.main-nav a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.sub-toggle .bi { font-size: .7rem; transition: transform .2s; }
.has-sub { position: relative; }
.has-sub.is-open .sub-toggle .bi { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.submenu a:hover { background: var(--surface-2); }
.submenu .bi { color: var(--accent-text); font-size: 1.1rem; margin-top: 2px; }
.submenu strong { display: block; color: var(--heading); font-weight: 600; font-size: .95rem; }
.submenu small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; font-size: 1.1rem; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--heading); }
.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }
.global-search { border-top: 1px solid var(--border); background: var(--surface); padding: 12px 0; }
.global-search form { display: flex; align-items: center; gap: 10px; }
.global-search .bi { color: var(--muted); }
.global-search input { flex: 1; border: 0; background: transparent; font-size: 1.05rem; padding: 8px 0; color: var(--text); }
.global-search input:focus { outline: none; }

/* ---------------------------------------------------------------- Breadcrumbs / alertas */
.breadcrumbs { padding-top: 14px; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--heading); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); display: inline-block; max-width: min(48ch, 80vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.flash-wrap { padding-top: 14px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; margin: 0 0 12px; font-size: .95rem; transition: opacity .5s; }
.alert > .bi { margin-top: 2px; flex-shrink: 0; }
.alert span { flex: 1; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert a { color: inherit; font-weight: 600; }
.alert.is-fading { opacity: 0; }
.alert-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px; opacity: .7; }
.alert-close:hover { opacity: 1; }

/* ---------------------------------------------------------------- Botões */
.btn { --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 11px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --b-bg: var(--primary); --b-fg: var(--primary-ink); --b-bd: var(--primary); }
.btn-primary:hover { --b-bg: color-mix(in srgb, var(--primary) 88%, #000); }
[data-theme="dark"] .btn-primary:hover { --b-bg: color-mix(in srgb, var(--primary) 88%, #fff); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); }
.btn-accent:hover { --b-bg: color-mix(in srgb, var(--accent) 90%, #fff); }
.btn-outline { --b-bg: transparent; --b-fg: var(--heading); --b-bd: var(--border-strong); }
.btn-outline:hover { --b-bd: var(--heading); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--text); --b-bd: transparent; }
.btn-ghost:hover { --b-bg: var(--surface-2); box-shadow: none; }
.btn-danger { --b-bg: var(--danger); --b-fg: #fff; --b-bd: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--heading); }
.link-arrow .bi { transition: transform .15s; color: var(--accent-text); }
.link-arrow:hover .bi { transform: translateX(3px); }
.link-arrow:hover { color: var(--heading); }

/* ---------------------------------------------------------------- Cartões e componentes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 1rem + 1vw, 28px); box-shadow: var(--shadow-sm); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); font-size: .76rem; font-weight: 650; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.badge:hover { color: var(--accent-text); background: rgba(var(--accent-rgb), .22); }
.badge-soft { background: var(--surface-2); color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--accent-text); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow .bi { display: none; }
.eyebrow-light { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.eyebrow-sm { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.lead-sm { font-size: 1.08rem; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; margin: 0; }
.meta .bi { margin-right: 2px; }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.chips .bi { color: var(--accent-text); }
.chip-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 520; }
.chip-links a:hover, .chip-links a[aria-current] { border-color: var(--heading); color: var(--heading); }
.chip-links a[aria-current] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip-links-sm a { font-size: .82rem; padding: 4px 11px; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state > .bi { font-size: 2.5rem; color: var(--accent-text); display: block; margin-bottom: .75rem; }
.empty-state h1, .empty-state h2 { color: var(--heading); }
.error-code { font-family: var(--font-heading); font-size: 5rem; line-height: 1; color: var(--accent-text); margin-bottom: .5rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: .88rem; margin: 1.5rem 0; }
.notice > .bi { color: var(--accent-text); margin-top: 2px; }
.notice p { margin: 0; }
.notice-sm { font-size: .8rem; padding: 10px 12px; margin: 1rem 0 0; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: width .4s; }
.mini-progress { display: block; height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.mini-progress > span { display: block; height: 100%; background: var(--accent); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); font-size: 1.25rem; flex-shrink: 0; }

/* ---------------------------------------------------------------- Hero e seções */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(var(--accent-rgb), .13), transparent 62%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; position: relative; }
.hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-points .bi { color: var(--success); }
.hero-profile { position: relative; justify-self: center; width: min(100%, 420px); }
.profile-frame { margin: 0; aspect-ratio: 6 / 7; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--accent))); position: relative; box-shadow: var(--shadow-lg); }
.profile-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(var(--accent-rgb), .6); border-radius: 192px 192px 16px 16px; pointer-events: none; }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-size: 8rem; color: rgba(255, 255, 255, .9); }
.profile-card { position: relative; margin: -56px 18px 0; padding: 16px 18px; box-shadow: var(--shadow-lg); }
.profile-name { font-family: var(--font-heading); font-size: 1.25rem; color: var(--heading); margin: 0; font-weight: 600; }
.profile-card .muted { margin: 0; }
.profile-frame-sm { width: min(100%, 320px); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; border-top: 1px solid var(--border); padding-top: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2em; }
.section-head .lead-sm { margin: 0; max-width: 60ch; }
.page-hero { padding-block: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-sm h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: var(--surface-brand); color: #E9EEF6; border-radius: var(--radius-lg); padding: clamp(28px, 2rem + 2vw, 52px); position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .45); }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #C9D3E2; max-width: 60ch; margin: 0; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel-sm { margin-top: 2.5rem; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.banner { padding: 0; overflow: hidden; }
.banner img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.banner-body { padding: 20px 22px; }
.feature-grid .feature { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feature h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 650; margin: 0; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------------------------------------------------------------- Cartões de conteúdo */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-placeholder { display: grid; place-items: center; height: 100%; font-size: 2.2rem; color: rgba(var(--accent-rgb), .7); background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--accent))); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.post-card-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: var(--heading-weight); margin: 0; line-height: 1.3; }
.post-card-title a { color: var(--heading); text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.post-card-excerpt { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { margin-top: auto; padding-top: 6px; }
.tool-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.tool-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--primary); color: var(--primary-ink); font-size: 1.3rem; flex-shrink: 0; }
.tool-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tool-card-body strong { color: var(--heading); font-size: 1rem; }
.tool-card-body span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tool-card-arrow { color: var(--accent-text); transition: transform .15s; }
.tool-card:hover .tool-card-arrow { transform: translateX(3px); }
.trail-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.trail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trail-card-top { display: flex; justify-content: space-between; align-items: center; }
.trail-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .5); color: var(--accent-text); font-size: 1.2rem; }
.trail-card h3 { margin: 4px 0 0; font-family: var(--font-heading); font-weight: var(--heading-weight); }
.trail-card h3 a { color: var(--heading); text-decoration: none; }
.trail-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.material-card { display: flex; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.material-icon { flex-shrink: 0; width: 64px; height: 80px; border-radius: 10px; display: grid; place-items: center; font-size: 1.8rem; color: var(--accent-text); background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 75%, var(--accent))); overflow: hidden; }
.material-icon img { width: 100%; height: 100%; object-fit: cover; }
.material-body h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 650; margin: 0 0 6px; }
.material-body p { color: var(--muted); font-size: .9rem; }
.category-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.category-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.category-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-heading); color: var(--border-strong); font-size: 1.2rem; }
.category-icon { font-size: 1.5rem; color: var(--accent-text); }
.category-card strong { font-size: 1.08rem; color: var(--heading); }
.category-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }

/* Animação de entrada */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Formulários */
.form .field, .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--heading); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], input[type="month"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22); }
input[aria-invalid="true"], .has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M1.6 4.6 8 11l6.4-6.4-1.2-1.2L8 8.6 2.8 3.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.hint { font-size: .8rem; color: var(--muted); margin: 5px 0 0; line-height: 1.4; }
.field-error { color: var(--danger); font-size: .84rem; margin: 5px 0 0; font-weight: 520; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .9rem; color: var(--text); margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.check.small { font-size: .8rem; color: var(--muted); }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-affix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22); }
.input-affix input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.input-affix input[aria-invalid="true"] { background: var(--danger-bg); }
.affix { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.input-group { display: flex; gap: 6px; }
.input-group input { flex: 1; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 200px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 650; font-size: .92rem; color: var(--heading); margin-bottom: 10px; padding: 0; }
.pct-group { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 14px 14px 2px; }
.pct-group > .btn { margin-bottom: 8px; }
.advanced { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.advanced summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--heading); }
.advanced[open] summary { margin-bottom: 12px; }
.segmented { display: flex; background: var(--surface-2); border-radius: 11px; padding: 4px; margin-bottom: 16px; gap: 4px; }
.segmented label { flex: 1; margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 8px 10px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); }
.search-inline { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 1.4rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 5px 5px 5px 14px; }
.search-inline:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.search-inline .bi { color: var(--muted); }
.search-inline input { border: 0; padding: 8px 4px; background: transparent; box-shadow: none !important; }
.form-feedback { font-size: .88rem; margin: 6px 0 0; min-height: 1.2em; }
.form-feedback.is-ok { color: var(--success); }
.form-feedback.is-error { color: var(--danger); }

/* ---------------------------------------------------------------- Artigo e prosa */
.article-header { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.article-header h1 { margin-top: .7rem; }
.article-header .meta { margin-top: 1rem; }
.article-cover { margin: 2rem auto 0; max-width: 1040px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 1200 / 630; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding-block: 2.5rem 3rem; }
.article-layout.no-toc { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; font-size: .88rem; }
.toc summary { font-weight: 650; cursor: pointer; color: var(--heading); margin-bottom: 10px; list-style: none; }
.toc ol { list-style: none; padding: 0 0 0 12px; margin: 0; border-left: 2px solid var(--border); display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--heading); }
.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; font-family: var(--font-heading); font-weight: var(--heading-weight); }
.prose h4 { margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent-text); }
.prose blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--accent); font-family: var(--font-heading); font-size: 1.15rem; color: var(--heading); }
.prose img, .prose figure img { border-radius: var(--radius); margin: 1.4rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose pre { background: var(--surface-2); padding: 14px; border-radius: 10px; overflow-x: auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose a { color: var(--link); }
.prose-sm { font-size: .95rem; line-height: 1.65; }
.prose-sm li { margin-bottom: .5em; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0; }
.tag-list a { font-size: .85rem; color: var(--muted); text-decoration: none; padding: 4px 10px; background: var(--surface-2); border-radius: 8px; }
.tag-list a:hover { color: var(--heading); }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 1.5rem 0; }
.share a, .share button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--heading); color: var(--heading); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 1.5rem; }
.author-box img, .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar { display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-heading); font-size: 1.8rem; }
.author-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--heading); margin: 0 0 4px; font-weight: 600; }
.author-box p { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Sobre */
.about-hero { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 3rem; }
.about-block { margin-top: 2.5rem; }
.about-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.about-block h2 .bi { color: var(--accent-text); font-size: 1.2rem; }
.about-side { display: grid; gap: 18px; align-content: start; }
.mission-card { background: var(--surface-brand); color: #DCE4EF; border: 0; }
.mission-card h2 { color: #fff; }
.mission-card p { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.55; }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 12px; }
.value-list li > .bi { color: var(--accent-text); font-size: 1.1rem; margin-top: 2px; }
.value-list strong { display: block; color: var(--heading); font-size: .95rem; }
.value-list span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { display: flex; gap: 18px; padding-bottom: 22px; position: relative; }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; }
.timeline h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 650; margin: 0 0 2px; }
.timeline-period { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: 650; margin: 0 0 4px; }
.timeline-sub { color: var(--muted); font-size: .92rem; margin: 0 0 4px; }
.timeline p:last-child { margin-bottom: 0; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cert-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-left: 3px solid var(--accent); }
.social-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.social-list a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.social-list a:hover { border-color: var(--accent); color: var(--accent-text); }
.social-list-lg a { width: 44px; height: 44px; font-size: 1.1rem; }

/* ---------------------------------------------------------------- Ferramentas */
.tool-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 2rem; }
.tool-form { position: sticky; top: calc(var(--header-h) + 16px); }
.tool-actions { display: flex; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.tool-results { min-height: 420px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h2 { margin: 0; }
.results-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.results-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.results-empty .bi { font-size: 2.6rem; color: rgba(var(--accent-rgb), .7); display: block; margin-bottom: .5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.kpi-value { font-size: 1.28rem; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.25; word-break: break-word; }
.kpi-sub { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.kpi-primary { background: var(--surface-brand); border-color: transparent; }
.kpi-primary .kpi-label { color: color-mix(in srgb, var(--accent) 65%, #fff); }
.kpi-primary .kpi-value { color: #fff; font-size: 1.45rem; }
.kpi-primary .kpi-sub { color: #BFCADB; }
.kpi-accent { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .08); }
.chart-box { position: relative; height: 320px; margin-top: 20px; }
.table-box { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; }
.table-box summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--heading); }
.table-box[open] summary { border-bottom: 1px solid var(--border); }
.table-tools { display: flex; justify-content: flex-end; padding: 8px 10px 0; }
.table-wrap { overflow: auto; max-height: 460px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--heading); font-weight: 650; z-index: 1; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.data-table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.data-table .actions form { margin: 0; }
.tool-group { margin-bottom: 2.5rem; }
.tool-notes ul { padding-left: 1.1em; }

/* ---------------------------------------------------------------- Trilhas e aulas */
.trail-hero { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: center; }
.trail-hero .meta { margin: 1rem 0 1.4rem; }
.progress-card { text-align: left; }
.progress-number { font-family: var(--font-heading); font-size: 2.6rem; color: var(--heading); margin: 0 0 8px; line-height: 1; }
.progress-card .progress { margin-bottom: 8px; }
.module { margin-top: 2.2rem; }
.module-title { font-size: 1.35rem; display: flex; flex-direction: column; gap: 4px; }
.module-num { font-family: var(--font-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); font-weight: 700; }
.lesson-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lesson-list li + li { border-top: 1px solid var(--border); }
.lesson-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.lesson-list a:hover { background: var(--surface-2); }
.lesson-status { color: var(--border-strong); font-size: 1.1rem; }
.is-done .lesson-status { color: var(--success); }
.lesson-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lesson-text strong { color: var(--heading); font-weight: 600; }
.lesson-text small { color: var(--muted); }
.lesson-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.lesson-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; padding-block: 1.5rem 3rem; align-items: start; }
.lesson-nav { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.lesson-nav-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.lesson-nav-box summary { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--heading); cursor: pointer; font-size: .92rem; }
.lesson-nav-box summary span { flex: 1; }
.lesson-nav-module { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; margin: 16px 0 6px; }
.lesson-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lesson-nav li a { display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.lesson-nav li a .bi { color: var(--border-strong); margin-top: 2px; }
.lesson-nav li.is-done a .bi { color: var(--success); }
.lesson-nav li a:hover { background: var(--surface-2); }
.lesson-nav li.is-current a { background: var(--primary); color: var(--primary-ink); }
.lesson-nav li.is-current a .bi { color: inherit; }
.lesson-main { max-width: 780px; }
.lesson-header h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-image img { border-radius: var(--radius); margin: 1.2rem 0; }
.lesson-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 2rem 0; }
.extra-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.extra-card:hover { border-color: var(--accent); color: var(--text); }
.extra-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.extra-card small { color: var(--muted); font-size: .78rem; }
.extra-card strong { color: var(--heading); font-size: .95rem; }
.extra-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); }
.quiz { margin: 2rem 0; }
.quiz-q { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.quiz-q legend { font-weight: 600; font-size: 1rem; padding: 0 4px; line-height: 1.45; }
.quiz-n { color: var(--accent-text); }
.quiz-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0 0; font-weight: 450; cursor: pointer; color: var(--text); }
.quiz-option:hover { border-color: var(--border-strong); }
.quiz-option input { margin-top: 4px; accent-color: var(--brand); }
.quiz-option.is-correct { border-color: var(--success); background: var(--success-bg); color: var(--text); }
.quiz-option.is-chosen-wrong { border-color: var(--danger); background: var(--danger-bg); }
.quiz-q.is-right { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.quiz-q.is-wrong { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.quiz-explanation { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-result { margin-top: 14px; }
.lesson-complete { margin: 2rem 0; padding: 18px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.lesson-complete p { margin: 0; }
.lesson-complete form { margin: 0; }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--heading); background: var(--surface); }
.pager-link:hover { border-color: var(--accent); color: var(--heading); }
.pager-link span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.pager-link small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.pager-next { justify-content: flex-end; text-align: right; }

/* ---------------------------------------------------------------- Glossário */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2rem; position: sticky; top: var(--header-h); background: var(--bg); padding: 10px 0; z-index: 5; }
.az-nav a, .az-nav span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.az-nav a { background: var(--surface); border: 1px solid var(--border); color: var(--heading); }
.az-nav a:hover { border-color: var(--accent); }
.az-nav span { color: var(--border-strong); }
.glossary-letter { margin-bottom: 2rem; }
.letter-head { font-size: 2rem; color: var(--accent-text); border-bottom: 1px solid var(--border); padding-bottom: .3rem; margin-bottom: 1rem; }
.glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.glossary-item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.glossary-item dt { font-weight: 650; margin-bottom: 4px; }
.glossary-item dt a { color: var(--heading); text-decoration: none; }
.glossary-item dt a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.glossary-item dd { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.example-box { margin: 1.6rem 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.example-box .prose p:last-child { margin-bottom: 0; }
.term-section { margin-top: 2rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.link-list a:hover { border-color: var(--accent); color: var(--text); }
.link-list strong { color: var(--heading); }
.link-list span { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- Diagnóstico */
.diagnostic { padding: clamp(20px, 1rem + 2vw, 36px); }
.diag-progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; display: none; }
.diag-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .3s; }
.diagnostic.is-stepped .diag-progress { display: block; }
.diag-step { margin-bottom: 26px; }
.diag-step legend { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.diag-dim { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: 700; }
.diag-q { font-family: var(--font-heading); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: var(--heading-weight); color: var(--heading); line-height: 1.3; }
.diag-options { display: grid; gap: 10px; }
.diag-option { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--text); margin: 0; transition: border-color .15s, background .15s; }
.diag-option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.diag-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.diag-option:has(input:checked) { border-color: var(--primary); background: rgba(var(--accent-rgb), .08); }
.diag-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; }
.diag-nav [data-diag-submit] { margin-left: auto; }
.report-head { display: flex; gap: 28px; align-items: center; }
.score-ring { --c: var(--accent); width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--score) * 1%), var(--surface-2) 0); }
.score-ring > span { width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: flex; align-items: baseline; justify-content: center; padding-top: 38px; gap: 2px; }
.score-ring strong { font-family: var(--font-heading); font-size: 2.6rem; color: var(--heading); line-height: 1; }
.score-ring small { color: var(--muted); }
.score-ring.level-critico { --c: var(--danger); }
.score-ring.level-construcao { --c: #D08A1E; }
.score-ring.level-organizado { --c: var(--accent); }
.score-ring.level-avancado { --c: var(--success); }
.report-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; }
.dim-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.progress-row { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 5px; }
.dim-list .is-low .progress > span { background: var(--danger); }
.dim-list .is-mid .progress > span { background: #D08A1E; }
.dim-list .is-high .progress > span { background: var(--success); }
.attention-list { margin: 0; padding-left: 1.1em; }
.attention-list li { margin-bottom: 6px; }
.rec-card h3 { display: flex; gap: 8px; align-items: center; }
.rec-card h3 .bi { color: var(--accent-text); }

/* ---------------------------------------------------------------- Contato / conta / auth */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); padding: 16px 18px; }
a.contact-item:hover { border-color: var(--accent); color: var(--text); }
.contact-item > span:last-child { display: flex; flex-direction: column; }
.contact-item strong { color: var(--heading); }
.contact-item small { color: var(--muted); word-break: break-all; }
.notice-card { background: var(--surface-2); box-shadow: none; }
.notice-card p { margin: 0; }
.auth-wrap { display: grid; place-items: center; padding-block: 3rem 4rem; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card h1 { display: flex; gap: 10px; align-items: center; }
.auth-card .bi { color: var(--accent-text); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.account-actions { display: flex; gap: 8px; }
.account-actions form { margin: 0; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.account-grid h2 { display: flex; gap: 8px; align-items: center; }
.account-grid h2 .bi { color: var(--accent-text); }
.progress-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.simple-list { list-style: none; padding: 0; margin: 0 0 12px; }
.simple-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.page-hero-sm { padding-block: 1.5rem; }
.install-body { padding-block: 3rem; }
.install-card { max-width: 760px; margin: 0 auto; }
.install-head { display: flex; gap: 16px; align-items: center; margin-bottom: 1.5rem; }
.install-head h1 { font-size: 1.8rem; margin: 0; }
.install-head p { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 6px; font-size: .92rem; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist .is-ok .bi { color: var(--success); }
.checklist .is-fail .bi { color: var(--danger); }
.checklist .is-warn .bi { color: var(--warning); }

/* ---------------------------------------------------------------- Newsletter / rodapé */
.newsletter-band { background: var(--surface-brand); color: #DCE4EF; padding-block: 2.6rem; margin-top: 2rem; }
.newsletter-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: .3em; }
.newsletter-band p { color: #C3CEDD; margin: 0; }
.newsletter-band .check.small, .newsletter-band .check.small a { color: #AEBBCD; }
.newsletter-band .form-feedback.is-ok { color: #8FE0B5; }
.newsletter-band .form-feedback.is-error { color: #FFB4AB; }
.newsletter-fields { display: flex; gap: 8px; }
.newsletter-fields input { flex: 1; min-width: 0; }
.newsletter-band input[type="email"] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.newsletter-band input[type="email"]::placeholder { color: #A8B4C6; }
.newsletter-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 2rem + 2vw, 48px); box-shadow: var(--shadow); }
.newsletter-card h2 { margin-top: 12px; }
.site-footer { background: var(--surface-brand); color: #B6C2D3; padding-top: 3.2rem; font-size: .92rem; border-top: 1px solid rgba(var(--accent-rgb), .35); }
.newsletter-band + .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #D7DFEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.footer-title { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 14px; }
.brand-footer, .brand-footer:hover { color: #fff; margin-bottom: 12px; }
.brand-footer .brand-mark { background: rgba(255, 255, 255, .08); }
.footer-brand p { max-width: 36ch; }
.site-footer .social-list a { border-color: rgba(255, 255, 255, .18); color: #D7DFEA; }
.site-footer .social-list a:hover { border-color: var(--accent); color: #fff; }
.footer-contact { margin-top: 14px; }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.disclaimer { font-size: .8rem; color: #93A1B5; max-width: 110ch; }
.copyright { font-size: .8rem; color: #93A1B5; margin: 0; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; font-size: 1.5rem; box-shadow: var(--shadow-lg); z-index: 40; text-decoration: none; transition: transform .15s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
.back-to-top { position: fixed; right: 18px; bottom: 80px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--heading); box-shadow: var(--shadow); z-index: 40; text-decoration: none; }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--heading); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastIn .25s ease; transition: opacity .35s, transform .35s; }
.toast-success { background: var(--success); color: #fff; }
.toast-danger { background: var(--danger); color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Paginação */
.pagination { margin-top: 2.5rem; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--heading); }
.pagination [aria-current] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
  .toc details:not([open]) summary { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-nav { position: static; max-height: none; }
  .lesson-nav-box:not([open]) { padding-block: 12px; }
}
@media (max-width: 960px) {
  .brand-tagline { max-width: 240px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hide-mobile { display: none !important; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 18px 20px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; margin: 0; border-top: 1px solid var(--border); }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .submenu { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 0 8px 8px; display: none; background: transparent; }
  .has-sub.is-open .submenu { display: block; transform: none; }
  .nav-mobile-extra { display: block; margin-top: 18px; }
  body.nav-open { overflow: hidden; }
  .hero-grid, .about-hero, .trail-hero, .intro-grid, .newsletter-band-inner, .newsletter-card { grid-template-columns: 1fr; }
  .hero-profile { order: -1; width: min(100%, 340px); }
  .about-hero .profile-frame { margin: 0 auto; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-form { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4, .glossary-list, .account-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .brand-text { font-size: 1.02rem; max-width: 170px; }
  .brand-tagline { font-size: .68rem; max-width: 190px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-fields { flex-direction: column; }
  .lesson-pager { grid-template-columns: 1fr; }
  .report-head { flex-direction: column; text-align: center; }
  .report-head .hero-actions { justify-content: center; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.08rem; }
  .kpi-primary { grid-column: 1 / -1; }
  .chart-box { height: 260px; }
  .material-card { flex-direction: column; }
  .cta-panel .btn { width: 100%; }
  .auth-card { padding: 22px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .back-to-top { right: 14px; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Impressão */
@media print {
  .site-header, .site-footer, .newsletter-band, .breadcrumbs, .whatsapp-float, .back-to-top, .tool-form, .results-tools, .no-print, .share, .lesson-nav, .toast-wrap, .flash-wrap, .table-tools { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .tool-layout { grid-template-columns: 1fr; }
  .card, .kpi { box-shadow: none; border-color: #ccc; }
  .kpi-primary { background: #fff; border: 2px solid #000; }
  .kpi-primary .kpi-value, .kpi-primary .kpi-label, .kpi-primary .kpi-sub { color: #000; }
  .table-box { display: block; }
  .table-box[hidden] { display: none !important; }
  .table-wrap { max-height: none; overflow: visible; }
  .chart-box { break-inside: avoid; }
  a { color: #000; }
}
.diag-nav [data-diag-next] { margin-left: auto; }
