:root {
  --black:        #000000;
  --white:        #ffffff;
  --off-white:    #f5f5f5;
  --grey-100:     #e8e8e8;
  --grey-200:     #d0d0d0;
  --grey-400:     #888888;
  --grey-600:     #555555;
  --grey-800:     #222222;
  --grey-900:     #111111;
  --redact:       #111111;
  --classified:   #b80000;
  --public:       #0a7d3a;
  --f-serif:      'Instrument Serif', Georgia, serif;
  --f-sans:       'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:       'Space Mono', ui-monospace, monospace;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);

  --bg:           var(--off-white);
  --card:         var(--white);
  --card-2:       #ececec;
  --text:         var(--black);
  --text-2:       var(--grey-800);
  --subtext:      var(--grey-400);
  --dim:          var(--grey-600);
  --border:       var(--grey-100);
  --border-strong: var(--grey-200);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--f-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex; flex-direction: column;
  position: relative; overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
::selection { background: var(--text); color: var(--bg); }
a { color: var(--text); }

/* ---------- TOP META / NAV ---------- */
.top-meta {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--dim);
  padding: 24px 32px 0;
  max-width: 1100px; width: 100%; margin: 0 auto;
}
@media (max-width: 720px) { .top-meta { padding: 16px 16px 0; } }
.top-meta a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.top-meta a:hover, .top-meta a.active { color: var(--text); border-color: var(--text); }
.top-meta .sep { opacity: .5; }
.top-meta .spacer { flex: 1; }

/* ---------- HERO ---------- */
.hero {
  padding: 80px 32px 60px;
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 720px) { .hero { padding: 48px 16px 36px; gap: 20px; } }

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero .lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-2);
  max-width: 760px;
}

.cta-row {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta-primary {
  background: var(--text); color: var(--bg);
  border: 1px solid var(--text);
  padding: 16px 28px;
  font-family: var(--f-sans); font-size: 13px;
  font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.cta-primary:hover { background: transparent; color: var(--text); }
.cta-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--text);
  padding: 15px 22px;
  font-family: var(--f-sans); font-size: 12px;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.cta-secondary:hover { background: var(--text); color: var(--bg); }

/* ---------- STATS ---------- */
.stats-bar {
  max-width: 1100px; width: 100%; margin: 32px auto 0;
  padding: 0 32px;
}
@media (max-width: 720px) { .stats-bar { padding: 0 16px; } }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
  background: var(--card);
}
.stat-cell .num {
  font-family: var(--f-serif);
  font-size: 42px; font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-cell .label {
  font-family: var(--f-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.3;
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .section { padding: 40px 16px; } }
.section .eyebrow {
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.section h2 {
  font-family: var(--f-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 800px;
}
.section .body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 22px;
}
.section .body p { margin-bottom: 14px; }
.section .body strong { color: var(--text); font-weight: 600; }
.section .body a { color: var(--text); }

/* ---------- QUIZ-CARDS PÅ STARTSIDA ---------- */
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--text);
  border-left: 1px solid var(--text);
  margin-top: 24px;
}
@media (max-width: 720px) { .quiz-grid { grid-template-columns: 1fr; } }
.quiz-card {
  background: var(--card);
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background .15s var(--ease);
  min-height: 280px;
}
.quiz-card:hover { background: var(--card-2); }
.quiz-card .quiz-num {
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.quiz-card h3 {
  font-family: var(--f-serif);
  font-size: 30px; font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.quiz-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 22px;
}
.quiz-card .arrow {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- QUIZ-SIDA ---------- */
.quiz-wrap {
  max-width: 760px; width: 100%; margin: 0 auto;
  padding: 32px;
}
@media (max-width: 720px) { .quiz-wrap { padding: 20px 16px; } }

.quiz-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 28px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.quiz-header .quiz-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  flex: 1;
}
.quiz-header .quiz-meta {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}
.quiz-header .quiz-meta .score-num { color: var(--text); font-size: 20px; letter-spacing: 0; }

.quiz-prompt {
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

.slang-word {
  font-family: var(--f-serif);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.slang-word .stamp {
  display: none;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c41e1e;
  border: 4px solid #c41e1e;
  padding: 8px 18px 6px;
  transform: rotate(-6deg);
  opacity: 0.92;
  box-shadow: inset 0 0 0 1.5px #c41e1e;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  animation: stamp-thud .35s var(--ease);
}
.slang-word .stamp.show { display: inline-block; }
@keyframes stamp-thud {
  0%   { transform: rotate(-18deg) scale(2.4); opacity: 0; }
  60%  { transform: rotate(-3deg)  scale(1.08); opacity: 1; }
  100% { transform: rotate(-6deg)  scale(1);    opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .slang-word .stamp { animation: none; }
}

.options {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.option-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 18px 22px;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease), transform .12s var(--ease);
  display: flex; gap: 14px; align-items: flex-start;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--text);
  background: var(--card-2);
}
.option-btn:disabled { cursor: default; }
.option-btn .opt-letter {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dim);
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 18px;
}
.option-btn.correct {
  border-color: var(--public);
  background: #e8f5ec;
  color: var(--public);
}
.option-btn.correct .opt-letter { color: var(--public); }
.option-btn.incorrect {
  border-color: var(--classified);
  background: #fbeaea;
  color: var(--classified);
}
.option-btn.incorrect .opt-letter { color: var(--classified); }

/* Binärval till quiz 2 */
.options.binary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .options.binary { grid-template-columns: 1fr; } }
.option-btn.binary {
  justify-content: center;
  text-align: center;
  padding: 26px 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.option-btn.binary .opt-letter { display: none; }

.feedback {
  border: 1px solid var(--border-strong);
  background: var(--card);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: none;
}
.feedback.show { display: block; }
.feedback .feedback-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.feedback .verdict {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.feedback.right .verdict { color: var(--public); }
.feedback.wrong .verdict { color: var(--classified); }
.feedback .explain {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.feedback .explain strong { color: var(--text); }

.status-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  white-space: nowrap;
}
.status-badge.classified { background: var(--redact); color: var(--white); }
.status-badge.public     { background: transparent; color: var(--text); border: 1px solid var(--text); padding: 4px 8px; }

.quiz-controls {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}

.quiz-progress {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- SLUTRESULTAT ---------- */
.result-wrap {
  text-align: center;
  padding: 32px 0 8px;
}
.result-wrap .big-score {
  font-family: var(--f-serif);
  font-size: clamp(72px, 14vw, 140px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.result-wrap .big-score .of { color: var(--dim); font-size: 0.5em; }
.result-wrap .verdict-line {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* ---------- DIPLOM-BLOCK ---------- */
.diploma-block {
  margin-top: 40px;
  padding: 28px 26px;
  border: 1px solid var(--text);
  background: var(--card);
  text-align: left;
}
.diploma-block.locked {
  border-style: dashed;
  background: transparent;
  opacity: .7;
  text-align: center;
}
.diploma-block .diploma-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--classified);
  margin-bottom: 10px;
}
.diploma-block.locked .diploma-eyebrow { color: var(--dim); }
.diploma-block h3 {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.diploma-block p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 16px;
}
.diploma-form {
  display: flex; gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.diploma-form input {
  flex: 1 1 240px;
  padding: 14px 16px;
  border: 1px solid var(--text);
  background: var(--card);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.diploma-form input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--text);
}
.diploma-status {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--public);
  min-height: 16px;
}

/* ---------- INFO/OM ---------- */
.prose {
  max-width: 760px; width: 100%; margin: 0 auto;
  padding: 32px;
}
@media (max-width: 720px) { .prose { padding: 20px 16px; } }
.prose h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
.prose h3 {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 28px 0 10px;
}
.prose p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 14px;
}
.prose p strong { color: var(--text); }
.prose ul { margin: 0 0 18px 22px; }
.prose li { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 4px; }
.prose a { color: var(--text); }

/* ---------- FOOTER ---------- */
footer.landing-footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
@media (max-width: 720px) { footer.landing-footer { padding: 22px 16px; } }
footer.landing-footer a {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  text-decoration: none;
  padding-bottom: 1px;
}

/* ---------- REDACT-EFFEKT ---------- */
.redact {
  display: inline-block;
  background: var(--redact);
  color: transparent;
  padding: 0 .3em;
  user-select: none;
  border-radius: 1px;
}
.redact-strip {
  display: inline-block;
  background: var(--redact);
  height: 0.85em;
  vertical-align: middle;
  border-radius: 1px;
}

/* ---------- TAGS ---------- */
.tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: 6px;
}
.tag.tag-classified { background: var(--redact); color: var(--white); }
.tag.tag-public     { background: transparent; color: var(--text); border: 1px solid var(--text); }
