/* BigPayCapitals — Guia Editorial de Gramática Inglesa */
:root {
  --brand: #00a99d;
  --brand-dark: #00857c;
  --brand-deep: #045f59;
  --brand-soft: #e3f5f3;
  --ink: #16242c;
  --ink-2: #3c4a52;
  --muted: #66747c;
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --line: #e4e0d8;
  --ok: #1f8a4c;
  --ok-soft: #e6f5ec;
  --bad: #c2412d;
  --bad-soft: #fdecea;
  --warn-soft: #fff5e0;
  --lv-ini: #0f8f84;
  --lv-ini-soft: #e0f4f1;
  --lv-int: #b86b00;
  --lv-int-soft: #fff1da;
  --lv-adv: #5b4bc4;
  --lv-adv-soft: #ecebfb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 36, 44, .05), 0 4px 16px rgba(22, 36, 44, .06);
  --shadow-lg: 0 12px 40px rgba(22, 36, 44, .14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
.h3 { font-family: var(--sans); font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
mark { background: #fff0b3; color: inherit; padding: 0 2px; border-radius: 3px; }
:focus-visible { outline: 3px solid rgba(0, 169, 157, .45); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.icon { flex-shrink: 0; vertical-align: middle; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn--danger { background: transparent; color: var(--bad); border-color: #efc6bf; }
.btn--danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--filters { margin-top: 16px; }
.pill { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }

/* Badges de nível */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge--iniciante { background: var(--lv-ini-soft); color: var(--lv-ini); }
.badge--intermediario { background: var(--lv-int-soft); color: var(--lv-int); }
.badge--avancado { background: var(--lv-adv-soft); color: var(--lv-adv); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand img { height: 34px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; color: var(--ink-2); font: 500 .94rem var(--sans); text-decoration: none; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .sub-toggle:hover, .main-nav a.active { color: var(--brand-deep); background: var(--brand-soft); }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.submenu--wide { display: none; grid-template-columns: 1fr 1fr; min-width: 520px; left: -140px; }
.has-sub.open > .submenu { display: block; }
.has-sub.open > .submenu--wide { display: grid; }
.submenu a { display: flex; width: 100%; border-radius: var(--radius-sm); color: var(--ink); }
.submenu a .icon { color: var(--brand); }
.header-actions { display: flex; gap: 4px; }
.nav-toggle { display: none; }

/* Busca global */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(22, 36, 44, .45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-dialog { width: 100%; max-width: 680px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-form input { flex: 1; border: 0; font: 500 1.1rem var(--sans); padding: 10px 0; outline: none; background: transparent; color: var(--ink); min-width: 0; }
.search-results { max-height: 55vh; overflow-y: auto; }
.search-results a, .live-results a { display: block; padding: 12px 20px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--surface-2); }
.search-results a:hover, .search-results a.is-active, .live-results a:hover, .live-results a.is-active { background: var(--brand-soft); }
.sr-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sr-sub { display: block; font-size: .85rem; color: var(--muted); }
.sr-empty { padding: 16px 20px; color: var(--muted); }
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; background: var(--bg); font-size: .85rem; color: var(--muted); }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Hero */
.hero { padding: 56px 0 48px; background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 169, 157, .12), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(0, 169, 157, .06), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 12px; }
.hl { color: var(--brand-dark); }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; margin: 26px 0 20px; padding: 6px 6px 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); color: var(--muted); max-width: 580px; }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 169, 157, .15); }
.hero-search input { flex: 1; border: 0; background: transparent; font: 500 1rem var(--sans); padding: 10px 0; outline: none; color: var(--ink); min-width: 0; }
.hero-search--page { margin-top: 18px; }
.live-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 20; text-align: left; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-panel { padding: 28px; }
.panel-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.continue-title { font-size: 1.6rem; }
.continue-title a { color: var(--ink); text-decoration: none; }
.continue-text { color: var(--ink-2); font-size: .95rem; }
.progress-caption { font-size: .88rem; color: var(--muted); margin: 8px 0 18px; }

/* Barras de progresso */
.progress-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #29c3b6); border-radius: 999px; transition: width .6s ease; }

/* Stats */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 20px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--brand-dark); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }
.stats--cards { padding: 0; margin-bottom: 32px; }
.stats--cards .card { padding: 20px; }

/* Seções */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-2); }
.section-tight { padding-top: 28px; padding-bottom: 64px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.section-sub { font-size: 1.3rem; margin-top: 40px; }
.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 169, 157, .06), transparent); }
.page-head--icon { display: flex; gap: 22px; align-items: flex-start; }
.page-head--intermediario { background: linear-gradient(180deg, rgba(184, 107, 0, .07), transparent); }
.page-head--avancado { background: linear-gradient(180deg, rgba(91, 75, 196, .07), transparent); }

/* Grids e cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--topics { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.lesson-card { position: relative; padding: 20px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lesson-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfe9e6; }
.lesson-card h3 { font-family: var(--serif); font-size: 1.3rem; margin: 12px 0 8px; }
.lesson-card h3 a { color: var(--ink); text-decoration: none; }
.lesson-card h3 a::after { content: ""; position: absolute; inset: 0; }
.lesson-card p { color: var(--ink-2); font-size: .93rem; flex: 1; }
.lesson-card__top { display: flex; align-items: center; gap: 10px; }
.lesson-card__cat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.lesson-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.lesson-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.lesson-card__score:empty { display: none; }
.lesson-card__score { color: var(--ok); font-weight: 700; }
.status-dot { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.is-done .status-dot { background: var(--ok); border-color: var(--ok); }
.is-progress .status-dot { background: #f2b53a; border-color: #f2b53a; }

.level-card { padding: 26px; text-decoration: none; color: var(--ink); border-top: 5px solid var(--lv-ini); transition: transform .15s, box-shadow .15s; }
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.level-card--intermediario { border-top-color: var(--lv-int); }
.level-card--avancado { border-top-color: var(--lv-adv); }
.level-card h3 { font-family: var(--serif); font-size: 1.5rem; }
.level-card p { color: var(--ink-2); font-size: .94rem; }
.level-card__cefr { font-size: .8rem; font-weight: 700; color: var(--muted); }
.level-card__meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; }

.topic-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.topic-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.topic-icon--lg { width: 72px; height: 72px; border-radius: 18px; }
.topic-body strong { display: block; font-size: .98rem; }
.topic-body small { color: var(--muted); }
.topic-card--all { background: var(--brand-soft); border-color: #bfe6e1; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }

.feature-card { padding: 26px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.feature-card p { color: var(--ink-2); font-size: .94rem; }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 16px; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-weight: 600; }

.editorial-note { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 500; }
.checklist .icon { color: var(--ok); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; margin-top: 40px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); flex-wrap: wrap; }
.cta-band h2 { font-size: 1.35rem; margin-bottom: 4px; }
.cta-band p { margin: 0; color: var(--ink-2); }

/* Explorer */
.explorer { padding-top: 28px; padding-bottom: 64px; }
.filters { padding: 20px; display: grid; gap: 16px; margin-bottom: 18px; }
.filter-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); }
.filter-search input { flex: 1; border: 0; background: transparent; padding: 12px 0; font: 500 1rem var(--sans); outline: none; color: var(--ink); min-width: 0; }
.filter-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.filter-group { display: flex; flex-direction: column; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .9rem; font-weight: 500; background: var(--surface); }
.seg label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid rgba(0, 169, 157, .45); }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-select { flex: 1 1 180px; }
select, input[type=text], input[type=email], textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 500 .95rem var(--sans); background: var(--surface); color: var(--ink); }
select:focus, input:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 169, 157, .15); }
.explorer-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); }
.explorer-status p { margin: 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Tema / nível / trilha */
.level-block { margin-bottom: 40px; }
.level-block h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.level-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 18px; flex-wrap: wrap; }
.level-tabs a { padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.level-tabs a.active { background: var(--surface); color: var(--brand-deep); box-shadow: var(--shadow); }
.level-progress { max-width: 420px; margin-top: 16px; }
.level-progress p { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: flex; gap: 18px; margin-bottom: 14px; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--muted); }
.timeline-item.is-done .timeline-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline-item.is-progress .timeline-dot { border-color: #f2b53a; color: var(--lv-int); }
.timeline-item.is-next .timeline-dot { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 0 0 5px rgba(0, 169, 157, .18); }
.timeline-item.is-next .timeline-body { border-color: var(--brand); }
.timeline-body { flex: 1; padding: 18px 20px; }
.timeline-body h2 { font-size: 1.25rem; margin: 6px 0; }
.timeline-body h2 a { color: var(--ink); text-decoration: none; }
.timeline-body p { color: var(--ink-2); font-size: .93rem; margin-bottom: 8px; }
.timeline-body--compact { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); padding: 14px 18px; transition: border-color .15s; }
.timeline-body--compact:hover { border-color: var(--brand); color: var(--ink); }
.timeline-body--compact strong { font-family: var(--serif); font-size: 1.15rem; }
.trail-level { margin-bottom: 44px; }
.trail-level__head { margin-bottom: 18px; }
.trail-level__head h2 { margin-top: 10px; }
.trail-level__head p { color: var(--ink-2); max-width: 70ch; }
.trail-summary { padding: 18px 22px; margin-top: 20px; max-width: 560px; }
.trail-summary p { margin: 10px 0 0; font-size: .92rem; }

/* Busca */
.search-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.search-item { padding: 20px; }
.search-item h2 { font-size: 1.3rem; margin: 10px 0 6px; }
.search-item h2 a { color: var(--ink); text-decoration: none; }
.search-item p { color: var(--ink-2); margin: 0; font-size: .94rem; }

/* Lição */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 18px; padding-bottom: 64px; }
.lesson { min-width: 0; }
.lesson-header { padding: 14px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.lesson-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.kicker-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.lesson-status:empty { display: none; }
.lesson-status { font-size: .8rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 999px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.lesson-meta li { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta li:last-child { display: block; }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.72; color: #22323a; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.page-prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.lesson-section { margin: 40px 0; scroll-margin-top: 90px; }
.lesson-section > h2 { padding-top: 6px; }
.toc-mobile { display: none; }

.examples { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.examples li { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.examples .speak { grid-row: span 2; align-self: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--brand-dark); display: grid; place-items: center; padding: 0; }
.examples .speak:hover, .examples .speak.is-playing { background: var(--brand); color: #fff; border-color: var(--brand); }
.ex-en { font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.ex-pt { color: var(--muted); font-size: .94rem; font-style: italic; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fcfbf9; }

.exceptions { display: grid; gap: 14px; }
.exception { padding: 20px 22px; background: var(--warn-soft); border: 1px solid #f3dfb4; border-radius: var(--radius); }
.exception h3 { margin-bottom: 8px; }
.exception .prose { font-size: 1.04rem; }
.exception .examples li { border-left-color: #e0a634; }

.mistakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mistake { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mistake p { margin: 0 0 6px; display: flex; gap: 8px; align-items: flex-start; }
.mistake-wrong { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 600; }
.mistake-wrong .icon, .mistake-right .icon { margin-top: 4px; }
.mistake-right { color: var(--ok); font-weight: 600; }
.mistake-why { color: var(--ink-2); font-size: .9rem; margin-top: 8px !important; display: block !important; }

.callout { padding: 20px 24px; border-radius: var(--radius); margin: 26px 0; }
.callout--info { background: var(--brand-soft); border: 1px solid #bfe6e1; }
.callout--tip { background: #f1f7ff; border: 1px solid #d1e3fa; }
.callout-title { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 1.05rem; color: #1f5fa8; }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: 6px; }

/* Exercícios */
.exercises { padding: 28px; background: var(--surface-2); border-radius: 20px; }
.exercises-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.exercises-head p { color: var(--ink-2); margin: 0; }
.score-live { position: sticky; top: 80px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.quiz { display: grid; gap: 14px; }
.question { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; min-width: 0; }
.question legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; font-size: .82rem; font-weight: 600; color: var(--muted); float: left; width: 100%; margin-bottom: 10px; }
.question legend + * { clear: both; }
.q-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.q-source { color: var(--ink-2); }
.q-text { font-size: 1.12rem; font-weight: 600; margin-bottom: 12px; }
.q-fill { line-height: 2.2; }
.q-hint { font-size: .86rem; color: var(--muted); margin: -4px 0 10px; }
.blank { display: inline-block; width: auto; min-width: 120px; max-width: 100%; margin: 0 6px; padding: 5px 10px; border: 0; border-bottom: 2px solid var(--brand); border-radius: 6px 6px 0 0; background: var(--brand-soft); font: 600 1rem var(--sans); color: var(--brand-deep); text-align: center; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; background: var(--surface); }
.option:hover { border-color: var(--brand); }
.option input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option.is-right, .option--answer { border-color: var(--ok) !important; background: var(--ok-soft) !important; }
.option.is-picked-wrong { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.question.is-locked .option { cursor: default; }
.question.is-correct { border-color: #9fd6b5; }
.question.is-wrong { border-color: #f0b8ae; }
.question.is-correct .blank { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.question.is-wrong .blank { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.feedback:empty { display: none; }
.feedback { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .93rem; animation: pop .25s ease; }
.feedback p { margin: 0; }
.is-correct .feedback { background: var(--ok-soft); color: #185c35; }
.is-wrong .feedback { background: var(--bad-soft); color: #8a2c1d; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.quiz-summary { padding: 24px; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); text-align: center; animation: pop .3s ease; }
.quiz-summary .big { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--brand-dark); line-height: 1; margin-bottom: 6px; }
.quiz-summary .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result-box { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 16px; }
.result-box p, .result-box ul { margin: 6px 0 0; }
.result-box--ok { background: var(--ok-soft); border: 1px solid #9fd6b5; }
.result-box--warn { background: var(--bad-soft); border: 1px solid #f0b8ae; }
.quiz-progress { display: flex; align-items: center; gap: 12px; position: sticky; top: 76px; z-index: 5; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.quiz-progress .progress-bar { flex: 1; }

/* Próximos passos */
.next-card { display: grid; gap: 6px; padding: 22px 24px; text-decoration: none; color: var(--ink); border-left: 5px solid var(--brand); transition: transform .15s; }
.next-card:hover { transform: translateX(3px); color: var(--ink); }
.next-card strong { font-family: var(--serif); font-size: 1.4rem; }
.next-card > span:not(.panel-label) { color: var(--ink-2); font-size: .94rem; }
.next-card__meta { display: flex; align-items: center; justify-content: space-between; color: var(--brand-dark) !important; }
.recommend { margin-top: 14px; padding: 18px 22px; background: var(--warn-soft); border: 1px solid #f3dfb4; border-radius: var(--radius); }
.recommend p { margin: 0 0 6px; }
.related-title { margin: 30px 0 14px; font-size: 1.1rem; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.prev-next a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; max-width: 48%; }
.prev-next a span { display: flex; flex-direction: column; }
.prev-next small { color: var(--muted); font-weight: 500; }
.prev-next .next { text-align: right; margin-left: auto; }

.lesson-aside { position: relative; }
.aside-sticky { position: sticky; top: 92px; display: grid; gap: 16px; }
.toc { padding: 18px 20px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .88rem; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); }
.toc a.active { color: var(--brand-deep); background: var(--brand-soft); border-left-color: var(--brand); font-weight: 600; }
.aside-progress { padding: 18px 20px; }
.aside-score { font-weight: 700; margin-bottom: 12px; }
.aside-progress .small { margin: 6px 0 0; }

/* Nivelamento / simulado / progresso */
.placement-result { padding: 28px; margin-bottom: 24px; }
.level-bars { display: grid; gap: 12px; margin: 18px 0; }
.level-bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: .92rem; }
.level-bar strong { text-align: right; }
.rec-list { padding-left: 1.1em; }
.rec-list li { margin-bottom: 8px; }
.sim-config { padding: 22px; margin-bottom: 26px; display: grid; gap: 18px; }
.sim-config fieldset { border: 0; padding: 0; margin: 0; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--surface); }
.check-chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); font-weight: 600; }
.check-chip input { accent-color: var(--brand); }
.review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; margin-bottom: 18px; }
.review-toolbar p { margin: 0; }
.review-actions { display: flex; gap: 8px; }
.progress-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.progress-columns aside { display: grid; gap: 16px; align-content: start; }
.progress-columns aside .card { padding: 20px; }
.rec-cards { display: grid; gap: 12px; margin-bottom: 36px; }
.rec-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.rec-card:hover { border-color: var(--brand); color: var(--ink); }
.rec-card .rec-why { display: block; font-size: .8rem; color: var(--brand-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rec-card strong { font-family: var(--serif); font-size: 1.15rem; }
.rec-card small { display: block; color: var(--muted); }
.rec-card .icon { margin-left: auto; color: var(--brand); }
.topic-bars { display: grid; gap: 12px; }
.topic-bar { display: grid; grid-template-columns: 200px 1fr 70px; gap: 12px; align-items: center; font-size: .9rem; }
.topic-bar a { color: var(--ink); text-decoration: none; font-weight: 500; }
.topic-bar span:last-child { text-align: right; color: var(--muted); }
.activity { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .88rem; }
.activity li { display: flex; justify-content: space-between; gap: 10px; }
.activity time { color: var(--muted); white-space: nowrap; }
.stack { display: grid; gap: 8px; }
.file-btn { cursor: pointer; }

/* Formulário */
.contact-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
.contact-grid aside { padding: 22px; }
.form { padding: 24px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { margin-top: 4px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #11272a; color: #c5d3d4; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-about img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-about p { font-size: .92rem; }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c5d3d4; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer small { color: #8aa0a2; }
.footer-bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8aa0a2; }
.footer-bottom .link-btn { color: #c5d3d4; }

/* Cookie banner e toast */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: 18px; align-items: center; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 999px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .25s ease; }

/* Responsivo */
@media (max-width: 1080px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { display: none; }
  .toc-mobile { display: block; margin: 0 0 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .toc-mobile summary { font-weight: 700; cursor: pointer; }
  .toc-mobile ol { margin: 10px 0 0; padding-left: 1.3em; }
  .toc-mobile li { margin: 4px 0; }
  .progress-columns { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 16px 20px 40px; overflow-y: auto; display: none; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .sub-toggle { width: 100%; padding: 14px 12px; font-size: 1.05rem; border-radius: var(--radius-sm); justify-content: space-between; }
  .submenu, .submenu--wide { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 10px; background: transparent; grid-template-columns: 1fr; }
  .submenu a { justify-content: flex-start; font-size: .98rem; padding: 10px 12px; }
  .hero-grid, .editorial-note { grid-template-columns: 1fr; gap: 28px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .brand img { height: 26px; }
  .hero { padding: 32px 0; }
  .hero-search { border-radius: 16px; flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .hero-search .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 44px 0; }
  .grid--2, .grid--3, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .options { grid-template-columns: 1fr; }
  .mistakes { grid-template-columns: 1fr; }
  .exercises { padding: 18px 14px; margin-left: -4px; margin-right: -4px; border-radius: 16px; }
  .question { padding: 16px; }
  .prose { font-size: 1.06rem; }
  .score-live { position: static; }
  .topic-bar { grid-template-columns: 1fr 60px; }
  .topic-bar .progress-bar { grid-column: 1 / -1; grid-row: 2; }
  .level-bar { grid-template-columns: 90px 1fr 40px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .page-head--icon { flex-direction: column; gap: 14px; }
  .prev-next { flex-direction: column; }
  .prev-next a { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 22px; }
  .cta-band .btn { width: 100%; }
  .timeline::before { left: 15px; }
  .timeline-dot { width: 32px; height: 32px; font-size: .8rem; }
  .timeline-item { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .lesson-aside, .exercises, .next-steps, .cookie-banner, .speak { display: none !important; }
  .lesson-layout { display: block; }
}
