/* ============================================================
   Trofio — landingspagina
   Warme, papierachtige huisstijl (crème/kalk), Bricolage Grotesque + Inter.
   Eén bewust gekozen lichte wereld; dug-outgroen als donker sectie-accent.
   ============================================================ */

:root {
  color-scheme: light;

  /* Merkkleuren (one-pager) */
  --creme:   #EDDDCD;  /* Kantinecrème */
  --geel:    #E6BA5B;  /* Bekergeel — accent/CTA */
  --groen:   #122B16;  /* Dug-outgroen — tekst/donkere vlakken */
  --bruin:   #563914;  /* Modderbruin */
  --gras:    #4D921E;  /* Grasgroen — positief */
  --grijs:   #817C70;  /* Kleedkamergrijs */
  --kalk:    #F8F2E9;  /* Kalklijn — lichtste grond */
  --rood:    #BE4433;  /* Afwezig / kaart (afgeleid, past bij palet) */

  --ink:      var(--groen);
  --ink-soft: #3d4a3d;
  --ink-mute: #6b6a5f;

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1120px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --shadow:   0 10px 30px rgba(18,43,22,0.10);
  --shadow-lg:0 22px 50px rgba(18,43,22,0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--kalk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- Papier + tactiek-achtergrond ---------- */
.paper-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--kalk);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(86,57,20,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 30%, rgba(86,57,20,0.045) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 78%, rgba(86,57,20,0.04) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 88%, rgba(86,57,20,0.05) 0 3px, transparent 4px);
}
.paper-bg::before {
  /* vage tactiek-krijtmarkeringen (X'en) */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(18,43,22,0.05) 48%, rgba(18,43,22,0.05) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(18,43,22,0.05) 48%, rgba(18,43,22,0.05) 52%, transparent 53%);
  background-size: 120px 120px, 120px 120px;
  background-position: 40px 20px, 40px 20px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 85% 12%, black, transparent 45%);
}

/* ---------- Layout helpers ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) 24px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bruin);
  margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--geel);
}
.eyebrow.light { color: var(--geel); }
.eyebrow.light::before { background: var(--geel); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.section-lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 18px 0 0;
  max-width: 60ch;
}
.section-lede.light { color: rgba(248,242,233,0.82); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--kalk) 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18,43,22,0.10);
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.logo-img {
  display: block; width: 42px; height: 42px;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(18,43,22,0.18);
}
.wordmark-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; letter-spacing: -0.02em; color: var(--groen);
}
.wordmark-text.small { font-size: 1.3rem; color: var(--kalk); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--groen); }
.nav-cta {
  background: var(--geel); color: var(--groen) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  border: 2px solid var(--groen);
}
@media (max-width: 720px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px;
  border: 2.5px solid var(--groen); cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--geel); color: var(--groen); box-shadow: 0 4px 0 var(--groen); }
.btn-primary:hover { box-shadow: 0 6px 0 var(--groen); }
.btn-primary:active { box-shadow: 0 2px 0 var(--groen); }
.btn-outline { background: var(--kalk); color: var(--groen); }
.btn-outline:hover { background: var(--creme); }
.btn.big { padding: 15px 32px; font-size: 1.05rem; }
.btn:focus-visible { outline: 3px solid var(--gras); outline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--gras); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 56px;
  padding-top: clamp(36px, 5vw, 72px);
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin: 6px 0 0; }
.hero .lede { color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 46ch; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }
.hero-note { color: var(--ink-mute); font-size: 0.88rem; margin: 16px 0 0; }
.hero-art { position: relative; min-height: 380px; }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { min-height: 420px; }
}

/* ---------- Cards (algemeen) ---------- */
.card {
  background: var(--kalk);
  border: 2.5px solid var(--groen);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700;
  color: var(--bruin); margin: 0 0 12px;
}
.card-eyebrow.light { color: var(--geel); }
.card-sub { color: var(--ink-mute); font-size: 0.9rem; margin: 6px 0 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--groen);
  border-top: 1px solid rgba(18,43,22,0.12); padding-top: 14px; width: 100%;
}
.card-link.light { color: var(--geel); border-color: rgba(248,242,233,0.2); }
.card-link:hover { gap: 10px; }

/* Wedstrijdkaart */
.match-card { position: absolute; top: 0; left: 0; right: 40px; text-align: center; }
.taped::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 92px; height: 26px;
  background: repeating-linear-gradient(45deg, rgba(230,186,91,0.85) 0 6px, rgba(230,186,91,0.6) 6px 12px);
  border: 1px solid rgba(86,57,20,0.25);
}
.match-date { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; color: var(--bruin); margin: 6px 0 10px; }
.match-teams { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.match-teams .mt { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.match-teams .vs { font-size: 0.8rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.match-meta { display: flex; justify-content: center; gap: 18px; font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0; }
.avail-counts { display: flex; justify-content: center; gap: 18px; margin: 4px 0 16px; }
.ac { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.74rem; color: var(--ink-mute); }
.dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--kalk);
  font-variant-numeric: tabular-nums;
}
.dot.green { background: var(--gras); }
.dot.yellow { background: var(--geel); color: var(--groen); }
.dot.red { background: var(--rood); }
.card-btn {
  background: var(--geel); color: var(--groen); border: 2.5px solid var(--groen);
  border-radius: 999px; padding: 11px; font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* De pot */
.pot-card { position: absolute; bottom: 0; right: 0; width: 220px; background: var(--creme); text-align: left; }
.pot-card.wide { position: static; width: auto; }
.pot-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--groen); margin: 0; font-variant-numeric: tabular-nums; }
.pot-list { margin-top: 16px; }
.pot-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(18,43,22,0.1); font-size: 0.88rem; color: var(--ink-soft); }
.pot-row b { font-family: var(--font-display); color: var(--rood); }

@media (max-width: 880px) {
  .match-card { right: 30px; }
  .pot-card { width: 190px; }
}
@media (max-width: 420px) {
  .hero-art { min-height: 480px; }
  .match-card { right: 20px; }
}

/* ---------- Wat is / contrast ---------- */
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contrast-col { border-radius: var(--radius-lg); padding: 26px 24px; border: 2.5px solid var(--groen); }
.contrast-col.not { background: var(--creme); }
.contrast-col.yes { background: var(--groen); color: var(--kalk); }
.contrast-label {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 3px 14px; border-radius: 999px; margin-bottom: 16px;
}
.contrast-col.not .contrast-label { background: rgba(190,68,51,0.14); color: var(--rood); }
.contrast-col.yes .contrast-label { background: var(--geel); color: var(--groen); }
.contrast-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contrast-col li { font-size: 1.02rem; }
.contrast-col.not li { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(190,68,51,0.45); }
.contrast-col.yes li { font-weight: 600; }
@media (max-width: 680px) { .contrast-grid { grid-template-columns: 1fr; } }

/* ---------- Functies ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--kalk); border: 2px solid rgba(18,43,22,0.14);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--groen); box-shadow: var(--shadow); }
.feat-ico {
  display: inline-flex; padding: 10px; margin-bottom: 14px;
  background: var(--creme); border: 2px solid var(--groen); border-radius: 14px;
}
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- In de app ---------- */
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.app-cards .card { display: flex; flex-direction: column; height: 100%; }
.locker-card { background: var(--groen); color: var(--kalk); }
.sticky-note {
  background: var(--geel); color: var(--groen);
  padding: 18px 16px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  margin: 6px 0;
}
.agenda-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda-list li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.ag-ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: var(--creme); border: 2px solid var(--groen);
  display: grid; place-items: center; font-size: 1.1rem;
}
.agenda-list b { font-family: var(--font-display); font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.badge-chip { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; padding: 5px 14px; border-radius: 999px; }
.badge-chip.green { background: var(--gras); color: var(--kalk); }
.badge-chip.yellow { background: var(--geel); color: var(--groen); }
.badge-chip.red { background: var(--rood); color: var(--kalk); }
.tag-chip { font-size: 0.82rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; border: 2px solid var(--groen); color: var(--groen); background: var(--kalk); }
@media (max-width: 820px) { .app-cards { grid-template-columns: 1fr; } }

/* ---------- Toon van stem ---------- */
.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tone-bubble {
  position: relative; margin: 0;
  background: var(--kalk); border: 2.5px solid var(--groen);
  border-radius: 18px 18px 18px 4px;
  padding: 22px 22px 22px 58px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.tb-ico {
  position: absolute; left: 16px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--creme); border: 2px solid var(--groen);
  display: grid; place-items: center; font-size: 0.95rem;
}
@media (max-width: 820px) { .tone-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner {
  max-width: 680px; margin: 0 auto;
  background: var(--groen); color: var(--kalk);
  border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 60px);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-inner .eyebrow { justify-content: center; }
.cta-trophy { display: inline-flex; margin-bottom: 12px; }
.cta-logo {
  display: block; width: 96px; height: 96px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.cta .section-lede { margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 26px; }
/* Aanmeldformulier */
.signup { margin: 26px auto 0; max-width: 480px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--groen);
  background: var(--kalk); border: 2.5px solid var(--groen);
  border-radius: 999px; padding: 13px 20px;
}
.signup-input::placeholder { color: var(--ink-mute); }
.signup-input:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }
.signup .btn { flex: 0 0 auto; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.4em; margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; }
.signup-msg.ok { color: var(--geel); }
.signup-msg.err { color: #f2b8ae; }
.signup.loading .btn { opacity: 0.7; pointer-events: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.store-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge { font-size: 0.8rem; font-weight: 600; color: rgba(248,242,233,0.85); border: 1.5px solid rgba(248,242,233,0.3); border-radius: 999px; padding: 7px 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--groen);
  padding: 40px 24px 52px;
}
.site-footer .footer-brand,
.site-footer .footer-note { max-width: var(--maxw); margin-inline: auto; }
.footer-brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-tag { color: rgba(248,242,233,0.7); font-size: 0.9rem; }
.footer-note { color: rgba(248,242,233,0.55); font-size: 0.82rem; margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
