/*
 * Fusha — website
 *
 * De tokens hieronder zijn LETTERLIJK die uit de app: dezelfde :root als in
 * `.scratch/mobiel.html` en dezelfde waarden als `src/theme/tokens.ts`. Wijk
 * hier niet van af zonder daar ook te wijzigen — het enige wat deze site moet
 * doen is aanvoelen als de app.
 */

:root {
  --bg: #FCFCFA;
  --surface: #FFFFFF;
  --sunk: #F6F6F2;
  --txt: #16181A;
  --mut: #6B7280;
  --line: #E8E8E4;
  --sk: #EDEDE8;

  --acc: #0F7A6B;
  --accSoft: #E6F2F0;

  --rad: 12px;
  --pill: 999px;

  --ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  /* Maximale leesbreedte. Lopende tekst wordt smaller gehouden dan secties. */
  --wide: 1080px;
  --read: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11;
    --surface: #17191C;
    --sunk: #121417;
    --txt: #EDEDEA;
    --mut: #8D939B;
    --line: #24272B;
    --sk: #1F2226;
    --accSoft: #123029;
  }
}

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

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

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

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

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Zichtbare focus, ook voor wie met het toetsenbord navigeert. */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- layout - */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

/* Wel voorgelezen, niet getoond. Voor labels die visueel overbodig zijn maar
   die een schermlezer nodig heeft. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
}

/* ---------------------------------------------------------------- header - */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--acc);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav { display: flex; gap: 22px; font-size: 14.5px; }
.site-nav a { color: var(--mut); }
.site-nav a:hover { color: var(--txt); text-decoration: none; }

/* ------------------------------------------------------------------ hero - */

.hero { padding: 40px 0 72px; }

h1 {
  margin: 0 0 16px;
  /* Schaalt mee met het scherm zonder media query; ondergrens is de maat uit
     de app (27px), bovengrens wat op een desktop niet schreeuwt. */
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 15ch;
}

.lead {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--mut);
  text-wrap: pretty;
}

/* De 'binnenkort'-pillen. Bewust GEEN officiële App Store- of Play-badges:
   Apple en Google staan die alleen toe voor apps die daadwerkelijk in de
   store staan. Zodra Fusha live is mogen de echte badges hier komen. */
.soon { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.soon span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--mut);
}
.soon svg { flex: none; }

/* ------------------------------------------------------------------ form - */

.signup { max-width: 460px; }

.field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.field input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--surface);
  color: var(--txt);
  font-family: inherit;
  font-size: 15.5px;
}
.field input[type='email']::placeholder { color: var(--mut); }

.btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: var(--rad);
  background: var(--acc);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { background: var(--sk); color: var(--mut); cursor: default; filter: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mut);
}

.form-msg {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 1.6em;
}
.form-msg[data-state='ok'] { color: var(--acc); }
.form-msg[data-state='err'] { color: var(--txt); }

/* De honeypot. Verborgen voor mensen, ingevuld door de meeste bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------- features - */

.features { padding: 8px 0 72px; }

.caps {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mut);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--surface);
  overflow: hidden;
}
.card figure { margin: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.card img { width: 100%; height: 132px; object-fit: cover; }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--mut); text-wrap: pretty; }

/* --------------------------------------------------------------- prose --- */

.prose { padding: 8px 0 64px; }
.prose h1 { margin-bottom: 8px; max-width: none; font-size: clamp(28px, 5vw, 36px); }
.prose .updated { margin: 0 0 40px; font-size: 13px; color: var(--mut); }
.prose h2 {
  margin: 40px 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.prose h3 { margin: 26px 0 8px; font-size: 15.5px; font-weight: 600; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; text-wrap: pretty; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--mut); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.prose th, .prose td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; }
.prose td { color: var(--mut); }
.prose td:first-child { color: var(--txt); }

/* Brede tabellen mogen zelf schuiven; de pagina nooit. */
.scroll-x { overflow-x: auto; }

.note {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--sunk);
}
.note p { margin: 0; font-size: 14.5px; }
.note p + p { margin-top: 10px; }

/* --------------------------------------------------------------- footer - */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: 13.5px;
  color: var(--mut);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--mut); }
.site-foot a:hover { color: var(--txt); text-decoration: none; }

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