/* ==========================================================================
   QUINTHEA - Sistema de Design
   Editorial, tatil, com identidade de cor por teste.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Papel quente / tinta profunda */
  --paper:        #FBF8F3;
  --paper-2:      #F4EFE7;
  --surface:      #FFFFFF;
  --surface-2:    #FBF8F3;
  --ink:          #16141F;
  --ink-2:        #4A4658;
  --ink-3:        #7C7789;
  --line:         #E6DFD4;
  --line-strong:  #D6CCBD;

  /* Marca */
  --brand:        #6C4CF1;
  --brand-ink:    #4A31C0;
  --brand-soft:   #EFEBFE;
  --brand-contrast: #FFFFFF;

  /* Acento do conteudo (sobrescrito por pagina) */
  --accent:       #6C4CF1;
  --accent-soft:  #EFEBFE;
  --accent-ink:   #4A31C0;

  /* Estados */
  --ok:           #1E7F5C;
  --ok-soft:      #E3F4EC;
  --warn:         #A8641B;
  --warn-soft:    #FBEFDF;
  --bad:          #C0392B;
  --bad-soft:     #FBE9E7;

  /* Sombras - suaves, difusas, sem brilho artificial */
  --sh-1: 0 1px 2px rgba(22,20,31,.05), 0 2px 8px rgba(22,20,31,.04);
  --sh-2: 0 2px 4px rgba(22,20,31,.05), 0 8px 24px rgba(22,20,31,.07);
  --sh-3: 0 4px 8px rgba(22,20,31,.06), 0 18px 48px rgba(22,20,31,.10);

  /* Formas */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Ritmo */
  --gut: clamp(20px, 5vw, 40px);
  --max: 1180px;
  --max-read: 68ch;

  /* Tipografia */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.5vw, 2.7rem);
  --step-4:  clamp(2.1rem, 1.55rem + 2.7vw, 3.9rem);
}

html.dark {
  --paper:        #121017;
  --paper-2:      #191621;
  --surface:      #1C1926;
  --surface-2:    #23202E;
  --ink:          #F3EFEA;
  --ink-2:        #BAB3C4;
  --ink-3:        #8A8398;
  --line:         #2E2A3A;
  --line-strong:  #423C52;

  --brand:        #9B85FF;
  --brand-ink:    #C3B4FF;
  --brand-soft:   #262040;
  --brand-contrast: #16141F;

  --accent:       #9B85FF;
  --accent-soft:  #262040;
  --accent-ink:   #C3B4FF;

  --ok:           #5FD3A6;  --ok-soft:  #14312A;
  --warn:         #E0A458;  --warn-soft:#332616;
  --bad:          #F08579;  --bad-soft: #35201E;

  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --sh-2: 0 2px 4px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35);
  --sh-3: 0 4px 8px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.45);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern","liga","calt";
  overflow-x: hidden;
}

/* Grao subtil - da textura de papel sem pesar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
html.dark body::before { opacity: .35; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
a  { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }
.wrap--narrow { max-width: 820px; }
.stack > * + * { margin-top: var(--flow, 1.5rem); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.grid-tests {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
}

/* ---------- 4. Cabecalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.site-header__inner { display: flex; align-items: center; gap: 14px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.016em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 9px 13px; border-radius: var(--r-pill); transition: background .18s, color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

.head-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: transform .15s, border-color .18s, color .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-menu { position: relative; }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 6px; min-width: 176px; display: none;
}
.lang-menu.is-open .lang-menu__list { display: block; }
.lang-menu__list a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.lang-menu__list a:hover { background: var(--paper-2); }
.lang-menu__list a[aria-current="true"] { font-weight: 600; color: var(--accent-ink); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; order: 3; }
  .head-tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 22px; gap: 2px; box-shadow: var(--sh-2); margin-left: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .22s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; border-radius: var(--r-md); font-size: 1.05rem; }
}

/* ---------- 5. Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--sh-2); }
html.dark .btn--primary { color: var(--brand-contrast); }
.btn--primary:hover { box-shadow: var(--sh-3); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-3); }

.btn--quiet { background: transparent; color: var(--ink-2); padding-inline: 14px; }
.btn--quiet:hover { color: var(--ink); background: var(--paper-2); }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 6. Etiquetas ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.tag--science { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag--fun     { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag--new     { background: var(--accent); color: #fff; border-color: transparent; }
html.dark .tag--new { color: var(--brand-contrast); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .9rem;
}

/* ---------- 7. Cartao de teste ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.card::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }

.card__top { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 0; }
.card__emoji {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 13%, var(--surface));
}
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; justify-content: flex-end; }
.card__body { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.24; }
.card__desc { color: var(--ink-2); font-size: .94rem; margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; align-items: center; gap: 14px; font-size: .84rem; color: var(--ink-3); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta svg { width: 15px; height: 15px; }
.card__go { margin-left: auto; color: var(--card-accent, var(--accent)); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.card:hover .card__go svg { transform: translateX(3px); }
.card__go svg { transition: transform .22s; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 108px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero__blob--a { width: 460px; height: 460px; background: var(--brand); top: -170px; right: -110px; opacity: .17; }
.hero__blob--b { width: 380px; height: 380px; background: #FF8A5B; bottom: -190px; left: -120px; opacity: .13; }
html.dark .hero__blob--a { opacity: .22; }
html.dark .hero__blob--b { opacity: .16; }

.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1; }
.hero__stat span { font-size: .86rem; color: var(--ink-3); }

/* ---------- 9. Filtros ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); transition: border-color .18s, box-shadow .18s;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: 10px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  transition: .18s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }
.empty__emoji { font-size: 2.6rem; margin-bottom: .5rem; }

/* ---------- 10. Quiz ---------- */
.quiz { max-width: 760px; margin-inline: auto; }

.progress { position: sticky; top: 68px; z-index: 40; background: var(--paper); padding: 14px 0 16px; }
.progress__meta { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-3); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.progress__track { height: 7px; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.progress__fill { height: 100%; width: 0; border-radius: var(--r-pill); background: var(--accent); transition: width .45s cubic-bezier(.2,.8,.2,1); }

.question { animation: q-in .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.question__num { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .7rem; }
.question__text { font-size: var(--step-2); margin-bottom: 1.7rem; font-family: var(--font-display); line-height: 1.2; }

.options { display: grid; gap: 11px; }
.option {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
  padding: 17px 20px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .18s, background .18s, transform .12s, box-shadow .18s;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.option__key {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; background: var(--paper-2); color: var(--ink-3);
  border: 1px solid var(--line); transition: .18s;
}
.option:hover .option__key, .option.is-picked .option__key { background: var(--accent); color: #fff; border-color: var(--accent); }
.option.is-picked { border-color: var(--accent); background: var(--accent-soft); }

.quiz__nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.quiz__nav .spacer { flex: 1; }

/* ---------- 11. Resultado ---------- */
.result-hero {
  text-align: center; padding: clamp(34px, 6vw, 60px) clamp(20px, 4vw, 44px);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 50% -20%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%),
    var(--surface);
  animation: pop-in .6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(18px); } to { opacity: 1; transform: none; } }
.result-hero__emoji { font-size: clamp(3.4rem, 9vw, 5.2rem); line-height: 1; margin-bottom: .2em; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.result-hero h1 { font-size: var(--step-3); margin-bottom: .25em; }
.result-hero__sub { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 34px);
}
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: var(--step-1); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }

.pointlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pointlist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.pointlist li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%;
  background: var(--dot, var(--accent));
}
.pointlist--ok   { --dot: var(--ok); }
.pointlist--warn { --dot: var(--warn); }

.cols-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.bars { display: grid; gap: 22px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; gap: 12px; }
.bar__name { font-weight: 600; }
.bar__val { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .88rem; }
.bar__track { height: 11px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: var(--r-pill); background: var(--bar-color, var(--accent)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar__note { font-size: .93rem; color: var(--ink-2); margin-top: 9px; }

.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 600; font-size: .94rem;
  padding: 12px 19px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: .18s;
}
.share a:hover, .share button:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.share svg { width: 17px; height: 17px; }

/* ---------- 12. Artigo / texto longo ---------- */
.prose { max-width: var(--max-read); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; font-size: var(--step-1);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--paper-2); }

.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 4px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

.sources { font-size: .9rem; color: var(--ink-3); }
.sources li { margin-bottom: .7em; }

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r-md); background: var(--surface-2);
  padding: 18px 22px; color: var(--ink-2); font-size: .96rem;
}
.callout strong { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 13. Publicidade ---------- */
.ad { margin-block: clamp(32px, 5vw, 52px); text-align: center; }
.ad__label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px; display: block;
}
.ad__slot { min-height: 90px; display: grid; place-items: center; }
.ad--placeholder { display: none; }
html.q-local .ad--placeholder { display: block; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.ad--placeholder .ad__slot {
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--ink-3); font-size: .85rem; padding: 34px 16px; background: var(--surface-2);
}

/* ---------- 14. Rodape ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: clamp(56px, 9vw, 110px); }
.site-footer__inner { padding-block: clamp(40px, 6vw, 66px) 28px; display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: .86rem; color: var(--ink-3);
}
.site-footer__bottom .spacer { flex: 1; }

/* ---------- 15. Consentimento de cookies ---------- */
.consent {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 18px; z-index: 200; width: min(680px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 22px 24px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.consent.is-open { transform: translateX(-50%) translateY(0); }
.consent p { font-size: .93rem; color: var(--ink-2); margin-bottom: 16px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { padding: 12px 22px; font-size: .95rem; }

/* ---------- 16. Utilidades ---------- */
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }

/* ---------- Destaque da entrada ---------- */
.destaque__wrap { display: flex; flex-direction: column; gap: 14px; }
.featured {
  position: relative; display: grid; gap: clamp(18px, 3vw, 30px);
  grid-template-columns: auto 1fr; align-items: center;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(26px, 3.4vw, 38px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--sh-1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.featured::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px;
  background: var(--card-accent, var(--accent));
}
.featured:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.featured__emoji {
  width: clamp(64px, 11vw, 92px); height: clamp(64px, 11vw, 92px);
  display: grid; place-items: center; font-size: clamp(2rem, 5vw, 2.7rem);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 14%, var(--surface));
}
.featured__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.featured__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.featured__title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}
.featured__desc { color: var(--ink-2); font-size: .98rem; }
.featured__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: .86rem; color: var(--ink-3); margin-top: 2px;
}
.featured__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.featured__meta svg { width: 15px; height: 15px; }
.featured__go { margin-inline-start: auto; color: var(--card-accent, var(--accent)); font-weight: 600; }
.featured__go svg { transition: transform .22s; }
.featured:hover .featured__go svg { transform: translateX(3px); }
/* Teste mais recente, logo a seguir ao topo da pagina inicial */
.novidade { padding-top: 0; }
.novidade__rotulo { display: inline-flex; align-items: center; gap: 9px; }
.novidade__ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft); animation: novidadePulso 2.2s ease-out infinite; }
@keyframes novidadePulso { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .novidade__ponto { animation: none; } }
.featured--novo { border-width: 2px; border-color: var(--card-accent, var(--accent)); }
.featured--novo .featured__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.featured--troca { animation: featuredIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes featuredIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.destaque__again {
  align-self: flex-start; font: inherit; font-size: .86rem; cursor: pointer;
  background: none; border: 0; padding: 4px 0; color: var(--ink-3);
  border-bottom: 1px solid var(--line-strong);
}
.destaque__again:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
@media (max-width: 560px) {
  .featured { grid-template-columns: 1fr; }
  .featured__go { margin-inline-start: 0; }
}

@media print {
  .site-header, .site-footer, .ad, .consent, .share, .quiz__nav { display: none !important; }
  body::before { display: none; }
}
