/* Stijl volgt het Bieb-platform (resources/css/app.css in het Laravel-project):
   Fraunces + Nunito, inkt/papier/blad/koraal/zon, ronde knoppen en kaarten. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17322b;
  --ink-muted: #4f6660;
  --paper: #fffdf7;
  --cream: #f7f1e5;
  --leaf: #287a65;
  --leaf-dark: #165745;
  --coral: #f16f5f;
  --sun: #f4c857;
  --sky: #9dd9de;
  --lilac: #c7b9e9;
  --line: rgba(23, 50, 43, 0.08);
  --field-border: #7d8f89;
  --placeholder: #63746e;
  --success-bg: #e6f2ee;
  --error: #b3261e;
  --error-bg: #ffeceb;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 1.5rem;
  --shadow-card: 0 16px 45px rgba(23, 50, 43, 0.09);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

a {
  color: var(--leaf-dark);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--sun);
}

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

.hero {
  padding-bottom: 1.5rem;
}

.book-icon {
  display: block;
  width: 52px;
  height: auto;
  margin-bottom: 1rem;
  transform: rotate(-5deg);
  transform-origin: 50% 80%;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.eyebrow .dot {
  color: var(--coral);
  margin: 0 0.15em;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  font-size: clamp(1.9rem, 7.4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h1 mark {
  color: inherit;
  background: linear-gradient(transparent 60%, rgba(244, 200, 87, 0.55) 60%, rgba(244, 200, 87, 0.55) 92%, transparent 92%);
  padding: 0 0.06em;
}

.lead {
  margin: 0;
}

/* ---------- Aanmelden ---------- */

.signup {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem 1.25rem;
  scroll-margin-top: 1.5rem;
  overflow: hidden;
}

.signup::before {
  /* Kleurstrook in de platformkleuren als speels detail. */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--coral) 0 25%, var(--sun) 25% 50%, var(--sky) 50% 75%, var(--lilac) 75% 100%);
}

.signup-intro {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.0625rem; /* ≥16px voorkomt inzoomen op iOS */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 1rem;
}

input[type="email"]::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

input[type="email"]:focus-visible {
  border-color: var(--leaf);
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px rgba(40, 122, 101, 0.15);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

button,
.button-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

button {
  color: #fff;
  background: var(--leaf);
  border: 0;
}

button:hover {
  background: var(--leaf-dark);
}

button:active {
  transform: translateY(1px);
}

button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.form-status.is-pending {
  color: var(--ink-muted);
}

.form-status.is-error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 1rem;
  padding: 0.65rem 0.9rem;
}

.form-status.is-success {
  color: var(--leaf-dark);
  background: var(--success-bg);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.signup-form.is-done .field {
  display: none;
}

.signup-form.is-done .form-status {
  margin-top: 0;
}

/* Honeypot: onzichtbaar voor mensen, wel aanwezig voor bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- In het kort ---------- */

.facts ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.facts .chip {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--ink);
}

.facts li:nth-child(1) .chip { background: rgba(244, 200, 87, 0.45); }
.facts li:nth-child(2) .chip { background: rgba(157, 217, 222, 0.55); }
.facts li:nth-child(3) .chip { background: rgba(241, 111, 95, 0.25); }

/* ---------- Over mij ---------- */

.about {
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-card);
}

.about h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.about p {
  margin: 0 0 1rem;
}

.button-soft {
  margin-top: 0.25rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(23, 50, 43, 0.15);
}

.button-soft:hover {
  background: rgba(244, 200, 87, 0.4);
}

/* ---------- Privacy ---------- */

.privacy {
  margin-top: 2.5rem;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.privacy h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.privacy ul {
  margin: 0;
  padding-left: 1.1rem;
}

.privacy li {
  margin-bottom: 0.6rem;
}

.todo {
  color: var(--error);
}

/* ---------- Voet ---------- */

.site-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer strong {
  color: #fff;
  font-weight: 900;
}

/* ---------- Bevestigingspagina zonder JavaScript ---------- */

.message-page {
  padding-top: 4rem;
}

/* ---------- Grotere schermen ---------- */

@media (min-width: 40rem) {
  main {
    padding: 4rem 1.5rem 3rem;
  }

  .book-icon {
    width: 64px;
  }

  .lead {
    font-size: 1.125rem;
  }

  .signup {
    padding: 1.9rem 1.75rem 1.5rem;
  }

  .field-row {
    flex-direction: row;
  }

  .field-row input {
    flex: 1;
  }

  .field-row button {
    flex: none;
  }

  .about {
    padding: 2rem 2rem 1.75rem;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .hero:hover .book-icon {
    transform: rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
