/* ============================================================
   HIKAYAS — Binnenkort (coming soon / e-mailcapture)
   Mobile-first. Tokens uit de HIKAYAS design system.
   Warm cream doek, groen als merk-hue, goud als accent.
   Breakpoints: 520 (formulier inline) · 680 (pijlers 3-koloms) · 1024 (caps).
   ============================================================ */

:root {
  /* Merkpalet (design system — tokens/colors.css) */
  --cream: #FFF9F3;
  --sand: #EDE6DC;
  --sand-deep: #E0D9CF;
  --dark: #3D3530;          /* koppen, body — nooit zwart */
  --mid: #6B5D57;           /* secundaire tekst */
  --hint: #7E6C61;          /* fijne hulptekst (AA op cream) */
  --placeholder: #9E8C85;
  --green: #707B56;         /* merk-hue */
  --olive: #A8C49C;         /* zacht accent, focusring, succes */
  --brown: #8C6C4F;
  --gold: #C9A96E;          /* warm goud accent — CTA-vlak (donkere tekst = 5.36:1) */
  --gold-deep: #BE9B57;     /* hover-verdieping (blijft AA met donkere tekst) */
  --gold-ink: #AD8540;      /* dieper goud voor het kop-accent op cream (3.24:1, groot) */
  --danger: #B05C4A;

  /* Radii (brandbook) */
  --r-pill: 999px;
  --r-md: 14px;

  /* Spacing-schaal (8-basis) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 88px;

  /* Type */
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 220ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--cream);
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ambient: golflijnen (alleen boven) + sterretjes ---------- */
.bg-waves {
  position: fixed;
  inset: 0 0 auto 0;
  height: 44vh;
  background: url("assets/pattern-waves.png") repeat top center / 560px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 24%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 24%, transparent 100%);
}
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.sparkles span {
  position: absolute;
  color: var(--olive);
  font-size: var(--s, 12px);
  opacity: 0;
  will-change: transform, opacity;
  animation: float var(--dur-star, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.sparkles span.green { color: var(--green); }

/* ---------- Layout: content gecentreerd, footer onderaan gepind ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s5), 8vh, var(--s7));
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) 24px clamp(24px, 3vh, 40px);
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.wordmark {
  height: clamp(28px, 7vw, 42px);
  width: auto;
  margin-bottom: var(--s3);
}
.title {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--dark);
  font-size: clamp(38px, 11vw, 66px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}
.title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-ink);
}
.lede {
  max-width: 34em;
  margin: var(--s3) 0 0;
  font-size: clamp(16px, 4vw, 17px);
  line-height: 1.65;
  color: var(--mid);
}
.lede p { margin: 0; }
.lede p + p { margin-top: var(--s2); }

/* ---------- Formulier (mobile: gestapeld · ≥520px: inline) ---------- */
.signup { width: 100%; max-width: 480px; margin: clamp(28px, 4vh, 40px) 0 0; }
.signup-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--sand-deep);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 16px; /* voorkomt zoom op iOS */
  outline: none;
  transition: box-shadow var(--dur) var(--ease);
}
.signup-input::placeholder { color: var(--placeholder); }
.signup-input:focus-visible {
  box-shadow: inset 0 0 0 1px var(--green), 0 0 0 3px rgba(168, 196, 156, 0.45);
}

/* Primaire actie: warm goud, donkere tekst (5.36:1). Hover = zachte verdieping + lift. */
.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: var(--gold);
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.30);
  transition: background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201, 169, 110, 0.42); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(201, 169, 110, 0.30); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(112, 123, 86, 0.5); }
.btn:disabled { background: var(--sand); color: var(--placeholder); cursor: default; transform: none; box-shadow: none; }
.btn-star { font-size: 13px; }

.hint {
  margin: var(--s2) 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hint);
  transition: color var(--dur) var(--ease);
}
.hint.error { color: var(--danger); }

/* Succes-status */
.success {
  width: 100%;
  max-width: 480px;
  margin: clamp(28px, 4vh, 40px) 0 0;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: rgba(168, 196, 156, 0.14);
  box-shadow: inset 0 0 0 1px rgba(168, 196, 156, 0.5);
  animation: pop 0.5s var(--ease) both;
}
.success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: rgba(112, 123, 86, 0.12);
  color: var(--green); font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(112, 123, 86, 0.4);
}
.success-title { margin: 12px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 23px; color: var(--dark); }
.success-sub { margin: 5px 0 0; font-size: 14px; color: var(--mid); }

/* ---------- Pijlers (icoon + label) — verborgen op mobiel, ≥680px 3-koloms ---------- */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: none; /* op telefoon weggelaten onder het formulier */
}
.pillar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
}
.pillar-icon { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.pillar span {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--dark);
}

/* ---------- Footer (onderaan de pagina) ---------- */
.foot {
  flex-shrink: 0;
  padding: var(--s4) 24px clamp(20px, 3vh, 32px);
  text-align: center;
  color: var(--hint);
  font-size: 12.5px;
}
.foot p { margin: 0; }

/* ---------- Reveal bij laden ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ---------- Keyframes ---------- */
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float {
  0%   { opacity: 0; transform: translateY(12px) scale(0.7); }
  15%  { opacity: var(--peak, 0.5); }
  85%  { opacity: var(--peak, 0.5); }
  100% { opacity: 0; transform: translateY(-46px) scale(1.05); }
}

/* ============================================================
   ≥ 520px — formulier wordt inline (input + knop naast elkaar)
   ============================================================ */
@media (min-width: 520px) {
  .signup-row { flex-direction: row; }
  .signup-input { flex: 1 1 auto; }
}

/* ============================================================
   ≥ 680px — pijlers naast elkaar, ruimere content
   ============================================================ */
@media (min-width: 680px) {
  .content { max-width: 780px; }
  .pillars {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: clamp(var(--s4), 5vw, var(--s6));
  }
  .pillar {
    flex-direction: column;
    gap: var(--s2);
    flex: 1 1 0;
  }
  .pillar-icon { width: clamp(40px, 4.4vw, 48px); height: clamp(40px, 4.4vw, 48px); }
  .pillar span { font-size: clamp(19px, 2.1vw, 21px); }
}

/* ============================================================
   ≥ 1024px — nette caps op grote schermen
   ============================================================ */
@media (min-width: 1024px) {
  .content { max-width: 820px; gap: clamp(var(--s6), 9vh, var(--s7)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sparkles { display: none; }
}
