/*
  Opmaak voor de homepage en de blog.

  Dezelfde designtokens als de app — zie docs/design/HANDOFF.md. De tekstpagina's
  (privacy, voorwaarden) hebben hun eigen, rustiger tekstpagina.css; deze hier is voor de
  pagina's die iemand moeten overtuigen.
*/

/*
  Manrope staat op onze eigen server, niet bij Google Fonts. Een lettertype van Google
  laden stuurt bij elk bezoek het IP-adres van de bezoeker naar Google, en dan klopt
  "geen derden" niet meer. Eén variabel bestand per tekenset dekt alle gewichten.
  Manrope valt onder de SIL Open Font License 1.1.
*/
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #12233a;
  --ink-2: #334a63;
  --label: #5d6b7c;
  --muted: #6f7d8c;
  --border: #e2e7ec;
  --divider: #eef1f4;
  --primary: #2a75ba;
  --primary-ink: #1d5d99;

  /* De kleurentaal: gelijke lichtheid en chroma, alleen de hue verschilt. */
  --blue: #418ad1;
  --green: #349d62;
  --pink: #a86ab6;
  --orange: #c16e2d;

  --radius-card: 16px;
  --radius-chip: 7px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* --- Navigatie -------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff !important;
}
.nav-cta:hover { background: var(--ink-2); }

/* Op een telefoon blijven alleen Blog en de downloadknop over; de rest is één keer
   scrollen weg. */
@media (max-width: 720px) {
  .nav-links .optional { display: none; }
  .nav-links { gap: 14px; }
}

/* --- Chips: het kernpatroon uit de app -------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-chip);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.chip.blue   { background: var(--blue); }
.chip.green  { background: var(--green); }
.chip.pink   { background: var(--pink); }
.chip.orange { background: var(--orange); }

/* --- Winkelknoppen ---------------------------------------------------------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.store:hover { background: var(--ink-2); border-color: var(--ink-2); }
.store:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb1c4;
}
.store b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

@media (max-width: 480px) {
  /* Naast elkaar wordt het op een telefoon te smal om nog een knop te lijken. */
  .store { flex: 1 1 100%; }
}

/* --- Telefoon met schermafdruk ---------------------------------------------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  background: #0d1a2b;
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -20px rgba(18, 35, 58, 0.35),
    0 12px 24px -12px rgba(18, 35, 58, 0.25);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: var(--bg);
}

/* --- Koppen en secties ------------------------------------------------------ */
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { padding: 56px 0; }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}

/* --- Voet ------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

.footer h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--primary); text-decoration: underline; }
.footer p { margin: 12px 0 0; max-width: 40ch; }

/* --- Blog: overzicht --------------------------------------------------------- */
.blog-head { padding: 40px 0 8px; max-width: 720px; }
.blog-head h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.post-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 28px 0 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease;
}
.post-card:hover { border-color: var(--primary); }
.post-card .meta { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.post-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 8px; }
.post-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.post-card .more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 800; color: var(--primary); }

/* --- Blog: artikel ----------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 700px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--label); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 0 24px;
}

.article header { margin-bottom: 32px; }
.article header .chips { margin-bottom: 18px; }

.article h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}

.article .intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.article .byline { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0; }

.article h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 44px 0 12px;
}

.article h3 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }

.article p, .article li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }

.article .note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.article .note p:last-child { margin-bottom: 0; }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 16px;
}
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.article th { font-size: 13px; font-weight: 800; color: var(--ink); background: var(--divider); }
.article td { color: var(--ink-2); }
.article tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Het blok onderaan: wie tot hier leest, wil misschien de app. */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  margin: 44px 0 0;
}
.cta h2 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.cta p { color: #d3dce6; margin: 0 0 22px; font-size: 17px; }
.cta .store { background: #fff; color: var(--ink); border-color: #fff; }
.cta .store:hover { background: #e7ecf0; border-color: #e7ecf0; }
.cta .store small { color: var(--label); }

.related { max-width: 700px; margin: 0 auto; padding: 32px 0 8px; }
.related h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li + li { margin-top: 8px; }
.related a { font-size: 17px; font-weight: 800; text-decoration: none; }
.related a:hover { text-decoration: underline; }
