/* emailmanagement.nl
   Witte grond, blauw draagt alle nadruk. Palet uit docs/palette.md. */

:root {
  --white: #fff;
  --near-white: #f7f8fa;
  --line: #c7c8ca;
  --light-blue: #6b7899;
  --mid-blue: #2e4272;
  --blue: #081c4b;
  --deep: #000a24;

  --text: #16223d;
  --muted: #5a6683;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;

  --shadow: 0 1px 2px rgba(8, 28, 75, .06), 0 8px 24px rgba(8, 28, 75, .06);
  --shadow-lg: 0 2px 4px rgba(8, 28, 75, .06), 0 18px 48px rgba(8, 28, 75, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--mid-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

img, svg { max-width: 100%; }
img { height: auto; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .89em;
  background: var(--near-white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .38em;
}

pre {
  background: var(--deep);
  color: #e6ebf5;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

blockquote {
  margin: 1.5rem 0;
  padding: .3rem 0 .3rem 1.25rem;
  border-left: 3px solid var(--light-blue);
  color: var(--muted);
}
blockquote p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
th { color: var(--blue); font-weight: 650; background: var(--near-white); }

/* Layout ------------------------------------------------------------------ */

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

/* Contentpagina's staan in dezelfde kolom als de header: één .container voor
   alles, zodat titels, kaarten, logo en footer dezelfde linkerrand delen. De
   leesbare regellengte wordt door de tekst zelf begrensd (zie .prose). */
.section { padding-block: 72px; }
.section-tint { background: var(--near-white); border-block: 1px solid var(--line); }

/* Derde trede tussen wit en het diepe blauw, zodat de pagina niet heen en weer
   springt tussen twee uitersten. */
.section-mid {
  background: linear-gradient(180deg, #eef1f7 0%, #e4e9f3 100%);
  border-block: 1px solid #d5dbe8;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.12rem; color: var(--blue); text-decoration: none; letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo svg { width: 30px; height: 30px; }
.logo span { font-weight: 400; color: var(--light-blue); }
.logo strong { font-weight: 700; color: var(--blue); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 650; }
.site-nav .btn { color: #fff; }

.nav-toggle { display: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-sm { padding: .55rem 1rem; font-size: .93rem; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--mid-blue); color: #fff; transform: translateY(-1px); }

.btn-secondary { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--light-blue); color: var(--blue); }

.btn-ghost { color: var(--blue); }
.btn-ghost:hover { background: var(--near-white); }

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

/* De hero is het donkerste vlak van de pagina. Alles daarna is licht, zodat de
   bezoeker binnenkomt op kleur en daarna rust krijgt om te lezen. */
.hero {
  padding-block: 96px 88px;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(107, 120, 153, .38), transparent 60%),
    linear-gradient(165deg, var(--blue) 0%, var(--deep) 100%);
  color: #ccd6ea;
}
/* De container blijft op volle breedte staan (anders centreert margin:auto hem
   en springt de h1 naar het midden). De tekst erbinnen wordt begrensd. */
.hero-inner > * { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { font-size: 1.24rem; color: #b6c3de; max-width: 62ch; margin-bottom: 1.9rem; }
.hero .eyebrow { color: #8fa0c4; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: #8fa0c4; }

/* Op donker draait de knophiërarchie om: wit is nu het opvallendst. */
.hero .btn-primary { background: #fff; color: var(--blue); }
.hero .btn-primary:hover { background: var(--near-white); color: var(--blue); }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* Section headings -------------------------------------------------------- */

.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Alleen verticaal: de horizontale 24px van .container moet blijven staan,
   anders springt de content 24px buiten de header uit. */
/* Kopband voor pagina's zonder hero: dezelfde blauwe grond onder het menu, maar
   compacter en iets lichter dan de hero, zodat de homepage het zwaarst blijft. */
.page-banner {
  background:
    radial-gradient(760px 320px at 85% -20%, rgba(107, 120, 153, .34), transparent 62%),
    linear-gradient(160deg, var(--blue) 0%, var(--deep) 100%);
  padding-block: 64px 60px;
  color: #ccd6ea;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; max-width: 22ch; }
.page-banner .lead { color: #b6c3de; font-size: 1.15rem; max-width: 62ch; margin: 0; }
.page-banner .post-meta { color: #8fa0c4; margin-bottom: .9rem; }
.page-banner .post-meta a { color: #b6c3de; }
.page-banner .post-meta a:hover { color: #fff; }
.page-banner .tag { color: #cfd9ef; background: rgba(255, 255, 255, .14); margin: 0; }

/* De eerste sectie na de band hoeft geen extra aanloop: de band geeft al lucht. */
.page-banner + .section,
.page-banner + .prose { padding-top: 64px; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 1px 2px rgba(8, 28, 75, .04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

a.card:hover { border-color: var(--light-blue); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--near-white);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  color: var(--blue);
}
.card-icon svg { width: 21px; height: 21px; }

.card-post time { display: block; margin-top: 1rem; font-size: .87rem; color: var(--light-blue); }

.tag {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--mid-blue); background: rgba(107, 120, 153, .14);
  padding: .22rem .55rem; border-radius: 99px;
  margin-bottom: .8rem;
}

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

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Feature list ------------------------------------------------------------ */

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem 2.4rem; }
.feature { display: flex; gap: .95rem; }
.feature .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; margin-top: .15rem;
}
.feature .check svg { width: 13px; height: 13px; }
.feature h3 { font-size: 1.04rem; margin-bottom: .2em; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Dark band --------------------------------------------------------------- */

.band {
  background:
    radial-gradient(720px 400px at 15% 0%, rgba(107, 120, 153, .3), transparent 62%),
    linear-gradient(200deg, var(--deep) 0%, var(--blue) 100%);
  color: #dfe5f2;
  padding-block: 84px;
}
.band h2, .band h3 { color: #fff; }
.band p { color: #c3cde4; }
.band .eyebrow { color: #8fa0c4; }
.band .btn-primary { background: #fff; color: var(--blue); }
.band .btn-primary:hover { background: var(--near-white); color: var(--blue); }
.band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn-secondary:hover { border-color: #fff; color: #fff; }

.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.band-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.band-item p { font-size: .96rem; margin: 0; }

/* Quotes ------------------------------------------------------------------ */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.quote {
  margin: 0; padding: 1.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.quote blockquote {
  margin: 0 0 1.2rem; padding: 0; border: 0;
  font-size: 1.06rem; color: var(--text);
}
.quote blockquote::before { content: '\201C'; }
.quote blockquote::after { content: '\201D'; }
.quote figcaption { display: flex; align-items: center; gap: .75rem; font-size: .93rem; }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote figcaption span span { color: var(--muted); font-size: .88rem; }
.quote-result { margin: 1rem 0 0; font-size: .9rem; color: var(--mid-blue); font-weight: 600; }

/* Founders (staat in voor testimonials zolang die er niet zijn) ------------ */

.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }
.founder-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem;
}
.founder-card h3 { margin-bottom: .2em; }
.founder-role { color: var(--light-blue); font-size: .92rem; margin-bottom: 1rem; }

/* Prose ------------------------------------------------------------------- */

/* Genoeg lucht onder de sticky header, anders plakt de H1 er tegenaan. */
/* Ruime aanloop boven de titel, zodat een contentpagina niet meteen onder de
   header begint. */
.prose { padding-top: 88px; padding-bottom: 88px; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.6em; }

/* De kolom is nu even breed als de header, dus de leesbare regellengte wordt
   hier begrensd in plaats van door een smallere container. Koppen mogen
   breder lopen dan lopende tekst. */
.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > pre,
.prose > .table-wrap { max-width: 76ch; }
.prose > .lead { max-width: 66ch; }
.prose > h2, .prose > h3 { max-width: 34ch; }

.post-meta { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.post-meta a { color: var(--muted); }
.post-meta .tag { margin: 0; }

.post-cta { padding-bottom: 72px; }
.cta-card {
  background: var(--near-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.cta-card h2 { font-size: 1.4rem; margin-bottom: 1rem; }

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

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; background: #fff;
}
.contact-card a { font-weight: 600; font-size: 1.05rem; }

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

.site-footer { background: var(--deep); color: #b9c3dc; padding-block: 56px 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid a { display: block; color: #b9c3dc; text-decoration: none; font-size: .95rem; margin-bottom: .5rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; color: #fff; margin-bottom: .8rem; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo span { font-weight: 400; color: #9db0d6; }
.footer-logo strong { font-weight: 700; color: #fff; }
.footer-tag { color: #8fa0c4; font-size: .95rem; max-width: 34ch; }
.footer-lang { display: block; margin-top: .8rem; font-size: .9rem; color: #8fa0c4; }
.footer-lang a { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.4rem; padding-top: 1.4rem; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #8fa0c4; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto;
    width: 42px; height: 42px;
    background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--blue); border-radius: 2px; }

  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: .9rem; border-bottom: 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
