:root {
  --ink: #171629;
  --paper: #fff9e8;
  --white: #fffefd;
  --lime: #caff45;
  --coral: #ff6b5f;
  --violet: #8b6cff;
  --sky: #71dcff;
  --pink: #ffb5dc;
  --muted: #615f70;
  --line: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-small: 3px 3px 0 var(--ink);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(202, 255, 69, .35) 0 2px, transparent 3px) 0 0 / 22px 22px,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.site-header.compact { width: min(calc(100% - 24px), 880px); }
.brand {
  display: inline-flex;
  gap: 3px;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: -.02em;
  transform: rotate(-1deg);
}
.brand span {
  display: inline-block;
  padding: 4px 6px;
  border: 1.5px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
}
.brand span:nth-child(2) { background: var(--sky); }
.brand span:nth-child(3) { background: var(--pink); }
.brand span:nth-child(4) { background: var(--coral); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-weight: 750; text-decoration: none; font-size: .92rem; }
.site-nav a:not(.button):hover { text-decoration: underline 3px var(--coral); text-underline-offset: 5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow-small);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: none; }
.button.primary { background: var(--lime); }
.button.coral { background: var(--coral); }
.button.violet { background: var(--violet); color: var(--ink); }
.button.ghost { box-shadow: none; background: transparent; }
.button.small { min-height: 38px; padding: 7px 13px; font-size: .85rem; }
.button.wide { width: 100%; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }

.hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 54px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: var(--line);
  background: var(--sky);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .09em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}
.hero h1, .page-hero h1, .play-card h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.4rem, 8vw, 7.3rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero-word { display: block; width: max-content; padding: .02em .08em; }
.hero-word:nth-child(1) { background: var(--lime); transform: rotate(-1.5deg); }
.hero-word:nth-child(2) { margin-left: 17%; background: var(--sky); transform: rotate(1deg); }
.hero-word:nth-child(3) { background: var(--pink); transform: rotate(-.7deg); }
.hero-word:nth-child(4) { margin-left: 28%; background: var(--coral); transform: rotate(1.4deg); }
.hero-lede { max-width: 650px; margin: 28px 0 24px; font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.proof-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: .88rem; font-weight: 750; }
.proof-line span::before { content: "✓"; margin-right: 5px; font-weight: 950; }

.demo-stack { position: relative; min-height: 510px; }
.demo-card {
  position: absolute;
  inset: 28px 12px auto auto;
  width: min(100%, 390px);
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
}
.demo-card::before {
  content: "DEMO";
  position: absolute;
  right: -12px;
  top: -18px;
  padding: 5px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--coral);
  font-weight: 950;
  transform: rotate(6deg);
}
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 62px; height: 62px; border: var(--line); border-radius: 50%; background: var(--violet); color: white; font-size: 1.8rem; box-shadow: var(--shadow-small); }
.demo-card h2 { font-size: 1.8rem; line-height: 1.05; margin: 22px 0 14px; }
.demo-question { padding: 16px; border: var(--line); border-radius: 16px; background: var(--paper); font-weight: 850; }
.demo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.demo-options span { padding: 9px; border: 1.5px solid var(--ink); border-radius: 10px; background: white; font-size: .83rem; text-align: center; }
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: var(--shadow-small);
  font-weight: 950;
  text-align: center;
  line-height: 1.05;
  transform: rotate(-12deg);
}
.sticker.one { left: 0; top: 2px; }
.sticker.two { right: -4px; bottom: 3px; width: 118px; height: 118px; background: var(--pink); transform: rotate(10deg); }

.trust-strip { border-block: 3px solid var(--ink); background: var(--ink); color: white; overflow: hidden; }
.ticker { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 14px 0; font-weight: 900; letter-spacing: .035em; }
.ticker span::after { content: "✦"; margin-left: 32px; color: var(--lime); }
.ticker span:last-child::after { content: ""; }

.section { width: min(calc(100% - 32px), var(--max)); margin: 92px auto; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2, .content-page h2 {
  margin: 0 0 14px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.section-head > p { font-size: 1.12rem; color: var(--muted); }
.highlight { background: linear-gradient(transparent 55%, var(--lime) 55%); }

.builder-shell {
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
}
.builder-toolbar { padding: 22px; display: flex; flex-wrap: wrap; align-items: end; gap: 16px; border-bottom: var(--line); background: var(--sky); }
.field { display: grid; gap: 6px; flex: 1 1 240px; }
.field label, .field-label, .start-form label { font-size: .84rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
input, textarea {
  width: 100%;
  border: var(--line);
  border-radius: 12px;
  background: white;
  padding: 11px 13px;
  outline: none;
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 4px solid var(--violet); outline-offset: 2px; }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.size-picker button { padding: 9px 12px; border: var(--line); border-radius: 12px; background: white; font-weight: 850; }
.size-picker button[aria-pressed="true"] { background: var(--lime); box-shadow: var(--shadow-small); }
.builder-progress { display: flex; justify-content: space-between; gap: 18px; padding: 15px 22px; background: var(--paper); border-bottom: var(--line); font-weight: 750; }
.editor-list { display: grid; gap: 18px; padding: 22px; }
.question-editor { border: var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.question-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--pink); }
.question-number { font-size: .78rem; font-weight: 950; letter-spacing: .07em; }
.question-actions { display: flex; gap: 6px; }
.icon-button { width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 9px; background: white; font-weight: 900; }
.question-body { padding: 14px; }
.prompt-input { font-weight: 800; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.option-edit { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1.5px solid var(--ink); border-radius: 12px; background: white; }
.option-edit input[type="radio"] { width: 28px; height: 28px; flex: 0 0 auto; accent-color: var(--violet); }
.option-edit input[type="text"] { padding: 6px; border: 0; border-radius: 5px; }
.option-edit:has(input[type="radio"]:checked) { background: var(--lime); box-shadow: 2px 2px 0 var(--ink); }
.correct-note { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.builder-footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 22px; border-top: var(--line); background: white; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-message { margin: 0; align-self: center; font-weight: 800; }
.form-message.error { color: #a21d15; }
.form-message.success { color: #14652c; }

.success-panel { padding: clamp(24px, 5vw, 54px); text-align: center; }
.success-panel[hidden] { display: none; }
.success-badge { display: inline-grid; place-items: center; width: 88px; height: 88px; border: 3px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: var(--shadow); font-size: 2.4rem; }
.success-panel h3 { margin: 28px 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.link-box { display: flex; gap: 8px; max-width: 720px; margin: 22px auto 10px; padding: 8px; border: var(--line); border-radius: 16px; background: var(--paper); }
.link-box input { min-width: 0; }
.private-warning { max-width: 680px; margin: 20px auto; padding: 14px; border: var(--line); border-radius: 12px; background: var(--pink); text-align: left; }

.steps-grid, .feature-grid, .keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card, .feature-card, .keyword-card { position: relative; padding: 24px; border: var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.step-card:nth-child(2), .feature-card:nth-child(2) { background: var(--sky); transform: translateY(18px); }
.step-card:nth-child(3), .feature-card:nth-child(3) { background: var(--pink); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--lime); font-weight: 950; }
.step-card h3, .feature-card h3, .keyword-card h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.feature-icon { font-size: 2rem; }
.keyword-card { box-shadow: none; }
.keyword-card a { font-weight: 900; }

.truth-section { width: 100%; margin: 100px 0; padding: 80px 16px; border-block: 3px solid var(--ink); background: var(--violet); color: var(--ink); }
.truth-inner { width: min(100%, 900px); margin: auto; text-align: center; }
.truth-inner h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.truth-inner p { max-width: 730px; margin: 20px auto; font-size: 1.16rem; }

.faq-list { display: grid; gap: 12px; max-width: 860px; margin: auto; }
details { border: var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-small); }
summary { padding: 18px 20px; cursor: pointer; font-weight: 900; }
details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

.site-footer { padding: 48px 16px; border-top: 3px solid var(--ink); background: var(--ink); color: white; }
.footer-inner { width: min(100%, var(--max)); margin: auto; display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-note { max-width: 520px; color: #d8d6e2; font-size: .9rem; }

.bank-dialog { width: min(calc(100% - 24px), 980px); max-height: 88vh; padding: 0; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--ink); }
.bank-dialog::backdrop { background: rgba(23, 22, 41, .72); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: var(--line); background: var(--lime); }
.dialog-head h2 { margin: 0; font-size: 1.7rem; }
.dialog-body { padding: 18px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.filter-chip { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 11px; background: white; font-weight: 800; white-space: nowrap; }
.filter-chip[aria-pressed="true"] { background: var(--sky); }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.bank-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; }
.bank-item p { margin: 0; font-weight: 750; }
.bank-meta { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }

.play-layout, .status-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 34px 16px 70px; }
.play-card, .status-card { width: min(100%, 720px); padding: clamp(24px, 6vw, 54px); border: 3px solid var(--ink); border-radius: 30px; background: white; box-shadow: 12px 12px 0 var(--ink); }
.play-card h1 { font-size: clamp(2.8rem, 9vw, 5.7rem); }
.play-card > p:not(.eyebrow):not(.microcopy) { font-size: 1.1rem; }
.start-form { display: grid; gap: 10px; margin-top: 28px; }
.microcopy { color: var(--muted); font-size: .78rem; }
.quiz-progress { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-weight: 850; }
.progress-track { display: block; width: 100%; height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; appearance: none; }
.progress-track::-webkit-progress-bar { background: var(--paper); }
.progress-track::-webkit-progress-value { background: var(--lime); }
.progress-track::-moz-progress-bar { background: var(--lime); }
.play-question { margin: 26px 0 18px; font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.1; }
.answer-list { display: grid; gap: 10px; }
.answer-button { width: 100%; padding: 15px; border: var(--line); border-radius: 14px; background: white; text-align: left; font-weight: 750; box-shadow: 2px 2px 0 var(--ink); }
.answer-button:hover { background: var(--sky); }
.answer-button.selected { background: var(--lime); }
.play-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.score-orb { display: grid; place-items: center; width: 170px; height: 170px; margin: 0 auto 24px; border: 4px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: var(--shadow); }
.score-orb strong { font-family: Impact, "Arial Black", sans-serif; font-size: 3.3rem; line-height: 1; }
.result-card { text-align: center; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.manage-layout { width: min(calc(100% - 32px), 980px); margin: 40px auto 90px; }
.dashboard-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 30px; }
.dashboard-head h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: .9; margin: 0 0 12px; font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.stat-card { padding: 18px; border: var(--line); border-radius: 16px; background: white; }
.stat-card strong { display: block; font-size: 2rem; }
.result-table { width: 100%; border-collapse: collapse; border: var(--line); background: white; }
.result-table th, .result-table td { padding: 12px; border-bottom: 1.5px solid var(--ink); text-align: left; }
.result-table th { background: var(--sky); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.result-table td:first-child { max-width: 24rem; overflow-wrap: anywhere; }
.empty-state { padding: 30px; border: var(--line); border-radius: 18px; background: white; text-align: center; }

.page-hero { width: min(calc(100% - 32px), 940px); margin: 70px auto; }
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); }
.page-hero p { max-width: 720px; font-size: 1.2rem; }
.content-page { width: min(calc(100% - 32px), 900px); margin: 0 auto 100px; }
.content-page h2 { margin-top: 70px; font-size: clamp(2rem, 5vw, 3.7rem); }
.content-page h3 { margin-top: 32px; font-size: 1.45rem; }
.content-page p, .content-page li { font-size: 1.06rem; }
.content-card { padding: 24px; border: var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-small); }
.question-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; list-style: none; counter-reset: question; }
.question-list li { counter-increment: question; padding: 16px; border: 1.5px solid var(--ink); border-radius: 14px; background: white; font-weight: 700; }
.question-list li::before { content: counter(question, decimal-leading-zero); display: block; margin-bottom: 6px; color: #5d3cc4; font-weight: 950; font-size: .76rem; }
.cta-band { margin: 70px 0; padding: 30px; border: 3px solid var(--ink); border-radius: 24px; background: var(--lime); box-shadow: var(--shadow); }
.cta-band h2 { margin-top: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .site-nav a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 36px; }
  .demo-stack { min-height: 470px; width: min(100%, 520px); margin: auto; }
  .steps-grid, .feature-grid, .keyword-grid { grid-template-columns: 1fr; }
  .step-card:nth-child(2), .feature-card:nth-child(2) { transform: none; }
  .footer-inner, .dashboard-head { flex-direction: column; }
  .bank-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { margin-top: 8px; }
  .brand { font-size: .62rem; }
  .hero { overflow-x: clip; }
  .hero h1 { font-size: clamp(3.2rem, 19vw, 5.2rem); }
  .hero-word:nth-child(2), .hero-word:nth-child(4) { margin-left: 10%; }
  .hero-actions .button { flex: 1 1 100%; }
  .demo-stack { min-height: 420px; }
  .demo-card { padding: 20px; right: 0; }
  .sticker { width: 84px; height: 84px; font-size: .8rem; }
  .sticker.two { width: 94px; height: 94px; }
  .section { margin-block: 70px; }
  .option-grid, .question-list { grid-template-columns: 1fr; }
  .builder-toolbar, .editor-list { padding: 14px; }
  .builder-footer { position: static; }
  .link-box { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .result-table { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
