:root {
  --bg: #fafaf8;
  --fg: #111111;
  --text: #3d3d3d;
  --muted: #5c5c5c;
  --line: #e4e4e0;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #f2f2ee;
    --text: #c9c9c4;
    --muted: #9b9b96;
    --line: #2a2a28;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Interactieve achtergrond (assets/background.js) */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  contain: strict;
}

a { color: var(--fg); text-underline-offset: 4px; }
a:hover { color: var(--muted); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 32px 0;
}
.logo { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .quiet { color: var(--muted); }

/* Type */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h1.xl { font-size: clamp(44px, 8vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.lede { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--text); max-width: 680px; }

.hero { padding: clamp(64px, 12vw, 120px) 0 clamp(56px, 9vw, 96px); }
.hero h1 { max-width: 780px; }
.hero .lede { margin-top: 24px; }
.hero .cta-row { margin-top: 32px; }

/* Section head with rule */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fg);
}
.section-head h2 { font-size: 15px; }
.section-head a { font-size: 15px; color: var(--muted); }

/* Product rows (home) */
.product-list { list-style: none; margin: 0; padding: 0; }
.product-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.product-row h3 { font-size: 24px; letter-spacing: -0.02em; }
.product-row h3 a { text-decoration: none; }
.product-row h3 a:hover { text-decoration: underline; color: var(--fg); }
.product-row p { margin: 6px 0 0; color: var(--muted); }
.product-row .domain { white-space: nowrap; }

/* Product grid (overview) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--fg);
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-right: 1px solid var(--line);
}
.product-card:first-child { padding-left: 0; }
.product-card:last-child { padding-right: 0; border-right: 0; }
.product-card h2 { font-size: 28px; letter-spacing: -0.025em; }
.product-card p { margin: 0; color: var(--text); }
.product-card .links { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* Product page */
.crumbs { padding-top: 64px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.product-hero { padding: 32px 0 72px; display: flex; flex-direction: column; gap: 28px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.button:hover { color: var(--bg); opacity: 0.85; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 6px; }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; padding-right: 0; }
.facts dd { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.facts dt { font-size: 14px; color: var(--muted); }

.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-top: 96px; }
.split > h2 { font-size: 15px; }
.split > p { margin: 0; font-size: 19px; color: var(--text); max-width: 640px; }

.features { list-style: none; margin: 0; padding: 0; }
.features li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.features li:first-child { padding-top: 0; }
.features li:last-child { border-bottom: 0; padding-bottom: 0; }
.features h3 { font-size: 20px; }
.features p { margin: 6px 0 0; color: var(--text); }

.more { padding: 120px 0; }
.more ul { list-style: none; margin: 0; padding: 0; }
.more li a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
}
.more li a span:last-child { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }

/* FAQ */
.faq h3 { font-size: 19px; }
.faq p { max-width: 640px; }

/* Contact */
.details { margin: 0; }
.details div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.details div:first-child { padding-top: 0; }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.page-end { padding-bottom: 120px; }

.section { padding-bottom: 96px; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Phone */
@media (max-width: 760px) {
  .product-row { grid-template-columns: 40px minmax(0, 1fr); }
  .product-row .domain { grid-column: 2; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:first-child, .product-card:last-child { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div, .facts div:first-child, .facts div:last-child { padding: 20px 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 20px; padding-top: 64px; }
  .more { padding: 80px 0; }
  .site-nav { gap: 20px; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .page-end { padding-bottom: 80px; }
}
