/* Yummii — landingspagina
   Tokens gelijk aan docs/DESIGN_SYSTEM.md, zodat site en app dezelfde kleuren delen. */

:root {
  --background: #faf6ef;
  --surface: #ffffff;
  --sand: #efe6d8;
  --sand-soft: #f5efe5;
  --divider: #e6ddd0;
  --ink: #2b2522;
  --text-secondary: #6b5f57;
  --primary: #bd4b3d;
  --primary-dark: #963a2f;
  --primary-tint: #f6e3df;
  --secondary: #4f7d65;
  --secondary-ink: #3d6350;
  --secondary-tint: #e6eee9;

  --radius-card: 22px;
  --radius-container: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(43, 37, 34, 0.07);
  --shadow-primary: 0 10px 24px rgba(189, 75, 61, 0.28);

  --gutter: clamp(20px, 5vw, 96px);
  --section-gap: clamp(64px, 9vw, 112px);
  --measure: 62ch;
}

/* De gebruiker die "minder beweging" aan heeft, krijgt geen animaties. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
  /* Ankerlinks mogen niet onder de plakkende kop verdwijnen. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* Niets mag horizontaal uit het scherm steken op een telefoon. */
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 52px);
}

h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 600; }

p { margin: 0; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Zichtbare focus voor wie met het toetsenbord navigeert. */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.accent { color: var(--primary); font-style: italic; }
.muted { color: var(--text-secondary); }
.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--background);
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Kop ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--divider); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
/* De twee i's van "yummii": een gekleurde punt boven een inkt-stam. */
.logo__i {
  display: inline-block;
  width: 0.21em;
  margin-left: 0.07em;
}
.logo__dot {
  display: block;
  width: 0.21em;
  height: 0.21em;
  border-radius: 50%;
  margin: 0 auto 0.08em;
}
.logo__dot--primary { background: var(--primary); }
.logo__dot--secondary { background: var(--secondary); }
.logo__stem {
  display: block;
  width: 0.15em;
  height: 0.52em;
  border-radius: 0.075em;
  background: var(--ink);
  margin: 0 auto;
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 2px;
}
.site-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--sand);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
}
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }

.btn--ink { background: var(--ink); color: var(--background); }
.btn--ink:hover { background: #14110f; color: var(--background); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--divider);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(32px, 5vw, 56px) var(--section-gap);
}

.hero__text { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 28px); }

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--secondary-tint);
  color: var(--secondary-ink);
  font-size: 14px;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

.hero__sub { max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-secondary); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.hero__media { position: relative; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-card);
}

/* Zwevend kaartje over de foto: de app in het klein. */
.hero__chip {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.hero__chip strong { display: block; font-size: 15px; }
.hero__chip span { font-size: 13px; color: var(--text-secondary); }
.hero__chip-plate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: grid;
  place-items: center;
  flex: none;
}
.hero__chip-plate::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Secties ---------- */

.section { padding-block: var(--section-gap); }
.section--sand { background: var(--sand-soft); }

.section__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Niet in ch: Playfair is smal, dus 24ch levert een kolom van nog geen 400 px en
   een kop van vijf regels. */
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: min(100%, 620px); }
.section__head--wide { max-width: var(--measure); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
  margin-top: clamp(36px, 5vw, 56px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-container);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); }
.card__body p { color: var(--text-secondary); font-size: 16px; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.card__icon--primary { background: var(--primary-tint); color: var(--primary); }
.card__icon--secondary { background: var(--secondary-tint); color: var(--secondary); }

/* ---------- Twee kolommen (studenten, offline) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.split--flip .split__media { order: -1; }
.split__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split__text p { color: var(--text-secondary); max-width: var(--measure); }
.split__photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-card);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--secondary-tint);
  color: var(--secondary-ink);
  font-size: 14px;
  font-weight: 600;
}

.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.points li { display: flex; gap: 14px; }
.points svg { flex: none; margin-top: 3px; color: var(--secondary); }
.points strong { display: block; }
.points span { color: var(--text-secondary); font-size: 16px; }

.note { font-size: 15px; color: var(--text-secondary); }

/* ---------- Kookboeken ---------- */

.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.book {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-card);
  border-left: 8px solid var(--book-spine);
  background: var(--book-bg);
  color: var(--book-fg);
}
.book__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.book h3 { font-size: 20px; }
.book p { font-size: 15px; opacity: 0.8; }

/* ---------- Inschrijven ---------- */

.signup { text-align: center; }
.signup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin-inline: auto;
}
.signup p { color: var(--text-secondary); }

.signup-form { width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.signup-form__row { display: flex; gap: 12px; width: 100%; }

.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #d9cec0;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.signup-form input::placeholder,
.signup-form textarea::placeholder { color: #a2958a; }
.signup-form input:focus-visible,
.signup-form textarea:focus-visible { border-color: var(--primary); }

.signup-form .btn { flex: none; }

/* Het berichtveld van het contactformulier. Zelfde vorm als de invoervelden, maar met
   ronde hoeken in plaats van een pil — een pil om vijf regels tekst leest slecht. */
.signup-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  border: 1.5px solid #d9cec0;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  resize: vertical;
  min-height: 7rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  /* Ruim genoeg om met een duim te raken. */
  min-height: 44px;
}
.checkbox input { width: 20px; height: 20px; accent-color: var(--primary); }

.form-status {
  font-size: 15px;
  font-weight: 500;
  min-height: 1.6em;
}
.form-status[data-state="ok"] { color: var(--secondary-ink); }
.form-status[data-state="error"] { color: var(--primary-dark); }

/* ---------- Voettekst ---------- */

.site-footer {
  border-top: 1px solid var(--divider);
  padding-block: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer__credit { font-size: 14px; }

/* ---------- Juridische pagina's ---------- */

.legal { padding-block: clamp(40px, 6vw, 72px) var(--section-gap); }
.legal__head { display: flex; flex-direction: column; gap: 16px; max-width: var(--measure); }
.legal__intro { color: var(--text-secondary); font-size: 18px; }
.legal__body { max-width: var(--measure); margin-top: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.legal__body h2 { font-family: "Outfit", system-ui, sans-serif; font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
.legal__body p { color: var(--text-secondary); margin-top: 12px; }
.legal__updated { font-size: 15px; color: var(--text-secondary); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
}
.steps li:first-child::before { background: var(--primary); color: #fff; }

.callout {
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 500;
}
.panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Mobiel ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 3 / 2; }
  .hero__chip { left: 12px; bottom: 12px; }
  .features { grid-template-columns: 1fr; }
  .books { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__photo { aspect-ratio: 3 / 2; }
}

@media (max-width: 720px) {
  /* Ankerlinks en de kopknop verdwijnen: de knop past er niet op één regel naast,
     en de hero heeft er zelf al een die je meteen ziet. De taalkeuze blijft. */
  .site-nav { display: none; }
  .header-actions > .btn { display: none; }
  .site-header__inner { min-height: 68px; }
  html { scroll-padding-top: 76px; }
  .signup-form__row { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .book { min-height: 0; gap: 20px; }
}

