/* Merkkleuren en lettertypen staan hier bij elkaar,
   zodat de branding later op één plek aangepast kan worden. */
:root {
  --color-bg: #f4ede6;          /* zand */
  --color-surface: #fbf8f5;     /* gebroken wit */
  --color-text: #2a211d;        /* cacao */
  --color-muted: #7d6d64;
  --color-line: #e2d6cc;
  --color-accent: #c98a6b;      /* klei */
  --color-glow-1: #f0b48e;
  --color-glow-2: #e7a3a0;
  --color-dark: #2a211d;
  --color-on-dark: #f4ede6;
  --color-error: #a33a2c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;

  --max-width: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.035em; }
p { margin: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-line) 60%, transparent);
}
.wordmark {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em; /* compenseert de letterspatiëring, zodat het echt gecentreerd staat */
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 112px;
}

/* Zachte warmtegloed: het "product" zonder het te laten zien */
.glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(820px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, var(--color-glow-1) 0%, transparent 55%),
    radial-gradient(circle at 65% 60%, var(--color-glow-2) 0%, transparent 55%);
  filter: blur(70px);
  opacity: 0.55;
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92) rotate(0deg); opacity: 0.45; }
  50%      { transform: translate(-50%, -50%) scale(1.06) rotate(20deg); opacity: 0.65; }
}

.hero-content { position: relative; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1.02;
}

.lead {
  max-width: 34ch;
  margin: 28px auto 0;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: -0.01em;
}

/* Formulier */
.signup {
  width: 100%;
  max-width: 460px;
  margin: 44px auto 0;
}
.signup-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  box-shadow: 0 10px 40px -18px rgba(42, 33, 29, 0.35);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.signup-field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 22%, transparent),
              0 10px 40px -18px rgba(42, 33, 29, 0.35);
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: 0;
}
.signup input::placeholder { color: #a8988e; }

.button {
  flex: 0 0 auto;
  padding: 13px 22px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-on-dark);
  background: var(--color-dark);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.button:hover { opacity: 0.88; }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.5; cursor: default; }

.signup-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--color-muted);
  cursor: pointer;
  text-align: left;
}
.signup-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-dark);
  cursor: pointer;
}
.signup.is-done .signup-check { display: none; }

.signup-message {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.signup-message.is-error { color: var(--color-error); }

/* Na aanmelden: formulier maakt plaats voor een bedankje */
.signup.is-done .signup-field { display: none; }
.signup.is-done .signup-message {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* Privacyregel onderaan het scherm */
.privacy {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  padding: 0 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Tekst schuift rustig in beeld bij het laden */
.reveal { animation: rise 1.1s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Mobiel */
@media (max-width: 720px) {
  .signup-field {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 8px;
  }
  .signup input[type="email"] { text-align: center; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  .reveal { animation: none; }
}
