:root {
    --bg: #f2f2f7;
    --card: #ffffff;
    --text: #1c1c1e;
    --muted: #8e8e93;
    --tint: #0a84ff;
    --green: #34c759;
    --blue: #0a84ff;
    --red: #ff3b30;
    --radius: 14px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: var(--tint); text-decoration: none; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; background: var(--card);
    border-bottom: 1px solid #e5e5ea; position: sticky; top: 0; z-index: 10;
    flex-wrap: wrap; gap: 10px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.brandicon { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a.active { background: var(--tint); color: #fff; }
.nav a.logout { color: var(--red); }

.content { max-width: 760px; margin: 20px auto; padding: 0 16px; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px; }

h1 { font-size: 1.6rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }

.card {
    background: var(--card); border-radius: var(--radius); padding: 14px 16px;
    margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f0f2; }
.list .row:last-child { border-bottom: none; }
.muted { color: var(--muted); font-size: .9rem; }
.crest { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #f0f0f2; }
.crest.lg { width: 46px; height: 46px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700;
    padding: 3px 8px; border-radius: 999px; color: #fff; }
.badge.home { background: var(--green); }
.badge.away { background: var(--blue); }
/* Vaste kolom zodat clubnamen bij Thuis én Uit op dezelfde plek uitlijnen. */
.venuecol { width: 52px; flex: none; display: flex; }
.venuecol .badge { width: 100%; justify-content: center; }
.badge.live { background: var(--red); }
.badge.soft { background: #e5e5ea; color: var(--muted); }
.pill { display:inline-block; padding: 4px 10px; border-radius: 999px; background:#e5e5ea; color:#333; font-size:.8rem; }
.bold { font-weight: 700; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 4px 8px; }

.btn {
    display: inline-block; padding: 10px 16px; border-radius: 12px; border: none;
    background: var(--tint); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn.secondary { background: #e5e5ea; color: var(--text); }
.btn.danger { background: var(--red); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.block { display: block; width: 100%; text-align: center; }

input[type=text], input[type=search], select, textarea {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d1d1d6;
    font-size: 1rem; font-family: inherit; background: #fff;
}
label { font-weight: 600; font-size: .9rem; display: block; margin: 10px 0 4px; }
form.inline { display: flex; gap: 8px; align-items: center; }

.hero { text-align: center; padding: 48px 16px; }
.hero .logo { font-size: 4rem; }
.apple-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff;
    padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1.05rem;
}
.score { font-weight: 800; font-variant-numeric: tabular-nums; }
.tabbar { display:flex; gap:6px; margin-bottom:12px; }
.tabbar a { padding:6px 14px; border-radius:999px; background:var(--card); color:var(--muted); font-weight:600; }
.tabbar a.active { background: var(--tint); color:#fff; }
.flash { padding:10px 14px; border-radius:10px; margin-bottom:12px; background:#fff3cd; color:#7a5c00; }

/* ---- Landingspagina ---- */
.landing-hero {
    background: linear-gradient(160deg, #0a84ff 0%, #0060df 55%, #003a8c 100%);
    color: #fff; border-radius: 24px; margin: 20px 0; padding: 44px 32px; overflow: hidden;
}
.landing-hero .split {
    display: flex; gap: 36px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.landing-hero .copy { flex: 1 1 320px; min-width: 280px; }
.landing-hero .brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.landing-hero .brandrow img { width: 44px; height: 44px; border-radius: 11px; }
.landing-hero .brandrow span { font-weight: 700; font-size: 1.05rem; }
.landing-hero h1 { font-size: 2.3rem; line-height: 1.1; margin: 8px 0 14px; color: #fff; }
.landing-hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,.92); margin: 0 0 26px; max-width: 460px; }
.landing-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.light { background: #fff; color: var(--tint); }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; }

/* Telefoon-mockup */
.phone-wrap { flex: 0 0 auto; display: flex; justify-content: center; }
.phone {
    width: 244px; height: 496px; background: #0b0b0d; border-radius: 42px; padding: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12);
}
.phone-screen {
    width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden;
    display: flex; flex-direction: column; position: relative;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-notch {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 96px; height: 22px; background: #0b0b0d; border-radius: 0 0 14px 14px; z-index: 2;
}
.mock-top { background: var(--card); padding: 26px 14px 10px; border-bottom: 1px solid #eee; }
.mock-top .t { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.mock-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-row { background: var(--card); border-radius: 12px; padding: 10px 11px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mock-line { display: flex; align-items: center; gap: 7px; }
.mock-line + .mock-line { margin-top: 6px; }
.mock-badge { font-size: .58rem; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 999px; min-width: 38px; text-align: center; }
.mock-badge.home { background: var(--green); }
.mock-badge.away { background: var(--blue); }
.mock-row .club { flex: 1; font-size: .82rem; color: var(--text); font-weight: 600; }
.mock-row .time { font-size: .66rem; color: var(--muted); }
.mock-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 0 16px; background: var(--card); border-top: 1px solid #eee; }
.mock-tabbar span { width: 20px; height: 20px; border-radius: 6px; background: #d7d7dd; }
.mock-tabbar span.on { background: var(--tint); }
.mock-row .pos { font-size: .72rem; font-weight: 800; color: var(--muted); width: 16px; text-align: center; }
.mock-row .pts { font-size: .72rem; font-weight: 800; color: var(--text); }
.mock-card { height: 30px; border-radius: 8px; background: linear-gradient(135deg,#0a84ff,#003a8c); margin-bottom: 8px; display:flex; align-items:center; padding:0 10px; }
.mock-card.red { background: linear-gradient(135deg,#ff3b30,#8c1a12); }
.mock-card.green { background: linear-gradient(135deg,#34c759,#1a7a38); }
.mock-card span { color:#fff; font-size:.7rem; font-weight:700; }

/* Officiële-stijl App Store-badge */
.appstore-badge {
    display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff;
    border: 1px solid rgba(255,255,255,.45); border-radius: 12px; padding: 8px 16px; text-decoration: none;
}
.appstore-badge:hover { background: #1a1a1a; }
.appstore-badge svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.appstore-badge .l1 { display: block; font-size: .62rem; line-height: 1; letter-spacing: .01em; opacity: .95; }
.appstore-badge .l2 { display: block; font-size: 1.2rem; line-height: 1.2; font-weight: 600; }
/* Compacte variant voor de menubalk. */
.appstore-badge.sm { padding: 5px 11px; gap: 7px; border-radius: 9px; }
.appstore-badge.sm svg { width: 17px; height: 17px; }
.appstore-badge.sm .l1 { font-size: .5rem; }
.appstore-badge.sm .l2 { font-size: .85rem; }
.footer-badge { margin-bottom: 12px; }

/* Showcase-rij met meerdere telefoons */
.showcase { text-align: center; margin: 36px 0 8px; }
.phones-row { display: flex; gap: 18px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phone.trio { width: 208px; height: 424px; }
.phone.trio.raised { margin-bottom: 24px; }

@media (max-width: 640px) {
    .landing-hero { padding: 32px 20px; }
    .landing-hero h1 { font-size: 1.9rem; }
    .phone { width: 214px; height: 436px; }
    .phone.trio { width: 200px; height: 408px; }
    .phone.trio.raised { margin-bottom: 0; }
}
