:root {
  --brand: #E6007E;
  --brand-dark: #b80064;
  --brand-soft: #fdeaf4;
  --ink: #181225;
  --ink-soft: #4a4458;
  --bg: #ffffff;
  --bg-alt: #faf7fb;
  --line: #ece6f0;
  --ok: #0f9d58;
  --warn: #c05a00;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 18, 37, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 50px; width: auto; }
.brand-text { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text strong { color: var(--brand); font-weight: 800; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px; font-weight: 500;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(230,0,126,0.18), transparent 60%),
    linear-gradient(180deg, #181225 0%, #241a34 100%);
  color: #fff;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 72px 20px 64px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; line-height: 1.1; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.15rem; color: #e8e0f0; margin: 0 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none;
  font-size: 0.98rem; font-weight: 600; padding: 12px 20px; border-radius: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 18px rgba(230,0,126,0.35); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.section-alt > .section-title, .section-alt > .section-sub { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.section-alt .extras { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.75rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 640px; }
.muted { color: var(--ink-soft); font-weight: 400; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pkg {
  position: relative; display: flex; flex-direction: column;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.pkg:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pkg-badge { position: absolute; top: -12px; left: 20px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pkg-name { font-size: 1.25rem; margin: 8px 0 2px; }
.pkg-scope { color: var(--brand); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.pkg-desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 14px; }
.pkg-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.pkg-items li { display: flex; gap: 8px; font-size: 0.92rem; }
.pkg-items li::before { content: "•"; color: var(--brand); font-weight: 700; }
.pkg-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 16px; }
.pkg-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pkg-price { font-size: 1.5rem; font-weight: 800; }
.pkg-price small { font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); }
.pkg-radio { accent-color: var(--brand); width: 18px; height: 18px; }

/* Extras */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.extra {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.extra:hover { border-color: var(--brand); }
.extra[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.extra input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: 0 0 auto; }
.extra-name { font-weight: 600; font-size: 0.98rem; }
.extra-desc { color: var(--ink-soft); font-size: 0.85rem; }
.extra-price { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Features (Waarom Wifibri) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.feature { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.waarom-closing { color: var(--ink-soft); font-size: 1rem; max-width: 720px; margin: 0; }

/* Managed vs unmanaged */
.mvu { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 22px; }
.mvu-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.mvu-managed { border-color: var(--brand); background: var(--brand-soft); }
.mvu-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.mvu-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); background: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.mvu-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mvu-card li { display: flex; gap: 8px; font-size: 0.93rem; color: var(--ink); }
.mvu-managed li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.mvu-unmanaged li::before { content: "✕"; color: #d93025; font-weight: 700; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.checkout-summary { position: sticky; top: 88px; }
.summary-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff;
}
.summary-card h3 { margin: 0 0 14px; font-size: 1.05rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.95rem; }
.summary-row .label { color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.1rem; font-weight: 800; }
.summary-empty { color: var(--ink-soft); font-style: italic; }
.summary-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }

.checkout-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.checkout-form h3 { margin: 0 0 4px; }
.hint { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 16px; }
.hint.small { margin: 14px 0 0; font-size: 0.8rem; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input.invalid { border-color: #d93025; }
.opt { font-weight: 400; color: var(--ink-soft); }

.channel { border: none; margin: 6px 0 16px; padding: 0; }
.channel legend { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.channel-option {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.channel-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.channel-option input { margin-top: 3px; accent-color: var(--brand); }
.channel-option strong { display: block; font-size: 0.98rem; }
.channel-option small { color: var(--ink-soft); font-size: 0.85rem; }

.err { color: #d93025; font-size: 0.88rem; margin: 0 0 12px; }

/* Voorwaarden */
.terms { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 0.88rem; color: var(--ink-soft); }
.terms input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }
.terms a { color: var(--brand); }
.terms.invalid, .terms input.invalid { outline: 2px solid #d93025; outline-offset: 2px; }
.terms-list { display: grid; gap: 14px; }
.term { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.term h3 { margin: 0 0 6px; font-size: 1rem; }
.term p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Confirm */
.confirm { max-width: 560px; margin: 24px auto 0; }
.confirm-card {
  text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; background: #fff; box-shadow: var(--shadow);
}
.confirm-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 1.8rem; line-height: 60px; font-weight: 700;
}
.confirm-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.confirm-card p { color: var(--ink-soft); margin: 0 0 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 24px 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--ink-soft);
}
.footer-inner a { color: var(--brand); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner .footer-block { display: flex; flex-direction: column; gap: 4px; }
.footer-inner .footer-block strong { color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .03em; }

/* Modal (popup) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24,18,37,0.5); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow); text-align: center;
}
.modal h3 { margin: 0 0 8px; font-size: 1.2rem; }
.modal p { color: var(--ink-soft); margin: 0 0 20px; }
.modal .btn { margin: 0 4px; }

/* Kabel-aantal stepper */
.cable-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cable-block .cable-info { flex: 1; min-width: 180px; }
.cable-block .cable-name { font-weight: 600; font-size: 0.98rem; }
.cable-block .cable-desc { color: var(--ink-soft); font-size: 0.85rem; }
.cable-block .cable-price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.cable-qty { display: flex; align-items: center; gap: 10px; }
.cable-qty button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--ink); line-height: 1; }
.cable-qty button:hover { border-color: var(--brand); color: var(--brand); }
.cable-qty .qty-val { font-weight: 700; min-width: 28px; text-align: center; font-size: 1.05rem; }

/* Responsive */
@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .site-nav a { padding: 8px 8px; font-size: 0.88rem; }
  .brand-text { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
