:root {
  --ink: #171513;
  --paper: #f3efe6;
  --orange: #ff5c35;
  --lavender: #ddd7fe;
  --line: rgba(23, 21, 19, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
main { overflow: hidden; }
.hero {
  min-height: 94vh; padding: 42px max(24px, calc((100vw - 1100px) / 2));
  display: flex; flex-direction: column; justify-content: center; position: relative;
}
.hero::after {
  content: "?"; position: absolute; right: max(12px, calc((100vw - 1260px) / 2)); top: 45%; transform: translateY(-50%) rotate(8deg);
  font: 700 clamp(250px, 34vw, 500px)/1 "Space Grotesk"; color: transparent; -webkit-text-stroke: 3px rgba(23,21,19,.16); z-index: -1;
}
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,92,53,.14); }
h1, h2 { font-family: "Space Grotesk", sans-serif; margin: 0; letter-spacing: -.05em; }
h1 { max-width: 930px; font-size: clamp(54px, 8.5vw, 112px); line-height: .91; }
h1 em { color: var(--orange); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 7px; background: var(--lavender); z-index: -1; transform: rotate(-1deg); }
.intro { max-width: 650px; font-size: clamp(19px, 2vw, 25px); line-height: 1.42; margin: 38px 0 10px; font-weight: 500; }
.subintro { max-width: 630px; font-size: 16px; line-height: 1.55; margin: 0; color: #5d5852; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 27px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meta i { width: 3px; height: 3px; background: var(--orange); border-radius: 50%; }
.start-link { color: var(--ink); font-weight: 700; text-decoration: none; width: fit-content; border-bottom: 2px solid var(--ink); padding: 4px 0; }
.start-link span { color: var(--orange); margin-left: 5px; }

.quiz { background: var(--ink); color: var(--paper); padding: 90px max(24px, calc((100vw - 960px) / 2)); }
.quiz-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; }
.section-label { color: var(--orange); margin: 0 0 10px; }
.quiz-heading h2 { font-size: clamp(34px, 5vw, 55px); }
.counter { display: flex; align-items: baseline; white-space: nowrap; }
.counter strong { color: var(--lavender); font: 700 42px/1 "Space Grotesk"; }
.counter span { color: #96918a; font-size: 13px; margin-left: 5px; }
.questions { border-top: 1px solid rgba(243,239,230,.18); }
.question { display: block; border-bottom: 1px solid rgba(243,239,230,.18); cursor: pointer; }
.question input { position: absolute; opacity: 0; pointer-events: none; }
.question-inner { min-height: 82px; padding: 18px 16px; display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 17px; transition: .2s ease; }
.number { color: #77736d; font-size: 12px; font-weight: 700; }
.question-text { font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
.check { width: 30px; height: 30px; border: 2px solid #77736d; display: grid; place-items: center; transition: .2s ease; }
.check::after { content: "✓"; transform: scale(0); transition: .15s ease; color: var(--ink); font-weight: 800; }
.question:hover .question-inner { background: rgba(243,239,230,.055); padding-left: 22px; }
.question input:focus-visible + .question-inner { outline: 2px solid var(--lavender); outline-offset: -2px; }
.question input:checked + .question-inner { background: var(--lavender); color: var(--ink); }
.question input:checked + .question-inner .number { color: #6e54ff; }
.question input:checked + .question-inner .check { border-color: var(--ink); background: var(--paper); transform: rotate(-3deg); }
.question input:checked + .question-inner .check::after { transform: scale(1); }
.wallet-question { margin-top: 42px; padding: 30px; border: 1px solid rgba(243,239,230,.24); background: rgba(243,239,230,.045); }
.wallet-question label { display: block; margin-bottom: 16px; font: 700 clamp(21px,3vw,28px)/1.2 "Space Grotesk",sans-serif; letter-spacing: -.03em; }
.wallet-question input { width: 100%; padding: 16px 18px; border: 2px solid #77736d; border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font: 600 16px/1.2 "DM Sans",sans-serif; }
.wallet-question input:focus { border-color: var(--lavender); box-shadow: 4px 4px 0 var(--lavender); }
.wallet-question input[aria-invalid="true"] { border-color: var(--orange); }
.wallet-question p { margin: 9px 0 0; color: #96918a; font-size: 11px; }
.wallet-question .wallet-error { color: var(--orange); min-height: 15px; font-weight: 700; }
.submit-area { text-align: center; padding-top: 55px; }
.submit-area p { color: #aaa49c; margin: 0 0 22px; }
.submit-area p span { color: var(--paper); font-style: italic; }
button { font: inherit; }
.calculate, .share { border: 0; cursor: pointer; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.calculate { background: var(--orange); color: #fff; padding: 20px 28px; font-size: 17px; box-shadow: 7px 7px 0 var(--lavender); }
.calculate span, .share span { margin-left: 12px; }
.calculate:hover, .share:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--lavender); }

.results { position: relative; text-align: center; padding: 100px 24px 80px; background: var(--orange); color: var(--ink); }
.results[hidden] { display: none; }
.results .section-label { color: var(--ink); }
.score-ring { position: relative; width: 200px; height: 200px; margin: 25px auto; }
.score-ring svg { width: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: rgba(23,21,19,.17); }
.ring-progress { stroke: var(--lavender); stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: 490; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.8,.27,1); }
.score-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.score-ring strong { font: 700 55px/1 "Space Grotesk"; letter-spacing: -.06em; }
.score-ring span { margin-top: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.result-prefix { margin: 32px 0 3px; font-size: 18px; }
.results h2 { font-size: clamp(46px, 8vw, 88px); color: var(--paper); line-height: 1; }
.result-description { max-width: 620px; margin: 24px auto 35px; font-size: 19px; line-height: 1.55; font-weight: 500; }
.result-actions { display: flex; align-items: flex-start; justify-content: center; gap: 14px; flex-wrap: wrap; }
.copy-link { display: flex; }
.copy-link input { width: min(280px,55vw); border: 2px solid var(--ink); border-right: 0; padding: 14px; background: var(--paper); color: var(--ink); font: 600 13px "DM Sans",sans-serif; }
.share { background: var(--ink); color: var(--paper); padding: 18px 26px; box-shadow: 7px 7px 0 var(--lavender); }
.share.secondary { box-shadow: none; padding: 16px 18px; white-space: nowrap; }
.share.secondary:hover { box-shadow: none; }
.share-status { flex-basis: 100%; height: 20px; margin: 0; font-size: 13px; font-weight: 700; }
.confetti-piece { position: fixed; left: 50%; top: 48%; z-index: 100; width: 10px; height: 18px; pointer-events: none; animation: confetti-burst 1.25s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes confetti-burst { from { transform: translate(-50%,-50%) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--r)); opacity: 0; } }
.fine-print { max-width: 550px; margin: 45px auto 0; font-size: 11px; opacity: .7; }
footer { background: var(--ink); color: #8e8981; display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100vw - 1100px) / 2)); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; }

@media (max-width: 620px) {
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 75px; }
  .hero::after { display: none; }
  .quiz { padding-top: 65px; }
  .quiz-heading { display: block; }
  .counter { margin-top: 23px; }
  .question-inner { grid-template-columns: 28px 1fr 30px; gap: 10px; padding-inline: 5px; }
  .question:hover .question-inner { padding-left: 5px; }
  .meta { gap: 9px; }
  .wallet-question { padding: 22px 16px; }
  .copy-link { width: 100%; }
  .copy-link input { width: 100%; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
