/* wkpool-public — voetbal-thema, mobiel-first. Sluit aan bij Daphne-stijl
   (cream + ink) maar dan met stadion-feel: gras-groen accent + signature-rood
   voor CTA's. */

:root {
  --gras: #0e7f4d;
  --gras-donker: #0a5c38;
  --gras-licht: #d8efd9;
  --rood: #e63946;
  --rood-donker: #b62a35;
  --cream: #fff6e5;
  --ink: #0d1b2a;
  --ink-zacht: #475569;
  --rand: #e5dac5;
  --wit: #ffffff;
  --schaduw: 0 1px 2px rgba(13,27,42,.04), 0 4px 12px rgba(13,27,42,.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--gras-donker); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rood); }

button, .btn {
  font: inherit; border: 0; border-radius: 10px;
  padding: .7rem 1.1rem; cursor: pointer;
  background: var(--ink); color: var(--wit);
  transition: transform .04s, background .12s;
}
button:hover, .btn:hover { background: var(--gras-donker); }
button:active, .btn:active { transform: translateY(1px); }
button.full, .btn.full { width: 100%; }
button.rood, .btn.rood { background: var(--rood); }
button.rood:hover, .btn.rood:hover { background: var(--rood-donker); }
button.licht, .btn.licht { background: var(--wit); color: var(--ink); border: 1px solid var(--rand); }
button.licht:hover, .btn.licht:hover { background: var(--gras-licht); color: var(--ink); border-color: var(--gras); }
button[disabled] { opacity: .5; cursor: not-allowed; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: .65rem .8rem;
  border: 1.5px solid var(--rand); border-radius: 10px;
  background: var(--wit); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gras);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gras) 20%, transparent);
}
label { display: block; font-weight: 600; margin: .9rem 0 .35rem; font-size: .92rem; }
label .mono, .mono { font-family: 'Space Mono', ui-monospace, monospace; font-size: .85em; color: var(--ink-zacht); }
.tip { color: var(--ink-zacht); font-size: .87rem; }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; background: var(--ink); color: var(--wit);
  position: sticky; top: 0; z-index: 50;
}
header.site .logo { display: flex; align-items: center; gap: .5rem; color: var(--wit); text-decoration: none; }
header.site .logo .ball { font-size: 1.5rem; line-height: 1; }
header.site .logo .wordmark {
  font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .05em;
  font-size: 1.55rem; line-height: 1;
}
header.site .logo .wordmark span { color: var(--gras-licht); }
header.site nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; font-size: .92rem; }
header.site nav a { color: var(--wit); text-decoration: none; opacity: .9; }
header.site nav a:hover { opacity: 1; color: var(--gras-licht); }

/* ---------- hero ---------- */
.hero {
  text-align: center; padding: 2.5rem 1.1rem 1.4rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gras-licht) 100%);
}
.hero h1 {
  font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .04em;
  font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .5rem; line-height: 1;
}
.hero .tag { font-size: 1.05rem; max-width: 38rem; margin: 0 auto; color: var(--ink-zacht); }
.hero .cta { margin-top: 1.4rem; display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { font-size: 1.05rem; padding: .9rem 1.5rem; }

/* ---------- countdown ---------- */
.countdown {
  margin: 0 1.1rem; padding: .8rem 1rem; background: var(--ink); color: var(--wit);
  border-radius: 0 0 var(--radius) var(--radius); display: flex; gap: .8rem; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.countdown .label { opacity: .7; font-size: .85rem; }
.countdown .clock { font-family: 'Space Mono', monospace; font-size: 1.15rem; font-weight: 700; color: var(--gras-licht); }

/* ---------- wrap + cards ---------- */
.wrap { max-width: 50rem; margin: 0 auto; padding: 1.1rem 1.1rem 3rem; }
.card {
  background: var(--wit); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 1.1rem 1.1rem;
  margin-bottom: 1rem; box-shadow: var(--schaduw);
}
.card h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.card h3 { margin: 1rem 0 .4rem; font-size: 1rem; }

.callout {
  background: var(--gras-licht); border: 1px solid color-mix(in srgb, var(--gras) 35%, transparent);
  color: var(--gras-donker); padding: .75rem .9rem; border-radius: 10px;
  font-size: .92rem; margin-bottom: 1rem;
}
.callout strong { color: var(--ink); }

.banner {
  background: var(--rood); color: var(--wit); padding: .65rem .9rem;
  border-radius: 10px; margin-bottom: 1rem; font-weight: 500;
}

/* ---------- pool features-grid (landing) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.feature {
  background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.1rem; text-align: left; box-shadow: var(--schaduw);
}
.feature .ico { font-size: 1.8rem; margin-bottom: .4rem; }
.feature h3 { margin: .3rem 0 .3rem; font-size: 1rem; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-zacht); }

/* ---------- tabbar ---------- */
.tabbar { display: flex; gap: .35rem; overflow-x: auto; padding: .6rem 0 .9rem; -webkit-overflow-scrolling: touch; }
.tabbar button {
  background: var(--wit); color: var(--ink); border: 1.5px solid var(--rand);
  padding: .5rem .85rem; border-radius: 999px; white-space: nowrap; font-size: .9rem;
}
.tabbar button[aria-current="page"] { background: var(--ink); color: var(--wit); border-color: var(--ink); }
.tabbar button.dicht { opacity: .55; }
.tabbar button:hover { border-color: var(--gras); }

/* ---------- match-rows ---------- */
.match {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .35rem;
  align-items: center; padding: .55rem 0;
  border-bottom: 1px dashed var(--rand);
}
.match:last-child { border-bottom: 0; }
.match .team-thuis { text-align: right; font-weight: 500; }
.match .team-uit { text-align: left; font-weight: 500; }
.match .score { display: flex; gap: .25rem; align-items: center; justify-content: center; }
.match .score input { width: 3.2rem; text-align: center; padding: .4rem 0; font-weight: 600; }
.match .meta { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-zacht); display: flex; gap: .6rem; }
.match .meta .dag { color: var(--gras-donker); }

/* ---------- progress + bottom-bar ---------- */
.progress {
  position: sticky; bottom: 0; background: var(--ink); color: var(--wit);
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .9rem; font-size: .88rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.progress strong { color: var(--gras-licht); }

/* ---------- formulieren ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.checkbox-row { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; }
.checkbox-row input[type=checkbox] { margin-top: .25rem; transform: scale(1.15); flex-shrink: 0; }

.form-msg { margin: .6rem 0; padding: .5rem .8rem; border-radius: 8px; }
.form-msg.ok { background: var(--gras-licht); color: var(--gras-donker); }
.form-msg.err { background: #fde2e4; color: var(--rood-donker); }

/* ---------- stand-tabel ---------- */
.stand-tabel { width: 100%; border-collapse: collapse; }
.stand-tabel th, .stand-tabel td { padding: .55rem .35rem; text-align: left; border-bottom: 1px solid var(--rand); font-size: .92rem; }
.stand-tabel th { font-weight: 600; color: var(--ink-zacht); font-size: .85rem; }
.stand-tabel td.pt { font-weight: 700; text-align: right; color: var(--gras-donker); font-family: 'Space Mono', monospace; }
.stand-tabel tr:first-child td { background: color-mix(in srgb, var(--gras-licht) 60%, transparent); }
.stand-tabel .uitleg { font-size: .82rem; color: var(--ink-zacht); }

/* ---------- pill / chips ---------- */
.pill {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  background: var(--ink); color: var(--wit); font-size: .72rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
}
.pill.groen { background: var(--gras-donker); }
.pill.rood { background: var(--rood); }
.pill.geel { background: #f4b400; color: var(--ink); }

/* ---------- WhatsApp-share box ---------- */
.share-box {
  background: linear-gradient(135deg, var(--gras-licht) 0%, var(--cream) 100%);
  border: 1px solid color-mix(in srgb, var(--gras) 35%, transparent);
  border-radius: var(--radius); padding: 1rem; margin: 1rem 0;
}
.share-box .qr { text-align: center; margin: .8rem 0; }
.share-box .qr img, .share-box .qr svg { max-width: 200px; width: 100%; }
.share-box .deel-link {
  font-family: 'Space Mono', monospace; font-size: .9rem;
  background: var(--wit); padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--rand);
  word-break: break-all;
}
.share-box .acties { display: flex; gap: .55rem; margin-top: .7rem; flex-wrap: wrap; }
.share-box .acties .btn { flex: 1; min-width: 7rem; }
.btn-wa { background: #25d366; color: white; }
.btn-wa:hover { background: #1da854; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 3rem; padding: 1.5rem 1.1rem; background: var(--ink); color: var(--wit);
  font-size: .87rem; text-align: center;
}
footer.site a { color: var(--gras-licht); }
footer.site .servyflow {
  margin-top: .8rem; opacity: .85; font-size: .82rem;
}
footer.site .servyflow strong { color: var(--gras-licht); }

/* ---------- modal/overlay ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(13,27,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.overlay .dialog {
  background: var(--wit); border-radius: var(--radius); max-width: 28rem; width: 100%;
  padding: 1.4rem; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .row { grid-template-columns: 1fr; }
  header.site nav { gap: .55rem; font-size: .82rem; }
  .wrap { padding: .9rem .9rem 3rem; }
}
