/* ═══════════════════════════════════════════
   AKA Workshop Rating · Version 1
   Lav rebelskhed – hvid baggrund, diskret smilet
═══════════════════════════════════════════ */

:root {
  --bg:          #ffffff;
  --bg-card:     #f2f2f7;
  --navy:        #1a1a5e;
  --accent:      #2de8c6;
  --text:        #1a1a5e;
  --muted:       #8888aa;
  --border:      #e4e4ef;
  --num-empty:   #ebebf3;
  --radius:      16px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Screens ── */
.screen {
  display: none;
  min-height: 100svh;
  flex-direction: column;
}
.screen.active { display: flex; }

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 0;
}
.logo-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

/* ── Welcome ── */
.welcome-body {
  flex: 1;
  padding: 44px 28px 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.welcome-heading {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--navy);
  margin-bottom: 18px;
}
.welcome-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 36px;
}
.wave {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: auto;
}

/* ── Shared screen header ── */
.sh {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 0;
  gap: 18px;
}
.back-btn {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 6px;
  margin: -6px;
  display: flex;
  align-items: center;
  width: fit-content;
  border-radius: 8px;
  transition: background .15s;
}
.back-btn:hover { background: var(--bg-card); }

/* ── Progress bar ── */
.progress { display: flex; gap: 7px; }
.prog-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--num-empty);
  transition: background .35s ease;
}
.prog-seg.on { background: var(--accent); }

/* ── Screen body ── */
.sb {
  flex: 1;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.step-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.step-h {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 26px;
}

/* ── Workshop list ── */
.ws-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.ws-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.ws-item.sel { border-color: var(--navy); }
.ws-item:hover:not(.sel) { border-color: var(--border); }
.ws-num { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 22px; }
.ws-info { flex: 1; }
.ws-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.ws-meta  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ws-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s;
  flex-shrink: 0;
}
.ws-item.sel .ws-radio { border-color: var(--navy); }
.ws-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--navy);
  display: none;
}
.ws-item.sel .ws-dot { display: block; }

/* ── Number grid ── */
.num-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.num-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: var(--num-empty);
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}
.num-btn:active { transform: scale(.88); }
/* cumulative fill: 1 → selected value all turn navy */
.num-btn.filled {
  background: var(--navy);
  color: #fff;
}
.scale-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ── Comment ── */
.comment-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.comment-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.comment-box {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--navy);
  font: 400 15px/1.55 var(--font);
  resize: none;
  transition: border-color .2s;
}
.comment-box::placeholder { color: var(--muted); }
.comment-box:focus { outline: none; border-color: var(--navy); }
.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  margin-bottom: 22px;
}

/* ── Buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px;
  border-radius: 100px;
  border: none;
  font: 700 16px/1 var(--font);
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--navy);
  color: #ffffff;
}
.btn-primary:disabled { opacity: .4; pointer-events: none; }

/* ── Error ── */
.err {
  display: none;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #c00;
  margin-bottom: 12px;
}
.err.show { display: block; }

/* ── Thank-you screen ── */
.screen-thanks {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 48px 28px;
}
.thanks-ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(45,232,198,.15);
  display: flex; align-items: center; justify-content: center;
}
.thanks-h {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.thanks-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 280px;
}

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
