/* Participant mini-site (handout.debat.nl) — docs/feedback-spec.md.
   Values mirror the Olaf/debat.nl design tokens (globals.css); this app is a
   deliberately separate, dependency-free surface, so the tokens are inlined.
   Owner rules baked in: white header with the logo and an orange line, no
   product names, no negative wording, ≥48px touch targets, single column. */

:root {
  --navy-900: #061033;
  --orange-500: #fc6700;
  --orange-400: #ff8a3d;
  --grey-50: #f5f5f5;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-400: #9ca3af;
  --grey-600: #6b7280;
  --grey-700: #374151;
  --success: #10b981;
  --error: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.band {
  background: #ffffff;
  border-bottom: 3px solid var(--orange-500);
  padding: 12px 20px;
  display: flex;
  align-items: center;
}

.band img {
  height: 30px;
  display: block;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sessie {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--grey-700);
}

.sessie strong {
  color: var(--navy-900);
  font-size: 15px;
  display: block;
}

.knop {
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
  background: var(--orange-500);
  color: #ffffff;
}

.knop:disabled {
  background: var(--grey-300);
  color: var(--grey-600);
  cursor: default;
}

.knop-secundair {
  background: #ffffff;
  color: var(--navy-900);
  border: 1.5px solid var(--grey-300);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Code entry */
.codes {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.cijfer {
  width: 44px;
  height: 56px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.cijfer:focus {
  border-color: var(--navy-900);
}

.streep {
  color: var(--grey-400);
  font-weight: 800;
  font-size: 20px;
}

.fout {
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.hulp {
  font-size: 13px;
  color: var(--grey-600);
  text-align: center;
}

/* Feedback form */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  padding: 0;
}

.hint {
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 10px;
}

.cijfers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.score {
  min-height: 52px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}

.score[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.veldlabel {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.veldlabel small {
  font-weight: 400;
  color: var(--grey-600);
}

textarea {
  width: 100%;
  min-height: 96px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: 12px;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  color: var(--navy-900);
}

/* Thanks */
.vinkje {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--success);
  font-weight: 800;
}

.dl {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-icoon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(252, 103, 0, 0.1);
  color: var(--orange-500);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex: none;
}

.dl-naam {
  font-weight: 700;
  font-size: 15px;
}

.dl-meta {
  font-size: 13px;
  color: var(--grey-600);
}

.later {
  font-size: 13px;
  color: var(--grey-600);
}

.later strong {
  color: var(--navy-900);
}

.door {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  color: var(--navy-900);
  text-decoration: none;
}

.door span {
  color: var(--orange-500);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
