/* =========================================================
   SavingCurve — design system
   Claro, editorial, com acento vermelho da marca.
   ========================================================= */

:root {
  /* marca */
  --brand: #ff1200;
  --brand-ink: #c20d00;
  --brand-soft: #fff1ee;
  --brand-soft-2: #ffe2dc;

  /* apoio */
  --indigo: #2f3a8f;
  --indigo-soft: #eef0ff;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --green: #0f9d58;
  --green-soft: #e9f8ef;
  --teal: #0f8a8a;

  /* neutros */
  --ink: #12141a;
  --ink-2: #363b45;
  --muted: #646c7a;
  --muted-2: #8b94a3;
  --line: #f0e3d8;
  --line-soft: #f7ece3;
  --bg: #fff7f0;
  --surface: #fdefe4;
  --surface-2: #fffaf5;
  --track: #f3e0d2;

  /* forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* profundidade */
  --sh-1: 0 1px 2px rgba(18, 20, 26, .05), 0 1px 1px rgba(18, 20, 26, .03);
  --sh-2: 0 4px 14px rgba(18, 20, 26, .06), 0 1px 3px rgba(18, 20, 26, .04);
  --sh-3: 0 18px 40px -18px rgba(18, 20, 26, .22), 0 4px 12px rgba(18, 20, 26, .05);
  --sh-4: 0 40px 80px -32px rgba(18, 20, 26, .3), 0 8px 24px rgba(18, 20, 26, .06);
  --sh-brand: 0 14px 30px -12px rgba(255, 18, 0, .5);

  --maxw: 1180px;
  --nav-h: 72px;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.05em; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 650; }

code, .mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}

:focus-visible {
  outline: 3px solid rgba(255, 18, 0, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand-soft-2); color: var(--brand-ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 78px 0; position: relative; }
.section-sm { padding: 52px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg), var(--surface)); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  background: rgba(255, 247, 240, .84);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: .935rem; font-weight: 550;
  padding: 9px 13px; border-radius: var(--r-pill);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--brand-ink); background: var(--brand-soft); }

/* o seletor .nav a é mais específico que .btn-primary: reforça a cor do texto */
.nav-cta { margin-left: 8px; }
.nav a.nav-cta,
.nav a.nav-cta:hover { color: #fff; background: linear-gradient(180deg, #ff2d19, var(--brand)); }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background .2s, color .2s, border-color .2s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary {
  background: linear-gradient(180deg, #ff2d19, var(--brand));
  color: #fff; box-shadow: var(--sh-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(255, 18, 0, .58); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-dark:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--sh-3); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: #e3cdba; transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: var(--brand-soft-2); }

.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-sm { padding: 9px 17px; font-size: .875rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- pílulas e selos ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
}
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft-2); }
.pill-indigo { background: var(--indigo-soft); color: var(--indigo); border-color: #dfe3ff; }
.pill-amber { background: var(--amber-soft); color: #b06d00; border-color: #ffe9bf; }
.pill-green { background: var(--green-soft); color: #0b7a44; border-color: #cdedda; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--brand-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.68; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ---------- atmosfera ---------- */
.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.atmos::before, .atmos::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.atmos::before {
  width: 620px; height: 620px; top: -280px; right: -160px;
  background: radial-gradient(circle, rgba(255, 18, 0, .16), transparent 68%);
}
.atmos::after {
  width: 540px; height: 540px; top: 120px; left: -260px;
  background: radial-gradient(circle, rgba(245, 158, 11, .16), transparent 68%);
}

.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  opacity: .8;
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 68px 0 84px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), #ff6a3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-facts .n {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 750;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
}
.hero-facts .l { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }

/* composição do hero */
.hero-stage { position: relative; min-height: 440px; }

.hero-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-4);
}

.hero-card-main {
  left: 4%; right: 6%; top: 22px; padding: 26px 26px 22px; z-index: 3;
  animation: floatY 7s ease-in-out infinite;
}
.hero-card-main .q-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--muted-2); margin-bottom: 16px;
}
.hero-card-main .word {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 750;
  color: var(--ink); letter-spacing: -.035em; line-height: 1; margin-bottom: 4px;
}
.hero-card-main .phon { font-size: .88rem; color: var(--muted-2); margin-bottom: 20px; }
.hero-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 11px 14px; margin-bottom: 9px; font-size: .95rem; font-weight: 500;
  background: #fff; transition: .2s;
}
.hero-opt .k {
  width: 24px; height: 24px; border-radius: 7px; background: var(--surface);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--muted);
  flex-shrink: 0;
}
.hero-opt.ok { border-color: #a7e0c0; background: var(--green-soft); color: #0b7a44; font-weight: 600; }
.hero-opt.ok .k { background: #fff; color: #0b7a44; }
.hero-bar { height: 6px; border-radius: 99px; background: var(--track); margin-top: 18px; overflow: hidden; }
.hero-bar i { display: block; height: 100%; width: 62%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #ff7a45); }

.hero-card-streak {
  right: -10px; top: -14px; z-index: 4; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  animation: floatY 5.5s ease-in-out infinite .6s;
}
.hero-card-streak .ico { font-size: 1.5rem; }
.hero-card-streak .n { font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; color: var(--ink); line-height: 1; }
.hero-card-streak .l { font-size: .72rem; color: var(--muted-2); }

.hero-card-score {
  left: -18px; bottom: 26px; z-index: 4; padding: 15px 19px;
  animation: floatY 6.5s ease-in-out infinite 1.2s;
}
.hero-card-score .l { font-size: .72rem; color: var(--muted-2); margin-bottom: 3px; }
.hero-card-score .n { font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; color: var(--green); line-height: 1; }

.hero-blob {
  position: absolute; width: 330px; height: 330px; right: 2%; bottom: -40px; z-index: 1;
  background: radial-gradient(circle at 35% 35%, rgba(255, 18, 0, .2), rgba(255, 18, 0, 0) 66%);
  filter: blur(18px);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-1);
  transition: transform .24s cubic-bezier(.2,.8,.3,1), box-shadow .24s, border-color .24s;
  position: relative; overflow: hidden;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: #e8d2c0; text-decoration: none; }

/* card de categoria */
.cat-card { display: flex; flex-direction: column; min-height: 100%; }
.cat-card::after {
  content: ""; position: absolute; inset: auto -40px -60px auto;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint, rgba(255,18,0,.1)), transparent 70%);
  transition: transform .4s; pointer-events: none;
}
.cat-card:hover::after { transform: scale(1.35); }
.cat-ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 16px; position: relative; z-index: 1;
}
.cat-card h3 { font-size: 1.16rem; margin-bottom: 7px; position: relative; z-index: 1; }
.cat-card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; position: relative; z-index: 1; }
.cat-meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted-2); position: relative; z-index: 1;
}
.cat-go { color: var(--brand-ink); font-weight: 650; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.cat-card:hover .cat-go .arrow { transform: translateX(4px); }
.arrow { transition: transform .22s; display: inline-block; }

/* card de modo de jogo */
.mode-card {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  padding: 26px 26px 24px;
}
.mode-ico {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; box-shadow: var(--sh-2);
}
.mode-card h3 { margin-bottom: 6px; }
.mode-card p { font-size: .93rem; color: var(--muted); margin-bottom: 14px; }

/* stat */
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; box-shadow: var(--sh-1);
}
.stat .n {
  font-family: var(--font-display); font-size: 2rem; font-weight: 750;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
}
.stat .l { font-size: .82rem; color: var(--muted-2); margin-top: 8px; }

/* =========================================================
   PALAVRA DO DIA
   ========================================================= */
.wotd {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, #14161c 0%, #23262f 55%, #2c1f22 100%);
  color: #fff; padding: 46px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 44px; align-items: center;
  box-shadow: var(--sh-4);
}
.wotd::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(255, 18, 0, .5), transparent 65%); filter: blur(60px);
}
.wotd::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.wotd > * { position: relative; z-index: 2; }
.wotd .eyebrow { color: #ff8b72; }
.wotd .eyebrow::before { background: #ff5330; }
.wotd h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 8px; }
.wotd .phon { color: rgba(255,255,255,.55); font-size: .95rem; margin-bottom: 18px; }
.wotd .mean { font-size: 1.28rem; color: #fff; font-weight: 600; margin-bottom: 14px; }
.wotd .sent { color: rgba(255,255,255,.72); font-size: .98rem; border-left: 2px solid rgba(255,90,60,.7); padding-left: 16px; }
.wotd .sent em { color: #fff; font-style: normal; font-weight: 600; }
.wotd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-on-dark:hover { background: rgba(255,255,255,.17); color: #fff; }

.wotd-side { display: grid; gap: 12px; }
.wotd-chip {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 14px 18px; backdrop-filter: blur(8px);
}
.wotd-chip .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.wotd-chip .v { color: #fff; font-weight: 600; font-size: 1rem; }

/* botão de áudio */
.speak {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: inline-grid; place-items: center;
  color: var(--brand-ink); transition: .2s; flex-shrink: 0; box-shadow: var(--sh-1);
}
.speak:hover { background: var(--brand-soft); transform: scale(1.06); }
.speak.on-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.speak.on-dark:hover { background: rgba(255,255,255,.2); }
.speak svg { width: 20px; height: 20px; }
.speak.speaking { animation: pulseRing 1s ease-out infinite; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 18, 0, .35); }
  100% { box-shadow: 0 0 0 14px rgba(255, 18, 0, 0); }
}

/* =========================================================
   FILTROS
   ========================================================= */
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--sh-2); margin-bottom: 34px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.filter-row + .filter-row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.filter-label {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2); margin-right: 8px; min-width: 76px;
}
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 15px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 550;
  cursor: pointer; transition: .18s; font-family: var(--font-body);
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on:hover { color: #fff; }

.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-body); font-size: .93rem; color: var(--ink);
}
.search-box input:focus { background: #fff; border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(255,18,0,.1); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }

.result-count { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.result-count b { color: var(--ink); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { font-size: 2.6rem; margin-bottom: 12px; }

/* =========================================================
   MOTOR DO QUIZ
   ========================================================= */
.quiz-page { background: linear-gradient(180deg, var(--surface-2), var(--surface)); min-height: 100vh; }

.quiz-shell { max-width: 780px; margin: 0 auto; padding: 32px 22px 80px; }

.quiz-topbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.quiz-topbar .quiz-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.quiz-topbar .spacer { margin-left: auto; }

.quiz-meters { display: flex; align-items: center; gap: 10px; }
.meter {
  display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 650;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; color: var(--ink); box-shadow: var(--sh-1);
}
.meter .lbl { color: var(--muted-2); font-weight: 500; }
.meter.hot { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand-ink); }
.meter.timer.low { background: #ffeceb; border-color: #ffc9c2; color: var(--brand-ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }

.progress {
  height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; margin-bottom: 26px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
.progress i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #ff7a45);
  transition: width .45s cubic-bezier(.2,.8,.3,1);
}

.q-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px 36px; box-shadow: var(--sh-3); position: relative;
}
.q-kind {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--indigo);
  background: var(--indigo-soft); border-radius: var(--r-pill); padding: 5px 12px; margin-bottom: 18px;
}
.q-prompt { font-size: 1.02rem; color: var(--muted); margin-bottom: 10px; }
.q-focus {
  font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 750;
  color: var(--ink); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 6px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.q-sub { font-size: .92rem; color: var(--muted-2); margin-bottom: 26px; }

.q-sentence {
  font-size: 1.32rem; line-height: 1.55; color: var(--ink); font-weight: 500;
  background: var(--surface-2); border: 1px dashed var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 12px;
}
.q-sentence .blank {
  display: inline-block; min-width: 88px; border-bottom: 3px solid var(--brand);
  margin: 0 4px; text-align: center; color: var(--brand-ink); font-weight: 700;
}
.q-hint { font-size: .9rem; color: var(--muted-2); margin-bottom: 24px; }

.q-audio {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 0 30px;
}
.audio-btn {
  width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(180deg, #ff2d19, var(--brand)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-brand);
  transition: transform .2s;
}
.audio-btn:hover { transform: scale(1.05); }
.audio-btn svg { width: 38px; height: 38px; }
.audio-btn.speaking { animation: pulseRing 1.1s ease-out infinite; }
.q-audio .hint { font-size: .9rem; color: var(--muted-2); }

.opts { display: grid; gap: 11px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; cursor: pointer; font-family: var(--font-body);
  font-size: 1.02rem; color: var(--ink); font-weight: 500;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
}
.opt:hover:not([disabled]) { border-color: var(--brand); background: #fffaf9; transform: translateX(3px); }
.opt .key {
  width: 27px; height: 27px; border-radius: 8px; background: var(--surface); flex-shrink: 0;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); transition: .16s;
}
.opt .txt { flex: 1; }
.opt .mark { font-size: 1.15rem; opacity: 0; transition: opacity .2s; }
.opt[disabled] { cursor: default; }
.opt.correct {
  border-color: var(--green); background: var(--green-soft); color: #0b6e3d; font-weight: 600;
}
.opt.correct .key { background: var(--green); color: #fff; border-color: var(--green); }
.opt.correct .mark { opacity: 1; }
.opt.wrong { border-color: #f5b0a8; background: #fff3f1; color: var(--brand-ink); }
.opt.wrong .key { background: #ffd9d3; color: var(--brand-ink); border-color: #f5b0a8; }
.opt.wrong .mark { opacity: 1; }
.opt.dim { opacity: .52; }

.feedback {
  margin-top: 22px; border-radius: var(--r-md); padding: 20px 22px;
  border: 1px solid var(--line); background: var(--surface-2);
  animation: rise .35s cubic-bezier(.2,.8,.3,1);
}
.feedback.ok { background: var(--green-soft); border-color: #cdedda; }
.feedback.no { background: #fff3f1; border-color: #f7cdc6; }
.feedback .fb-head {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; color: var(--ink);
}
.feedback.ok .fb-head { color: #0b6e3d; }
.feedback.no .fb-head { color: var(--brand-ink); }
.feedback p { font-size: .96rem; margin-bottom: 8px; color: var(--ink-2); }
.feedback p:last-child { margin-bottom: 0; }
.feedback .ex { font-size: .93rem; color: var(--muted); border-top: 1px dashed rgba(0,0,0,.1); padding-top: 10px; margin-top: 10px; }
.feedback .ex em { font-style: normal; color: var(--ink); font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.q-foot .kbd-hint { font-size: .8rem; color: var(--muted-2); margin-left: auto; }
kbd {
  font-family: var(--font-body); font-size: .74rem; background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--muted); font-weight: 600;
}

/* tela de início do quiz */
.quiz-intro { text-align: center; padding: 20px 0 10px; }
.quiz-intro .big-ico {
  width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 22px;
  display: grid; place-items: center; font-size: 2.2rem; color: #fff; box-shadow: var(--sh-3);
}
.quiz-setup { display: grid; gap: 16px; margin: 28px 0; text-align: center; }
.setup-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quiz-setup .setup-row { justify-content: center; }
.quiz-setup .filter-label { margin-right: 0; }

/* resultado */
.result { text-align: center; }
.ring { width: 190px; height: 190px; margin: 0 auto 8px; position: relative; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring .bg { stroke: var(--track); }
.ring .fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.3,1); }
.ring .val {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.ring .val b {
  font-family: var(--font-display); font-size: 2.7rem; font-weight: 750; color: var(--ink);
  line-height: 1; letter-spacing: -.04em;
}
.ring .val span { font-size: .78rem; color: var(--muted-2); display: block; margin-top: 4px; }

.result-verdict { font-family: var(--font-display); font-size: 1.7rem; font-weight: 750; color: var(--ink); margin: 14px 0 6px; }
.result-msg { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.result-stats .rs {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 10px;
}
.result-stats .rs b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.result-stats .rs span { font-size: .75rem; color: var(--muted-2); display: block; margin-top: 6px; }

.review {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 26px;
}
.review h3 { font-size: 1.12rem; margin-bottom: 4px; }
.review > p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.review-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.review-item .w { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; min-width: 130px; }
.review-item .m { color: var(--muted); font-size: .94rem; flex: 1; }
.review-item .badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.badge-no { background: #fff0ee; color: var(--brand-ink); }
.badge-ok { background: var(--green-soft); color: #0b7a44; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 550; box-shadow: var(--sh-4);
  animation: toastIn .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ESTATÍSTICAS
   ========================================================= */
.bar-row { display: grid; grid-template-columns: 148px 1fr 52px; align-items: center; gap: 14px; padding: 9px 0; }
.bar-row .name { font-size: .9rem; color: var(--ink-2); font-weight: 550; }
.bar-row .track { height: 10px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #ff7a45); transition: width .8s cubic-bezier(.2,.8,.3,1); }
.bar-row .pct { font-size: .84rem; font-weight: 650; color: var(--muted); text-align: right; }

/* =========================================================
   ARTIGOS
   ========================================================= */
.art-card { display: flex; flex-direction: column; }
.art-card .cover {
  height: 132px; border-radius: var(--r-md); margin-bottom: 18px; position: relative; overflow: hidden;
  display: grid; place-items: center; font-size: 2.4rem;
}
.art-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.art-card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.art-meta { margin-top: auto; font-size: .78rem; color: var(--muted-2); display: flex; gap: 12px; align-items: center; }

.article { padding: 48px 0 70px; }
.article-head { max-width: 760px; margin: 0 auto 38px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 18px; }
.article-head .lead { font-size: 1.14rem; }
.article-meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted-2); padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line);
}
.prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; line-height: 1.78; }
.prose h2 { font-size: 1.65rem; margin-top: 2.1em; margin-bottom: .6em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.7em; margin-bottom: .5em; }
.prose ul, .prose ol { margin-bottom: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose blockquote {
  margin: 1.8em 0; padding: 18px 24px; background: var(--surface-2);
  border-left: 3px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2); font-size: 1.02rem;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.prose tr:hover td { background: var(--surface-2); }

.callout {
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  border-radius: var(--r-md); padding: 22px 24px; margin: 1.9em 0;
}
.callout h4 { color: var(--brand-ink); margin-bottom: 8px; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.neutral { background: var(--surface); border-color: var(--line); }
.callout.neutral h4 { color: var(--ink); }

.inline-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #14161c, #262a33); color: #fff;
  border-radius: var(--r-lg); padding: 26px 30px; margin: 2.2em 0;
}
.inline-cta .t { flex: 1; min-width: 220px; }
.inline-cta h4 { color: #fff; margin-bottom: 4px; font-size: 1.15rem; }
.inline-cta p { color: rgba(255,255,255,.66); font-size: .93rem; margin: 0; }

.toc {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 26px; margin-bottom: 2em;
}
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; font-size: .96rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  margin-bottom: 11px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  font-family: var(--font-display); font-size: 1.03rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .97rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* =========================================================
   CTA FINAL + RODAPÉ
   ========================================================= */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #ff1200 0%, #ff4d2e 48%, #ff7a45 100%);
  color: #fff; padding: 58px 54px; text-align: center; box-shadow: var(--sh-4);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin: 0 auto 28px; font-size: 1.06rem; }
.btn-white { background: #fff; color: var(--brand-ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.btn-white:hover { color: var(--brand-ink); transform: translateY(-2px); }

.site-footer { background: #0f1116; color: rgba(255,255,255,.62); padding: 58px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.site-footer .brand img { height: 24px; filter: none; }
.site-footer .about { font-size: .92rem; margin-top: 16px; max-width: 34ch; line-height: 1.7; }
.site-footer h5 {
  color: #fff; font-family: var(--font-display); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.62); font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* breadcrumb */
.crumbs { font-size: .84rem; color: var(--muted-2); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* utilitários */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); margin: 46px 0; border: 0; }

/* só esconde quando há JS: sem script, o conteúdo aparece normalmente */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-stage { min-height: 400px; max-width: 460px; margin: 0 auto; }
  .wotd { grid-template-columns: 1fr; gap: 30px; padding: 38px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    gap: 2px; box-shadow: var(--sh-3); transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: .22s; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .g-4 { grid-template-columns: 1fr; }
  .q-card { padding: 26px 20px; border-radius: var(--r-lg); }
  .quiz-shell { padding: 22px 16px 60px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 42px 26px; border-radius: var(--r-lg); }
  .wotd { padding: 32px 22px; border-radius: var(--r-lg); }
  .hero { padding: 44px 0 60px; }
  .hero-stage { min-height: 360px; }
  .hero-card-score { left: -6px; bottom: 6px; }
  .hero-card-streak { right: -4px; }
  .hero-facts { gap: 20px; }
  .filter-label { min-width: 100%; margin-bottom: 4px; }
  .bar-row { grid-template-columns: 110px 1fr 44px; gap: 10px; }
  .review-item { flex-wrap: wrap; gap: 8px; }
  .review-item .w { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .q-sentence { font-size: 1.12rem; padding: 16px 18px; }
  .filters { padding: 18px 16px; }
  .prose { font-size: 1.02rem; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .btn { width: 100%; }
  .btn.w-auto, .hero-actions .btn, .q-foot .btn, .result-actions .btn { width: auto; }
  .hero-actions .btn { flex: 1; min-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .atmos, .grid-lines { display: none !important; }
}
