/* ==========================================================================
   Justfamily — huisstijl overgenomen van Klaar is Kees (zelfde eigenaar/merk)
   Kleurtokens en typografie 1-op-1 overgenomen uit de originele theme.json
   ========================================================================== */

:root {
  /* --- kleuren (exact overgenomen palet) --- */
  --color-primary-blue: #5578f6;
  --color-mustard-yellow: #f9d22d;
  --color-old-pink: #eb91b7;
  --color-orange: #ea5f38;
  --color-soft-black: #39393a;
  --color-light-grey: #e6e6e6;
  --color-middle-grey: #bcb8b1;
  --color-teal: #095550;
  --color-sky: #71c9e4;
  --color-off-white: #fbfaf3;

  --color-text: var(--color-soft-black);
  --color-bg: #ffffff;
  --color-bg-alt: var(--color-off-white);

  /* --- typografie --- */
  --font-body: "Manrope", sans-serif;
  --fs-small: 0.875rem;
  --fs-medium: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  --fs-large: clamp(1.125rem, 1rem + 0.4vw, 1.38rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.2vw, 2rem);
  --fs-xxl: clamp(2.15rem, 1.6rem + 2vw, 3rem);
  --fs-hero: clamp(2.4rem, 1.8rem + 3vw, 4rem);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 45px -20px rgba(57, 57, 58, 0.25);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-large);
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: -0.1px;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-xxl); font-weight: 800; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-large); font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
a:hover { color: var(--color-primary-blue); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.bg-blue    { background: var(--color-primary-blue); color: #fff; }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: #fff; }
.bg-yellow  { background: var(--color-mustard-yellow); }
.bg-pink    { background: var(--color-old-pink); }
.bg-teal    { background: var(--color-teal); color: #fff; }
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal p { color: #fff; }
.bg-off     { background: var(--color-off-white); }
.bg-sky     { background: var(--color-sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-medium);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary { background: var(--color-soft-black); color: #fff; }
.btn-primary:hover { background: #1f1f20; box-shadow: var(--shadow-soft); color: #fff; }
.btn-yellow { background: var(--color-mustard-yellow); color: var(--color-soft-black); }
.btn-yellow:hover { box-shadow: var(--shadow-soft); color: var(--color-soft-black); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-white { background: #fff; color: var(--color-primary-blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-light-grey);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header--scrolled {
  box-shadow: 0 8px 24px -16px rgba(57,57,58,0.35);
}
.site-header--scrolled .container { padding-top: 8px; padding-bottom: 8px; }
.site-header--scrolled .logo img { height: 34px !important; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links--open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--color-light-grey);
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.35);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-small);
  margin-bottom: 20px;
}
.hero-lottie { width: 100%; max-width: 560px; margin: 0 auto; }
.store-badges { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.store-badges img { height: 52px; width: auto; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-media img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-left: auto;   /* pushes the image to the right edge */
  border-radius: 24px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-media img {
    margin: 0 auto;
  }
}

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

@media (max-width: 880px) {
  .hero .container, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.card .icon-wrap {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  margin-bottom: 18px;
}

/* ---------- App screenshots strip ---------- */
.phone-shot {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.screens-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.screens-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 380px;
}
.screens-showcase .phone-shot {
  width: 62%;
  position: relative;
}
.screens-showcase .phone-shot--back { margin-right: -70px; z-index: 1; }
.screens-showcase .phone-shot--front { margin-left: -70px; margin-top: 56px; z-index: 2; }
@media (max-width: 880px) {
  .screens-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .screens-showcase { flex-direction: column; gap: 24px; min-height: 0; }
  .screens-showcase .phone-shot { width: 78%; margin: 0 !important; }
}

/* ---------- EU / privacy section ---------- */
.eu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.eu-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-m);
  padding: 28px;
}
.eu-card h3 { font-size: var(--fs-large); margin-bottom: 10px; }
.eu-flag { font-size: 2rem; margin-bottom: 10px; display:block; }
@media (max-width: 880px) { .eu-grid { grid-template-columns: 1fr; } }

/* ---------- Experts / advisors ---------- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* ← wordt dit */
  gap: 28px;
  margin-top: 40px;
}
.expert-grid .expert-card {
  flex: 0 0 calc(25% - 21px);
}
@media (max-width: 1024px) { .expert-grid .expert-card { flex-basis: calc(50% - 14px); } }
@media (max-width: 600px) { .expert-grid .expert-card { flex-basis: 82%; } }

/* ---------- Carousel (experts) ---------- */
.carousel {
  position: relative;
  margin-top: 40px;
}
.carousel-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-soft-black);
  box-shadow: var(--shadow-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.06); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 4px;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--color-light-grey);
  transition: all 0.2s ease;
}
.carousel-dots button.is-active {
  background: var(--color-primary-blue);
  width: 22px; border-radius: 4px;
}
@media (max-width: 640px) {
  .carousel-btn { display: none; }
}
.expert-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.expert-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.2rem;
  margin-bottom: 16px;
  object-fit: cover;
}
img.expert-avatar { border: 3px solid var(--color-off-white); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.team-card img {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid var(--color-off-white);
}
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-light-grey);
  padding: 22px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; font-size: var(--fs-large);
  gap: 20px;
}
.faq-question::after {
  content: "+";
  font-size: 1.6rem; font-weight: 300; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding-top: 14px; color: #55555a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-soft-black); color: #fff; padding: 64px 0 32px; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: var(--fs-medium); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-small); opacity: 0.7;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Social icons ---------- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
  background: var(--color-mustard-yellow);
  color: var(--color-soft-black);
  transform: translateY(-2px);
}
.social-links img { width: 20px; height: 20px; }
.social-icon {
  width: 20px; height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.social-links--dark a {
  background: var(--color-light-grey);
  color: var(--color-soft-black);
}
.social-links--dark a:hover {
  background: var(--color-mustard-yellow);
  color: var(--color-soft-black);
}

/* ---------- Legal pages ---------- */
.legal-content h1 { font-size: var(--fs-xxl); }
.legal-content h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.legal-content h3 { font-size: var(--fs-large); margin-top: 1.2em; }
.legal-content p, .legal-content li { max-width: none; color: #45454a; }
.legal-content ul, .legal-content ol { margin-bottom: 1em; }
.legal-content nav.toc { background: var(--color-off-white); border-radius: var(--radius-m); padding: 24px 28px; margin: 24px 0; }
.legal-content nav.toc ol { columns: 2; gap: 24px; }
.legal-content a { color: var(--color-primary-blue); text-decoration: underline; }
@media (max-width: 600px) { .legal-content nav.toc ol { columns: 1; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.eyebrow {
  font-weight: 700; font-size: var(--fs-small);
  color: var(--color-primary-blue);
  margin-bottom: 10px; display: block;
}
.lead { font-size: var(--fs-xl); font-weight: 300; max-width: 46ch; }
.stat { font-size: var(--fs-xxl); font-weight: 800; }
.badge-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

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

/* ---------- Scroll-reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Interactieve taakverdeel-slider ---------- */
.split-demo {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.split-labels {
  display: flex; justify-content: space-between;
  font-weight: 700; margin-bottom: 10px;
}
.split-labels span:first-child { color: var(--color-primary-blue); }
.split-labels span:last-child { color: var(--color-orange); }
.split-track {
  position: relative;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-orange);
  overflow: hidden;
  margin-bottom: 18px;
}
.split-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--color-primary-blue);
  width: 50%;
  transition: width 0.05s linear;
}
.split-slider {
  width: 100%;
  accent-color: var(--color-primary-blue);
  height: 28px;
  cursor: pointer;
}
.split-hint { color: #6b6b70; font-size: var(--fs-small); margin-top: 12px; }

/* ---------- Contactformulier ---------- */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-medium);
  padding: 14px 16px;
  border: 2px solid var(--color-light-grey);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--color-text);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary-blue);
}
.form-feedback { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-feedback--error { color: var(--color-orange); }
.form-feedback--success { color: var(--color-teal); }

/* ---------- Cookiebanner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999;
  max-width: 620px; margin: 0 auto;
  background: var(--color-soft-black);
  color: #fff;
  border-radius: var(--radius-m);
  padding: 22px 24px;
  box-shadow: 0 20px 45px -15px rgba(0,0,0,0.45);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; max-width: 40ch; font-size: var(--fs-small); opacity: 0.9; }
.cookie-banner .btn { padding: 10px 20px; font-size: var(--fs-small); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
/* ---------- Aanmeldformulier AI-Agent ---------- */
.waitlist-form {
  max-width: 560px;
  margin: 32px auto 0;
}
.waitlist-row {
  display: flex;
  gap: 12px;
  align-items: stretch;           /* veld en knop altijd even hoog */
}
.waitlist-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;             /* zelfde als .btn */
  font-family: var(--font-body);
  font-size: var(--fs-medium);    /* zelfde als .btn */
  font-weight: 400;
  color: var(--color-text);
  background: #fff;
  border: 2px solid transparent;  /* zelfde rand als .btn */
  border-radius: var(--radius-full);
}
.waitlist-row input[type="email"]::placeholder { color: #8a8a8f; }
.waitlist-row input[type="email"]:focus {
  outline: none;
  border-color: var(--color-mustard-yellow);
}
.waitlist-row .btn {
  flex-shrink: 0;
  justify-content: center;
}
.waitlist-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  text-align: left;
  font-size: var(--fs-small);
}
.waitlist-consent input { margin-top: 3px; accent-color: var(--color-mustard-yellow); }
.waitlist-consent a { text-decoration: underline; }

/* Op mobiel: veld en knop onder elkaar, allebei volle breedte */
@media (max-width: 600px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; }
}

/* Label alleen voor schermlezers (onzichtbaar op het scherm) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 3px solid var(--color-primary-blue); outline-offset: 2px; }
.cookie-banner[hidden] { display: none; }
