/* Cubini join page. Tokens uit docs/23_design_system.md, dark only. */

:root {
  --app-background: #0A0C14;
  --surface-raised: linear-gradient(160deg, #171E36 0%, #0D111E 100%);
  --surface-flat: #161C2E;
  --fill-subtle: rgba(255, 255, 255, .06);
  --border-card: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .14);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, .11);
  --gold: #FBBF24;
  --cyan: #22D3EE;
  --on-gold: #1A1206;
  --text-primary: #FFFFFF;
  --text-body: #E6EAF4;
  --text-secondary: #C3CADB;
  --text-tertiary: #8A93AC;
  --danger: #FB7185;
  --display: 'Chakra Petch', system-ui, sans-serif;
  --prose: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: radial-gradient(90% 60% at 50% 0%, #161C34 0%, #0A0C14 60%) no-repeat, #0A0C14;
  color: var(--text-body);
  font-family: var(--prose);
  font-size: 15px;
  line-height: 1.55;
}

.stack { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px; }

/* Kop met merkteken */

.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand img { width: 88px; height: 88px; display: block; }

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .16em;
  line-height: 1.1;
  background: linear-gradient(180deg, #FFF6DE 0%, #FBBF24 62%, #C98A08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(251, 191, 36, .35);
}

.brand p { margin: 0; color: var(--text-secondary); font-size: 14.5px; max-width: 34ch; }

/* Kaarten */

.card {
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--surface-raised);
  box-shadow: var(--inner-highlight), 0 18px 40px rgba(4, 6, 12, .45);
}

.card h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--text-primary);
}

.card p { margin: 0 0 14px; color: var(--text-secondary); font-size: 14.5px; }
.card p:last-child { margin-bottom: 0; }

.code-label {
  display: block;
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.code {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 12vw, 46px);
  letter-spacing: .14em;
  line-height: 1.05;
  color: var(--text-primary);
  word-break: break-all;
}

/* Knoppen */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { min-height: 58px; background: linear-gradient(180deg, #FFDC6A 0%, #FBBF24 48%, #E09A05 100%); color: var(--on-gold); }
.btn-secondary { background: var(--fill-subtle); border-color: var(--border-strong); color: var(--text-body); }
.btn-primary:active { filter: brightness(.94); }
.btn-secondary:active { background: rgba(255, 255, 255, .10); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.status { margin: 10px 0 0; min-height: 1.2em; font-size: 13.5px; color: var(--cyan); text-align: center; }
.status[data-tone="error"] { color: var(--danger); }

#manual-error { text-align: left; }

.note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-tertiary); text-align: center; }

/* Handmatig invullen */

label.field { display: block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 6px; }

input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-flat);
  color: var(--text-primary);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

input[type="text"]::placeholder { color: var(--text-tertiary); letter-spacing: .10em; }

/* Voettekst */

footer { width: 100%; max-width: 480px; margin-top: auto; padding-top: 8px; text-align: center; }
footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--text-tertiary); font-size: 13.5px; }
footer a:hover { color: var(--text-body); }

noscript p { margin: 0; }

/* Zichtbaarheid van de twee toestanden. Zonder JavaScript blijft het handmatige
   paneel staan: de pagina kan het pad niet zelf lezen. */

[hidden] { display: none !important; }
.has-code #panel-manual { display: none; }

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