/* Helderkeus waitlist styles. Colors and fonts come from the brand tokens in
   helderkeus/merk (tokens/tokens.css). Fonts are self-hosted for privacy. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #0f2620;
  --bright: #d4f36b;
  --deep: #1c3a32;
  --ground: #fafaf7;
  --surface: #f4f5f1;
  --good-surface: #f1f7da;
  --text-muted: #4a5a53;
  --border-input: #7f8e88;
  --border-quiet: #e6e9e3;
  --text-on-dark: #c5d1cb;
  --warning: #9a4a0b;
  --warning-surface: #fdf1e3;
  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  /* Keep the footer at the bottom on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; line-height: 1.02; }
h1 { font-weight: 800; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.045em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.04em; }
h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }

/* Header and hero */
.dark { background: var(--ink); color: #f3f4ef; }
.dark .muted { color: var(--text-on-dark); }
/* Light cards inside dark sections keep their own text colors. */
.dark .card .muted { color: var(--text-muted); }

.nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -0.045em; }
.logo-word span { color: var(--bright); }
.logo-label { font-size: 15px; color: var(--text-on-dark); padding-left: 10px; border-left: 1px solid #3b5a51; }
.nav a.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #d9e2dd; text-decoration: none; }

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 32px 88px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text > p { font-size: 19px; max-width: 480px; }
.hero-example { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }

/* Cards */
.card { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; }
.form-card { max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.example { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(15, 38, 32, 0.28); }
.example-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.example-amount { font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.example-old { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--warning); text-decoration-thickness: 3px; font-weight: 700; }
.example-saving { background: var(--ink); color: #f3f4ef; border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.example-saving strong { font-family: var(--font-heading); font-weight: 800; font-size: 26px; color: var(--bright); letter-spacing: -0.03em; }

/* Form */
label.field-label { font-size: 15px; font-weight: 600; }
input[type="email"] {
  height: 52px; width: 100%; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--border-input); font: inherit; color: var(--ink); background: #fff;
}
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.button {
  min-height: 56px; border: none; border-radius: 16px; background: var(--bright); color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; padding: 0 24px;
}
.button-secondary { align-self: flex-start; min-height: 44px; border: 1.5px solid var(--ink); background: #fff; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; padding: 0 16px; cursor: pointer; }
.alert { font-size: 14px; color: var(--warning); background: var(--warning-surface); border-radius: 10px; padding: 10px 12px; }
.alert[hidden] { display: none; }

/* Honeypot: hidden from people, visible to simple bots. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 32px; }
.section-white { background: #fff; border-top: 1px solid var(--border-quiet); border-bottom: 1px solid var(--border-quiet); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.column { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 18px; }
ol.steps { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }

details { border-top: 1px solid var(--border-quiet); padding: 6px 0; }
details:last-of-type { border-bottom: 1px solid var(--border-quiet); }
summary { min-height: 52px; display: flex; align-items: center; font-size: 18px; font-weight: 600; cursor: pointer; }
details p { margin: 0 0 16px; color: var(--text-muted); }

/* Simple pages (thank you, privacy) */
.page { padding-block: 64px 96px; display: flex; flex-direction: column; gap: 20px; }
.page h2 { font-size: 26px; margin-top: 16px; }
.page ul { margin: 0; padding-left: 22px; }

footer { background: var(--ink); color: var(--text-on-dark); font-size: 14px; }
.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 36px; }
.footer a { color: var(--text-on-dark); }
.footer-links { display: flex; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* Admin page */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-quiet); }
.stat strong { font-family: var(--font-heading); font-weight: 800; font-size: 36px; letter-spacing: -0.03em; line-height: 1; }
.page .card { border: 1px solid var(--border-quiet); }
.bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 10px; height: 200px; border-bottom: 1px solid var(--border-input); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-count { font-size: 12px; font-weight: 600; }
.bar-fill { width: 100%; max-width: 40px; min-height: 2px; background: var(--ink); border-radius: 6px 6px 0 0; }
.bar-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.h0 { height: 2px; } .h1 { height: 10%; } .h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; } .h5 { height: 50%; }
.h6 { height: 60%; } .h7 { height: 70%; } .h8 { height: 80%; } .h9 { height: 90%; } .h10 { height: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 0; border-top: 1px solid var(--border-quiet); }
.table th { color: var(--text-muted); font-weight: 600; border-top: none; }
.table .number { text-align: right; }
