/* teste·cidadania·portuguesa — single stylesheet, system fonts, no framework */
/* Palette F "Preto e branco" (2026-10-06, founder choice): monochrome; colour only for correct / wrong,
   plus a muted amber used sparingly for "not regulated yet". --brand / --accent are kept as token names
   (used across v1–v3 rules) but now resolve to the text colour, so no teal or orange remains. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f3;
  --ink: #111111;
  --muted: #5f5f5b;
  --line: #e6e6e3;
  --brand: #111111;
  --brand-ink: #111111;
  --brand-soft: #f2f2f0;
  --on-brand: #ffffff;
  --accent: #111111;
  --accent-ink: #333333;
  --on-accent: #ffffff;
  --link: #111111;
  --warn-bg: #f8f2e4;
  --warn-ink: #5a4210;
  --warn-dot: #b7791f;
  --ok: #2f7d4f;
  --ok-bg: #edf5f0;
  --bad: #b3261e;
  --bad-bg: #fbeceb;
  --focus: #111111;
  --radius: 12px;
  --shadow: none;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: var(--sans); /* one clean sans for everything (see BUILD-NOTES §12) */
  --maxw: 72rem;
  --readw: 44rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #181818;
    --surface-2: #1f1f1f;
    --ink: #f2f2f2;
    --muted: #9e9e9a;
    --line: #2a2a2a;
    --brand: #f2f2f2;
    --brand-ink: #f2f2f2;
    --brand-soft: #262626;
    --on-brand: #111111;
    --accent: #f2f2f2;
    --accent-ink: #d6d6d6;
    --on-accent: #111111;
    --link: #f2f2f2;
    --warn-bg: #29231a;
    --warn-ink: #e8d3a2;
    --warn-dot: #d9a441;
    --ok: #6fbf8e;
    --ok-bg: #16251b;
    --bad: #f08a80;
    --bad-bg: #2c1715;
    --focus: #f2f2f2;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.9rem); margin: .6rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 650; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--readw); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 10; box-shadow: var(--shadow); }
.skip:focus { top: 8px; }
.fine { font-size: .875rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* status banner — one line on mobile (P0-1) */
.status-banner { background: var(--warn-bg); color: var(--warn-ink); font-size: .875rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.status-banner p { max-width: var(--maxw); margin: 0 auto; padding: .4rem 16px; line-height: 1.45; }
.status-banner a { color: inherit; font-weight: 700; display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
.status-banner .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--warn-dot); margin-right: .45rem; vertical-align: .05em; }
.status-banner.is-published { background: var(--ok-bg); color: var(--ink); }
.status-banner.is-published .dot { background: var(--ok); }
@media (max-width: 419px) { .status-banner .sb-date { display: none; } }

/* header — single 56px row on mobile, <details> menu (P0-1) */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 56px; padding-top: .35rem; padding-bottom: .35rem; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; min-height: 44px; flex: none; }
.brand-mark { color: var(--brand); flex: none; }
.brand-mark .bm-ring { fill: var(--surface); }
.brand-text { font-size: 1.05rem; white-space: nowrap; }
.brand-dot { color: var(--muted); padding: 0 .05em; }
@media (max-width: 419px) { .brand-long { display: none; } }
.header-actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--accent-ink); }
.lang-switch { font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; color: var(--ink); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch:hover { border-color: var(--brand); }
.menu { position: static; }
.menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--surface-2); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.menu-panel ul { list-style: none; margin: 0 auto; padding: .4rem 16px 1rem; max-width: var(--maxw); }
.menu-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.menu-panel li:last-child { border-bottom: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; font-size: 1.0625rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a[aria-current="page"] { color: var(--brand); }
.menu-panel a.nav-cta { color: var(--accent-ink); }
.site-nav.nav-desktop ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; flex: none; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .65rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 550; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--brand-soft); }
.site-nav a.nav-cta { color: var(--accent-ink); }
.nav-desktop { display: none !important; }
@media (min-width: 960px) {
  .nav-desktop { display: flex !important; }
  .site-nav.nav-desktop { flex: 1; justify-content: center; }
  .menu, .header-cta { display: none; }
}

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .875rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding: 2rem 0 1rem; }
.hero .eyebrow, .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .2rem; }
.hero h1 { max-width: 46rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .6rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* cards & grids */
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card.known { border-top: 4px solid var(--ok); }
.card.unknown { border-top: 4px solid var(--warn-dot); }
.check-list, .x-list, .q-list { list-style: none; padding: 0; }
.check-list li, .x-list li, .q-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.x-list li::before { content: "?"; position: absolute; left: .15rem; color: var(--warn-ink); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; }

/* law quotes & callouts */
blockquote.law { margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.05rem; }
blockquote.law p { margin-bottom: .5rem; }
blockquote.law footer { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
blockquote.law cite { font-style: normal; }
.callout { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; border: 1px solid var(--line); background: var(--surface-2); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.callout-warn a { color: inherit; }
.callout-note { font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

/* timeline / changelog */
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 .9rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -.42rem; top: .45rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand); }
.timeline li.pending::before { background: var(--warn-dot); }
.timeline time { font-weight: 700; display: block; font-size: .9rem; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 650; list-style-position: outside; }
.faq summary::marker { color: var(--brand); }
.faq .faq-a { padding: 0 1rem .5rem; }

/* signup */
.signup-box { background: var(--brand-soft); border-radius: var(--radius); padding: 1.3rem 1.2rem .6rem; margin: 2rem 0; max-width: 40rem; }
.signup-box h2 { margin-top: 0; font-size: 1.4rem; }
.signup .field { margin-bottom: .8rem; }
.signup label { font-weight: 600; display: block; margin-bottom: .3rem; }
.signup input[type="email"] { width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.signup input[type="email"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--focus); }
.signup .consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; font-size: .92rem; }
.signup .consent input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--brand); }
.signup .consent label { font-weight: 400; margin: 0; }
.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: .8rem 0 0; font-weight: 600; min-height: 1px; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--bad); }

/* price box */
.price-box { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.4rem 1.3rem 1rem; max-width: 34rem; box-shadow: var(--shadow); margin: 1.5rem 0; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; }

/* quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin: 1.5rem 0 2rem; max-width: 46rem; }
.quiz.quiz-main { background: transparent; border: 0; box-shadow: none; padding: 0; }
.quiz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.quiz progress { width: 100%; height: .5rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .4rem 0 1rem; }
.quiz progress::-webkit-progress-bar { background: var(--surface-2); }
.quiz progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.quiz progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; padding: 0; }
.quiz .opt { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin-bottom: .6rem; cursor: pointer; background: var(--bg); }
.quiz .opt:hover { border-color: var(--brand); }
.quiz .opt input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--brand); }
.quiz .opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.quiz .opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.quiz .opt.is-locked { cursor: default; }
.quiz .opt .mark { margin-left: auto; font-weight: 700; padding-left: .5rem; }
.quiz .feedback { border-radius: 10px; padding: 1rem; margin: 1rem 0; background: var(--surface-2); }
.quiz .feedback:focus { outline: 3px solid var(--focus); }
.quiz .feedback .verdict { font-weight: 700; margin-bottom: .4rem; }
.quiz .feedback .verdict.ok { color: var(--ok); }
.quiz .feedback .verdict.bad { color: var(--bad); }
.quiz .sources { font-size: .875rem; margin: .5rem 0 0; padding-left: 1.1rem; }
.quiz .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.quiz .theme-tag { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--brand); }
.quiz .score { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; margin: .3rem 0; }
.quiz .review-item { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.quiz .review-item p { margin-bottom: .5rem; }
.quiz .yours { color: var(--bad); }
.quiz .right { color: var(--ok); }
.quiz-error { color: var(--bad); font-weight: 600; }

/* misc */
.section-intro { color: var(--muted); max-width: 40rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.site-footer { margin-top: 3.5rem; background: var(--surface); border-top: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-brand { font-weight: 700; margin-bottom: .4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .status-banner, .site-nav, .signup-box, .site-footer, .lang-switch { display: none; }
}

.mt0 { margin-top: 0; }
.mt-lg { margin-top: 1.5rem; }
.quiz .src-label { margin: .6rem 0 0; }

/* preview / placeholder markers (only appear in preview builds) */
.preview-banner { background: #9f2427; color: #fff; text-align: center; font-size: .9rem; padding: .5rem 16px; }
mark.ph { background: #ffe08a; color: #3b2a00; padding: 0 .2em; border-radius: 3px; }

/* SEO week 1 (2026-10-05): embedded/themed quizzes, theme chips, sources, before/after table */
.quiz-embed { margin: 1.25rem 0 1.75rem; }
.quiz-embed legend { font-size: 1.15rem; }
.quiz-embed .score { font-size: 2.4rem; }
.quiz-mode { background: var(--brand-soft); color: var(--brand-ink); border-radius: 8px; padding: .6rem .8rem; font-size: .95rem; }
.quiz-mode a { color: inherit; font-weight: 700; }
.theme-links { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.theme-links a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .95rem; }
.theme-links a:hover { border-color: var(--brand); }
.sources-list ol { padding-left: 1.3rem; font-size: .95rem; }
.sources-list li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.updated { font-size: .9rem; color: var(--muted); }
table.compare td:first-child { font-weight: 600; }
table.compare td { vertical-align: top; }
.verdict-tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; margin-right: .35rem; vertical-align: middle; }
.verdict-tag.is-myth { background: var(--bad-bg); color: var(--bad); }
.verdict-tag.is-true { background: var(--ok-bg); color: var(--ok); }

/* =====================================================================================
   UX v2 (2026-10-05) — research/H-ux-review.md. P0/P1 fixes + mobile quiz v2.
   ===================================================================================== */
:root { --opt-line: #8c8c87; --bar-h: 56px; } /* 3.4:1 on white (WCAG 1.4.11) */
@media (prefers-color-scheme: dark) { :root { --opt-line: #6e6e6a; } } /* 3.4:1 on #181818 */

/* legibility (P1-6) and tap targets (P1-5) */
.fine { font-size: .9375rem; }
.signup .consent { font-size: .9375rem; }
.tag, .verdict-tag { font-size: .8125rem; }
.crumbs a { display: inline-block; padding: .6rem 0; }
.crumbs ol { margin-top: .4rem; }
.theme-links a { min-height: 44px; display: inline-flex; align-items: center; padding: .5rem 1rem; }
.footer-links { columns: 2; column-gap: 1.5rem; }
.footer-links li { margin: 0; break-inside: avoid; }
.footer-links a { display: block; padding: .6rem 0; }
.made-by { font-weight: 600; margin-bottom: .6rem; }

/* buttons */
.btn-lg { min-height: 52px; font-size: 1.0625rem; }
.btn-xl { min-height: 56px; font-size: 1.125rem; padding-inline: 1.6rem; }
.linkbtn { background: none; border: 0; padding: .6rem .2rem; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; min-height: 44px; }
@media (max-width: 719px) { .cta-row .btn { width: 100%; } }

/* hero (P0-2, P1-8) */
.hero { padding: 1.1rem 0 .5rem; }
.hero .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 700; margin-bottom: .1rem; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); margin: .3rem 0 .7rem; }
.hero .lead { font-size: 1.0625rem; margin-bottom: .2rem; }
.hero .cta-row { margin: 1rem 0 .4rem; }
.micro { font-size: .9375rem; color: var(--muted); margin: 0 0 .9rem; }
.trust-strip { display: flex; gap: .55rem; align-items: flex-start; font-size: .9375rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; max-width: 40rem; }
.trust-strip .ts-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); margin-top: .45rem; }
.hero-secondary { font-weight: 600; }
.hero-secondary a { display: inline-block; padding: .5rem 0; }
.hero-demo { margin: .5rem 0 0; }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
  .hero-demo { margin: 0; }
}
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.teaser-label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.teaser .fb-why { font-size: .95rem; }
.before-start { max-width: 44rem; background: var(--surface-2); border-radius: 10px; margin: 1rem 0 0; }
.before-start summary { cursor: pointer; padding: .8rem 1rem; font-weight: 650; min-height: 44px; }
.before-start p { padding: 0 1rem; font-size: .975rem; }
.before-start p:last-child { padding-bottom: .9rem; }

/* quiz page top (P0-3) */
.quiz-h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin: .4rem 0 .3rem; }
.subline { color: var(--muted); margin: 0 0 .5rem; }
.pill-note { display: inline-block; font-size: .9rem; background: var(--surface-2); border-radius: 999px; padding: .35rem .85rem; margin: 0 0 .25rem; }
.pill-note a { display: inline-block; padding: .4rem 0; margin: -.4rem 0; }

/* quiz home / mode picker (§3.7) */
.quiz-main { margin-top: .75rem; }
.qh-card { margin-bottom: 1rem; }
.qh-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; }
.qh-back { margin: .4rem 0 0; }
.qh-last { margin-bottom: .8rem; }
.qh-modes { display: grid; gap: .6rem; }
.mode-card { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 64px; padding: .75rem .9rem; border: 2px solid var(--opt-line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mode-card:hover { border-color: var(--brand); }
.mode-card.is-primary { border-color: var(--brand); background: var(--brand-soft); }
.mode-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: none; color: var(--ink); font-size: 1.1rem; }
.mode-card.is-primary .mode-ic { background: none; color: var(--ink); }
.mode-txt { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.mode-txt span { font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.mode-go { flex: none; color: var(--brand); font-weight: 700; }
details.mode-card { display: block; padding: 0; }
details.mode-card > summary { display: flex; align-items: center; gap: .85rem; min-height: 64px; padding: .75rem .9rem; cursor: pointer; list-style: none; }
details.mode-card > summary::-webkit-details-marker { display: none; }
details.mode-card .theme-links { padding: 0 .9rem .9rem; margin: 0; }
.chip { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--opt-line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.qh-meter { margin-top: 1rem; }
.qh-meter p:first-child { font-weight: 650; margin-bottom: .35rem; }
.qh-foot { margin: .9rem 0 0; }
.bar { display: block; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; }
.bar-fill.is-bad { background: var(--bad); } .bar-fill.is-warn { background: var(--warn-dot); } .bar-fill.is-ok { background: var(--ok); }

/* answer buttons (§3.3, §3.9; P0-6) */
.ans-list { margin: 0; }
.ans { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; margin: 0 0 10px; border: 2px solid var(--opt-line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.0625rem; line-height: 1.35; text-align: left; cursor: pointer; }
.ans:hover { border-color: var(--brand); }
.ans .badge { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--opt-line); font-weight: 700; font-size: .95rem; }
.ans .ans-t { flex: 1; }
.ans .ans-tag { flex: none; font-size: .8125rem; font-weight: 700; color: var(--ok); }
.ans:active { transform: scale(.99); }
.ans.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.ans.is-selected .badge { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ans.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.ans.is-correct .badge { background: var(--ok); color: #fff; border-color: var(--ok); }
.ans.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.ans.is-wrong .badge { background: var(--bad); color: #fff; border-color: var(--bad); }
.ans[aria-disabled="true"] { cursor: default; }
.ans[aria-disabled="true"]:active { transform: none; }
.ans:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* quiz frame (shared by focus mode and inline widgets) */
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; }
.qz-top-inline { margin-bottom: .3rem; font-size: .9375rem; color: var(--muted); }
.qz-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.qz-count-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); min-height: 44px; padding: 0 .5rem; cursor: pointer; }
.qz-right { display: flex; align-items: center; justify-content: flex-end; min-width: 44px; }
.qz-pill { display: inline-block; font-size: .8125rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.qz-pill-inline { margin-bottom: .5rem; }
.qz-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); font-size: 1.25rem; border-radius: 10px; cursor: pointer; }
.qz-x:hover { background: var(--surface-2); }
.qz-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: .25rem 0 .9rem; }
.qz-progress-fill { display: block; height: 100%; width: 0; background: var(--brand); }
.qz-q { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 0 0 1rem; }
.qz-q:focus { outline: none; }
.qz-hint { font-size: .8125rem; color: var(--muted); margin: 0 0 .4rem; }
.kbd-hint { display: none; font-size: .8125rem; color: var(--muted); margin-top: .8rem; }
@media (min-width: 900px) and (hover: hover) { .kbd-hint { display: block; } }
.fb-sheet { border-radius: 12px; padding: .9rem 1rem; margin: .4rem 0 0; background: var(--surface-2); border-left: 4px solid var(--ok); }
.fb-sheet.is-bad { border-left-color: var(--bad); }
.fb-verdict { font-weight: 700; margin-bottom: .35rem; }
.fb-sheet.is-ok .fb-verdict { color: var(--ok); }
.fb-sheet.is-bad .fb-verdict { color: var(--bad); }
.fb-sheet.is-bad .fb-verdict strong { color: var(--ink); }
.fb-expl p { margin-bottom: .4rem; }
.fb-expl.is-clamped p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-more { background: none; border: 0; padding: .5rem 0; min-height: 44px; font: inherit; font-weight: 650; color: var(--link); cursor: pointer; }
.flag-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--opt-line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9375rem; cursor: pointer; }
.flag-btn.is-on { border-color: var(--warn-dot); background: var(--warn-bg); color: var(--warn-ink); }
.q-bar { position: sticky; bottom: 0; z-index: 2; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); margin-top: 1rem; }
.q-bar .btn { min-height: 52px; font-size: 1.0625rem; }
.q-bar-row { display: flex; gap: .6rem; }
.q-bar-row .btn { flex: 1; }
.qz-timer { font-weight: 700; font-variant-numeric: tabular-nums; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); }
.qz-timer.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.qz-timer.is-bad { background: var(--bad-bg); color: var(--bad); }
.qz-strip { display: flex; gap: 2px; width: 100%; padding: 6px 0; margin: 0 0 .7rem; border: 0; background: none; cursor: pointer; }
.qz-strip span { flex: 1; height: 6px; border-radius: 2px; background: var(--surface-2); }
.qz-strip span.is-ans { background: var(--brand); }
.qz-strip span.is-flag { background: var(--warn-dot); }
.qz-strip span.is-cur { outline: 2px solid var(--ink); outline-offset: 1px; }

/* inline widgets keep a card look */
.quiz { padding: 1rem 1rem 0; }
.quiz > .actions, .quiz > p.fine { margin-bottom: 1rem; }
.quiz .quiz-error { padding-bottom: 1rem; }

/* focus mode (§3.2) */
.quiz-focus body { overflow: hidden; }
.quiz.is-focus { position: fixed; inset: 0; z-index: 50; margin: 0; border: 0; border-radius: 0; max-width: none; box-shadow: none; display: flex; flex-direction: column; background: var(--bg); padding: 0; }
.quiz.is-focus > .qz-top { flex: none; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.quiz.is-focus > .qz-progress, .quiz.is-focus > .qz-strip { flex: none; margin: 0; border-radius: 0; }
.quiz.is-focus > .qz-strip { padding: 6px 12px; background: var(--surface); }
.quiz.is-focus > .qz-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.quiz.is-focus > .qz-body > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.quiz.is-focus > .qz-body > .ans-list, .quiz.is-focus > .qz-body > .fb-slot { max-width: 40rem; }
.quiz.is-focus > .q-bar { flex: none; margin: 0; padding-left: 16px; padding-right: 16px; }
.quiz.is-focus > .q-bar > * { max-width: 40rem; margin: 0 auto; }
.quiz.is-focus > .q-bar > .btn { display: flex; }

/* results (§3.5, P0-5, P1-3, P1-4) */
.qz-timeup { font-weight: 700; color: var(--bad); }
.score-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.ring { width: 96px; height: 96px; flex: none; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 3.6; }
.ring-fg { fill: none; stroke: var(--brand); stroke-width: 3.6; stroke-linecap: round; }
.ring-txt { font: 700 8px var(--sans); fill: var(--ink); }
.score-h { font-size: 1.15rem; margin: 0 0 .2rem; }
.score-line { font-size: 1.35rem; margin: 0; }
.score-line strong { font-size: 1.6rem; }
.theme-bars { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.theme-bars li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name num link" "bar bar bar"; gap: .1rem .75rem; align-items: center; padding: .35rem 0 .6rem; border-bottom: 1px solid var(--line); margin: 0; }
.tb-name { grid-area: name; font-weight: 600; }
.tb-num { grid-area: num; font-variant-numeric: tabular-nums; color: var(--muted); }
.theme-bars .bar { grid-area: bar; }
.tb-link { grid-area: link; justify-self: end; display: inline-block; padding: .55rem 0; font-weight: 650; }
@media (min-width: 560px) { .theme-bars li { grid-template-columns: 10rem 1fr 3rem 6rem; grid-template-areas: "name bar num link"; align-items: center; } .tb-link { justify-self: end; } }
.res-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.25rem; }
@media (max-width: 559px) { .res-actions .btn { width: 100%; } }
.res-email .signup-box { margin: 0 0 1rem; max-width: none; }
.res-email .signup-box h2 { font-size: 1.25rem; }
.res-premium { margin: 0 0 1.25rem; padding: 1.1rem 1.2rem; }
.res-premium .card__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.res-premium-pts { margin: .5rem 0 .9rem; padding-left: 1.2rem; }
.res-premium-pts li { margin: .15rem 0; }
.res-premium-cta { margin: 0 0 .4rem; }
@media (max-width: 559px) { .res-premium-cta .btn { width: 100%; } }
.cta-inline { margin: 1.75rem 0; padding: 1.1rem 1.2rem; }
.cta-inline .card__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.res-share { margin: 0 0 1rem; }
.btn-wa { border-color: #25d366; }
.res-install { background: var(--surface-2); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.res-install p { margin-bottom: .4rem; font-weight: 600; }
.review-item, .review-more { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 .6rem; }
.review-item > summary, .review-more > summary { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; cursor: pointer; min-height: 44px; list-style: none; }
.review-item > summary::-webkit-details-marker, .review-more > summary::-webkit-details-marker { display: none; }
.review-more > summary { font-weight: 650; color: var(--link); }
.review-more > .review-item { margin: 0 .6rem .6rem; }
.rv-chip { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--bad); margin-top: .1rem; }
.rv-chip.is-ok { background: var(--ok); }
.rv-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.review-item[open] .rv-q { -webkit-line-clamp: unset; display: block; }
.rv-body { padding: 0 .9rem .6rem 2.7rem; }
.quiz .yours { color: var(--bad); }
.quiz .right { color: var(--ok); }
.res-home { margin: 1rem 0 2rem; }

/* sign-up success (P1-1) */
.signup-done { background: var(--surface); border: 2px solid var(--ok); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.signup-done:focus { outline: 3px solid var(--focus); }
.sd-title { font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }

/* toast + dialogs */
.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateY(150%); background: var(--ink); color: var(--bg); padding: .45rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 600; z-index: 80; max-width: min(21rem, calc(100% - 32px)); text-align: center; opacity: 0; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.toast.is-on { transform: translateY(0); opacity: 1; }
.qz-dialog { border: 0; border-radius: 16px; padding: 1.2rem; max-width: min(28rem, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.qz-dialog::backdrop { background: rgba(0,0,0,.45); }
.qz-dialog p { font-weight: 600; }
.qz-dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.qz-sheet { width: min(30rem, calc(100% - 24px)); }
.qz-grid-head { display: flex; align-items: center; justify-content: space-between; }
.qz-grid-title { margin: 0; }
.qz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: .6rem 0; }
.grid-cell { min-height: 44px; border: 2px solid var(--opt-line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.grid-cell.is-ans { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.grid-cell.is-flag { border-color: var(--warn-dot); box-shadow: inset 0 0 0 2px var(--warn-dot); }
.grid-cell.is-cur { outline: 3px solid var(--ink); outline-offset: 1px; }
.qz-legend { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--opt-line); vertical-align: -2px; margin-right: .25rem; }
.lg-ans { background: var(--brand); border-color: var(--brand); } .lg-flag { border-color: var(--warn-dot); }
.qz-auto { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin-bottom: .6rem; }
.qz-auto input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }

/* tables as cards on mobile (P1-7) */
@media (max-width: 719px) {
  table.compare thead, table.stack thead { display: none; }
  table.compare tr, table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: .7rem .8rem; }
  table.compare tr:last-child, table.stack tr:last-child { border-bottom: 0; }
  table.compare td, table.stack td { display: block; border: 0; padding: .2rem 0; }
  table.compare td::before, table.stack td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 700; color: var(--muted); }
  table.compare td:first-child, table.stack td:first-child { font-weight: 700; }
  table.compare td:first-child::before, table.stack td:first-child::before { display: none; }
}

/* early-access sticky bar (P1-12) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.sticky-buy[hidden] { display: none; }
.sticky-buy .btn { min-height: 48px; }
@media (min-width: 720px) { .sticky-buy { display: none !important; } }

/* motion (P2-2) */
@media (prefers-reduced-motion: no-preference) {
  .ans, .mode-card, .chip { transition: background-color .15s, border-color .15s; }
  .fb-sheet { animation: tcp-up .2s ease-out; }
  .qz-progress-fill, .bar-fill { transition: width .3s ease-out; }
  .toast { transition: transform .25s ease-out, opacity .25s; }
  @keyframes tcp-up { from { opacity: 0; transform: translateY(8px); } }
}
@media print { .site-header, .sticky-buy { display: none; } }
.teaser .fb-why { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[hidden] { display: none !important; }
.crumbs li { display: inline-flex; align-items: center; }
.lg-item { white-space: nowrap; }

/* =====================================================================================
   v3 redesign (2026-10-06) — research/H3-v3-redesign-spec.md: wider container, cards, bands,
   accordions, article sidebar, inline Lucide icons. Appended last so it overrides v1/v2 rules.
   ===================================================================================== */
:root {
  --container: 75rem; --container-max: 80rem; --gutter: 16px; --measure: 68ch; --sidebar-w: 20rem; --col-gap: 3rem; --header-h: 56px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: var(--s-7);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(29,36,51,.06), 0 2px 8px rgba(29,36,51,.05);
  --shadow-2: 0 2px 4px rgba(29,36,51,.06), 0 12px 32px rgba(29,36,51,.10);
  --card-border: var(--line); --card-hover-border: var(--brand);
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem;
  --fs-h2: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); --fs-h1: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  /* Palette F: themes are no longer colour-coded (monochrome); the tokens stay so old class names still resolve */
  --t-historia-bg: transparent; --t-historia-ink: var(--ink);
  --t-cultura-bg: transparent;  --t-cultura-ink: var(--ink);
  --t-simbolos-bg: transparent; --t-simbolos-ink: var(--ink);
  --t-direitos-bg: transparent; --t-direitos-ink: var(--ink);
  --t-org-bg: transparent;      --t-org-ink: var(--ink);
}
@media (prefers-color-scheme: dark) { :root {
  --shadow-1: none; --shadow-2: none;
  --card-border: var(--line);
}}
:root { --shadow-1: none; --shadow-2: none; }
@media (min-width: 768px) { :root { --gutter: 24px; --section-y: var(--s-8); } }
@media (min-width: 1100px) { :root { --section-y: 80px; } }

/* containers */
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1440px) { .wrap { max-width: calc(var(--container-max) + 2 * var(--gutter)); } }
.prose { max-width: none; }
.prose > p, .prose > ul, .prose > ol, .measure, .acc-body > p, .acc-body > ul, .acc-body > ol { max-width: var(--measure); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h2[id], h3[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.i { flex: none; vertical-align: middle; }

/* bands */
.band { padding-block: var(--section-y); }
.band--alt { background: var(--surface-2); }
.band > .wrap > h2:first-child, .band-head h2 { margin-top: 0; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.band-head p { margin: 0; color: var(--muted); }
main > .band:first-child { padding-top: var(--s-5); }

/* cards + grids */
.card { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
.card > :last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: inherit; min-height: 44px; transition: border-color .15s, transform .15s, box-shadow .15s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card--link:hover { border-color: var(--card-hover-border); transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.card--link:hover { border-color: var(--card-hover-border); }
.card--link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__icon { display: inline-flex; align-items: center; justify-content: flex-start; background: none; color: var(--ink); flex: none; line-height: 0; }
.card__icon svg { width: 22px; height: 22px; }
.card__title { font: 700 var(--fs-lg)/1.3 var(--sans); margin: 0; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.card__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: auto; font-weight: 600; }
.card__meta .go { color: var(--link); }
.card--warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.card--warn a { color: inherit; }
.card--brand { background: var(--brand-soft); border-color: transparent; }
.card--ok-head { border-top: 4px solid var(--ok); }
.card--warn-head { border-top: 4px solid var(--warn-dot); }
.card-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.card-head h3, .card-head .card__title { margin: 0; }
.grid { display: grid; gap: var(--s-4); }
.grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid { gap: var(--s-5); } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-weight: 650; }
.link-row a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* icon lists, TL;DR, chips */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.icon-list li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.icon-list li > svg { color: var(--brand); margin-top: 2px; }
.icon-list.ok li > svg { color: var(--ok); }
.icon-list.warn li > svg { color: var(--warn-ink); }
.tldr { margin: var(--s-5) 0; }
.tldr .icon-list { gap: var(--s-4); }
@media (min-width: 768px) { .tldr .icon-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
.chip-src { display: inline-block; font-size: var(--fs-xs); font-weight: 650; color: var(--muted); background: var(--surface-2); border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.status-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn-dot); flex: none; }
.status-chip.is-ok { background: var(--ok-bg); color: var(--ok); }
.status-chip.is-ok .dot { background: var(--ok); }
.trust-line { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin: var(--s-3) 0 0; }
.trust-line svg { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.info { background: var(--brand-soft); color: var(--brand-ink); }
.page-head { margin-bottom: var(--s-5); }
.page-head h1 { margin: var(--s-3) 0 var(--s-3); max-width: 34ch; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.article-main .quiz, .article-main .quiz-embed { max-width: none; }
.status-chip > span { display: inline; }
.page-head .lead { font-size: var(--fs-md); color: var(--muted); max-width: var(--measure); margin: var(--s-3) 0 0; }
.updated { font-size: var(--fs-xs); color: var(--muted); margin: var(--s-2) 0 0; }

/* theme tints */
.t-historia { --tb: var(--t-historia-bg); --ti: var(--t-historia-ink); }
.t-cultura { --tb: var(--t-cultura-bg); --ti: var(--t-cultura-ink); }
.t-simbolos { --tb: var(--t-simbolos-bg); --ti: var(--t-simbolos-ink); }
.t-direitos { --tb: var(--t-direitos-bg); --ti: var(--t-direitos-ink); }
.t-organizacao { --tb: var(--t-org-bg); --ti: var(--t-org-ink); }
[class*="t-"] > .card__icon, .tint-icon { background: var(--tb); color: var(--ti); }
.theme-card { border-top-width: 1px; }
.theme-card .card__meta { color: var(--muted); }
.theme-card ul { margin: 0; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--muted); }
.theme-card ul li { margin-bottom: 2px; }
@media (max-width: 767px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .theme-grid .card--link { padding: var(--s-4); gap: var(--s-2); }
  .theme-grid .card__text { display: none; }
  .theme-grid .card__title { font-size: 1.0625rem; }
  .theme-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 768px) and (max-width: 1099px) { .theme-grid.grid-5 { grid-template-columns: repeat(3, 1fr); } }
.theme-grid--large { grid-template-columns: 1fr; }
@media (min-width: 768px) { .theme-grid--large { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .theme-grid--large { grid-template-columns: repeat(3, 1fr); } }

/* steps */
.steps-v3 { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps-v3 li { margin: 0; padding: var(--s-5); display: flex; gap: var(--s-4); align-items: flex-start; }
.steps-v3 li::before { content: none; }
.steps-v3 .step-n { font-size: var(--fs-xs); font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.steps-v3 .card__title { font-size: 1.125rem; }
@media (min-width: 768px) { .steps-v3 li { flex-direction: column; } }

/* info grid (status answers) */
.info-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); }
.info-card .info-top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.info-card .info-q { font-weight: 700; margin: 0; flex: 1; min-width: 8rem; }
.info-card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.info-card .i { color: var(--brand); }
@media (max-width: 767px) { .info-grid { gap: var(--s-2); } .info-card { padding: var(--s-3) var(--s-4); } }
.grid-note { font-size: var(--fs-xs); color: var(--muted); margin: var(--s-3) 0 0; }

/* stat cards */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font: 700 2rem/1.1 var(--sans); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .stat strong { color: var(--brand); } }

/* stepper (timeline) */
.stepper { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.stepper li { position: relative; margin: 0; padding-left: 28px; }
.stepper li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.stepper li.is-pending::before { background: var(--warn-dot); }
.stepper li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: -14px; width: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper time { display: block; font-weight: 800; font-size: var(--fs-sm); }
.stepper span { font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 768px) {
  .stepper { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
  .stepper li { padding: 26px 8px 0 0; }
  .stepper li::before { left: 0; top: 0; }
  .stepper li::after { left: 14px; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
}

/* accordions (§2.3) */
.acc { border: 1px solid var(--card-border); border-radius: var(--r-md); background: var(--surface); margin: 0 0 var(--s-3); }
.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: var(--s-3) var(--s-4); font-weight: 700; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; color: var(--muted); }
.acc[open] > summary { border-bottom: 1px solid var(--card-border); }
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-md); }
.acc-body { padding: var(--s-4) var(--s-4) var(--s-2); }
.acc-body > :first-child { margin-top: 0; }
.acc-group { margin-top: var(--s-6); }
@media (prefers-reduced-motion: no-preference) { .acc > summary::after { transition: transform .15s; } }

/* article template + sidebar (§4) */
.article-grid { display: block; }
.article-main { min-width: 0; }
.article-main > section, .article-main > .sec { margin-top: var(--s-7); }
.article-main > section > h2:first-child, .article-main > .sec > h2:first-child { margin-top: 0; }
.sidebar { display: none; }
.inline-cta { margin: var(--s-5) 0; }
@media (min-width: 768px) and (max-width: 1099px) { .article-grid { max-width: 760px; margin: 0 auto; } }
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: var(--col-gap); align-items: start; }
  .sidebar { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); }
  .inline-cta, .toc-acc { display: none; }
}
.sidebar .card { padding: var(--s-4) var(--s-5); }
.sidebar .card__title { font-size: 1.125rem; }
.sidebar .micro { margin: var(--s-2) 0 var(--s-3); }
.side-status p { margin: 0; font-size: var(--fs-sm); }
.side-status strong { display: flex; align-items: center; gap: 8px; }
.side-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn-dot); flex: none; }
.toc { overflow: auto; min-height: 0; }
.toc p { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 var(--s-2); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.3; }
.toc a:hover, .toc a[aria-current="true"] { border-left-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }

/* CTA band (§3) */
.cta-band .grid { align-items: stretch; }
.cta-band .card { display: flex; flex-direction: column; gap: var(--s-3); }
.cta-band .signup-box { background: none; padding: 0; margin: 0; max-width: none; }
.cta-band .signup-box h2 { font: 700 var(--fs-lg)/1.3 var(--sans); margin: 0 0 var(--s-2); }
.cta-band .card__title { font-size: 1.375rem; }

/* sticky mobile CTA (§4.3) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; padding: .5rem 16px calc(.5rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); font-weight: 650; }
.sticky-cta .btn { min-height: 44px; }
@media (min-width: 1100px) { .sticky-cta { display: none !important; } }

/* home hero band + FAQ two-column */
.home-hero { padding-top: var(--s-5); }
@media (min-width: 900px) { .home-hero .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); } }
.hero .eyebrow { white-space: normal; }
@media (min-width: 1100px) { .faq-2col { columns: 2; column-gap: var(--s-5); } .faq-2col > .acc { break-inside: avoid; } }

/* legal / container-only pages */
.measure-col { max-width: calc(var(--measure) + 2rem); margin: 0 auto; }
.center-card { max-width: 40rem; margin: var(--s-6) auto; }

/* comparisons + myth cards */
.vs-card h3 { margin-top: 0; }
.myth-card .myth { font-weight: 700; margin: 0; }
.myth-card .truth { margin: 0; font-size: var(--fs-sm); }
.myth-card .acc { margin: var(--s-2) 0 0; }

/* printable summary (direitos e deveres) */
.print-only { display: none; }
@media print {
  .no-print, .sidebar, .sticky-cta, .cta-band, .crumbs, .acc-group, .quiz { display: none !important; }
  body:has(.print-sheet) .article-main > :not(.print-sheet):not(.page-head), body:has(.print-sheet) .site-footer, body:has(.print-sheet) .status-banner, .page-head .trust-line, .page-head .status-chip { display: none !important; }
  .print-sheet h2 { font-size: 14pt; margin: 8px 0; }
  .print-sheet .card { box-shadow: none; border: 1px solid #999; padding: 8px; }
  .dd-page .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body { font-size: 11pt; }
}
.trust-strip svg { color: var(--brand); flex: none; margin-top: 3px; }
@media (max-width: 359px) { .brand-text { font-size: .875rem; } .brand { gap: .35rem; } .header-cta { padding: .5rem .7rem; font-size: .875rem; } .header-actions { gap: .2rem; } .brand-mark { width: 26px; height: 26px; } }
/* running text in articles keeps a readable measure (H3 §9.3) */
.article-main p:not(.link-row):not(.card__meta), .article-main li { max-width: var(--measure); }
.article-main .card p, .article-main .card li, .article-main .acc-body p { max-width: none; }
/* v3 mobile compaction (H3 §9.10: shorter pages on phones) */
@media (max-width: 767px) {
  :root { --section-y: 32px; }
  .band-head { margin-bottom: var(--s-3); }
  .card { padding: var(--s-4); }
  .steps-v3 { gap: var(--s-2); }
  .steps-v3 li { align-items: center; padding: var(--s-3) var(--s-4); }
  .steps-v3 .card__icon { width: 36px; height: 36px; }
  .steps-v3 .step-n { display: none; }
  .steps-v3 .card__title { font-size: 1rem; display: inline; }
  .steps-v3 .card__text { display: inline; }
  .theme-grid .card__meta .go { display: none; }
  .theme-grid .card__icon { width: 36px; height: 36px; }
  .icon-list { gap: var(--s-2); font-size: var(--fs-sm); }
  .card-head { margin-bottom: var(--s-2); }
  .card-head .card__icon { width: 36px; height: 36px; }
  .faq .acc > summary { min-height: 48px; padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
  .home-hero .hero-demo { margin-top: var(--s-4); }
  h2 { margin: 0 0 var(--s-3); }
  .link-row { margin-top: var(--s-3); }
}
@media (max-width: 767px) {
  .theme-grid .card--link { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: var(--s-2); row-gap: 2px; align-items: center; padding: var(--s-3); }
  .theme-grid .card__icon { grid-row: span 2; }
  .theme-grid .card__title { font-size: .9375rem; line-height: 1.2; }
  .theme-grid .card__meta { margin: 0; }
  .theme-grid .card--link ul { display: none; }
  .home-hero { padding-bottom: var(--s-5); }
  .site-footer { padding: 1.25rem 0 1rem; margin-top: 0; }
  .site-footer .fine { font-size: .8125rem; line-height: 1.5; }
  .footer-grid { gap: .75rem; }
  .footer-links a { padding: .55rem 0; min-height: 44px; display: flex; align-items: center; }
  .grid-2 > .card--link .card__icon, .card-head .card__icon { width: 32px; height: 32px; }
  .signup .consent { font-size: .9375rem; line-height: 1.45; }
  .signup .field { margin-bottom: .5rem; }
}
@media (max-width: 767px) {
  .icon-list li { line-height: 1.45; }
  .icon-list li > svg { width: 18px; height: 18px; }
  .steps-v3 li { padding: var(--s-2) var(--s-3); line-height: 1.45; }
  .hero .lead { margin-bottom: 0; }
  .teaser { padding: .85rem; }
  .teaser .ans { margin-bottom: 8px; min-height: 52px; padding: 10px 12px; }
}
.status-card { margin: var(--s-5) 0; } .status-card .card-head svg { color: var(--warn-ink); } .status-card .acc { background: transparent; border-color: rgba(0,0,0,.12); margin-top: var(--s-3); }
/* v3 quiz page: 2-col top on desktop (mode cards | "O que cai" card); focus mode untouched */
.quiz-top-grid { display: grid; gap: var(--s-5); margin-top: var(--s-3); }
@media (min-width: 1100px) { .quiz-top-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--s-7); align-items: start; } .quiz-side { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 4.5rem; } }
.quiz-top-grid .quiz-main { max-width: 46rem; }
.quiz-themes { margin-top: var(--s-7); }
.quiz-side .card__text { margin-bottom: var(--s-3); }

/* v3: Brasil hypothesis cards, presale */
.hyp-card .card__title, .vs-card .card__title { margin-top: var(--s-2); }
.presale-top { align-items: start; }
.presale-top .price-box { max-width: none; margin: 0; border: 2px solid var(--brand); }
.presale-now { grid-template-columns: 1fr; align-content: start; }
.cond-grid { list-style: none; padding: 0; margin: 0; }
.cond-grid .card__title { margin-top: var(--s-1); }
.cond-grid .acc { margin: var(--s-2) 0 0; }
.presale-signup { margin: var(--s-7) 0; }
.presale-signup .signup-box { margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
.center-card .cta-row { justify-content: center; }
.center-card { text-align: center; }
.grid-note { max-width: var(--measure); }
/* v3: a sign-up form inside a card has no second box (home, presale) */
.card > .signup-box { background: none; padding: 0; margin: var(--s-3) 0 0; max-width: none; }
.card > .signup-box h2 { font: 700 var(--fs-base)/1.3 var(--sans); margin: 0 0 var(--s-2); }
@media (max-width: 767px) {
  .card--ok-head .icon-list, .card--warn-head .icon-list { gap: 6px; }
  .grid-2 > .card--ok-head, .grid-2 > .card--warn-head { padding-block: var(--s-3); }
  .band .link-row { gap: 0 var(--s-4); }
}

/* =====================================================================================
   Palette F "Preto e branco" + component spacing pass (2026-10-06, BUILD-NOTES §12).
   Monochrome; colour only for correct / wrong and a sparing muted amber. Appended last.
   ===================================================================================== */
/* brand mark inverts with the theme */
.brand-mark { color: var(--ink); }
.brand-mark .bm-q { stroke: var(--surface); fill: none; }
.brand-mark .bm-qd { fill: var(--surface); }
/* links: text colour, underlined; focus ring in text colour, offset so it shows on black buttons */
a { color: var(--ink); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible, .card--link:focus-visible, .acc > summary:focus-visible, .ans:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.signup input[type="email"]:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
/* headings: one sans, tighter tracking */
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.02em; }
blockquote.law { font-family: var(--sans); border-left-color: var(--ink); }
/* neutral status banner; the amber stays only in the small dot */
.status-banner { background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
/* buttons: primary = text colour; ghost = hairline */
.btn-primary, .btn-brand, .header-cta { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-brand:hover, .header-cta:hover { background: var(--accent-ink); color: var(--bg); }
.btn-ghost { border-color: var(--ink); border-width: 1px; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.site-nav a.nav-cta, .menu-panel a.nav-cta { color: var(--ink); font-weight: 700; }
/* plain icons (no tiles): 22px everywhere, 20px in lists */
.card__icon, .steps-v3 .card__icon, .theme-grid .card__icon, .card-head .card__icon, .grid-2 > .card--link .card__icon { width: auto; height: auto; background: none; border-radius: 0; color: var(--ink); }
.card__icon svg { width: 22px; height: 22px; }
.icon-list li > svg, .icon-list.ok li > svg { color: var(--ink); width: 20px; height: 20px; }
.icon-list.warn li > svg { color: var(--muted); }
.trust-line svg, .trust-strip svg, .info-card .i, .status-card .card-head svg { color: var(--ink); }
.theme-card { border-top: 1px solid var(--card-border); }
.card--ok-head, .card--warn-head { border-top: 1px solid var(--card-border); }
.card--ok-head .card-head .card__icon { color: var(--ok); }
.card--warn-head .card-head .card__icon { color: var(--warn-dot); }
.card--brand { background: var(--surface); border: 1px solid var(--ink); }
.card--link:hover { border-color: var(--ink); box-shadow: none; }
.stat strong { color: var(--ink); }
/* accordions and TOC */
.toc a:hover, .toc a[aria-current="true"] { border-left-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.faq summary::marker { color: var(--ink); }
/* quiz: selected option = strong 2px border in text colour + subtle fill (correct/wrong keep green/red) */
.ans:hover, .mode-card:hover, .chip:hover { border-color: var(--ink); }
.ans.is-selected { border-color: var(--ink); background: var(--surface-2); }
.ans.is-selected .badge { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ans.is-correct .badge, .ans.is-wrong .badge, .rv-chip { color: var(--bg); }
.mode-card.is-primary { border-color: var(--ink); background: var(--surface); }
.qz-pill, .quiz-mode, .badge.info { background: var(--surface-2); color: var(--ink); }
.fb-sheet { background: var(--surface-2); }
.signup-box { background: var(--surface-2); }

/* ---- spacing rhythm (founder feedback a): every card has inner padding and consistent gaps ---- */
.card { padding: var(--s-5); }
.card > * + * { margin-top: var(--s-3); }
.card > p, .card > ul, .card > ol, .card > h2, .card > h3 { margin-bottom: 0; }
.card > .btn, .card > .btn-block, .card > .cta-row { margin-top: var(--s-5); }
.card > .btn + .fine, .card > .btn-block + .fine, .card > .btn + p { margin-top: var(--s-3); }
.card > .card__meta { margin-top: auto; padding-top: var(--s-3); }
.card--link { gap: var(--s-2); }
.card--link > * + * { margin-top: 0; }
.card-head { gap: var(--s-3); margin-bottom: 0; }
.card-head + * { margin-top: var(--s-3); }
.price-box .eyebrow { margin: 0; }
.price-box .price { margin: var(--s-2) 0 0; }
.price-box > .icon-list { margin-top: var(--s-5); }
.info-card { padding: var(--s-4) var(--s-5); }
.steps-v3 li > div > * + * { margin-top: var(--s-1); }
.steps-v3 li > div > p { margin-bottom: 0; }
.myth-card .truth, .myth-card .acc { margin-top: var(--s-2); }
.cond-grid .card__title { margin-top: var(--s-2); }
.sidebar .card { padding: var(--s-5); }
.acc-body { padding: var(--s-4) var(--s-5) var(--s-3); }
.acc > summary { padding: var(--s-3) var(--s-5); }
@media (max-width: 767px) {
  .card { padding: var(--s-4); }
  .steps-v3 li { padding: var(--s-4); }
  .theme-grid .card--link { padding: var(--s-4) var(--s-3); grid-template-columns: 22px 1fr; column-gap: var(--s-3); }
  .acc > summary { padding: var(--s-2) var(--s-4); }
  .acc-body { padding: var(--s-3) var(--s-4) var(--s-2); }
  .card > .btn, .card > .btn-block { margin-top: var(--s-4); }
}
.myth-card .myth { margin-top: var(--s-3); }
.side-status p + p { margin-top: var(--s-1); }
@media (max-width: 767px) { .theme-grid .card--link { row-gap: 4px; } }
/* payment buttons + notes (Pix via Stripe, card via Lemon Squeezy) */
.pay-buttons { display: grid; gap: var(--s-3); }
.card > .pay-buttons { margin-top: var(--s-5); }
.pay-notes { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.pay-notes li { margin: 0; }
.pay-notes strong { color: var(--ink); }
/* purchase thank-you page */
.buy-done { text-align: left; }
.buy-done > .card__icon { color: var(--ok); }
.buy-done .card__icon svg { width: 28px; height: 28px; }
.buy-done h1 { margin: var(--s-2) 0 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.next-steps { padding-left: 1.2rem; display: grid; gap: var(--s-3); }
.next-steps li { margin: 0; }
.buy-done .cta-row { justify-content: flex-start; }
.card > .signup-box h2 { font: 700 var(--fs-lg)/1.3 var(--sans); letter-spacing: -.01em; margin: 0 0 var(--s-3); }
.presale-top { margin-bottom: var(--s-7); }
.grid-note + .acc, .grid-note + details { margin-top: var(--s-3); }
.cond-grid + .grid-note { margin-top: var(--s-4); }
@media (max-width: 767px) {
  .steps-v3 .card__title { margin-right: .3em; }
  .steps-v3 li { gap: var(--s-3); }
}
.steps-v3 li > * + * { margin-top: 0; }
/* focus mode must cover the viewport even inside the v3 two-column quiz top (desktop regression fix) */
.quiz-top-grid .quiz-main.is-focus { max-width: none; margin: 0; }
/* payment block v2 (founder: simple, no provider names): big tappable buttons with the amount on the right */
.btn-pay { min-height: 56px; justify-content: space-between; padding-inline: 1.25rem; font-size: 1.0625rem; }
.btn-pay .pay-amt { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .9; }
.btn-ghost.btn-pay { border-width: 2px; }
.pay-line { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.pay-line a { color: var(--ink); }
.card > .pay-line { margin-top: var(--s-3); }
.price-alt { margin: var(--s-2) 0 0; font-size: var(--fs-md); color: var(--muted); }
.price-alt strong { color: var(--ink); }
#comprar, #buy { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.home-buy .card__text a { white-space: nowrap; }


/* =====================================================================================
   H4 pass (2026-10-06, research/H4-pr2-visual-review.md): P1/P2/P3 fixes and dark mode "white sheets".
   Light mode keeps its look apart from the listed fixes. In dark mode the page and chrome are black and
   every content container is a white sheet that re-scopes the light tokens (H4 §3), so everything inside
   a sheet inherits the already-checked light styles. Appended last.
   ===================================================================================== */
:root {
  --r-lg: 12px;                         /* one radius for cards and sheets (founder: 12px) */
  --chrome: #ffffff;                    /* header, sticky bars, quiz bars */
  --btn-bg: #111111; --btn-ink: #ffffff; --btn-hover: #333333;
  --ghost-line: #111111; --ghost-hover: #f5f5f3;
  --sheet-pad: var(--s-5);
}
@media (max-width: 767px) { :root { --sheet-pad: var(--s-4); } }
@media (prefers-color-scheme: dark) {
  :root {
    --chrome: #141414;
    --brand: #ffffff; --on-brand: #111111; --focus: #ffffff;
    --btn-bg: #ffffff; --btn-ink: #111111; --btn-hover: #e6e6e3;   /* primary ON THE PAGE = white */
    --ghost-line: #f2f2f2; --ghost-hover: rgba(255, 255, 255, .08);
  }
  /* every sheet = light mode, re-scoped */
  .sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper {
    --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f5f3; --chrome: #ffffff;
    --ink: #111111; --muted: #5f5f5b; --line: #e6e6e3; --opt-line: #8c8c87; --card-border: #e6e6e3; --card-hover-border: #111111;
    --brand: #111111; --brand-ink: #111111; --brand-soft: #f2f2f0; --on-brand: #ffffff;
    --accent: #111111; --accent-ink: #333333; --on-accent: #ffffff; --link: #111111; --focus: #111111;
    --ok: #2f7d4f; --ok-bg: #edf5f0; --bad: #b3261e; --bad-bg: #fbeceb;
    --warn-bg: #f8f2e4; --warn-ink: #5a4210; --warn-dot: #b7791f;
    --btn-bg: #111111; --btn-ink: #ffffff; --btn-hover: #333333; --ghost-line: #111111; --ghost-hover: #f5f5f3;
    --t-historia-ink: #111111; --t-cultura-ink: #111111; --t-simbolos-ink: #111111; --t-direitos-ink: #111111; --t-org-ink: #111111;
    color-scheme: light;
    box-shadow: none;
  }
  :where(.sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper) { color: var(--ink); }
  /* containers that are plain in light mode become sheets in dark */
  .quiz-main:not(.is-focus), .dsheet, .qz-paper { background: #ffffff; border: 0; border-radius: var(--r-lg); padding: var(--sheet-pad); }
  /* chrome stays dark */
  .site-header, .site-footer { background: var(--bg); }
  .status-banner { background: #161616; }
  .menu-panel { background: var(--chrome); box-shadow: 0 12px 24px rgba(0, 0, 0, .5); }
  .sticky-buy, .sticky-cta, .quiz.is-focus > .q-bar, .quiz.is-focus > .qz-top, .quiz.is-focus > .qz-strip { background: var(--chrome); border-color: var(--line); box-shadow: none; }
  .qz-dialog::backdrop { background: rgba(0, 0, 0, .65); }
  /* flat bands: black page, separated by space and a hairline (no third tone) */
  .band--alt { background: var(--bg); }
  .band + .band { border-top: 1px solid var(--line); }
  /* small page-level items stay off-sheet */
  .trust-strip { background: none; border: 0; padding: 0; }
  blockquote.law { background: none; border: 0; border-left: 2px solid var(--ink); border-radius: 0; }
}

/* brand mark cut-outs follow the page */
.brand-mark .bm-ring { fill: var(--bg); }
.brand-mark .bm-q { stroke: var(--bg); }
.brand-mark .bm-qd { fill: var(--bg); }
.site-header { background: var(--chrome); }
.sticky-buy, .sticky-cta, .q-bar, .quiz.is-focus > .qz-top, .quiz.is-focus > .qz-strip { background: var(--chrome); }
@media (prefers-color-scheme: dark) { .site-header { background: var(--bg); } }

/* browser surfaces */
::selection { background: var(--ink); color: var(--bg); }
input, textarea { caret-color: var(--ink); }

/* buttons: one rule set; tokens decide page vs sheet (H4 §3.3) */
.btn { border-width: 1.5px; }
.btn-primary, .btn-brand, .header-cta { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.btn-primary:hover, .btn-brand:hover, .header-cta:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-ghost, .btn-ghost.btn-pay { background: transparent; color: var(--ink); border: 1.5px solid var(--ghost-line); }
.btn-ghost:hover { background: var(--ghost-hover); border-color: var(--ghost-line); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; }
.btn-primary[disabled]:hover { background: var(--btn-bg); }
.btn-ghost[disabled]:hover { background: transparent; }

/* focus: white ring on the black page, #111 inside sheets and in light mode */
:focus-visible, .card--link:focus-visible, .ans:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .card--link:focus-visible { outline-color: #ffffff; } } /* drawn outside the sheet, on black */
.acc > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 8px; }

/* P1-1: hover is a light cue for unanswered options only and never overrides a state */
.ans:hover { border-color: var(--opt-line); background: var(--surface); }
@media (hover: hover) {
  .ans:not([aria-disabled="true"]):not(.is-selected):not(.is-correct):not(.is-wrong):hover { border-color: var(--muted); background: var(--surface-2); }
}
.ans.is-selected { border-color: var(--ink); background: var(--brand-soft); }
.ans.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.ans.is-wrong { border-color: var(--bad); background: var(--bad-bg); }

/* P1-2: drawn icons in the quiz mode cards, the info pill and the quiz bars */
.mode-ic svg { width: 22px; height: 22px; }
.pill-note { display: inline-flex; align-items: flex-start; gap: var(--s-2); border-radius: var(--r-md); }
.pill-note svg { flex: none; margin-top: 3px; }
.qz-x svg { width: 22px; height: 22px; }

/* P1-4: inputs and small controls have a 3:1 boundary */
.signup input[type="email"] { border: 1.5px solid var(--opt-line); background: var(--surface); }
.signup .consent input, .qz-auto input { accent-color: var(--ink); }
.lang-switch, .theme-links a { border-color: var(--opt-line); }

/* P1-5: the home FAQ band shows its heading like every other band */
.faq-band .faq > h2 { margin: 0 0 var(--s-5); }

/* FAQ and accordion runs: ONE sheet with divider rows (never a stack of thin bars) */
.faq-sheet, .acc-group { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-lg); overflow: hidden; }
.faq-sheet .acc, .acc-group > .acc { border: 0; border-radius: 0; margin: 0; background: none; }
.faq-col > .acc + .acc, .acc-group > * + * { border-top: 1px solid var(--line); }
.faq-2col { columns: auto; }
@media (min-width: 1100px) {
  .faq-2col { display: grid; grid-template-columns: 1fr 1fr; }
  .faq-2col > .faq-col + .faq-col { border-left: 1px solid var(--line); }
}
@media (max-width: 1099px) { .faq-2col > .faq-col + .faq-col { border-top: 1px solid var(--line); } }
/* standalone accordions that follow each other join into one sheet */
.acc { border-radius: var(--r-lg); }
.acc:has(+ .acc) { margin-bottom: 0; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.acc + .acc { border-top-left-radius: 0; border-top-right-radius: 0; }

/* P2-2: an accordion inside a card is a text-link disclosure, not a box in a box */
.card .acc { border: 0; border-radius: 0; background: none; margin: var(--s-3) 0 0; }
.card .acc > summary { display: inline-flex; justify-content: flex-start; gap: var(--s-2); min-height: 44px; padding: 0; font-size: var(--fs-sm); font-weight: 650; text-decoration: underline; text-underline-offset: .15em; }
.card .acc[open] > summary { border-bottom: 0; }
.card .acc > .acc-body { padding: 0 0 var(--s-1); }
.card .acc > summary:focus-visible { outline-offset: 2px; border-radius: 4px; }

/* (the purchase-page layout lives in the "Purchase page, payment above the fold" block at the end) */
.price-box .price:first-child { margin-top: 0; }
.price-box .price small { display: block; margin-top: var(--s-2); line-height: 1.4; }
.presale-main > section > h2, .presale-main > .faq > h2 { margin-top: var(--s-7); }
.presale-main .presale-signup { margin: var(--s-7) 0 0; }
.now-next { display: grid; gap: var(--s-4); }
.card.now-next > * + * { margin-top: 0; }
@media (min-width: 768px) {
  .now-next { grid-template-columns: 1fr 1fr; gap: 0; }
  .nn-item:first-child { padding-right: var(--s-5); }
  .nn-item + .nn-item { border-left: 1px solid var(--line); padding-left: var(--s-5); }
}
@media (max-width: 767px) { .nn-item + .nn-item { border-top: 1px solid var(--line); padding-top: var(--s-4); } }
.cond-grid .card__title { margin-top: 0; }

/* P2-3: fine print at the 15px floor */
.grid-note { font-size: var(--fs-sm); }

/* P2-4: no orphan cards; 768px grids fill their rows */
@media (min-width: 768px) and (max-width: 1099px) {
  .theme-grid.grid-5 { grid-template-columns: repeat(6, 1fr); }
  .theme-grid.grid-5 > * { grid-column: span 2; }
  .theme-grid.grid-5 > :nth-child(n+4) { grid-column: span 3; }
  .grid-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .grid-2:not(.theme-grid) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-3:not(.theme-grid) > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) { .grid-4 > :last-child:nth-child(4n+1) { grid-column: 1 / -1; } }
/* status quick answers: one sheet of rows */
.info-sheet { overflow: hidden; }
.info-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0 var(--s-3); align-items: start; padding: var(--s-4) var(--sheet-pad); }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row > svg { color: var(--ink); margin-top: 2px; }
.info-q { font: 700 var(--fs-md)/1.4 var(--sans); margin: 0; letter-spacing: -.01em; }
.article-main .info-main p, .info-main p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); max-width: none; }
.info-row .badge { margin-top: 2px; }

/* P2-5: one icon pattern, inline head, icon on the first line of the title (theme tiles keep the icon on top) */
.card-head { align-items: flex-start; }
.card-head > .card__icon, .card-head > svg { margin-top: 2px; }
/* steps: a numbered sequence (numbers carry the order); no icon, no card */
.steps-seq { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.steps-seq li { margin: 0; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s-3); align-items: baseline; padding-top: var(--s-4); border-top: 2px solid var(--ink); max-width: none; }
.seq-n { font: 700 2rem/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.seq-t { font: 700 var(--fs-lg)/1.3 var(--sans); letter-spacing: -.01em; margin: 0 0 var(--s-1); }
.seq-d, .article-main .seq-d { margin: 0; color: var(--muted); max-width: 38ch; }
@media (min-width: 768px) {
  .steps-seq { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .steps-seq li { grid-template-columns: 1fr; gap: var(--s-4); padding-top: var(--s-5); }
  .seq-n { font-size: 3rem; }
}
.article-main .steps-seq { margin: var(--s-5) 0; }

/* P2-6: article chips form a right-hand column (on line 2 below 480px) */
.icon-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: start; }
.icon-list li > svg { margin-top: 4px; }
.icon-list .chip-src { justify-self: end; margin-top: 3px; }
@media (max-width: 767px) { .icon-list li > svg { margin-top: 2px; } }
@media (max-width: 479px) { .icon-list li.has-chip .chip-src { grid-column: 2; justify-self: start; margin-top: var(--s-1); } }

/* P2-7: feedback sheet with a verdict icon instead of a curled coloured left border */
.fb-sheet, .fb-sheet.is-bad { border-left: 0; border-radius: var(--r-lg); }
.fb-verdict { display: flex; gap: var(--s-2); align-items: flex-start; }
.fb-verdict svg { flex: none; margin-top: 2px; }
.fb-sheet.is-ok .fb-verdict svg { color: var(--ok); }
.fb-sheet.is-bad .fb-verdict svg { color: var(--bad); }

/* P2-8: status banner and menu align with the header container */
.status-banner p, .menu-panel ul { max-width: calc(var(--container) + 2 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1440px) { .status-banner p, .menu-panel ul { max-width: calc(var(--container-max) + 2 * var(--gutter)); } }

/* P2-9: footer is one column until 1100px, links in three columns from 768px */
@media (max-width: 1099px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1099px) { .footer-links { columns: 3; } }

/* P2-10: the quiz embed has the same padding as every other card */
.quiz.quiz-embed { padding: var(--sheet-pad); }
.quiz-embed > :last-child, .quiz-embed > .actions, .quiz-embed > p.fine:last-child { margin-bottom: 0; }

/* P2-11 + H4 §3.2: results = score sheet, page-level actions, e-mail card, one review sheet with divider rows */
.res-block { margin-bottom: var(--s-2); }
.res-block > :last-child { margin-bottom: 0; }
.res-email > .card { margin: 0 0 var(--s-4); }
.rv-h { margin: var(--s-6) 0 var(--s-3); }
.review-list { margin: 0 0 var(--s-4); }
.review-list.sheet { overflow: hidden; }
.review-list .review-item, .review-list .review-more { border: 0; border-radius: 0; margin: 0; background: none; }
.review-list > * + *, .review-list .review-more > .review-item { border-top: 1px solid var(--line); }
.review-list .review-more > .review-item { margin: 0; }
.quiz-embed .review-list { border-top: 1px solid var(--line); }
.res-install { border-radius: var(--r-lg); }

/* quiz focus mode: the question is one paper sheet (white in dark, 16px black margin); bars stay chrome */
.qz-paper > :last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .quiz.is-focus > .qz-body > .qz-paper { max-width: calc(40rem + 2 * var(--sheet-pad)); }
}
/* P3-1: the desktop quiz top bar and strip keep to the question column */
.quiz.is-focus > .qz-top { padding-inline: max(8px, calc((100% - 42rem) / 2)); }
.quiz.is-focus > .qz-strip { padding-inline: max(12px, calc((100% - 40rem) / 2)); }

/* generic sheet (light: a card; dark: a white sheet via the re-scope above) */
.sheet { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-lg); }
.teaser { border-radius: var(--r-lg); }

/* P3 */
.center-card h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h1, h2 { text-wrap: balance; }
.band > .wrap > :last-child { margin-bottom: 0; }
/* H4 review round 1 */
.card--link { color: var(--ink); }
@media (min-width: 768px) { .steps-seq li { align-items: start; } }
.review-list .review-item, .review-list .review-more { padding: 0; }
.res-block .theme-bars { margin-bottom: 0; }
.res-block .theme-bars li:last-child { border-bottom: 0; padding-bottom: 0; }
/* icon + title cards use the same inline head as .card-head (theme tiles keep the icon on top) */
.card:not(.theme-card):has(> .card__icon:first-child + .card__title) { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--s-3); align-content: start; }
.card:not(.theme-card):has(> .card__icon:first-child + .card__title) > * { grid-column: 1 / -1; }
.card:not(.theme-card):has(> .card__icon:first-child + .card__title) > .card__icon:first-child { grid-column: 1; margin-top: 2px; }
.card:not(.theme-card):has(> .card__icon:first-child + .card__title) > .card__icon:first-child + .card__title { grid-column: 2; margin-top: 0; }
.card--link:not(.theme-card):has(> .card__icon:first-child + .card__title) { row-gap: var(--s-2); }
.steps-seq li { align-content: start; }

/* =====================================================================================
   Dark G1 (2026-10-07, founder feedback on production): charcoal page (#262626) instead of near-black,
   a framed page (header, banner and footer #0E0E0E with #2E2E2E hairlines), white sheets with a 2px
   #8C8C87 "picture frame", and a header that never wraps. Light mode: card borders #D4D4D0 only.
   ===================================================================================== */
:root { --card-border: #d4d4d0; --chrome-line: var(--line); }
.table-wrap, .teaser, .callout, .quiz.quiz-embed, .review-item, .review-more { border-color: var(--card-border); }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262626;          /* G1 charcoal page */
    --surface: #2e2e2e;     /* rare page-level surfaces */
    --surface-2: #383838;   /* pills, hover fills, progress tracks: one step lighter than the page */
    --line: #404040;        /* page-level hairlines (band separators, TOC rule) */
    --muted: #ababa7;       /* 6.4:1 on the page, 5.0:1 on #383838 pills */
    --brand-soft: #333333;  /* active nav pill on the #0E0E0E header */
    --opt-line: #7a7a76;    /* page-level control edges: 3.5:1 on #262626 */
    --warn-bg: #3b3222; --ok-bg: #1d3325; --bad-bg: #3d2220;
    --chrome: #0e0e0e;      /* header, banner, footer, sticky and quiz bars */
    --chrome-line: #2e2e2e;
  }
  /* inside sheets: light tokens (re-declared here because the light card border changed) */
  .sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper {
    --card-border: #d4d4d0; --chrome-line: #e6e6e3;
  }
  /* the frame: every outermost sheet gets a 2px #8C8C87 outline (4.5:1 on #262626, 3.4:1 against the
     white card); nested sheets and inner boxes keep their light borders */
  :is(.sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper):not(:is(.sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper) *) {
    border: 2px solid #8c8c87; border-radius: var(--r-lg);
  }
  /* a hovered card link lifts and its frame turns white */
  .card.card--link:not(:is(.acc, .card, .sheet) *):hover { border-color: #ffffff; }
  /* framed page: chrome is darker than the page, with hairlines */
  .status-banner { background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
  .site-header { background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
  .site-footer { background: var(--chrome); border-top: 1px solid var(--chrome-line); }
  .menu-panel { background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
  .sticky-buy, .sticky-cta, .quiz.is-focus > .q-bar, .quiz.is-focus > .qz-top, .quiz.is-focus > .qz-strip { background: var(--chrome); border-color: var(--chrome-line); }
  .quiz.is-focus > .qz-progress { background: var(--chrome); }
  .quiz.is-focus { background: var(--bg); }
  .band--alt { background: var(--bg); }
}

/* header never wraps: the full nav needs ~1,150px in English, so the menu is used below 1200px */
.site-nav.nav-desktop ul { flex-wrap: nowrap; }
@media (min-width: 960px) and (max-width: 1199px) {
  .nav-desktop { display: none !important; }
  .menu { display: block; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1200px) and (max-width: 1339px) {
  .site-nav a { padding: 0 .5rem; font-size: .9rem; }
}
.fb-more { display: inline-flex; align-items: center; gap: 6px; text-align: left; }

/* =====================================================================================
   Dark G1 v2 (2026-10-07, founder): near-black frame, soft off-white sheets (#ECEBE7, "a branca magoa os
   olhos"), Portugal flag. Light mode stays pure white.
   ===================================================================================== */
@media (prefers-color-scheme: dark) {
  .sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper {
    --bg: #ecebe7; --surface: #ecebe7; --chrome: #ecebe7;      /* the sheet, its inputs, option rows, embed bar */
    --surface-2: #e2e1dc;                                       /* fills: hover, feedback, pills, table heads */
    --brand-soft: #dcdbd6;                                      /* exam "selected" fill */
    --line: #d3d2cc; --card-border: #c4c3bd;                    /* dividers, nested boxes (decorative) */
    --muted: #57574f;                                           /* 6.2:1 on #ECEBE7, 5.6:1 on #E2E1DC */
    --opt-line: #7b7b76;                                        /* option rows, inputs, chips: 3.5:1 */
    --ok: #276b42; --ok-bg: #d9e6dc;                            /* 5.0:1 / 4.8:1 */
    --bad: #a8231c; --bad-bg: #f0dcd8;                          /* 5.5:1 */
    --warn-bg: #ece2cb; --warn-ink: #523c0e; --warn-dot: #a86d17;
    --ghost-hover: #e2e1dc; --btn-ink: #ecebe7;
  }
  .quiz-main:not(.is-focus), .dsheet, .qz-paper { background: var(--surface); }
  /* the frame is near-black (decorative; the off-white card defines the edge) */
  :is(.sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper):not(:is(.sheet, .dsheet, .card, .teaser, .acc, .acc-group, .faq-sheet, .table-wrap, .callout, .before-start,
  .res-install, .qz-dialog, .quiz-embed, .quiz-main:not(.is-focus), .signup-box, .qz-paper) *) { border-color: #0a0a0a; }
  .card.card--link:not(:is(.acc, .card, .sheet) *):hover { border-color: #f2f2f2; }
}
/* Portugal flag (flag-icons, MIT): small, decorative, with a hairline that reads on light and dark */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flag-pt { width: 20px; height: 15px; flex: none; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(128, 128, 128, .55); }
.card__icon .flag-pt { width: 20px; height: 15px; margin-top: 3px; }
.eyebrow-flag { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero .eyebrow-flag { display: inline-flex; align-items: center; gap: var(--s-2); }

/* =====================================================================================
   Acesso Premium (2026-10-07): sales page, purchase page, premium area (/area/). Uses the existing tokens, so
   the white-sheet dark mode applies automatically (cards, tables, sheets).
   ===================================================================================== */
/* text inputs share the email input look */
.signup input[type="text"] { width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; border: 1.5px solid var(--opt-line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.signup input[type="text"]:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.form-msg.is-ok code, .access-code-inline { font: 700 1rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }

/* payment form: consent box above the two buttons */
.pay-form { margin: 0; }
.card > .pay-form { margin-top: var(--s-5); }
.pay-consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; margin: 0 0 var(--s-4); cursor: pointer; }
.pay-consent input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--ink); }
button.btn-pay { width: 100%; font: inherit; font-weight: 650; font-size: 1.0625rem; }
.price-note { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--ink); font-weight: 650; }
.price-login { margin: var(--s-4) 0 0; font-size: var(--fs-sm); }
.card > .price-login { margin-top: var(--s-4); }

/* real screenshots of the premium area */
.shots-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--card-border); background: var(--surface); }
.shot figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); line-height: 1.4; }
@media (min-width: 768px) { .shots-row { max-width: 40rem; } }

/* Grátis vs Premium */
.cmp-table th[scope="row"] { font-weight: 650; width: 34%; background: none; }
.cmp-table thead th { font-size: var(--fs-sm); }
.cmp-table thead th:last-child, .cmp-table td:last-child { background: var(--surface-2); }
.cmp-table td { font-size: var(--fs-sm); }
.cmp-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.cmp-no { color: var(--muted); }
@media (max-width: 559px) {
  .cmp-table th, .cmp-table td { padding: .55rem .5rem; }
  .cmp-table th[scope="row"] { width: 38%; }
}

/* one premium sample question */
.sample-card { max-width: 46rem; }
.sample-tag { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.sample-opts { list-style: none; padding: 0; margin: 0; }
.sample-opts .ans { cursor: default; }
.sample-card .fb-sheet > p:last-child { margin-bottom: 0; }

/* purchase page: access code shown once */
.pix-panel { margin-top: var(--s-4); }
.code-title { font-size: var(--fs-lg); margin: 0 0 var(--s-2); }
.access-code { font: 700 clamp(1.15rem, .9rem + 1.6vw, 1.6rem)/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; background: var(--surface-2); border: 1.5px dashed var(--opt-line); border-radius: var(--r-md); padding: var(--s-4); margin: 0; text-align: center; overflow-wrap: anywhere; }
.code-warn { font-weight: 650; margin: var(--s-3) 0; }
.copy-row { margin: var(--s-3) 0 0; }
.copy-label { margin: 0 0 var(--s-1); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.copy-box { display: flex; gap: var(--s-2); align-items: center; }
.copy-value { flex: 1; min-width: 0; font: .875rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 8px; padding: .55rem .7rem; }
.copy-btn { flex: none; min-height: 44px; padding: .4rem .9rem; }
.buy-done code { overflow-wrap: anywhere; }

/* premium area */
.area { max-width: 64rem; margin: var(--s-5) auto var(--s-7); }
.area-login-card { max-width: 32rem; margin: 0 auto; }
.area-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.area-login-card > .area-title + * { margin-top: var(--s-3); }
.area-form { margin-top: var(--s-4); }
.area-login-card .acc { margin-top: var(--s-3); }
.area-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.area-sub { margin: var(--s-1) 0 0; color: var(--muted); }
.area-logout { min-height: 44px; }
.area-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: start; } }
.area-start .qh-modes { margin-top: var(--s-3); }
.area-label { font-weight: 700; margin: var(--s-4) 0 var(--s-2); }
.area-start .theme-links { margin: 0; }
.mode-card[disabled] { opacity: .55; cursor: not-allowed; }
.area-progress .theme-bars { margin: var(--s-3) 0 var(--s-2); }
.area-progress .theme-bars li { grid-template-columns: 1fr auto; grid-template-areas: "name num" "bar bar"; }
.area-device { margin-top: var(--s-5); max-width: var(--measure); }
.area-quiz { max-width: 44rem; margin: 0 auto; }
.area-quiz > * + * { margin-top: var(--s-3); }
.area-quiz .qz-top { margin-bottom: 0; }
.qz-exit { display: inline-flex; align-items: center; gap: 4px; padding-inline: 0; }
.area-quiz .qz-progress { margin: var(--s-2) 0 0; }
.area-quiz .qz-pill-inline { display: inline-block; margin: var(--s-2) 0 0; }
.area-bar { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.area-bar .btn { flex: 1; }
.area-bar:empty { display: none; }
.area .res-block { max-width: 44rem; margin: 0 auto var(--s-2); }
.area .res-actions, .area .rv-h, .area .review-list { max-width: 44rem; margin-left: auto; margin-right: auto; }
.area .score-line { font-size: 1.25rem; margin: var(--s-2) 0 0; }
#area-app { scroll-margin-top: calc(var(--header-h) + 12px); }
.area-logout { min-height: 44px; padding: .4rem .9rem; font-size: var(--fs-sm); }

/* =====================================================================================
   Purchase page, payment above the fold (2026-10-07, branch presale-above-fold). /acesso-antecipado/ and
   /en/early-access/ only. Desktop (>=1100px): H1, lead and three points on the left, the payment box on the right,
   both pay buttons inside the first 768px. Mobile: H1 + lead, the box, then the points. Everything else follows
   in one reading column. The slim bar under the header (>=720px) appears only once the box is out of view.
   ===================================================================================== */
.presale-hero { display: grid; grid-template-areas: "intro" "box" "points"; gap: var(--s-5); margin: 0 0 var(--s-7); }
.presale-intro { grid-area: intro; margin: 0; }
.presale-intro h1 { margin-bottom: 0; }
.presale-intro .lead { max-width: 36rem; }
.presale-points { grid-area: points; font-size: var(--fs-md); }
.presale-hero > .price-box { grid-area: box; max-width: 34rem; margin: 0; border: 2px solid var(--brand); }
@media (min-width: 1100px) {
  .presale-hero {
    grid-template-columns: minmax(0, 1fr) 28.5rem; grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". box" "intro box" "points box" ". box";
    column-gap: var(--s-8); row-gap: 0;
  }
  .presale-intro h1 { max-width: none; }
  .presale-points { margin-top: var(--s-6); max-width: 34rem; gap: var(--s-3); }
  .presale-hero > .price-box { max-width: none; padding: var(--s-5) 28px; }
}

/* price: Pix and card side by side, same weight, split by a hairline */
.price-box > .pb-prices { margin-top: 0; }
.pb-prices { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--s-5); }
.pb-price { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-price + .pb-price { border-left: 1px solid var(--line); padding-left: var(--s-5); }
.pb-price strong { font-size: clamp(1.625rem, 1.4rem + .7vw, 2rem); line-height: 1.1; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-price span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.price-box > .price-note { margin-top: var(--s-3); }
.price-box > .pb-list { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); gap: var(--s-2); font-size: 1rem; line-height: 1.45; }
.price-box > .pay-form { margin-top: var(--s-5); }
.price-box .pay-consent { margin-bottom: var(--s-4); }
.pay-consent.is-cue { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 6px; }
.price-box .pay-assure { margin-top: var(--s-3); text-align: center; color: var(--ink); }
.pay-assure span, .sticky-buy .nw { white-space: nowrap; }
.pay-fine { margin: var(--s-1) 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; line-height: 1.5; }
.pay-fine a { color: var(--ink); }
.price-box > .price-login { margin-top: var(--s-3); text-align: center; }
@media (max-width: 767px) {
  .presale-hero { gap: var(--s-4); }
  .pb-prices { grid-auto-columns: auto; justify-content: start; }
  .price-box > .pb-list { margin-top: var(--s-3); padding-top: var(--s-3); gap: 6px; }
  .price-box > .pay-form { margin-top: var(--s-4); }
  .price-box .pay-consent { margin-bottom: var(--s-3); }
}

/* content below the hero: one reading column under the H1 */
.presale-main { max-width: 50rem; }
.presale-main > section:first-child > h2 { margin-top: 0; }

/* slim buy bar under the sticky header (>=720px; phones keep .sticky-buy at the bottom) */
.buy-bar { position: fixed; top: calc(var(--header-h) + 1px); left: 0; right: 0; z-index: 19; background: var(--chrome); border-bottom: 1px solid var(--chrome-line, var(--line)); transform: translateY(-100%); visibility: hidden; }
.buy-bar.is-on { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .buy-bar { transition: transform .24s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .24s; }
  .buy-bar.is-on { transition: transform .24s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
}
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; }
.buy-bar p { margin: 0; font-size: var(--fs-sm); line-height: 1.3; font-variant-numeric: tabular-nums; }
.buy-bar .btn { min-height: 40px; padding: .35rem 1.1rem; font-size: var(--fs-sm); flex: none; }
@media (max-width: 719px) { .buy-bar { display: none; } }
@media (min-width: 720px) { .presale-main h2[id] { scroll-margin-top: calc(var(--header-h) + 72px); } }
@media print { .buy-bar { display: none; } }

/* P9 documents checklist (netos) + P14 history timeline (2026-10-10). Plain HTML first; site.js only adds saving/filtering. */
.check-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }
.check-progress { font-weight: 700; margin: 0 0 var(--s-4); font-variant-numeric: tabular-nums; }
.checklist fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-3) var(--s-5) var(--s-4); margin: 0 0 var(--s-4); min-width: 0; background: var(--surface); }
.checklist fieldset.is-pending { border-style: dashed; }
.checklist legend { font-weight: 800; padding: 0 var(--s-2); }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.check-item { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.check-item > input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; flex: none; accent-color: var(--ink); }
.check-item label { cursor: pointer; }
.check-item .badge { white-space: normal; margin-top: 2px; }
.check-item .why { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-1); overflow-wrap: anywhere; }
.check-item .why a { color: var(--ink); }
@media (max-width: 767px) { .checklist fieldset { padding: var(--s-2) var(--s-3) var(--s-3); } }
.tl-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }
.tl-tools [aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tl-era > h2 { margin-top: var(--s-6); }
.tl-era .timeline li { padding-bottom: var(--s-4); }
.tl-era .timeline time { font-size: 1rem; font-variant-numeric: tabular-nums; }
.timeline li.is-br::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.is-br-only .timeline li:not(.is-br) { display: none; }
@media print {
  .checklist fieldset, .tl-era .timeline li { break-inside: avoid; }
  .checklist fieldset { border: 1px solid #999; padding: 6px 10px; margin-bottom: 8px; }
  .check-item .why { color: #333; font-size: 9.5pt; }
  .check-item > input { width: 14px; height: 14px; }
  .tl-era > h2 { margin-top: 10px; }
  .tl-era .timeline li { padding-bottom: 6px; }
  .checklist .badge, .tl-era .badge { border: 1px solid #999; }
}
