/* ==========================================================================
   Positive Reality — site.css
   Eén stylesheet voor alle pagina's. Kleuren en maten staan als tokens
   bovenaan, zodat een blog of boekpagina later dezelfde basis gebruikt.
   ========================================================================== */

:root {
  --ground: #5B1FD6;      /* ultraviolet: grond */
  --deep: #24095E;        /* donker violet: tekst op mint, achterkant van het boek */
  --accent: #7CF5C8;      /* mint: accent */
  --white: #FFFFFF;
  --pale: #E2D6FF;        /* rustige tekst op violet */

  --font-display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --rule: 3px solid var(--white);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}



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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--deep);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 24px 0;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-header a { text-decoration: none; }
.here { display: inline-flex; align-items: center; gap: 10px; }
.here__dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  flex: none; position: relative;
}
.here__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); animation: pulse 2.4s var(--ease-out) infinite;
}
.site-header__meta { font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 88px); border-top: var(--rule); }

.hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  /* Schaalt met de breedte van de kolom (cqw); site.js krimpt daarnaast als het toch niet past */
  font-size: clamp(40px, 17cqw, 236px); line-height: 0.86; letter-spacing: -0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.hero { container-type: inline-size; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line--right { text-align: left; } /* P en R recht onder elkaar */
.pr { color: var(--accent); }
.hero__line > span { display: inline-block; animation: rise 0.9s var(--ease-out) both; }
.hero__line--right > span { animation-delay: 0.12s; }

.hero__row {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero__x {
  color: var(--accent);
  width: clamp(64px, 9vw, 140px); height: auto; flex: none;
  animation: fade 0.8s 0.35s both;
  transition: transform 0.6s var(--ease-out);
}
.hero__x:hover { transform: rotate(90deg); }

.payoff {
  flex: 1 1 420px; margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.01em;
  text-align: right; max-width: 18ch; margin-left: auto;
  animation: fade 0.8s 0.25s both;
}
.payoff em { font-style: normal; color: var(--accent); white-space: nowrap; }
.glyph { display: inline-block; min-width: 0.62em; text-align: center; cursor: default; }

.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 3vw, 40px);
  min-height: 48px; padding: 0 20px;
  border: 2px solid var(--white); border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hero__cta:hover { background: var(--white); color: var(--ground); }

/* ---------- Boekband ---------- */
.book-band {
  background: var(--accent); color: var(--deep);
  border-radius: 6px;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px);
  display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: center;
  overflow: hidden;
}
.book-stage {
  flex: 1 1 320px; display: flex; flex-direction: column; align-items: center;
  perspective: 1200px; padding: 20px 0;
}
/* Echt 3D-boek: zes vlakken in een preserve-3d doos. Dikte = --t. */
.book {
  --rx: -16deg; --ry: -42deg; --t: 24cqw;
  position: relative; width: 100%; aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease-out);
  animation: float 6s ease-in-out infinite;
}
.book-wrap { width: clamp(220px, 26vw, 400px); container-type: inline-size; } /* cqw = breedte van het boek */
.book__face, .book__cover { position: absolute; backface-visibility: hidden; }
.book__cover {
  inset: 0;
  transform: translateZ(calc(var(--t) / 2));
  background:
    linear-gradient(90deg, rgba(0,0,0,0.28) 0, rgba(0,0,0,0) 2.2cqw, rgba(255,255,255,0.10) 3cqw, rgba(0,0,0,0.12) 4.2cqw, rgba(0,0,0,0) 6cqw),
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.12) 100%),
    var(--ground);
  color: var(--white);
  padding: 10cqw 9cqw 9cqw 13cqw;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 0 1.2cqw 1.2cqw 0;
}
.book__face--back {
  inset: 0; background: var(--deep);
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
  border-radius: 1.2cqw 0 0 1.2cqw;
}
.book__face--spine {
  top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t);
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, var(--deep) 0%, var(--ground) 50%, var(--deep) 100%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7cqw 0;
}
.book__face--spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 800; font-size: 4.6cqw; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap;
}
.book__face--spine span:last-child { font-family: var(--font-body); font-weight: 700; font-size: 2.6cqw; letter-spacing: 0.14em; color: var(--pale); }
.book__face--spine .book__spine-x { writing-mode: horizontal-tb; transform: none; color: var(--accent); font-size: 8cqw; line-height: 1; }
.book__face--pages {
  top: 1cqw; bottom: 1cqw; right: calc(var(--t) / -2 + 0.6cqw); width: calc(var(--t) - 1.2cqw);
  transform: rotateY(90deg);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--deep) 22%, transparent), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.18)),
    repeating-linear-gradient(90deg, #F7F4EC 0 0.35cqw, #DCD7C9 0.35cqw 0.5cqw);
}
.book__face--top {
  left: 0.6cqw; right: 1cqw; top: calc(var(--t) / -2 + 0.6cqw); height: calc(var(--t) - 1.2cqw);
  transform: rotateX(90deg);
  background:
    linear-gradient(0deg, rgba(0,0,0,0.10), rgba(0,0,0,0) 40%),
    repeating-linear-gradient(0deg, #FBF9F3 0 0.35cqw, #E4E0D4 0.35cqw 0.5cqw);
}
.book__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqw; }
.book__x { color: var(--accent); width: 15cqw; height: auto; flex: none; }
.book__name { font-size: 2.6cqw; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pale); padding-top: 1cqw; }
.book__title {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 13cqw; line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap;
}
.book__title > span { display: table; }
.book__sub {
  display: block; margin-top: 5cqw; max-width: 22ch;
  font-family: var(--font-display); font-weight: 600; font-size: 4.4cqw; line-height: 1.15;
}
.book__sub em { font-style: normal; color: var(--accent); }
.book__badge { display: flex; align-items: baseline; gap: 1.6cqw; font-size: 3cqw; font-weight: 500; text-transform: lowercase; color: var(--pale); }
.book__badge strong {
  font-family: var(--font-display); font-weight: 800; font-size: 6.4cqw; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--accent);
}
.book__sticker {
  position: absolute; right: 5cqw; top: 15cqw;
  width: 40cqw; aspect-ratio: 1; border-radius: 50%; padding: 3cqw;
  background: var(--white); color: var(--ground);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8cqw; text-align: center;
  transform: translateZ(calc(var(--t) / 2 + 1px)) rotate(12deg);
  box-shadow: 0 1.5cqw 4cqw color-mix(in srgb, var(--deep) 35%, transparent);
  overflow: hidden;
}
.book__sticker-small { font-size: 2.4cqw; font-weight: 700; letter-spacing: 0.04em; }
.book__sticker-big {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5cqw; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0;
}
.book__sticker-num { display: block; font-size: 1.8em; line-height: 1; letter-spacing: -0.02em; margin: 0.15em 0; }
.book-shadow {
  width: 74%; height: 30px; margin-top: 48px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--deep) 38%, transparent), transparent);
  animation: shadow 6s ease-in-out infinite;
}

.book-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.book-copy .eyebrow { color: var(--deep); }
.book-copy__head {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 80px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase;
}
.book-copy p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--deep); max-width: 36ch; }

/* ---------- Intro + aanmelden ---------- */
.join {
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 7vw, 112px) 0;
}
.join__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.join__text p { margin: 0; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; }
.nots {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; text-transform: uppercase;
}
.nots span { display: block; }
.nots .yes { color: var(--accent); }

.guide { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.guide img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.guide p { margin: 0; font-size: 15px; line-height: 1.4; }
.guide .muted { color: var(--pale); }

/* Formulier */
.signup {
  flex: 1 1 440px; align-self: flex-start;
  background: var(--white); color: var(--deep);
  padding: clamp(24px, 3vw, 40px); border-radius: 4px;
  scroll-margin-top: 24px;
}
.signup__head {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; color: var(--ground);
}
.signup form { display: flex; flex-direction: column; gap: 16px; }
.field-label { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.signup input[type="email"] {
  width: 100%; min-height: 58px; padding: 0 18px;
  border: 3px solid var(--ground); border-radius: 4px; background: var(--white);
  font: inherit; font-size: 20px; color: var(--deep);
}
.signup input[type="email"]::placeholder { color: color-mix(in srgb, var(--deep) 50%, white); }
.signup input[type="email"][aria-invalid="true"] { border-color: #C2002F; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ground); cursor: pointer; }
.consent a { color: var(--ground); }
.consent a:hover { color: var(--deep); }
.btn {
  min-height: 62px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ground); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: background 0.2s;
}
.btn:hover { background: var(--deep); }
.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.fine { margin: 0; font-size: 14px; }
.form-error { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 700; color: #C2002F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { display: none; }
.signup.is-done form { display: none; }
.signup.is-done .success { display: block; animation: rise 0.6s var(--ease-out) both; }
.success__big {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4vw, 56px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ground);
}
.success p { margin: 16px 0 0; font-size: 18px; }

/* ---------- Quote ---------- */
.quote { padding: clamp(40px, 5vw, 72px) 0; border-top: var(--rule); }
.quote p {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 80px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
}
.quote .yes { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 20px 0 32px; border-top: var(--rule);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Eenvoudige tekstpagina's (privacy, bevestigd, 404) ---------- */
.page { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 112px); border-top: var(--rule); }
.page h1 {
  margin: 0 0 32px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 9vw, 140px); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase;
}
.page h1 .yes { color: var(--accent); }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--pale); }
.prose strong { color: var(--white); }
.prose ul { padding-left: 1.2em; }
.lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; margin: 0 0 28px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Animaties ---------- */
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.9); opacity: 0.7; } }

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

/* ---------- Mobiel ---------- */
@media (max-width: 640px) {
  .payoff { text-align: left; margin-left: 0; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .payoff { flex: none; }
  .hero__x { align-self: flex-end; width: 56px; margin-top: -8px; }
  .book { --ry: -34deg; }
  .book-band { padding-left: 16px; padding-right: 16px; }
  .book-stage { padding-right: 8%; }
  .site-footer { flex-direction: column; }
}
