/* =========================================================
   Boathealth — statische site (privacy / terms / support)
   Tokens uit app_theme.dart / docs/design/previews/boathealth-house-style.html
   ========================================================= */

/* Inter, zelf gehost. Bewust niet via de Google Fonts CDN: daarmee gaat het
   IP-adres van elke bezoeker naar Google, terwijl het privacybeleid zegt dat
   de site geen externe trackers gebruikt. Variabel lettertype, twee subsets.
   Vervangen = nieuwe woff2 in assets/fonts/ zetten en de naam hier wijzigen. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:      #f0f2f5;
  --surface: #ffffff;
  --primary: #2563eb;
  --navy:    #0f1f35;
  --text:    #0f172a;
  --text-2:  #64748b;
  --text-3:  #94a3b8;
  --body:    #334155;
  --border:  #e2e8f0;
  --quiet:   #f1f5f9;
  --r-card:  16px;
  --sh-card: 0 2px 8px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ---- header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 22px;
}

.wordmark {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.lang-switch button:hover { border-color: #c7d4da; color: var(--navy); }

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Zonder JS geen toggle tonen (beide talen staan dan onder elkaar). */
html:not(.js) .lang-switch { display: none; }
html.js[data-lang="nl"] .only-en { display: none; }
html.js[data-lang="en"] .only-nl { display: none; }

/* ---- content card ---- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: clamp(26px, 6vw, 52px);
}

.card > :first-child h1:first-child,
.card h1:first-of-type { margin-top: 0; }

h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(24px, 4.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h2 {
  margin: 40px 0 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
}

p { margin: 0 0 14px; }

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

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

code {
  background: var(--quiet);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

pre {
  background: var(--quiet);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px;
  overflow-x: auto;
}

pre code { background: none; padding: 0; font-size: 13px; line-height: 1.6; }

/* ---- tabellen ---- */
.table-wrap { overflow-x: auto; margin: 0 0 18px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  line-height: 1.5;
}

th {
  text-align: left;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border);
}

/* ---- landingspagina ---- */
.hero {
  padding: 40px 0 28px;
  text-align: center;
}

.hero .brand {
  color: var(--navy);
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}

.hero p {
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto;
}

.linklist {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  margin-top: 28px;
}

.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.linklist a + a { border-top: 1px solid var(--border); }
.linklist a:hover { background: var(--quiet); }
.linklist .chev { color: var(--text-3); font-size: 20px; line-height: 1; }
.linklist .sub { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 400; margin-top: 2px; }

/* ---- footer ---- */
.site-footer {
  margin-top: 36px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--navy); }

/* Anker-doelen niet onder de rand laten vallen */
[id] { scroll-margin-top: 24px; }

/* Nog niet ingevulde bronplaceholders (stap B1). Bewust schreeuwerig: deze
   site mag niet live met [BEDRIJFSNAAM] er nog in. */
mark.todo {
  background: #ffe89a;
  color: #6b4b00;
  border: 1px dashed #c79a00;
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 600;
  white-space: nowrap;
}
