/* KORF — gedeelde styl. Die ontwerptaal kom uit die ses goedgekeurde mockups:
   een ding per skerm, groot knoppies, geen tikwerk waar 'n knoppie kan werk. */

:root {
  --surface-0: #faf9f7;
  --surface-1: #f1efe8;
  --surface-2: #ffffff;
  --border: rgba(0, 0, 0, .12);
  --border-strong: rgba(0, 0, 0, .22);
  --text-primary: #1f1f1d;
  --text-secondary: #5f5e5a;
  --text-muted: #888780;
  --bg-accent: #e6f1fb;
  --bg-success: #eaf3de;
  --bg-warning: #faeeda;
  --bg-danger: #fcebeb;
  --op-accent: #0c447c;
  --op-success: #173404;
  --op-warning: #412402;
  --op-danger: #501313;
  --fill-accent: #378add;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.kop { margin-bottom: 14px; }
.kop h1 { font-size: 17px; font-weight: 600; margin: 0 0 2px; letter-spacing: -.2px; }
.kop p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* Rooster van groot knoppies. Twee kolomme; 44 px is die minimum raakteiken,
   hierdie is ver bo dit — die mense dra handskoene. */
.rooster { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.teel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px;
  background: var(--surface-1);
  border: 0; border-radius: var(--radius);
  padding: 18px 10px;
  min-height: 92px;
  font: inherit; font-size: 13.5px; color: var(--text-primary);
  cursor: pointer; text-align: center;
  transition: transform .08s ease, background .12s ease;
}
a.teel { text-decoration: none; color: var(--text-primary); }
.teel:active { transform: scale(.97); background: #e8e5dc; }
.teel svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.teel.vol { grid-column: 1 / -1; flex-direction: row; gap: 10px; min-height: 62px; }
.teel.hoof { background: var(--bg-accent); color: var(--op-accent); font-weight: 600; }
.teel.hoof:active { background: #d8e8f8; }
.teel.wag { color: var(--text-muted); }

.strook {
  margin-top: 11px; border-radius: var(--radius);
  padding: 10px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: center;
}
.strook svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.strook.waarsku { background: var(--bg-warning); color: var(--op-warning); }
.strook.info { background: var(--surface-1); color: var(--text-secondary); }

/* Toast — vir "kom in Fase N". Nooit 'n dialoog vir iets so klein nie. */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  background: #2a2a27; color: #f6f5f2;
  padding: 11px 16px; border-radius: 22px; font-size: 13px;
  max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}
.toast.wys { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Toestandskerms */
.middel { min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.middel h2 { font-size: 17px; font-weight: 600; margin: 0; }
.middel p { font-size: 13.5px; color: var(--text-secondary); margin: 0; max-width: 30ch; line-height: 1.55; }
.blok { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--fill-accent); animation: draai .8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .blok { animation-duration: 2.4s; } .teel { transition: none; } }

.verborge { display: none !important; }
