/* ==========================================================================
   Kee-Ris — dark technical
   Palette: Developer Tool / IDE dark, cyan accent
   Type:    JetBrains Mono (structure) + IBM Plex Sans (prose)
   ========================================================================== */

:root {
  /* Colour */
  --bg:            #0d1117;
  --bg-alt:        #0a0e14;
  --surface:       #131b27;
  --surface-hover: #182231;
  --text:          #e6edf3;
  --muted:         #9aa7b8;
  --accent:        #22d3ee;
  --accent-dim:    #0e7490;
  --accent-ink:    #04222b;
  --border:        rgba(230, 237, 243, 0.10);
  --border-strong: rgba(230, 237, 243, 0.18);

  /* Type */
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm — 8px scale */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --shell: 68rem;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Reset -- */

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

html {
  scroll-behavior: smooth;
  /* Fixed header clearance for in-page anchors */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* The blueprint grid — faint, fixed, and the reason this page is
     recognisable with the logo cropped off. */
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
}

/* Grid fades out below the hero so text sits on calm ground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 55%);
  pointer-events: none;
}

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 .875rem/1 var(--font-mono);
  text-decoration: none;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* -------------------------------------------------------------- Header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font: 700 1rem/1 var(--font-mono);
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Split square: two triangles, one cyan — the mark from the sketch */
.logo__mark {
  width: .875rem;
  height: .875rem;
  background: linear-gradient(135deg, var(--accent) 0 50%, var(--accent-dim) 50% 100%);
}

.site-nav {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
  font: 500 .8125rem/1 var(--font-mono);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .5rem 0;
  transition: color .18s var(--ease);
}
.site-nav a:hover { color: var(--text); }

.lang {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: var(--space-1);
  font: 500 .8125rem/1 var(--font-mono);
}
.site-nav + .lang { margin-left: var(--space-2); }

/* NL is a <span> on the Dutch page and a link on the English one, and
   vice versa — the current language is never a link to itself. */
.lang__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;           /* touch target */
  padding: 0 .25rem;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  transition: color .18s var(--ease);
}
a.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: var(--accent); }
.lang__sep { color: var(--border-strong); }

/* ---------------------------------------------------------------- Hero -- */

.hero { padding: clamp(var(--space-8), 12vw, var(--space-12)) 0 var(--space-8); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font: 400 .8125rem/1 var(--font-mono);
  letter-spacing: .02em;
}

.status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero__title .accent { color: var(--accent); }

/* Blinking terminal caret */
.caret {
  display: inline-block;
  width: .5em;
  height: .9em;
  margin-left: .15em;
  vertical-align: -0.06em;
  background: var(--accent);
  animation: blink 1.2s steps(1, end) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero__lede {
  max-width: 46ch;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 1.125rem;
}

/* Facts strip */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.facts__item { min-width: 8rem; }
.facts dt {
  color: var(--muted);
  font: 400 .75rem/1.4 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.facts dd {
  margin: .375rem 0 0;
  font-family: var(--font-mono);
  font-size: .9375rem;
}

/* ------------------------------------------------------------- Buttons -- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  /* <button> inherits neither colour nor background from the page, so both
     are set explicitly here — without this the UA paints its own chrome. */
  background: none;
  color: var(--text);
  font: 500 .9375rem/1 var(--font-mono);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease),
              border-color .18s var(--ease),
              color .18s var(--ease),
              transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Brand glyphs (WhatsApp) are solid shapes, not strokes */
.btn__icon--solid { fill: currentColor; stroke: none; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #67e8f9; }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm {
  min-height: 44px;
  padding: 0 1rem;
  font-size: .875rem;
}

/* ------------------------------------------------------------ Sections -- */

.section { padding: var(--space-8) 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head { max-width: 52ch; margin-bottom: var(--space-6); }

.section__num {
  color: var(--accent);
  font: 500 .8125rem/1 var(--font-mono);
  letter-spacing: .1em;
}
.section__num::after {
  content: " /";
  color: var(--border-strong);
}

.section__title {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section__lede {
  margin-top: var(--space-2);
  color: var(--muted);
}

/* --------------------------------------------------------------- Cards -- */

/* Four items, so 2x2 on desktop — auto-fit would leave an orphan row. */
.cards {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.card__icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: var(--space-2);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin-top: .625rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* --------------------------------------------------------------- Steps -- */

.steps {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.step {
  padding-left: var(--space-2);
  border-left: 2px solid var(--border-strong);
}

.step__num {
  color: var(--accent);
  font: 700 .8125rem/1 var(--font-mono);
  letter-spacing: .1em;
}

.step h3 {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* ------------------------------------------------------------- Contact -- */

.contact { padding-block: var(--space-12); }
/* Constrain the text, not the shell, so contact stays left-aligned
   with every other section instead of centring itself. */
.contact__inner > * { max-width: 52ch; }
.contact .btn { word-break: break-word; }

/* -------------------------------------------------------------- Footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: var(--space-3);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  justify-content: space-between;
  color: var(--muted);
  font: 400 .8125rem/1.6 var(--font-mono);
}
.site-footer__brand { color: var(--text); }

/* ------------------------------------------------------- Consent bar -- */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;                 /* above the sticky header */
  border-top: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }   /* focused programmatically, not by tabbing */

.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.consent__text {
  max-width: 58ch;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

/* ---------------------------------------------------------- Responsive -- */

@media (max-width: 40rem) {
  .site-nav { display: none; }          /* anchors stay reachable by scrolling */
  .lang { margin-left: auto; }
  .facts { gap: var(--space-3); }
  .btn { width: 100%; justify-content: center; }

  /* Consent buttons stay side by side — stacking two of them eats the screen */
  .consent__actions { width: 100%; }
  .consent .btn { width: auto; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .caret { opacity: 1; }
}
