/* ============================================================
   MGilWeb — Editorial Design System (ported to plain CSS)
   Deep Emerald · Cream · Gold — OKLCH — Fraunces + Inter
   ============================================================ */

:root {
  --radius: 0.625rem;

  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.22 0.05 155);
  --card: oklch(0.985 0.008 85);
  --card-foreground: oklch(0.22 0.05 155);
  --primary: oklch(0.32 0.08 155);
  --primary-foreground: oklch(0.97 0.015 85);
  --secondary: oklch(0.94 0.025 85);
  --secondary-foreground: oklch(0.25 0.06 155);
  --muted: oklch(0.93 0.018 85);
  --muted-foreground: oklch(0.45 0.03 155);
  --accent: oklch(0.72 0.13 80);
  --border: oklch(0.88 0.02 85);

  --gold: oklch(0.75 0.13 80);
  --gold-deep: oklch(0.6 0.13 75);
  --emerald-deep: oklch(0.22 0.07 155);
  --emerald-mid: oklch(0.32 0.08 155);
  --cream: oklch(0.96 0.018 85);

  --shadow-elegant: 0 30px 60px -30px color-mix(in oklab, oklch(0.22 0.07 155) 50%, transparent);
  --shadow-card: 0 20px 40px -25px color-mix(in oklab, oklch(0.22 0.07 155) 35%, transparent);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold-deep); font-weight: 600;
}
.muted { color: var(--muted-foreground); }
.gold { color: var(--gold-deep); }
.italic-gold { font-style: italic; color: var(--gold-deep); }
.mono {
  font-family: ui-monospace, 'SF Mono', 'Roboto Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; font-weight: 500; font-size: 14px;
  padding: 15px 28px; cursor: pointer; border: 1px solid transparent;
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s;
  font-family: var(--font-sans);
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }

/* ─── CTA Pulsante ──────────────────────────────────────────────── */
.btn-cta-pulse {
  position: relative;
  background: #8B0000;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 50px;
  display: inline-block;
  text-decoration: none;
  overflow: hidden;
  animation: cta-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(139,0,0,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cta-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: cta-shine 2.4s ease-in-out infinite;
}
.btn-cta-pulse:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(139,0,0,.45);
  opacity: 1;
}
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139,0,0,.55); transform: scale(1); }
  40%  { box-shadow: 0 0 0 14px rgba(139,0,0,0); transform: scale(1.045); }
  60%  { transform: scale(1.045); }
  100% { box-shadow: 0 0 0 0 rgba(139,0,0,0); transform: scale(1); }
}
@keyframes cta-shine {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* CTA inline no corpo do review */
.cta-inline {
  margin: 36px 0;
  text-align: center;
}
.cta-inline .btn-cta-pulse {
  font-size: 16px;
  padding: 16px 36px;
  width: 100%;
  max-width: 540px;
  text-align: center;
}

/* Bloco CTA principal */
.cta-block {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.btn-ghost { border-color: color-mix(in oklab, var(--primary) 22%, transparent); color: var(--primary); }
.btn-ghost:hover { background: var(--secondary); }
.btn-gold {
  background: var(--gold); color: var(--emerald-deep);
  font-family: var(--font-display); font-weight: 600;
}
.btn-gold:hover { transform: scale(1.02); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ─── Review page grids ─────────────────────────────────────────── */
@media (min-width: 900px) {
  .review-hero-grid { grid-template-columns: 8fr 4fr !important; }
  .review-body-grid { grid-template-columns: 7fr 4fr !important; }
  .verdict-grid     { grid-template-columns: 8fr 4fr !important; align-items: center; }
  .verdict-grid > div:last-child { justify-content: flex-end; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--primary);
}
.link-arrow .arrow { transition: transform .25s; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(16px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .mark {
  display: grid; place-items: center; height: 36px; width: 36px;
  border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
}
.brand .name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand .name .dot { color: var(--gold-deep); }

.nav { display: none; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: color-mix(in oklab, var(--foreground) 75%, transparent); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  display: grid; place-items: center; height: 40px; width: 40px;
  border-radius: 999px; border: 1px solid var(--border);
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  background: transparent; cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: grid; }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
@media (max-width: 700px){ .section { padding-block: 64px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin-top: 16px; max-width: 18ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero.section { padding-block: 0; }
.hero-grid {
  display: grid; gap: 48px; padding-block: 64px 88px;
  grid-template-columns: 1fr;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 6px 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.badge-pill .dot { height: 6px; width: 6px; border-radius: 999px; background: var(--gold); }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px); line-height: 0.95; margin-top: 28px; font-weight: 500;
  text-wrap: balance;
}
.hero p.lead { margin-top: 28px; max-width: 34ch; font-size: 18px; line-height: 1.6; color: var(--muted-foreground); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--border); padding-top: 32px; }
.stats dt { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--primary); }
.stats dd { margin: 4px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }

.hero-media { position: relative; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 32px;
  box-shadow: var(--shadow-elegant); aspect-ratio: 4/3;
  background: var(--emerald-deep);
}
.hero-card .feature-tag {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid color-mix(in oklab, white 20%, transparent);
  background: oklch(0.18 0.04 155 / 0.72); backdrop-filter: blur(8px);
  border-radius: 18px; padding: 20px; color: white;
}
.hero-card .feature-tag .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.hero-card .feature-tag .t { font-family: var(--font-display); font-size: 20px; line-height: 1.2; margin-top: 8px; }
.hero-card .feature-tag .meta { margin-top: 12px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255,255,255,.7); }
.hero-card .feature-tag .stars { color: var(--gold); letter-spacing: 1px; }
.hero-blob { position: absolute; bottom: -24px; left: -24px; height: 96px; width: 96px; border-radius: 999px; background: var(--gold); mix-blend-mode: multiply; display: none; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; padding-block: 88px 120px; align-items: start; }
  .hero-card { aspect-ratio: 3/4; }
  .hero-blob { display: block; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
}
.marquee .row { display: flex; align-items: center; gap: 40px; padding-block: 22px; overflow: hidden; }
.marquee .label { flex-shrink: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.marquee .logos { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 32px; }
.marquee .logos span { font-family: var(--font-display); font-size: clamp(16px, 2.4vw, 24px); font-weight: 500; color: color-mix(in oklab, var(--foreground) 38%, transparent); white-space: nowrap; }

/* ============================================================
   COVER SYSTEM — typographic editorial covers (driven by data)
   Replaces AI-garbled images: text is always crisp + on-brand.
   Ready to host a real researched image via .cover[data-img].
   ============================================================ */
.cover {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 0; isolation: isolate;
  background: var(--emerald-deep);
  color: var(--cream);
  display: flex; flex-direction: column;
}
/* category-tinted base wash */
.cover[data-cat="marketing"]    { background: linear-gradient(155deg, oklch(0.30 0.085 155), oklch(0.20 0.06 155)); }
.cover[data-cat="programacao"]  { background: linear-gradient(155deg, oklch(0.26 0.07 160), oklch(0.18 0.05 158)); }
.cover[data-cat="financas"]     { background: linear-gradient(155deg, oklch(0.24 0.075 150), oklch(0.17 0.05 152)); }
.cover[data-cat="design"]       { background: linear-gradient(155deg, oklch(0.28 0.08 150), oklch(0.19 0.055 156)); }
.cover[data-cat="idiomas"]      { background: linear-gradient(155deg, oklch(0.27 0.07 162), oklch(0.18 0.05 160)); }

/* gold organic accent — single smooth shape, no garbled text ever */
.cover::before {
  content: ""; position: absolute; z-index: 0;
  width: 150%; height: 60%; right: -30%; top: -18%;
  background:
    radial-gradient(120% 120% at 80% 20%,
      var(--gold) 0%,
      oklch(0.68 0.13 78) 38%,
      transparent 62%);
  filter: blur(2px);
  opacity: .92;
  border-bottom-left-radius: 60% 100%;
  transform: rotate(-4deg);
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 13px, oklch(1 0 0 / .015) 13px 14px),
    radial-gradient(80% 50% at 20% 110%, oklch(0 0 0 / .35), transparent 70%),
    linear-gradient(to top, oklch(0 0 0 / .85) 0%, oklch(0 0 0 / .45) 40%, transparent 70%);
  pointer-events: none;
}
.cover-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 24px;
  border: 1px solid color-mix(in oklab, var(--gold) 28%, transparent);
  margin: 14px; border-radius: 4px;
}
.cover-top { display: flex; align-items: center; justify-content: space-between; }
.cover-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.cover-mark {
  display: grid; place-items: center; height: 26px; width: 26px; border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gold);
}
.cover-mid { margin-top: auto; }
.cover-platform { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 65%, transparent); }
.cover-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 4vw, 30px); line-height: 1.05; margin-top: 12px;
  color: #fff; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-author { margin-top: 12px; font-size: 12px; font-style: italic; color: color-mix(in oklab, var(--cream) 80%, transparent); font-family: var(--font-display); }
.cover-bottom { margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; }
.cover-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklab, var(--cream) 60%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--gold) 35%, transparent);
  padding-top: 8px;
}
.cover-score {
  display: grid; place-items: center; height: 46px; width: 46px; border-radius: 999px;
  background: var(--gold); color: var(--emerald-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 18px -6px oklch(0.6 0.13 75 / .6);
}
/* optional real image layer (curator-supplied) */
.cover-photo {
  position: absolute; inset: 0; z-index: 1; object-fit: cover; width: 100%; height: 100%;
  opacity: 0; transition: opacity .4s;
}
.cover.has-photo .cover-photo { opacity: 0.20; }
.cover.has-photo::before { opacity: 0.75; }

/* ---------- Review cards (featured) ---------- */
.review-grid { margin-top: 56px; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .review-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .review-grid { grid-template-columns: repeat(3,1fr); } }

.review-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border); background: var(--card);
  transition: box-shadow .3s, transform .3s;
}
.review-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.review-card .cover { transition: transform .6s; }
.review-card:hover .cover-inner { border-color: color-mix(in oklab, var(--gold) 45%, transparent); }
.review-card .body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 28px; }
.review-card .body h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-card .body .excerpt { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.review-card .body .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; font-size: 12px; color: var(--muted-foreground); }
.review-card .body .foot .read { font-weight: 500; color: var(--primary); }
.review-card:hover .body .foot .read { text-decoration: underline; }

/* ---------- Categories (dark) ---------- */
.categories { background: var(--emerald-deep); color: var(--primary-foreground); }
.categories .grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
.categories .intro .eyebrow { color: var(--gold); }
.categories .intro h2 { font-size: clamp(30px,4vw,48px); line-height: 1.08; margin-top: 16px; }
.categories .intro p { margin-top: 24px; max-width: 42ch; color: color-mix(in oklab, var(--primary-foreground) 72%, transparent); }
.cat-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; border-bottom: 1px solid color-mix(in oklab, white 10%, transparent);
  transition: border-color .25s;
}
.cat-list a:hover { border-color: var(--gold); }
.cat-list .cname { font-family: var(--font-display); font-size: clamp(20px,2.4vw,26px); font-weight: 500; }
.cat-list .cmeta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,.55); }
.cat-list .cgo { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); transition: all .25s; }
.cat-list a:hover .cgo { border-color: var(--gold); background: var(--gold); color: var(--emerald-deep); }
@media (min-width: 980px){
  .categories .grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .cat-list { grid-template-columns: repeat(2,1fr); gap: 8px 48px; }
}

/* ---------- Editorial pick ---------- */
.pick-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.pick-media { position: relative; }
.pick-media img, .pick-media .pick-illus { width: 100%; border-radius: 32px; box-shadow: var(--shadow-card); }
.pick-badge {
  position: absolute; right: -12px; top: -16px; transform: rotate(3deg);
  background: var(--gold); color: var(--emerald-deep);
  border-radius: 16px; padding: 12px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; box-shadow: var(--shadow-card);
}
.pick blockquote { margin: 32px 0 0; border-left: 2px solid var(--gold); padding-left: 24px; }
.pick blockquote p { font-family: var(--font-display); font-size: clamp(20px,2.4vw,26px); font-style: italic; line-height: 1.3; }
.pick blockquote footer { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }
@media (min-width: 980px){ .pick-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* editorial illustration placeholder (premium, no AI text) */
.pick-illus {
  aspect-ratio: 4/3; background:
    radial-gradient(120% 90% at 75% 25%, oklch(0.30 0.05 155), oklch(0.18 0.04 155));
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.pick-illus .book {
  width: 58%; aspect-ratio: 3/2; background: var(--cream); border-radius: 6px;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / .5); position: relative;
  transform: rotate(-4deg);
  background-image: repeating-linear-gradient(oklch(0.22 0.05 155 / .08) 0 1px, transparent 1px 11px);
  background-position: 0 26px; background-size: 70% 100%; background-repeat: no-repeat;
  border: 1px solid oklch(0.22 0.05 155 / .12);
}
.pick-illus .book::before { content: "Course Review"; position: absolute; top: 12px; left: 16px; right: 16px; font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.pick-illus .cup { position: absolute; right: 12%; bottom: 12%; width: 64px; height: 52px; background: var(--emerald-mid); border-radius: 8px 8px 26px 26px; box-shadow: 0 18px 30px -12px oklch(0 0 0 / .6); }
.pick-illus .cup::after { content: ""; position: absolute; right: -16px; top: 10px; width: 18px; height: 22px; border: 4px solid var(--emerald-mid); border-left: none; border-radius: 0 12px 12px 0; }
.pick-illus .pen { position: absolute; right: 30%; bottom: 18%; width: 90px; height: 7px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 4px; transform: rotate(28deg); }

/* ---------- How we review ---------- */
.howwe { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 30%, transparent); }
.pillars { margin-top: 64px; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width:640px){ .pillars { grid-template-columns: repeat(2,1fr); } }
@media (min-width:980px){ .pillars { grid-template-columns: repeat(4,1fr); } }
.pillar { background: var(--card); padding: 32px; }
.pillar .n { font-family: var(--font-display); font-size: 48px; font-weight: 500; color: var(--gold-deep); }
.pillar h3 { font-family: var(--font-display); font-size: 22px; margin-top: 20px; }
.pillar p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Latest list ---------- */
.latest-list { margin-top: 48px; border-block: 1px solid var(--border); }
.latest-list a {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 24px;
  padding-block: 24px; border-bottom: 1px solid var(--border); transition: background .2s;
}
.latest-list li:last-child a { border-bottom: none; }
.latest-list a:hover { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.latest-list .ldate { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.latest-list .lcat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.latest-list .ltitle { font-family: var(--font-display); font-size: clamp(17px,2vw,24px); line-height: 1.15; transition: color .2s; }
.latest-list a:hover .ltitle { color: var(--primary); }
.latest-list .lscore { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--primary); }
.latest-list .lscore .star { color: var(--gold); }
@media (max-width: 700px){
  .latest-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .latest-list .ldate { grid-row: 1; }
  .latest-list .lcat { grid-row: 1; text-align: right; }
  .latest-list .ltitle { grid-column: 1 / -1; }
  .latest-list .lscore { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Quiz CTA ---------- */
.quiz-cta { padding-bottom: 96px; }
.quiz-box {
  position: relative; overflow: hidden; border-radius: 40px; color: var(--primary-foreground);
  background: linear-gradient(135deg, oklch(0.22 0.07 155), oklch(0.32 0.08 155));
  padding: clamp(40px, 6vw, 80px);
}
.quiz-box .glow { position: absolute; right: -80px; top: -80px; height: 320px; width: 320px; border-radius: 999px; background: oklch(0.75 0.13 80 / .15); filter: blur(40px); }
.quiz-box .grid { position: relative; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.quiz-box h2 { font-size: clamp(28px,4vw,56px); line-height: 1.08; margin-top: 16px; max-width: 20ch; }
.quiz-box .eyebrow { color: var(--gold); }
@media (min-width: 900px){ .quiz-box .grid { grid-template-columns: 8fr 4fr; } .quiz-box .grid .cta-end { display:flex; justify-content:flex-end; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.footer-grid { display: grid; gap: 48px; padding-block: 64px; grid-template-columns: 1fr; }
.footer-about { max-width: 42ch; }
.footer-about p { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.footer-cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.footer-col .eyebrow { letter-spacing: 0.18em; }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: color-mix(in oklab, var(--foreground) 75%, transparent); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-block: 24px; font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 980px){
  .footer-grid { grid-template-columns: 5fr 7fr; }
  .footer-cols { grid-template-columns: repeat(3,1fr); }
}

/* ---------- Quiz modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: oklch(0.18 0.04 155 / .55); backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; background: var(--card); border-radius: 28px;
  box-shadow: var(--shadow-elegant); overflow: hidden; border: 1px solid var(--border);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 28px; }
.quiz-progress { height: 4px; background: var(--muted); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .35s; }
.quiz-q { font-family: var(--font-display); font-size: 24px; line-height: 1.15; margin: 20px 0 4px; }
.quiz-options { display: grid; gap: 10px; margin-top: 18px; }
.quiz-option {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--background); font-size: 15px; cursor: pointer; transition: all .2s; font-family: var(--font-sans); color: var(--foreground);
}
.quiz-option:hover { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 8%, var(--background)); }
.quiz-result { text-align: center; }
.quiz-result .pill { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.quiz-result h3 { font-family: var(--font-display); font-size: 30px; margin: 12px 0; }

/* ---------- Breadcrumb / internal page bits ---------- */
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { opacity: .5; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--secondary); font-size: 12px; font-weight: 500; color: var(--primary); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 30px; margin-top: 48px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p { font-size: 17px; line-height: 1.7; color: color-mix(in oklab, var(--foreground) 92%, transparent); }
.prose ul.bullets { display: flex; flex-direction: column; gap: 10px; }
.prose ul.bullets li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.6; color: var(--muted-foreground); }
.prose ul.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--gold-deep); }
.pull { border-left: 2px solid var(--gold); padding: 4px 0 4px 24px; font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.35; }

.score-board { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; grid-template-columns: repeat(2,1fr); }
@media (min-width: 640px){ .score-board { grid-template-columns: repeat(4,1fr); } }
.score-cell { background: var(--card); padding: 22px; }
.score-cell .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.score-cell .val { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--primary); margin-top: 6px; }
.score-cell .bar { height: 5px; border-radius: 999px; background: var(--muted); margin-top: 10px; overflow: hidden; }
.score-cell .bar span { display: block; height: 100%; background: var(--gold); }

.verdict-card { border-radius: 24px; background: var(--emerald-deep); color: var(--primary-foreground); padding: 40px; position: relative; overflow: hidden; }
.verdict-card .big { font-family: var(--font-display); font-size: 72px; font-weight: 600; color: var(--gold); line-height: 1; }

.sidebar-card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 24px; }
.sidebar-card + .sidebar-card { margin-top: 20px; }
.kv { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted-foreground); }
.kv .v { font-weight: 500; }

/* filter bar (category page) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--foreground); transition: all .2s; font-family: var(--font-sans);
}
.filter:hover { border-color: var(--gold); }
.filter.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   BLOCO 3 — Hamburger universal + Drawer + Carrossel + Pop-cats
   ============================================================ */

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; cursor: pointer;
  transition: border-color .2s;
}
.hamburger span {
  display: block; height: 2px; background: oklch(0.22 0.05 155);
  border-radius: 2px; width: 100%;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.hamburger:hover { border-color: var(--primary); }

/* Sobrescrever nav desktop — agora tudo é hamburger */
@media (min-width: 900px) {
  .nav { display: none !important; }
  .menu-toggle { display: grid !important; }
}

/* ── Header search (desktop) ─────────────────────────────────── */
.header-search {
  flex: 1; max-width: 560px; margin-inline: 32px;
  display: none;
}
@media (min-width: 900px) { .header-search { display: block; } }
.hs-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border: 1.5px solid var(--border);
  border-radius: 999px; background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.hs-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent);
}
.hs-inner svg { flex-shrink: 0; color: var(--muted-foreground); }
.hs-inner input {
  flex: 1; border: none; background: transparent;
  font-size: 14px; color: var(--foreground); outline: none;
  font-family: var(--font-sans);
}
.hs-inner input::placeholder { color: var(--muted-foreground); }
.hs-inner kbd {
  flex-shrink: 0; font-size: 10px; padding: 2px 6px;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted-foreground); display: none;
}
@media (min-width: 900px) { .hs-inner kbd { display: block; } }

/* ── Drawer ──────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0.18 0.04 155 / .45);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 201;
  width: min(360px, 90vw); height: 100dvh;
  background: var(--card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.drawer-close {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--border);
  background: transparent; cursor: pointer;
  color: var(--foreground); transition: border-color .2s;
}
.drawer-close:hover { border-color: var(--primary); }
.drawer-search { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.drawer-search .hs-inner { border-radius: 12px; }
.drawer-nav { list-style: none; padding: 12px 0; flex: 1; }
.drawer-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; font-size: 15px; font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color .2s, background .2s; text-decoration: none;
}
.drawer-nav li a:hover,
.drawer-nav li a.active { color: var(--primary); background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.drawer-nav li a svg { color: var(--muted-foreground); flex-shrink: 0; }
.drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.drawer-footer .eyebrow { margin-bottom: 12px; display: block; }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-cats a {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); text-decoration: none;
  color: var(--foreground); transition: all .2s;
}
.drawer-cats a:hover { border-color: var(--primary); color: var(--primary); }

/* ── Carrossel ───────────────────────────────────────────────── */
.carousel-wrap {
  position: relative; margin-top: 56px;
  padding-inline: 28px; margin-inline: -28px;
  overflow: hidden;
}
.carousel-track {
  display: flex; gap: 32px;
  cursor: grab; user-select: none;
  will-change: transform;
  /* Sem transition — animação via RAF para loop contínuo */
}
.carousel-item {
  flex: 0 0 calc(33.333% - 22px);
  min-width: 0; flex-shrink: 0;
}
@media (max-width: 980px) { .carousel-item { flex: 0 0 calc(50% - 16px); } }
@media (max-width: 640px) { .carousel-item { flex: 0 0 90%; } }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer;
  color: var(--foreground); z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: border-color .2s, background .2s, opacity .2s;
}
.carousel-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.carousel-btn:disabled { opacity: .3; pointer-events: none; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* ── Pop-cats ────────────────────────────────────────────────── */
.pop-cats { background: var(--secondary); }
.pop-cats-grid {
  display: grid; gap: 16px; margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .pop-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .pop-cats-grid { grid-template-columns: repeat(4, 1fr); } }
.pop-cat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 20px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--card);
  text-decoration: none; color: var(--foreground);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  overflow: hidden; word-break: break-word;
}
.pop-cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.pop-cat-card.has-courses { border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }
.pop-cat-label { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin-top: 4px; }
.pop-cat-desc  { font-size: 13px; color: var(--muted-foreground); line-height: 1.4; }
.pop-cat-badge {
  margin-top: 8px; font-size: 12px; font-weight: 600;
  color: var(--primary); display: inline-flex; align-items: center; gap: 4px;
}

/* ── Busca dinâmica — dropdown autocomplete ──────────────────── */
.hs-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.12);
  overflow: hidden; z-index: 300;
  animation: hs-drop .15s ease;
}
@keyframes hs-drop {
  from { opacity:0; transform: translateY(-6px); }
  to   { opacity:1; transform: none; }
}
.hs-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; text-decoration: none; color: var(--foreground);
  transition: background .15s;
}
.hs-dropdown-item:hover { background: var(--secondary); }
.hs-dropdown-item + .hs-dropdown-item { border-top: 1px solid var(--border); }
.hs-dropdown-thumb {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--muted); flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
}
.hs-dropdown-thumb img { width:100%; height:100%; object-fit:cover; }
.hs-dropdown-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.hs-dropdown-cat   { font-size: 11px; color: var(--muted-foreground); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.hs-dropdown-all   {
  display: block; padding: 10px 16px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--primary);
  border-top: 1px solid var(--border); text-decoration: none;
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  transition: background .15s;
}
.hs-dropdown-all:hover { background: var(--secondary); }

/* Wrapper relativo para posicionar dropdown */
.header-search { position: relative; }
