/* ==========================================================================
   PersonalFinanceList — sistema visual
   Superfícies escuras e atmosféricas para navegação e quizzes,
   superfície clara e editorial para leitura longa.
   ========================================================================== */

:root {
  --void: #06060c;
  --bg: #0a0a14;
  --bg-2: #0f0f1c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #ffffff;
  --ink-2: #e8e8f2;
  --muted: #8f8fa8;

  --violet: 139, 92, 246;
  --orange: 245, 132, 79;
  --cyan: 56, 189, 248;
  --emerald: 52, 211, 153;

  --accent: rgb(var(--violet));
  --accent-2: rgb(var(--orange));
  --grad: linear-gradient(100deg, rgb(var(--violet)) 0%, rgb(var(--orange)) 100%);
  --grad-soft: linear-gradient(100deg, rgba(var(--violet), 0.22), rgba(var(--orange), 0.22));

  --ok: #4ade80;
  --bad: #fb7185;

  --paper: #ffffff;
  --paper-2: #f4f3f9;
  --paper-line: #e5e3ee;
  --paper-ink: #14141f;
  --paper-muted: #5c5c72;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --wrap: 1180px;
  --head-h: 74px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Sora", var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 760px; }

.section { position: relative; padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid rgb(var(--orange)); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad);
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 62ch; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.section-head.row > div { max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 0.97rem;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, background .22s, border-color .22s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 34px -12px rgba(var(--violet), .9), 0 6px 22px -14px rgba(var(--orange), .9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(var(--violet), 1), 0 10px 28px -14px rgba(var(--orange), 1); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.link-arrow span { transition: transform .22s; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow::after {
  content: ""; display: block; width: 6px; height: 6px; border-right: 2px solid var(--accent-2);
  border-top: 2px solid var(--accent-2); transform: rotate(45deg); transition: transform .22s;
}
.link-arrow:hover::after { transform: rotate(45deg) translate(3px, -3px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.73rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink-2); text-decoration: none;
}
.chip-tint {
  border-color: rgba(var(--tint), .32);
  background: rgba(var(--tint), .1);
  color: rgb(var(--tint));
}
.chip-diff::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.diff-facil { color: var(--ok); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .09); }
.diff-medio { color: rgb(var(--orange)); border-color: rgba(var(--orange), .32); background: rgba(var(--orange), .1); }
.diff-dificil { color: var(--bad); border-color: rgba(251, 113, 133, .32); background: rgba(251, 113, 133, .1); }

.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 8, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: #fff; font-size: 0.94rem; font-weight: 500;
  padding: 9px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: var(--panel); }
.nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  margin-left: auto; display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-2); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(46px, 6vw, 84px) 0 clamp(30px, 4vw, 56px);
  background:
    radial-gradient(1100px 620px at 74% 12%, rgba(var(--violet), .28), transparent 62%),
    radial-gradient(760px 520px at 92% 66%, rgba(var(--orange), .18), transparent 64%),
    radial-gradient(900px 600px at 6% 88%, rgba(var(--cyan), .1), transparent 62%),
    linear-gradient(180deg, var(--void), var(--bg) 62%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(900px 520px at 30% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 520px at 30% 30%, #000 10%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 40px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: flex; gap: 30px; flex-wrap: wrap; margin-top: 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats b {
  display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { font-size: 0.83rem; color: var(--muted); letter-spacing: .04em; }

.hero-art { position: relative; min-height: 440px; }
.hero-art .orbit-svg {
  position: absolute; top: 50%; left: 50%; width: 118%; max-width: none;
  transform: translate(-46%, -50%);
  filter: drop-shadow(0 30px 70px rgba(var(--violet), .32));
  animation: floaty 9s ease-in-out infinite;
}
.hero-art .glow-core {
  position: absolute; top: 50%; left: 52%; width: 320px; height: 320px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--violet), .5), rgba(var(--orange), .18) 45%, transparent 68%);
  filter: blur(28px);
}
@keyframes floaty {
  0%, 100% { transform: translate(-46%, -52%); }
  50% { transform: translate(-46%, -47%); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.orbit-ring { transform-origin: 300px 300px; animation: spin-slow 34s linear infinite; }
.orbit-ring.r2 { animation-duration: 52s; animation-direction: reverse; }
.orbit-ring.r3 { animation-duration: 74s; }

.hero-art .core-mark {
  position: absolute; top: 50%; left: 57%; width: 246px; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 42px rgba(var(--violet), .5));
  animation: floaty-mark 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty-mark {
  0%, 100% { transform: translate(-50%, -52%); }
  50% { transform: translate(-50%, -46%); }
}

.float-card {
  position: absolute; z-index: 3; width: 268px; padding: 18px 20px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: rgba(15, 15, 28, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px -26px rgba(0, 0, 0, .95);
  animation: floaty-card 7s ease-in-out infinite;
}
@keyframes floaty-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
.float-card.fc-1 { left: -16px; top: 7%; }
.float-card.fc-2 { right: -26px; bottom: 6%; width: 224px; animation-delay: -3.2s; }
.float-card .fc-q { font-size: 0.92rem; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.float-card .fc-opt {
  display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--ink-2);
  padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line); margin-bottom: 7px;
}
.float-card .fc-opt.ok { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .11); color: #d5ffe6; }
.float-card .fc-opt i {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex: none;
}
.float-card .fc-opt.ok i { background: var(--ok); border-color: var(--ok); }
.float-card .fc-label {
  display: block; font-size: 0.68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.float-card .fc-bar { display: block; height: 5px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.float-card .fc-bar i { display: block; height: 100%; width: 90%; border-radius: 4px; background: var(--grad); }
.float-card .fc-score {
  display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; margin: 2px 0 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  padding: 26px 24px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column; min-height: 190px;
}
.cat-card::after {
  content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tint), .34), transparent 66%);
  filter: blur(12px); opacity: .75; transition: opacity .3s, transform .3s;
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(var(--tint), .4); box-shadow: 0 26px 50px -30px rgba(0,0,0,.95); }
.cat-card:hover::after { opacity: 1; transform: scale(1.12); }
.cat-ico {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(var(--tint), .13); border: 1px solid rgba(var(--tint), .28); color: rgb(var(--tint));
}
.cat-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { position: relative; z-index: 1; font-size: 1.12rem; margin-bottom: 8px; }
.cat-card p { position: relative; z-index: 1; font-size: 0.88rem; color: var(--muted); margin: 0; }
.cat-card .cat-meta {
  position: relative; z-index: 1; margin-top: auto; padding-top: 18px;
  font-size: 0.78rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px;
}

.cat-card.feature { grid-column: span 2; min-height: 240px; }
.cat-card.feature h3 { font-size: 1.55rem; }
.cat-card.feature p { font-size: 1rem; color: var(--ink-2); max-width: 46ch; }
.cat-card.feature .cat-ico { width: 56px; height: 56px; }
.cat-card.feature .cat-ico svg { width: 28px; height: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; position: relative; }
.step-n {
  font-family: var(--display); font-size: 3.4rem; line-height: 1; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .95; margin-bottom: 14px; display: block;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quiz-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.quiz-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; color: inherit; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.quiz-card:hover { transform: translateY(-6px); border-color: rgba(var(--tint), .45); box-shadow: 0 30px 56px -32px rgba(0,0,0,1); }
.quiz-card-top {
  position: relative; height: 116px; overflow: hidden;
  background:
    radial-gradient(300px 160px at 78% 20%, rgba(var(--tint), .42), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.01));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 22px;
}
.quiz-card-top::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6;
  mask-image: linear-gradient(120deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
}
.quiz-card-top .cat-ico { margin: 0; }
.quiz-card-top .q-badge {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 2.7rem; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,.09);
}
.quiz-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.quiz-card h3 { font-size: 1.14rem; margin-bottom: 9px; }
.quiz-card p { font-size: 0.89rem; color: var(--muted); margin: 0 0 18px; }
.quiz-card .q-meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.79rem; color: var(--muted);
}
.q-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; }
.intro-cols p { margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.post-card .chip { align-self: flex-start; }
.post-card h3 { font-size: 1.1rem; margin: 14px 0 10px; }
.post-card p { font-size: 0.89rem; color: var(--muted); margin: 0 0 18px; }
.post-card .p-meta { margin-top: auto; font-size: 0.78rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(38px, 5vw, 64px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(var(--violet), .34), transparent 66%),
    radial-gradient(600px 300px at 92% 100%, rgba(var(--orange), .26), transparent 66%),
    var(--bg-2);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--ink-2); margin: 0; max-width: 52ch; }

.page-head {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 68px) 0 clamp(34px, 4vw, 52px);
  background:
    radial-gradient(820px 420px at 78% -10%, rgba(var(--tint, var(--violet)), .26), transparent 66%),
    linear-gradient(180deg, var(--void), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(700px 340px at 78% 0%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(700px 340px at 78% 0%, #000, transparent 76%);
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 16px; }
.page-head .wrap-narrow h1 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); }
.page-head .lead { margin-bottom: 0; }
.page-head-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(var(--tint), .13); border: 1px solid rgba(var(--tint), .3); color: rgb(var(--tint));
}
.page-head-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .45; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); margin-bottom: 34px;
}
.filters strong { font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 4px; }
.filter-btn {
  font: inherit; font-size: 0.86rem; padding: 8px 16px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); transition: all .2s;
}
.filter-btn:hover { color: var(--ink); background: var(--panel-2); }
.filter-btn[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.filter-empty { text-align: center; padding: 50px 0; color: var(--muted); }

.quiz-stage {
  position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background:
    radial-gradient(760px 360px at 84% -8%, rgba(var(--tint), .2), transparent 68%),
    linear-gradient(180deg, var(--bg-2), #0b0b16);
  box-shadow: 0 44px 90px -50px rgba(0,0,0,1);
  padding: clamp(24px, 3.4vw, 44px);
  overflow: hidden;
}
.quiz-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(600px 300px at 84% 0%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(600px 300px at 84% 0%, #000, transparent 74%);
}
.quiz-stage > * { position: relative; z-index: 1; }

.quiz-screen[hidden] { display: none; }

.qs-start { text-align: center; padding: clamp(20px, 3.5vw, 46px) 0 clamp(12px, 2vw, 24px); }
.qs-start .qs-mark {
  position: relative; width: 112px; height: 112px; margin: 0 auto 30px; border-radius: 36px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 22%, rgba(var(--tint), .3), rgba(var(--tint), .08) 68%);
  border: 1px solid rgba(var(--tint), .38); color: rgb(var(--tint));
  box-shadow: 0 0 90px -10px rgba(var(--tint), .75), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.qs-start .qs-mark::before {
  content: ""; position: absolute; inset: -26px; border-radius: 50%;
  border: 1px solid rgba(var(--tint), .16);
}
.qs-start .qs-mark::after {
  content: ""; position: absolute; inset: -52px; border-radius: 50%;
  border: 1px dashed rgba(var(--tint), .1);
}
.qs-start .qs-mark svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.qs-start h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.qs-start p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.qs-facts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }

.q-top { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.q-progress-wrap { flex: 1; min-width: 200px; }
.q-progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.q-progress { height: 7px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.q-progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width .4s cubic-bezier(.2,.7,.3,1); }
.q-score { font-size: 0.82rem; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.q-score b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }

.q-text { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.62rem); line-height: 1.32; letter-spacing: -0.02em; margin-bottom: 26px; }

.q-options { display: grid; gap: 11px; margin-bottom: 22px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  font: inherit; font-size: 0.99rem; color: var(--ink); cursor: pointer;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: rgba(255,255,255,.028); transition: all .2s;
}
.q-opt:hover:not(:disabled) { background: rgba(255,255,255,.06); border-color: rgba(var(--tint), .5); transform: translateX(3px); }
.q-opt:disabled { cursor: default; }
.q-opt .k {
  flex: none; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--display); font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--ink-2);
}
.q-opt.is-correct { border-color: rgba(74, 222, 128, .6); background: rgba(74, 222, 128, .12); }
.q-opt.is-correct .k { background: var(--ok); border-color: var(--ok); color: #05230f; }
.q-opt.is-wrong { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .1); }
.q-opt.is-wrong .k { background: var(--bad); border-color: var(--bad); color: #2b0510; }
.q-opt.is-dim { opacity: .48; }

.q-feedback {
  border-radius: var(--r); padding: 18px 20px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.035); margin-bottom: 22px;
  animation: rise .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-feedback h4 { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; margin: 0 0 8px; }
.q-feedback.good h4 { color: var(--ok); }
.q-feedback.bad h4 { color: var(--bad); }
.q-feedback p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.q-actions { display: flex; justify-content: flex-end; }

.qs-result { text-align: center; }
.result-ring { position: relative; width: 178px; height: 178px; margin: 0 auto 26px; }
.result-ring svg { transform: rotate(-90deg); width: 178px; height: 178px; }
.result-ring circle { fill: none; stroke-width: 9; }
.result-ring .r-track { stroke: rgba(255,255,255,.07); }
.result-ring .r-bar { stroke: url(#resultGrad); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.3,1); }
.result-ring .r-val {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.result-ring .r-val b { font-family: var(--display); font-size: 2.9rem; line-height: 1; }
.result-ring .r-val span { font-size: 0.78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.qs-result h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.qs-result .r-msg { color: var(--ink-2); max-width: 54ch; margin: 0 auto 28px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.review { text-align: left; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.review h3 { font-size: 1.1rem; margin-bottom: 18px; }
.review-item { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 10px; }
.review-item .ri-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; }
.review-item .ri-mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; margin-top: 2px;
}
.review-item.ok .ri-mark { background: rgba(74,222,128,.16); color: var(--ok); }
.review-item.no .ri-mark { background: rgba(251,113,133,.16); color: var(--bad); }
.review-item .ri-q { font-weight: 600; font-size: 0.95rem; line-height: 1.45; }
.review-item .ri-ans { font-size: 0.87rem; color: var(--ink-2); margin: 0 0 6px; padding-left: 33px; }
.review-item .ri-ans b { color: var(--ok); font-weight: 600; }
.review-item .ri-ex { font-size: 0.87rem; color: var(--muted); margin: 0; padding-left: 33px; }

.no-js-note { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(251,113,133,.08); }

.learn-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.learn-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-2); }
.learn-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 7px;
  background: rgba(var(--tint), .16); border: 1px solid rgba(var(--tint), .34);
  background-image: linear-gradient(45deg, transparent 46%, rgb(var(--tint)) 46%, rgb(var(--tint)) 54%, transparent 54%);
}

.site-foot {
  border-top: 1px solid var(--line); background: var(--void);
  padding: clamp(44px, 5vw, 70px) 0 30px; margin-top: auto;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.foot-brand img { height: 24px; margin-bottom: 18px; }
.foot-brand p { font-size: 0.88rem; color: var(--muted); max-width: 34ch; margin: 0; }
.site-foot h4 { font-size: 0.76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot a { color: var(--muted); text-decoration: none; font-size: 0.89rem; transition: color .2s; }
.site-foot a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}
.foot-note { font-size: 0.8rem; color: #62627a; max-width: 74ch; margin: 18px 0 0; }

body.theme-light { background: var(--paper); color: var(--paper-ink); }
body.theme-light .site-head { background: #0a0a14; border-bottom-color: transparent; }
body.theme-light .page-head {
  background:
    radial-gradient(760px 380px at 82% -20%, rgba(var(--tint), .16), transparent 64%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--paper-line);
}
body.theme-light .page-head::before { display: none; }
body.theme-light .crumbs { color: var(--paper-muted); }
body.theme-light .crumbs a { color: #4a4a63; }
body.theme-light .lead { color: #3d3d55; }
body.theme-light .chip { background: #fff; border-color: var(--paper-line); color: var(--paper-muted); }
body.theme-light .chip-tint { background: rgba(var(--tint), .1); border-color: rgba(var(--tint), .3); color: rgb(var(--tint)); }
body.theme-light .eyebrow { color: var(--paper-muted); }

.article { padding: clamp(44px, 5vw, 72px) 0; }
.article-body { font-size: 1.09rem; line-height: 1.78; color: #2a2a3d; }
.article-body > p:first-of-type { font-size: 1.18rem; color: #1e1e2e; }
.article-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 2.1em 0 .6em; color: var(--paper-ink);
  padding-top: .3em;
}
.article-body ul { padding-left: 0; list-style: none; margin: 1.6em 0; display: grid; gap: 12px; }
.article-body ul li { display: flex; gap: 13px; align-items: flex-start; }
.article-body ul li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .62em; border-radius: 3px; background: var(--grad);
}
.article-body strong { color: var(--paper-ink); }
.callout {
  margin: 2em 0; padding: 22px 24px; border-radius: var(--r);
  background: var(--paper-2); border: 1px solid var(--paper-line); border-left: 3px solid transparent;
  border-image: var(--grad) 1; border-image-slice: 0 0 0 1; border-image-width: 0 0 0 3px;
  font-size: 1rem; color: #33334a;
}
.callout p { margin: 0; }

.article-cta {
  margin: 3em 0 0; padding: 30px; border-radius: var(--r-lg);
  background: radial-gradient(520px 220px at 88% 0%, rgba(var(--tint), .18), transparent 70%), var(--paper-2);
  border: 1px solid var(--paper-line);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.article-cta h3 { margin: 0 0 6px; font-size: 1.22rem; }
.article-cta p { margin: 0; color: var(--paper-muted); font-size: 0.95rem; max-width: 44ch; }

.light-section { background: var(--paper-2); border-top: 1px solid var(--paper-line); padding: clamp(46px, 5vw, 70px) 0; }
.light-section h2 { font-size: 1.5rem; }
body.theme-light .post-card {
  background: #fff; border-color: var(--paper-line); box-shadow: 0 1px 2px rgba(20,20,31,.04);
}
body.theme-light .post-card:hover { border-color: #cfccdf; box-shadow: 0 18px 34px -24px rgba(20,20,31,.4); }
body.theme-light .post-card p, body.theme-light .post-card .p-meta { color: var(--paper-muted); }
body.theme-light .link-arrow { color: var(--paper-ink); }
body.theme-light .btn-ghost { background: #fff; border-color: var(--paper-line); color: var(--paper-ink); }
body.theme-light .btn-ghost:hover { background: var(--paper-2); }

.prose { font-size: 1.03rem; line-height: 1.78; color: #2a2a3d; }
.prose h2 { font-size: 1.4rem; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 1.3em 0; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; border-radius: 2px; background: var(--grad); }
.prose a { color: #6d3fd6; text-decoration: underline; text-underline-offset: 3px; }
.prose-updated { font-size: 0.85rem; color: var(--paper-muted); margin-bottom: 2em; }

body.theme-light .site-foot { background: #0a0a14; }

.err-wrap { text-align: center; padding: clamp(60px, 10vw, 130px) 0; }
.err-code {
  font-family: var(--display); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { min-height: 330px; order: -1; margin-inline: -10px; }
  .hero-art .orbit-svg { width: 92%; max-width: 420px; transform: translate(-50%, -50%); animation: none; }
  .hero-art .core-mark { width: 132px; left: 50%; }
  .float-card.fc-1 { left: -6px; top: 4%; width: 216px; transform: scale(.92); }
  .float-card.fc-2 { right: -6px; bottom: 2%; width: 192px; transform: scale(.92); }
  .cat-grid, .quiz-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.feature { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; position: relative; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 20px 26px; background: rgba(8, 8, 16, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); margin: 0;
    transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; font-size: 1rem; color: #fff; }
  .nav .btn { margin: 8px 0 0; }
  .cat-grid, .quiz-grid, .quiz-grid.cols-2, .post-grid, .intro-cols { grid-template-columns: 1fr; }
  .cat-card.feature { grid-column: span 1; min-height: 0; }
  .cat-card.feature h3 { font-size: 1.25rem; }
  .hero-stats { gap: 22px 30px; }
  .hero-art { min-height: 300px; }
  .float-card.fc-1 { top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band, .article-cta { flex-direction: column; align-items: flex-start; }
  .q-top { gap: 12px; }
  .q-opt { font-size: 0.94rem; padding: 14px 15px; gap: 11px; }
  .result-ring, .result-ring svg { width: 148px; height: 148px; }
  .result-ring .r-val b { font-size: 2.4rem; }
  .btn { padding: 14px 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
