/* SpiegelMij.nl – mobile-first, systeemfont, geen externe bronnen.
   Kleuren zijn schattingen (CLAUDE.md); bijsturen zodra het echte logo er is. */
:root {
  --paars: #6B1FA8;
  --paars-licht: #B07CF0;
  --lila-bg: #F4EEFF;
  --roze: #FF3E9A;
  --oranje: #FF8A00;
  --tekst: #2A1A3A;
  --zacht: #5E4D70;
  --wit: #fff;
  --rand: #E2D6F7;
  --fout: #B00040;
  --groen-wa: #177A40;
  --radius: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--tekst); background: var(--wit);
  font-size: 1.0625rem; line-height: 1.55;
}
h1, h2, h3 { line-height: 1.2; font-weight: 800; color: var(--paars); margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
.kop-klein { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
a { color: var(--paars); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--oranje); outline-offset: 2px;
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.overslaan { position: absolute; left: -9999px; top: 0; background: var(--paars); color: var(--wit); padding: .6em 1em; z-index: 10; }
.overslaan:focus { left: .5rem; top: .5rem; }

/* Kop en voet */
.kop { padding: .9rem 1.1rem; border-bottom: 1px solid var(--rand); }
.logo { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.logo-tekst { font-weight: 900; font-size: 1.35rem; color: var(--paars); letter-spacing: -.01em; }
.logo-tld { color: var(--oranje); }
.inhoud { max-width: 38rem; margin: 0 auto; padding: 1.5rem 1.1rem 6rem; }
.voet { border-top: 1px solid var(--rand); padding: 1.2rem; text-align: center; font-size: .95rem; }
.voet nav { display: flex; gap: 1.5rem; justify-content: center; }
.voet a { display: inline-block; min-height: 44px; line-height: 44px; }

/* Blokken */
.held { text-align: center; padding: .5rem 0 1rem; }
.held .knop { margin-top: .5rem; }
.sub { font-size: 1.15rem; color: var(--zacht); }
.kaart { background: var(--lila-bg); border-radius: var(--radius); padding: 1.2rem; margin: 1.2rem 0; }
.kaart-geheim { background: #FFF4E6; border: 2px solid var(--oranje); }
.kaart-actie { text-align: center; }
.zacht { color: var(--zacht); }
.klein { font-size: .92rem; color: var(--zacht); }
.usp { color: var(--zacht); font-size: .98rem; margin-top: 1rem; }
.sterren { color: var(--oranje); font-size: 1.6rem; margin: 0; }
.vraag { font-weight: 700; font-size: 1.15rem; }
.lijst li { margin-bottom: .6em; }
.melding { background: var(--lila-bg); border-left: 4px solid var(--paars); padding: .8rem 1rem; border-radius: 8px; }
.melding-fout { border-left-color: var(--fout); background: #FFEFF4; }
.label-voorlopig { display: inline-block; background: #FFF4E6; color: #7A4100; border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .92rem; }
.intro { font-size: 1.08rem; }

/* Knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--paars);
  background: var(--paars); color: var(--wit); font: inherit; font-weight: 800; text-decoration: none;
  cursor: pointer; text-align: center; width: 100%; margin: .35rem 0;
}
.knop:hover { background: #5A178F; }
.knop:disabled, .knop[aria-disabled="true"] { background: #CDBAE8; border-color: #CDBAE8; color: #fff; cursor: not-allowed; }
.knop-groot { font-size: 1.15rem; min-height: 56px; }
.knop-tweede { background: var(--wit); color: var(--paars); }
.knop-tweede:hover { background: var(--lila-bg); }
.knop-whatsapp { background: var(--groen-wa); border-color: var(--groen-wa); }
.knop-whatsapp:hover { background: #11602F; }
.knop-gevaar { background: var(--fout); border-color: var(--fout); }
.knop-tekst { background: none; border-color: transparent; color: var(--paars); text-decoration: underline; }
.knop-tekst:hover { background: none; }
@media (min-width: 40rem) { .knop { width: auto; } .held .knop, .balk-onder .knop-groot { min-width: 18rem; } }
.link-gevaar { color: var(--fout); }
.beheer-voet { text-align: center; margin-top: 2.5rem; }
.beheer-voet a { display: inline-block; min-height: 44px; line-height: 44px; }

/* Formulieren */
.formulier { margin: 0; }
.veld { margin-bottom: 1.1rem; }
.veld label, .link-label { display: block; font-weight: 700; margin-bottom: .35rem; }
input[type="text"], input[type="search"] {
  width: 100%; font: inherit; padding: .75rem .9rem; min-height: 48px;
  border: 2px solid var(--rand); border-radius: 12px; background: var(--wit); color: var(--tekst);
}
input[type="text"]:focus, input[type="search"]:focus { border-color: var(--paars); }
.hint { font-size: .92rem; color: var(--zacht); margin: .3rem 0 0; }
.fouttekst { color: var(--fout); font-weight: 700; margin: .4rem 0 0; }
.veld-fout input { border-color: var(--fout); }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 700; margin-bottom: .4rem; }
.vinkje { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; font-weight: 600; }
.vinkje input { width: 1.5rem; height: 1.5rem; accent-color: var(--paars); flex: none; }
.honing { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link-veld { margin-bottom: .5rem; font-size: .95rem; }
.kopieer-status { min-height: 1.5em; font-weight: 700; color: var(--paars); margin: .3rem 0; }
.meld { margin-top: 2.5rem; font-size: .95rem; }
.meld summary { cursor: pointer; color: var(--zacht); min-height: 44px; line-height: 44px; }

/* Woordkiezer */
.teller { position: sticky; top: 0; z-index: 2; background: var(--wit); padding: .6rem 0; border-bottom: 1px solid var(--rand); }
.teller-tekst { font-weight: 800; margin: 0; }
.teller-tip { color: var(--zacht); margin: .2rem 0 0; font-size: .95rem; min-height: 1.4em; }
.chips { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 700; min-height: 44px; padding: .45rem 1rem; border-radius: 999px;
  border: 2px solid var(--paars-licht); background: var(--wit); color: var(--paars); cursor: pointer;
}
.chip-neutraal { border-style: dashed; }
.chip[aria-pressed="true"] { background: var(--paars); border-color: var(--paars); color: var(--wit); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chips-gekozen .chip { background: var(--lila-bg); border-color: var(--lila-bg); }
.chips-gekozen .chip::after { content: " ×"; color: var(--roze); }
.alle-woorden { border: 2px solid var(--rand); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filter { display: flex; flex-wrap: wrap; gap: 1rem; }
.filter label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; }
.filter input { width: 1.2rem; height: 1.2rem; accent-color: var(--paars); }
.balk-onder { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--wit) 25%); padding: 1rem 0 .5rem; text-align: center; }

/* Top 5 */
.toplijst { list-style: none; padding: 0; margin: .5rem 0; counter-reset: top; }
.toplijst li {
  counter-increment: top; display: flex; align-items: center; gap: .5rem; background: var(--lila-bg);
  border-radius: 14px; padding: .4rem .5rem; margin-bottom: .5rem; touch-action: none;
}
.toplijst li::before {
  content: counter(top); flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--oranje); color: var(--tekst); font-weight: 900;
}
.toplijst li.sleept { opacity: .6; outline: 2px dashed var(--paars); }
.toplijst .woord { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-height: 44px; display: flex; align-items: center; }
.icoon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--paars-licht); background: var(--wit);
  color: var(--paars); font-size: 1.1rem; font-weight: 900; cursor: pointer; display: grid; place-items: center;
}
.icoon:disabled { opacity: .35; cursor: not-allowed; }
.greep { cursor: grab; user-select: none; -webkit-user-select: none; }
.toplijst li { gap: .35rem; }
@media (max-width: 22rem) { .icoon { width: 40px; height: 40px; } }

/* Woordwolk en rapport */
.wolk { list-style: none; padding: .5rem 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem .8rem; text-align: center; }
.wolk li { font-weight: 800; line-height: 1.15; }
.wolk .w1 { font-size: .95rem; } .wolk .w2 { font-size: 1.1rem; } .wolk .w3 { font-size: 1.3rem; }
.wolk .w4 { font-size: 1.55rem; } .wolk .w5 { font-size: 1.85rem; } .wolk .w6 { font-size: 2.2rem; } .wolk .w7 { font-size: 2.6rem; }
.wolk .c0 { color: var(--paars); } .wolk .c1 { color: #C2186B; } .wolk .c2 { color: #9A4F00; } .wolk .c3 { color: #7C4DBA; }
.wolk-voorbeeld { margin: 1.5rem 0; }
.top3 { list-style: none; padding: 0; margin: 0; text-align: center; }
.top3 li { font-size: 1.9rem; font-weight: 900; color: var(--paars); }
.top3 li:nth-child(2) { color: #C2186B; font-size: 1.7rem; }
.top3 li:nth-child(3) { color: #9A4F00; font-size: 1.55rem; }
.rode-draad { text-align: center; }
.grafiek { list-style: none; padding: 0; margin: 0; }
.grafiek li { margin-bottom: .8rem; }
.grafiek-regel { display: block; font-weight: 700; margin-bottom: .2rem; }
.balk { display: block; width: 100%; height: 12px; }
.balk-bg { fill: var(--wit); }
.balk-vul { fill: var(--paars); }
.laden { color: var(--zacht); }

@media (prefers-reduced-motion: no-preference) {
  .chip, .knop { transition: background-color .15s, color .15s; }
}

/* Fase 2: deelplaatje, verlenging */
.plaatje-voorbeeld { display: block; width: 100%; max-width: 22rem; height: auto; margin: 1rem auto; border-radius: 12px; box-shadow: 0 4px 18px rgba(107, 31, 168, .18); background: var(--wit); }
input[type="email"] { width: 100%; font: inherit; padding: .75rem .9rem; min-height: 48px; border: 2px solid var(--rand); border-radius: 12px; }
input[type="email"]:focus { border-color: var(--paars); }
