﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ks: #8b2e1a;
  --ka: #b04428;
  --kb: #e8c4b2;
  --km: #fbf5f2;
  --gr: #1b7a4b;
  --gf: #edfaf3;
  --zw: #2c2c2a;
  --mi: #888780;
  --li: #b4b2a9;
  --ra: #d3d1c7;
  /* EÃ©n tijdlijn voor content: logo â†’ titel â†’ sub â†’ countdown â†’ (optioneel bericht) â†’ formulier â†’ notitie */
  --reveal-base: 0.06s;
  --reveal-step: 0.11s;
  --reveal-duration: 0.68s;
}

html, body {
  height: 100%;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--km);
  color: var(--zw);
  overflow-x: hidden;
  overflow-y: auto;
}

.brand-shell {
  max-width: none;
  padding: 0;
}

.bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}

.bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, rgba(139, 46, 26, .18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(232, 196, 178, .3) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(193, 105, 58, .12) 0%, transparent 50%),
    var(--km);
}

.bg-bars {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 18px;
  opacity: 0.06;
}

.bg-bar {
  width: 48px;
  border-radius: 6px 6px 0 0;
  background: var(--ks);
  animation: barRise 3.2s ease-in-out infinite alternate;
}

.bg-bar:nth-child(1) { height: 180px; animation-delay: 0s; }
.bg-bar:nth-child(2) { height: 280px; animation-delay: .12s; }
.bg-bar:nth-child(3) { height: 400px; animation-delay: .24s; }
.bg-bar:nth-child(4) { height: 280px; animation-delay: .36s; }
.bg-bar:nth-child(5) { height: 180px; animation-delay: .48s; }

@keyframes barRise {
  from { transform: scaleY(.85); opacity: .8; }
  to   { transform: scaleY(1.05); opacity: 1; }
}

.chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--kb);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  color: var(--mi);
  box-shadow: 0 4px 16px rgba(139, 46, 26, .08);
  white-space: nowrap;
  animation: chipFloat linear infinite;
  opacity: 0;
}

.chip span { color: var(--ks); font-weight: 600; }
.chip:nth-child(2) { top: 12%; left: 6%; animation-duration: 14s; animation-delay: 0.06s; }
.chip:nth-child(3) { top: 22%; right: 7%; animation-duration: 17s; animation-delay: 0.17s; }
.chip:nth-child(4) { top: 62%; left: 4%; animation-duration: 16s; animation-delay: 0.28s; }
.chip:nth-child(5) { top: 72%; right: 5%; animation-duration: 19s; animation-delay: 0.39s; }
.chip:nth-child(6) { top: 40%; left: 3%; animation-duration: 15s; animation-delay: 0.50s; }
.chip:nth-child(7) { top: 50%; right: 4%; animation-duration: 18s; animation-delay: 0.61s; }

@keyframes chipFloat {
  0%   { opacity: 0; transform: translateY(12px); }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px); }
}

.page {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px;
  text-align: center;
  --form-reveal-index: 4;
}

.page:has(.success-msg.is-visible),
.page:has(.error-msg.is-visible) {
  --form-reveal-index: 5;
}

.logo-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 0 * var(--reveal-step));
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ks);
  letter-spacing: -.02em;
}

.headline {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  color: var(--zw);
  letter-spacing: -.035em;
  line-height: 1.05;
  max-width: 700px;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 1 * var(--reveal-step));
}

.headline em { font-style: normal; color: var(--ks); }
.headline-top {
  display: inline-block;
  white-space: nowrap;
  font-size: .85em;
}

.sub {
  font-size: .95rem;
  color: var(--mi);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 22px;
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 2 * var(--reveal-step));
}

.countdown-wrap {
  display: flex; align-items: flex-end; gap: 6px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 3 * var(--reveal-step));
}

.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.countdown-num {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--zw);
  letter-spacing: -.04em;
  line-height: 1;
  min-width: 72px;
  background: #fff;
  border: 1px solid var(--kb);
  border-radius: 12px;
  padding: 11px 8px 9px;
  box-shadow: 0 4px 20px rgba(139, 46, 26, .07);
  font-variant-numeric: tabular-nums;
}

.countdown-num.bump { animation: numBump .25s ease; }
@keyframes numBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.07) translateY(-3px); }
  100% { transform: scale(1); }
}

.countdown-label {
  font-size: .62rem;
  font-weight: 500;
  color: var(--li);
  text-transform: uppercase;
  letter-spacing: .09em;
}

.countdown-sep {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--kb);
  line-height: 1;
  margin-bottom: 18px;
  padding: 0 2px;
}

.email-form {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--ra);
  border-radius: 50px;
  padding: 5px 5px 5px 16px;
  max-width: 390px; width: 100%;
  box-shadow: 0 4px 24px rgba(139, 46, 26, .07);
  margin: 0 auto 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + var(--form-reveal-index) * var(--reveal-step));
}

.email-form:focus-within {
  border-color: var(--ks);
  box-shadow: 0 4px 24px rgba(139, 46, 26, .16);
}

.email-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .84rem; color: var(--zw);
  min-width: 0;
}
.email-form input[type="hidden"] { display: none; }

.email-form input::placeholder { color: var(--li); }

.email-form button {
  background: var(--ks); color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .8rem; font-weight: 600;
  padding: 9px 16px; border-radius: 50px;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}

.email-form button:hover { background: var(--ka); transform: translateY(-1px); }

.form-note {
  font-size: .7rem;
  color: var(--ks);
  opacity: 0;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + (var(--form-reveal-index) + 1) * var(--reveal-step));
}

.form-errors {
  font-size: .82rem;
  color: var(--ks);
  min-height: 18px;
  margin-bottom: 10px;
}

.success-msg {
  display: none;
  align-items: center; gap: 10px;
  background: var(--gf);
  border: 1px solid rgba(27, 122, 75, .2);
  border-radius: 50px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gr);
  max-width: 390px;
  margin: 0 auto 8px;
}

.success-msg.is-visible {
  display: flex;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 4 * var(--reveal-step));
}

.error-msg {
  display: none;
  align-items: center; gap: 10px;
  background: #fdecec;
  border: 1px solid rgba(176, 68, 40, .25);
  border-radius: 50px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: #b04428;
  max-width: 390px;
  margin: 0 auto 8px;
}

.error-msg.is-visible {
  display: flex;
  animation: fadeUp var(--reveal-duration) ease forwards;
  animation-delay: calc(var(--reveal-base) + 4 * var(--reveal-step));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .headline,
  .sub,
  .countdown-wrap,
  .email-form,
  .form-note,
  .success-msg.is-visible,
  .error-msg.is-visible {
    animation: none;
    opacity: 1;
  }
  .bg-bar { animation: none; transform: scaleY(1); opacity: 1; }
  .chip {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

@media (max-width: 600px) {
  .page { padding: 18px 10px; }
  .logo-wrap { margin-bottom: 18px; }
  .headline { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .sub { font-size: .88rem; margin: 0 auto 16px; }
  .countdown-wrap { margin-bottom: 16px; gap: 4px; }
  .countdown-num { min-width: 52px; font-size: 1.6rem; padding: 8px 6px 7px; }
  .countdown-sep { font-size: 1.4rem; margin-bottom: 14px; }
  .email-form { max-width: 320px; padding-left: 12px; }
  .email-form button { padding: 8px 12px; font-size: .74rem; }
  .chip { display: none; }
}

