﻿/* ==========================================================
   NUTZERUMFRAGE · CK-01
   Precision-Technical / Dot-Grid · Sans-Serif · Purple System
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ----------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------- */
:root {
  --ink:          #0F0E0D;
  --paper:        #F7F7F5;
  --paper-warm:   rgba(242, 241, 238, 0.96);
  --vellum:       rgba(236, 233, 230, 0.92);
  --hairline:     rgba(15, 14, 13, 0.07);
  --dash:         rgba(15, 14, 13, 0.16);
  --dot:          rgba(15, 14, 13, 0.09);
  --sub:          #4A4845;
  --muted:        #9A9690;
  --accent:       #7C3AED;
  --accent-light: #A78BFA;
  --accent-dim:   rgba(124, 58, 237, 0.06);
  --accent-dim2:  rgba(124, 58, 237, 0.12);
  --mod-p:        #0891B2;
  --mod-0:        #6B7280;
  --mod-a:        #7C3AED;
  --mod-b:        #5B21B6;
  --mod-c:        #059669;
  --mod-d:        #9333EA;
  --header-bg:    rgba(247, 247, 245, 0.97);
  --corner-size:  18px;
  --corner-w:     1.5px;
}

[data-theme="dark"] {
  --ink:          #E8E4DD;
  --paper:        #0C0B0A;
  --paper-warm:   rgba(20, 18, 16, 0.96);
  --vellum:       rgba(28, 26, 22, 0.92);
  --hairline:     rgba(232, 228, 221, 0.07);
  --dash:         rgba(232, 228, 221, 0.15);
  --dot:          rgba(232, 228, 221, 0.07);
  --sub:          #9A9590;
  --muted:        #5E5A55;
  --accent:       #A78BFA;
  --accent-light: #C4B5FD;
  --accent-dim:   rgba(167, 139, 250, 0.08);
  --accent-dim2:  rgba(167, 139, 250, 0.16);
  --mod-p:        #22D3EE;
  --mod-0:        #9CA3AF;
  --mod-a:        #A78BFA;
  --mod-b:        #818CF8;
  --mod-c:        #34D399;
  --mod-d:        #C084FC;
  --header-bg:    rgba(12, 11, 10, 0.97);
}

/* ----------------------------------------------------------
   DOT GRID BODY
---------------------------------------------------------- */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  min-height: 100vh;
  transition: background-color 0.35s, color 0.35s;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   SITE HEADER
---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px dashed var(--dash);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-geo {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

.header-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.header-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--sub);
  letter-spacing: 0.04em;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.progress-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.progress-track {
  width: 120px;
  height: 1px;
  background: var(--hairline);
  position: relative;
}

.progress-track::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 7px;
  background-image: repeating-linear-gradient(
    to right,
    var(--dash) 0px,
    var(--dash) 1px,
    transparent 1px,
    transparent 30px
  );
}

#progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.theme-btn {
  width: 30px;
  height: 30px;
  border: 1px dashed var(--dash);
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, border-style 0.2s;
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
}

/* ----------------------------------------------------------
   PAGE WRAP
---------------------------------------------------------- */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 7vw;
}

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */
.hero {
  padding: 100px 0 64px;
  position: relative;
}

@media (max-width: 879px) {
  .hero { display: none; }
  .page-wrap.hero-wrap { display: none; }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -7vw;
  right: -7vw;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    var(--dash) 0px,
    var(--dash) 8px,
    transparent 8px,
    transparent 18px
  );
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

.status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-headline .line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: clipReveal 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.hero-headline .line:nth-child(1) { animation-delay: 0.05s; }
.hero-headline .line:nth-child(2) { animation-delay: 0.22s; }

.accent-word { color: var(--accent); }

.hero-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--sub);
  max-width: 31rem;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.50s forwards;
}

.brand-name { color: var(--ink); font-weight: 500; }

.hero-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.2s;
}
.hero-body a:hover { text-decoration-color: var(--accent); }

.hero-stats {
  display: flex;
  border: 1px dashed var(--dash);
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.65s forwards;
  position: relative;
}

.hero-stats::before,
.hero-stats::after {
  content: '';
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
}
.hero-stats::before {
  top: -1px; left: -1px;
  border-top: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
}
.hero-stats::after {
  bottom: -1px; right: -1px;
  border-bottom: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
}

.stat-cell {
  padding: 20px 32px;
  border-right: 1px dashed var(--dash);
}
.stat-cell:last-child { border-right: none; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

/* ----------------------------------------------------------
   SURVEY FORM
---------------------------------------------------------- */
#survey-form {
  padding: 40px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----------------------------------------------------------
   MODULE CARDS
---------------------------------------------------------- */
.module-card {
  position: relative;
  background: var(--paper-warm);
  border: 1px dashed var(--dash);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.module-card::before,
.module-card::after {
  content: '';
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  z-index: 1;
}
.module-card::before {
  top: -1px; left: -1px;
  border-top: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
  opacity: 0.6;
}
.module-card::after {
  bottom: -1px; right: -1px;
  border-bottom: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
  opacity: 0.6;
}

.module-card:nth-child(1) { animation-delay: 0.10s; }
.module-card:nth-child(2) { animation-delay: 0.17s; }
.module-card:nth-child(3) { animation-delay: 0.24s; }
.module-card:nth-child(4) { animation-delay: 0.31s; }
.module-card:nth-child(5) { animation-delay: 0.38s; }
.module-card:nth-child(6) { animation-delay: 0.45s; }

.module-inner { padding: 44px 52px; }

/* ----------------------------------------------------------
   SUB-QUESTION GROUPS (e.g. Stauraum q3)
---------------------------------------------------------- */
.sub-question { margin-bottom: 16px; }
.sub-question:last-child { margin-bottom: 0; }
.sub-q-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px dashed var(--dash);
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.18s, border-style 0.18s;
}
.text-input:focus {
  border-color: var(--accent);
  border-style: solid;
}
.text-input::placeholder { color: var(--muted); }

/* ----------------------------------------------------------
   MODULE HEADER
---------------------------------------------------------- */
.module-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 38px;
  padding-bottom: 16px;
  background-image: repeating-linear-gradient(
    to right,
    var(--dash) 0px,
    var(--dash) 6px,
    transparent 6px,
    transparent 14px
  );
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.module-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px dashed currentColor;
  flex-shrink: 0;
}

.module-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ----------------------------------------------------------
   QUESTION BLOCKS
---------------------------------------------------------- */
.question-block {
  padding: 26px 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--hairline) 0px,
    var(--hairline) 3px,
    transparent 3px,
    transparent 10px
  );
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.question-block:last-child {
  padding-bottom: 0;
  background-image: none;
}

/* Unanswered hint */
.question-block.unanswered-hint {
  animation: pulseHint 0.55s ease 0s 2;
}
.question-block.unanswered-hint .q-text {
  color: var(--accent);
}
.question-block.unanswered-hint .q-num {
  color: var(--accent) !important;
}

.question-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.q-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 3px;
}

.q-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s;
}

.q-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  margin-top: 4px;
}

/* ----------------------------------------------------------
   CHOICES (RADIO)
---------------------------------------------------------- */
.choices { display: flex; flex-direction: column; gap: 3px; }

.choice-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px dashed var(--dash);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.18s,
    border-style 0.18s,
    background 0.18s,
    transform 0.28s cubic-bezier(0.76, 0, 0.24, 1);
  user-select: none;
}
.choice-item:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim);
  transform: translateX(4px);
}
.choice-item.selected {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim2);
  transform: translateX(4px);
}
.choice-item input { display: none; }

.choice-mark {
  width: 10px;
  height: 10px;
  border: 1px dashed var(--dash);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, border-style 0.18s;
}
.choice-item.selected .choice-mark {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent);
}
.choice-mark::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.18s;
}
.choice-item.selected .choice-mark::after { opacity: 1; }

.choice-text { font-size: 0.875rem; color: var(--sub); line-height: 1.5; }

/* ----------------------------------------------------------
   CHOICES (CHECKBOX)
---------------------------------------------------------- */
.choice-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px dashed var(--dash);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.18s,
    border-style 0.18s,
    background 0.18s,
    transform 0.28s cubic-bezier(0.76, 0, 0.24, 1);
  user-select: none;
}
.choice-box:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim);
  transform: translateX(4px);
}
.choice-box.selected {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim2);
  transform: translateX(4px);
}
.choice-box input { display: none; }

.choice-check {
  width: 10px;
  height: 10px;
  border: 1px dashed var(--dash);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, border-style 0.18s;
}
.choice-box.selected .choice-check {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent);
}
.choice-check svg { opacity: 0; transition: opacity 0.18s; color: #fff; }
.choice-box.selected .choice-check svg { opacity: 1; }

/* ----------------------------------------------------------
   SCALE
---------------------------------------------------------- */
.scale-row { display: flex; gap: 4px; align-items: center; }

.scale-btn {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--dash);
  background: transparent;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.18s,
    border-style 0.18s,
    background 0.18s,
    color 0.18s,
    transform 0.28s cubic-bezier(0.76, 0, 0.24, 1);
}
.scale-btn:hover {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
  transform: translateY(-4px);
}
.scale-btn.active {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent);
  color: #fff;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  width: calc(5 * 44px + 4 * 4px);
}
.scale-end-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------
   MATRIX
---------------------------------------------------------- */
.matrix-wrap { overflow-x: auto; }

.matrix-table { width: 100%; border-collapse: collapse; }
.matrix-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px dashed var(--dash);
}
.matrix-table th:first-child { text-align: left; }
.matrix-table td {
  padding: 14px 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--hairline) 0px,
    var(--hairline) 3px,
    transparent 3px,
    transparent 10px
  );
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
  font-size: 0.82rem;
  color: var(--sub);
  line-height: 1.5;
}
.matrix-table td:first-child { text-align: left; }
.matrix-table td:not(:first-child) { text-align: center; }
.matrix-row:hover td { background-color: var(--accent-dim); }

.m-btn {
  width: 30px;
  height: 30px;
  border: 1px dashed var(--dash);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  transition: border-color 0.18s, border-style 0.18s, background 0.18s, color 0.18s;
}
.m-btn:hover {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
}
.m-btn.active {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent);
  color: #fff;
}

/* ----------------------------------------------------------
   HINT BADGE
---------------------------------------------------------- */
.hint-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 1px 6px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ----------------------------------------------------------
   SUBMIT SECTION
---------------------------------------------------------- */
.submit-section {
  position: relative;
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--vellum);
  border: 1px dashed var(--dash);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.50s forwards;
}

.submit-section::before,
.submit-section::after {
  content: '';
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
}
.submit-section::before {
  top: -1px; left: -1px;
  border-top: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
}
.submit-section::after {
  bottom: -1px; right: -1px;
  border-bottom: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
}

.submit-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.submit-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}

#incomplete-warning {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
  display: none;
}

.btn-submit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 32px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    border-style 0.2s,
    transform 0.28s cubic-bezier(0.76, 0, 0.24, 1);
}
.btn-submit:hover {
  background: transparent;
  color: var(--accent);
  border-style: dashed;
  transform: translateY(-2px);
}
.btn-submit.shake {
  animation: shake 0.45s ease;
}

/* ----------------------------------------------------------
   MOBILE SLIDE ENGINE
---------------------------------------------------------- */
@media (max-width: 879px) {
  body { overflow: hidden; height: 100dvh; }

  .page-wrap.hero-wrap { display: none !important; }

  #survey-form {
    position: fixed;
    inset: 0;
    top: 57px;
    padding: 0;
    gap: 0;
    display: block;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 6vw 88px;
    background-color: var(--paper);
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    transition:
      transform 0.48s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.32s ease;
    will-change: transform, opacity;
    pointer-events: none;
  }
  .slide.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .slide.exiting {
    transform: translateX(-38%);
    opacity: 0;
    pointer-events: none;
  }

  .slide-module-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .slide-module-tag .tag-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 2px 7px;
    border: 1px dashed var(--accent);
    color: var(--accent);
  }
  .slide-module-tag .tag-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .slide .q-text { font-size: 1.1rem; line-height: 1.55; }
  .slide .scale-btn { width: 52px; height: 52px; font-size: 13px; }
  .slide .scale-ends { width: calc(5 * 52px + 4 * 4px); }

  .slide-submit-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .slide-submit-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  .slide-submit-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 2;
  }
  .slide-submit-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s, border-style 0.2s, transform 0.28s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .slide-submit-btn:hover {
    background: transparent;
    color: var(--accent);
    border-style: dashed;
    transform: translateY(-2px);
  }
  .slide-submit-btn.shake { animation: shake 0.45s ease; }
  #slide-incomplete-warning {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: none;
    margin-top: 4px;
  }

  /* hide desktop module cards and static submit */
  .module-card { display: none !important; }
  .submit-section { display: none !important; }

  /* slide bottom nav */
  .slide-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px dashed var(--dash);
    padding: 12px 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .slide-counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 1;
    text-align: center;
  }
  .btn-prev, .btn-next {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 16px;
    border: 1px dashed var(--dash);
    background: transparent;
    color: var(--sub);
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, border-style 0.18s, background 0.18s;
  }
  .btn-prev:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }
  .btn-prev:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
  .btn-next {
    background: var(--accent);
    border-color: var(--accent);
    border-style: solid;
    color: #fff;
  }
  .btn-next:hover { background: transparent; color: var(--accent); }
  .btn-next:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
}

@media (min-width: 880px) {
  .slide-nav { display: none; }
  .slide-module-tag { display: none; }
  .slide { display: contents; }
  .slide-submit-section { display: none; }

  body { overflow: auto; }
  .page-wrap.hero-wrap { padding-top: 57px; }
}

/* ----------------------------------------------------------
   SUCCESS OVERLAY
---------------------------------------------------------- */
#success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vw;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
}
#success-overlay.active {
  display: flex;
  animation: fadeUp 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.success-inner { max-width: 480px; width: 100%; text-align: center; }

.success-mark {
  width: 60px;
  height: 60px;
  border: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  position: relative;
}
.success-mark::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
}
.success-mark::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
}

.success-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.success-body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@keyframes clipReveal {
  to { clip-path: inset(0 0% 0 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-6px); }
  35%  { transform: translateX(6px); }
  55%  { transform: translateX(-4px); }
  75%  { transform: translateX(4px); }
  90%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
@keyframes pulseHint {
  0%, 100% { background-color: transparent; }
  50%  { background-color: var(--accent-dim2); }
}

/* ----------------------------------------------------------
   RESPONSIVE TWEAKS
---------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-stats { flex-wrap: wrap; }
  .stat-cell { padding: 16px 20px; }
  .module-inner { padding: 28px 5vw; }
  .submit-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 5vw;
  }
  .scale-row { flex-wrap: wrap; }
  .scale-ends { width: auto; }
  #success-overlay { padding: 6vw 5vw; }
  .success-headline { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}
