:root {
  --purple: #330066;
  --purple-deep: #290052;
  --purple-light: #512da8;
  --yellow: #ffbf00;
  --pink: #ff6bce;
  --blue: #00a2d7;
  --orange: #ff7d26;
  --ink: #1d0b33;
  --muted: #5b4b70;
  --paper: #ffffff;
  --soft: #f6f1fb;
  --line: #e6dcf2;
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-light); }
a:hover { color: var(--purple); }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--purple);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; max-width: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

/* Hero */
.hero { background: var(--purple); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--yellow); }
.hero p.lead { font-size: 19px; color: #e9ddf7; margin: 0 0 28px; max-width: 34em; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(320px, 70vw); height: auto; aspect-ratio: 1; border-radius: 64px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-4deg); }
.hero-art .bubble {
  position: absolute; background: var(--yellow); color: var(--ink); font-weight: 800;
  padding: 10px 16px; border-radius: 999px; right: -12px; top: 18px; transform: rotate(6deg);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  padding: 13px 22px; border-radius: 14px; font-size: 16px; border: 2px solid transparent;
}
.btn-store { background: #000; color: #fff; border-color: rgba(255,255,255,.2); }
.btn-store:hover { background: #111; color: #fff; }
.btn-store small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1; }
.btn-store span { line-height: 1.15; }
.btn-store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffcc33; color: var(--ink); }
.btn-ghost { border-color: var(--purple-light); color: var(--purple); background: #fff; }

/* Sections */
section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--purple-light); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; color: var(--purple); letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; color: var(--purple); }
.intro { max-width: 40em; color: var(--muted); font-size: 18px; margin: 0 0 40px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--yellow); color: var(--ink); font-weight: 900; margin-bottom: 14px;
}
.step:nth-child(2)::before { background: var(--pink); }
.step:nth-child(3)::before { background: var(--blue); color: #fff; }
.step:nth-child(4)::before { background: var(--purple); color: #fff; }
.step p { margin: 0; color: var(--muted); }

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card { border-radius: 28px; padding: 32px; color: #fff; display: flex; flex-direction: column; gap: 16px; }
.app-card.normal { background: linear-gradient(160deg, var(--purple-light), var(--purple)); }
.app-card.junior { background: linear-gradient(160deg, #ffbb00, var(--orange)); color: var(--purple-deep); }
.app-card .head { display: flex; align-items: center; gap: 16px; }
.app-card .head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.app-card h3 { color: inherit; font-size: 26px; margin: 0; }
.app-card .tag { margin: 0; opacity: .85; font-weight: 700; }
.app-card ul { margin: 0; padding-left: 20px; }
.app-card li { margin: 4px 0; }
.app-card .badges { margin-top: auto; padding-top: 8px; }
.app-card.junior .btn-store { border-color: transparent; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ico { font-size: 28px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.cta { background: var(--purple); color: #fff; border-radius: 28px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #e9ddf7; }

/* Page (support / privacy) */
.page-hero { background: var(--purple); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.page-hero p { margin: 0; color: #e9ddf7; font-size: 18px; max-width: 40em; }
.lang-switch { display: inline-flex; gap: 6px; margin-top: 20px; background: rgba(255,255,255,.1); padding: 4px; border-radius: 999px; }
.lang-switch a { color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.lang-switch a:hover { background: rgba(255,255,255,.15); color: #fff; }

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #33264a; }
.prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--purple); }
.table-scroll { overflow-x: auto; }
.updated { color: var(--muted); font-size: 15px; }
.divider { border: 0; border-top: 2px dashed var(--line); margin: 64px 0; }

.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 28px; margin: 8px 0 32px;
}
.contact-card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); display: grid; place-items: center; font-size: 28px; }
.contact-card h2 { margin: 0 0 4px; font-size: 22px; }
.contact-card p { margin: 0; }
.contact-card a.mail { font-weight: 800; font-size: 20px; }

details.faq { border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin: 10px 0; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 800; color: var(--purple); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--purple-light); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 16px; }
details.faq > div p:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--purple-deep); color: #cdbde3; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; border-radius: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .apps, .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand img { height: 32px; }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav a:nth-child(2) { display: none; }
  .lang-switch a { padding: 6px 12px; }
  .contact-card { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
}

/* Taalmenu */
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 800; font-size: 14px; padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255,255,255,.12); }
.lang-menu summary svg { width: 18px; height: 18px; fill: currentColor; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(20,0,50,.25); min-width: 170px; z-index: 20;
}
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.lang-menu li a:hover { background: var(--soft); }
.lang-menu li a[aria-current] { background: var(--soft); color: var(--purple); }
.lang-menu li a[aria-current]::after { content: " ✓"; color: var(--purple-light); }

.note { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

@media (max-width: 520px) {
  .header-right { gap: 4px; min-width: 0; }
  .lang-menu summary { padding: 6px 9px; }
  .lang-menu summary span { display: none; }
}
@media (max-width: 400px) {
  .nav a:first-child { display: none; }
}
