/* ============================================================
   PROJETO APROVA DETRAN — Design System v2 (premium)
   Direção: institucional-moderno. Navy profundo + azul royal (confiança),
   esmeralda (aprovação/CTA), dourado (destaque pontual).
   Tipografia: Fraunces (títulos, autoridade editorial) + Manrope (interface).
   ============================================================ */

:root {
  /* Cores (nomes legados mantidos para compatibilidade com as páginas) */
  --navy-950: #061224;
  --navy-900: #0b1f3b;
  --navy-800: #12305c;
  --blue-600: #2456c8;
  --blue-500: #3b74e6;
  --blue-100: #e8effd;
  --slate-700: #33415a;
  --slate-500: #66748b;
  --slate-300: #d7dee8;
  --slate-100: #f3f6fa;
  --white: #ffffff;
  --green-700: #0b7f56;
  --green-600: #0f9d6b;
  --green-100: #e2f6ee;
  --amber-600: #b97f0a;
  --amber-500: #f2b230;
  --amber-100: #fdf3d8;
  --red-600: #c8372d;
  --red-100: #fdecea;
  --bg: #f6f8fb;
  --line: #e4e9f0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(6, 18, 36, 0.05), 0 2px 8px rgba(6, 18, 36, 0.04);
  --shadow-card: 0 1px 2px rgba(6, 18, 36, 0.05), 0 16px 36px -10px rgba(6, 18, 36, 0.14);
  --shadow-lg: 0 40px 80px -24px rgba(6, 18, 36, 0.5);

  --check-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7f56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 { color: var(--navy-950); margin: 0 0 var(--space-3); }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h3, h4 { font-family: var(--font-body); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { max-width: 68ch; margin: 0 0 var(--space-3); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 6px; }

input, textarea { font-family: var(--font-body); }
input:focus, textarea:focus { outline: none; border-color: var(--blue-500) !important; box-shadow: 0 0 0 4px rgba(59, 116, 230, 0.15); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--muted { background: var(--bg); }
.section--dark { background: var(--navy-950); color: #b7c4da; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--blue-600); background: var(--blue-100);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: var(--space-3);
}
.lede { font-size: 1.12rem; line-height: 1.7; color: var(--slate-500); max-width: 62ch; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  padding: 0.9rem 1.5rem; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, #14ad78, #0b8a5d); color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(15, 157, 107, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 14px 28px -8px rgba(15, 157, 107, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--secondary { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.55); }
.btn--outline { background: var(--white); color: var(--navy-800); border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--navy-800); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; border-radius: 10px; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }

/* ============ TOPBAR + HEADER ============ */
.topbar { background: var(--navy-950); color: #9fb0cb; font-size: 0.78rem; }
.topbar .container { display: flex; justify-content: center; gap: 1.75rem; padding-top: 0.55rem; padding-bottom: 0.55rem; flex-wrap: wrap; text-align: center; }
.topbar strong { color: var(--white); font-weight: 700; }
@media (max-width: 640px) { .topbar span:nth-child(n+2) { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: 0.8rem; padding-bottom: 0.8rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--navy-950); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--white);
  background: linear-gradient(140deg, var(--blue-500), var(--navy-800) 70%);
  box-shadow: 0 6px 14px -4px rgba(36, 86, 200, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__text small { font-size: 0.68rem; font-weight: 600; color: var(--slate-500); }
@media (max-width: 420px) { .brand__text small { display: none; } }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 0.5rem 0.85rem; border-radius: 10px; color: var(--slate-700); font-weight: 700; font-size: 0.9rem; transition: background-color 0.15s, color 0.15s; }
.main-nav a:hover { background: var(--slate-100); color: var(--navy-950); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-100); }

.header-cta { display: flex; align-items: center; gap: var(--space-2); }
@media (max-width: 460px) { .header-cta .btn { display: none; } }

.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; background: var(--white); border: 1px solid var(--slate-300); border-radius: 12px; cursor: pointer; color: var(--navy-950); }
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 940px) { .main-nav { display: block; } .nav-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-2) var(--space-4) var(--space-3); display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 0.85rem 0.25rem; color: var(--navy-950); font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child a { border-bottom: 0; }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #b7c4da; padding: clamp(3rem, 6vw, 5rem) 0 clamp(6.5rem, 11vw, 9rem); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 65% at 88% 8%, rgba(59, 116, 230, 0.42), transparent 62%),
    radial-gradient(45% 55% at 4% 95%, rgba(15, 157, 107, 0.3), transparent 62%),
    linear-gradient(180deg, #061224, #0a1c36);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 75% at 50% 30%, #000, transparent);
}
.hero > .container { position: relative; }
.hero__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-7); } }

.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 700; color: #d6e2f7;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: var(--space-4);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.2); }

.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: var(--space-4); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd98a, var(--amber-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--amber-500);
}
.hero .lede { color: #b7c4da; font-size: 1.15rem; }
.hero__actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }
.hero__checks { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.9rem; font-weight: 600; color: #d6e2f7; }
.hero__checks li { display: flex; align-items: center; gap: 0.5rem; }
.hero__checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: rgba(61, 220, 151, 0.18) var(--check-green) center / 12px no-repeat; flex-shrink: 0; }

/* Cartão de simulado no hero */
.hero__visual { position: relative; }
.mock { background: var(--white); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; color: var(--slate-700); }
.mock__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.mock__label { font-size: 0.78rem; font-weight: 800; color: var(--blue-600); }
.mock__timer { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy-950); background: var(--slate-100); padding: 0.25rem 0.7rem; border-radius: 999px; }
.mock__bar { height: 6px; border-radius: 99px; background: var(--slate-100); overflow: hidden; margin-bottom: 1.1rem; }
.mock__bar i { display: block; height: 100%; width: 34%; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), #3ddc97); }
.mock__num { font-size: 0.78rem; color: var(--slate-500); font-weight: 700; }
.mock__q { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--navy-950); margin: 0.3rem 0 0.9rem; }
.mock__opt { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 0.5rem; font-size: 0.88rem; font-weight: 600; }
.mock__opt.is-correct { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.mock__letter { width: 24px; height: 24px; border-radius: 7px; background: var(--slate-100); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--navy-800); flex-shrink: 0; }
.mock__opt.is-correct .mock__letter { background: var(--green-600); color: var(--white); }
.mock__fb { margin-top: 0.75rem; padding: 0.7rem 0.85rem; background: var(--slate-100); border-radius: 12px; font-size: 0.8rem; color: var(--slate-500); line-height: 1.5; }
.mock__fb b { color: var(--navy-950); }

.float-badge {
  position: absolute; display: none; align-items: center; gap: 0.6rem;
  background: var(--white); color: var(--navy-950); font-size: 0.8rem; font-weight: 800;
  padding: 0.65rem 0.95rem; border-radius: 14px; box-shadow: var(--shadow-card);
}
.float-badge svg { width: 18px; height: 18px; color: var(--green-600); }
.float-badge--a { top: -18px; right: -14px; }
.float-badge--b { bottom: -20px; left: 28px; }
@media (min-width: 640px) { .float-badge { display: flex; } }
@media (min-width: 960px) { .float-badge--a { right: -22px; } }

/* Faixa de números */
.stats-strip { position: relative; z-index: 2; margin-top: -4.2rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); padding: 1.5rem 1.25rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--navy-950); margin-bottom: 0.35rem; }
.stat span { font-size: 0.85rem; font-weight: 600; color: var(--slate-500); }

/* ============ COMO FUNCIONA / FEATURES ============ */
.steps { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--blue-100); -webkit-text-stroke: 1.5px var(--blue-500); color: transparent; margin-bottom: 0.9rem; display: block; }
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--slate-500); font-size: 0.95rem; }

.features { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 0.25rem 0; }
.feature__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); margin-bottom: 1rem; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature p { color: var(--slate-500); font-size: 0.95rem; margin: 0; }

/* ============ CARDS DE MATÉRIA ============ */
.subject-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.subject-card {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.subject-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--accent, var(--blue-600)); }
a.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--slate-300); text-decoration: none; }
.subject-card__icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 0.8rem; color: var(--accent, var(--blue-600)); background: var(--slate-100); background: color-mix(in srgb, var(--accent, var(--blue-600)) 12%, #fff); }
.subject-card__icon svg { width: 24px; height: 24px; }
.subject-card h3 { font-size: 1.12rem; margin: 0 0 0.25rem; }
.subject-card p { font-size: 0.93rem; color: var(--slate-500); margin: 0 0 var(--space-3); }
.subject-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--space-3); }
.subject-card__meta span { font-size: 0.74rem; font-weight: 700; color: var(--slate-700); background: var(--slate-100); padding: 0.25rem 0.6rem; border-radius: 999px; }
.subject-card__cta { margin-top: auto; font-weight: 800; font-size: 0.9rem; color: var(--blue-600); }
a.subject-card:hover .subject-card__cta { text-decoration: underline; }

/* ============ ESTADOS ============ */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.6rem; }
.state-chip {
  display: block; text-align: center; padding: 0.85rem 0.5rem; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 800; color: var(--navy-800); transition: all 0.15s ease;
}
.state-chip:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); transform: translateY(-2px); text-decoration: none; }
.state-chip small { display: block; font-weight: 600; color: var(--slate-500); font-size: 0.7rem; margin-top: 2px; }
.state-chip:hover small { color: #9fb0cb; }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin-bottom: 0.75rem; padding: 0 1.3rem; transition: box-shadow 0.15s; }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 800; color: var(--navy-950); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 1.15rem; color: var(--slate-500); }

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; background: var(--navy-950); text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 50% 0%, rgba(59, 116, 230, 0.4), transparent 70%), radial-gradient(40% 70% at 90% 100%, rgba(15, 157, 107, 0.28), transparent 70%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #b7c4da; margin: 0 auto var(--space-4); }

/* ============ CABEÇALHO DE PÁGINA INTERNA ============ */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #061224, #0c2244); color: #b7c4da; padding: clamp(2.5rem, 5vw, 4.2rem) 0; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 120% at 90% 0%, rgba(59, 116, 230, 0.35), transparent 70%); pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-head .lede { color: #b7c4da; margin-bottom: 0; }
.breadcrumb { font-size: 0.8rem; font-weight: 600; color: #8fa1bf; margin-bottom: var(--space-3); }
.breadcrumb a { color: #c9d6ec; }

/* ============ TEXTO LONGO (blog, institucional) ============ */
.prose > .container { max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.6rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.8; max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-3); }
.prose li { margin: 0.35rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .quiz-card { text-align: center; background: linear-gradient(160deg, var(--blue-100), #fff); border-color: #cddcf8; }
.prose .quiz-card h3 { margin-bottom: var(--space-3); }

/* ============ CARDS GENÉRICOS (blog, placas) ============ */
.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.article-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.article-card::before { content: ""; height: 6px; background: linear-gradient(90deg, var(--blue-600), var(--green-600)); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card__cat { align-self: flex-start; font-size: 0.72rem; font-weight: 800; color: var(--blue-600); background: var(--blue-100); padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }
.article-card h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 0.6rem; }
.article-card h3 a { color: var(--navy-950); }
.article-card h3 a:hover { color: var(--blue-600); text-decoration: none; }
.article-card p { color: var(--slate-500); font-size: 0.92rem; margin: 0 0 var(--space-3); }
.article-card__more { margin-top: auto; font-weight: 800; font-size: 0.88rem; }

.sign-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.5rem 1.25rem; text-align: center; }
.sign-card svg { width: 76px; height: 76px; margin: 0 auto var(--space-2); display: block; }
.sign-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.sign-card p { font-size: 0.85rem; color: var(--slate-500); margin: 0 auto; }

/* ============ SIMULADO ============ */
.quiz-shell { max-width: 780px; margin: 0 auto; }

.quiz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(1.4rem, 4vw, 2.2rem); }

.quiz-intro { text-align: center; }
.quiz-intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.6rem 0; }
.intro-stat { background: var(--slate-100); border-radius: 16px; padding: 1.1rem 0.5rem; }
.intro-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy-950); line-height: 1.1; }
.intro-stat span { font-size: 0.78rem; font-weight: 700; color: var(--slate-500); }
.intro-list { list-style: none; padding: 0; margin: 0 auto 1.75rem; max-width: 440px; text-align: left; display: grid; gap: 0.65rem; font-size: 0.95rem; font-weight: 600; }
.intro-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.intro-list li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--green-100) var(--check-green) center / 13px no-repeat; margin-top: 1px; }

.quiz-topbar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0.75rem 0.9rem; box-shadow: var(--shadow-sm); }
.quiz-progress { flex: 1; min-width: 100px; height: 8px; background: var(--slate-100); border-radius: 99px; overflow: hidden; }
.quiz-progress__fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), #3ddc97); transition: width 0.3s ease; }
.quiz-timer { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy-950); background: var(--slate-100); border-radius: 10px; padding: 0.35rem 0.8rem; min-width: 84px; text-align: center; }
.quiz-timer.is-low { color: var(--red-600); background: var(--red-100); }

.quiz-card__number { font-size: 0.8rem; font-weight: 800; color: var(--blue-600); margin-bottom: var(--space-2); }
.quiz-card__question { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--navy-950); margin-bottom: var(--space-4); letter-spacing: -0.01em; }

.preview-card__letter { width: 30px; height: 30px; border-radius: 9px; background: var(--slate-100); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: var(--navy-800); flex-shrink: 0; transition: all 0.15s; }
.quiz-option {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 0.85rem 1rem; margin-bottom: 0.65rem;
  background: var(--white); cursor: pointer; font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; line-height: 1.45; color: var(--slate-700);
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--blue-500); background: #f7faff; transform: translateX(2px); }
.quiz-option:disabled { cursor: default; }
.quiz-option.is-correct { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.quiz-option.is-correct .preview-card__letter { background: var(--green-600); color: var(--white); }
.quiz-option.is-wrong { border-color: var(--red-600); background: var(--red-100); color: var(--red-600); }
.quiz-option.is-wrong .preview-card__letter { background: var(--red-600); color: var(--white); }

.quiz-feedback { display: none; margin-top: var(--space-3); padding: 1rem 1.1rem; border-radius: 14px; background: var(--slate-100); border-left: 4px solid var(--blue-500); font-size: 0.93rem; line-height: 1.6; }
.quiz-feedback.is-visible { display: block; }
.quiz-feedback strong { color: var(--navy-950); }

/* Resultado */
.result-hero { text-align: center; padding: clamp(2rem, 5vw, 3rem) var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--white), var(--slate-100)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.result-score { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; color: var(--navy-950); font-weight: 700; margin: 0.3rem 0 0.8rem; }
#result-status { display: inline-block; padding: 0.4rem 1.1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.result-grid { display: grid; gap: 0.75rem; margin-top: var(--space-5); grid-template-columns: repeat(3, 1fr); }
.result-stat { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 0.5rem; background: var(--white); font-size: 0.8rem; font-weight: 700; color: var(--slate-500); }
.result-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--navy-950); line-height: 1.2; }

.answer-review { border: 1px solid var(--line); border-left: 4px solid var(--slate-300); border-radius: 14px; padding: var(--space-4); margin-bottom: var(--space-3); background: var(--white); }
.answer-review:has(.correct) { border-left-color: var(--green-600); }
.answer-review:has(.wrong) { border-left-color: var(--red-600); }
.answer-review__status { font-weight: 800; font-size: 0.82rem; }
.answer-review__status.correct { color: var(--green-700); }
.answer-review__status.wrong { color: var(--red-600); }

/* ============ FOOTER ============ */
.site-footer { position: relative; background: var(--navy-950); color: #9fb0cb; padding: 0 0 var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-500), var(--green-600), transparent); }
.footer-cta { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; justify-content: space-between; padding: var(--space-6) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 800px) { .footer-cta { flex-direction: row; align-items: center; } }
.footer-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--white); margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.footer-cta p { margin: 0; color: #9fb0cb; }

.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); padding: var(--space-6) 0 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: var(--white); margin-bottom: var(--space-3); }
.footer-brand .brand__text small { color: #8fa1bf; }
.footer-brand p { font-size: 0.9rem; color: #8fa1bf; max-width: 38ch; }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 800; margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: #9fb0cb; font-size: 0.9rem; font-weight: 500; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: var(--space-6); padding-top: var(--space-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.8rem; color: #7d90ad; }
.footer-bottom span { max-width: 62ch; }

/* ============ COOKIES ============ */
.cookie-banner { position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: 560px; margin: 0; background: rgba(6, 18, 36, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #b7c4da; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 1.2rem 1.4rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); display: none; z-index: 60; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: #b7c4da; font-size: 0.86rem; margin-bottom: var(--space-3); }
.cookie-banner a { color: #8fb4ff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-950); color: var(--white); padding: 0.75rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* Entrada suave do hero */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.07s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.14s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.21s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.28s; }
.hero__visual { animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Durante o simulado, o cabeçalho da página encolhe para dar foco às questões */
body.quiz-active .page-head { padding: 1rem 0; }
body.quiz-active .page-head .lede,
body.quiz-active .page-head .breadcrumb { display: none; }
body.quiz-active .page-head h1 { font-size: 1.15rem; margin: 0; }
body.quiz-active .topbar { display: none; }
body.quiz-active .section { padding-top: var(--space-4); }

/* Cronômetro sempre visível durante o simulado */
#quiz-play { scroll-margin-top: 80px; }
.quiz-topbar { position: sticky; top: 76px; z-index: 5; }
