:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #62666d;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --line: #ded8ca;
  --coral: #e65f4c;
  --jade: #2c8c72;
  --gold: #bd7b20;
  --blue: #365e9d;
  --shadow: 0 18px 48px rgba(35, 31, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 21, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--coral), var(--gold), var(--jade), var(--blue), var(--coral));
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(21, 21, 21, 0.06);
  color: var(--ink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumbs span:last-child {
  color: #3f4247;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 30px 0 34px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: #3f4247;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--coral);
  color: #fffdf8;
}

.button.ghost {
  border-color: var(--line);
  box-shadow: none;
  color: var(--muted);
}

.button.ghost:hover {
  background: rgba(21, 21, 21, 0.04);
  color: var(--ink);
}

.visual-board {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 16%, rgba(230, 95, 76, 0.22), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(44, 140, 114, 0.22), transparent 24%),
    radial-gradient(circle at 60% 86%, rgba(54, 94, 157, 0.24), transparent 30%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.card-stack {
  position: relative;
  width: min(350px, calc(100% - 42px));
  aspect-ratio: 0.72;
}

.mirror-card {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 9px 9px 0 var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
}

.mirror-card:nth-child(2) {
  inset: 22px -10px -18px 18px;
  background: #ecf7f1;
  transform: rotate(6deg);
  z-index: 0;
}

.mirror-card:nth-child(1) {
  z-index: 1;
}

.card-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.card-symbol {
  align-self: center;
  width: 148px;
  height: 148px;
  border-radius: 42px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 45%, rgba(21, 21, 21, 0.12) 46% 54%, transparent 55%),
    conic-gradient(from 90deg, var(--coral), var(--gold), var(--jade), var(--blue), var(--coral));
  box-shadow: 5px 5px 0 var(--ink);
}

.card-title {
  margin: 0;
  font-size: 31px;
  line-height: 1.05;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.section p {
  color: var(--muted);
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-cluster {
  margin: 34px 0;
}

.quiz-tile {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quiz-tile:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.tile-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quiz-tile h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.quiz-tile p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.ad-slot {
  min-height: 94px;
  margin: 40px 0;
  border: 1px dashed #b9afa0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #82796b;
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.quiz-layout {
  width: min(900px, calc(100% - 32px));
  margin: 34px auto 0;
}

.quiz-panel {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-intro,
.quiz-body,
.result-panel {
  padding: 28px;
}

.quiz-intro {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(230, 95, 76, 0.12), rgba(44, 140, 114, 0.12)),
    #fffdf8;
}

.quiz-intro h1 {
  font-size: clamp(34px, 7vw, 60px);
  line-height: 0.98;
}

.quiz-intro p {
  max-width: 670px;
  color: #3f4247;
  font-size: 18px;
  line-height: 1.65;
}

.question {
  display: none;
}

.question.active {
  display: block;
}

.question h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.option:hover,
.option.selected {
  border-color: var(--ink);
  background: #fbefe9;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e9e2d5;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--jade));
}

.result-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}

.result-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.result-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
}

.result-text {
  color: #3f4247;
  font-size: 18px;
  line-height: 1.7;
}

.footer {
  margin-top: auto;
  padding: 48px 0 34px;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 42px auto;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.legal-page h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.legal-page p,
.legal-page li {
  color: #3f4247;
  line-height: 1.7;
}

.related-links {
  display: grid;
  gap: 0;
  margin: 10px 0 6px;
  border-top: 1px solid var(--line);
}

.related-link {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.related-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.related-link strong {
  font-size: 18px;
}

.related-link small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.related-link:hover strong {
  color: var(--coral);
}

.result-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.result-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 6px;
}

.result-group-head span,
.result-group-head a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.result-group-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.result-group-head a {
  text-decoration: none;
  white-space: nowrap;
}

.result-group-head a:hover {
  color: var(--coral);
}

.share-panel {
  margin: 28px 0;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 5px 5px 0 var(--ink);
}

.share-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.share-panel p {
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.result-actions {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-copy,
  .visual-board {
    min-height: auto;
  }

  .visual-board {
    padding: 36px 0 48px;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .result-hub-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .topbar-inner {
    width: min(100% - 20px, 1120px);
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav a {
    padding: 8px 5px;
  }

  .nav {
    gap: 2px;
    font-size: 13px;
  }

  .hero,
  .section,
  .quiz-layout,
  .footer-inner,
  .legal-page {
    width: min(100% - 20px, 1120px);
  }

  .button {
    width: 100%;
  }

  .quiz-intro,
  .quiz-body,
  .result-panel {
    padding: 20px;
  }
}
