/* AnyMind e-book landingspagina
   Nagebouwd uit het Figma Make-ontwerp; zelfde maten, kleuren en gedrag. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --blauw: #16478D;
  --roze: #FFCCD6;
  --zand: #F0ECE2;
  --zand-donker: #EDE8DC;
  --wit: #FBFAF8;
  --kop-font: "Segoe UI", sans-serif;
  --tekst-font: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--tekst-font);
  color: var(--blauw);
  background: var(--roze);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
[hidden] { display: none !important; }

/* Pagina */
.pagina {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background-image: url("/assets/achtergrond.jpg");
  background-size: cover;
  background-position: center;
}
.wrapper { width: 100%; max-width: 1100px; position: relative; z-index: 10; }

.sparkle {
  display: none;
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  opacity: .2;
  pointer-events: none;
  fill: none;
  stroke: var(--roze);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kaart */
.kaart {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--zand);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}
.blob-roze { top: -5rem; right: -5rem; background: var(--roze); opacity: .3; }
.blob-blauw { bottom: -5rem; left: -5rem; background: var(--blauw); opacity: .2; }

/* Linkerkolom */
.beeld {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blauw);
}
.beeld-glans {
  position: absolute;
  inset: 0;
  opacity: .1;
  background: radial-gradient(circle at center, #fff, transparent);
}
.beeld img,
.beeld iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.beeld img { object-fit: cover; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.beeld iframe { z-index: 20; border: 0; background: #fff; }

/* Rechterkolom */
.inhoud {
  position: relative;
  z-index: 10;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.kop { margin-bottom: 1rem; }
.logo { height: 1.75rem; width: auto; margin-bottom: .75rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  margin-bottom: .75rem;
  border-radius: 9999px;
  background: var(--roze);
}
.badge span {
  font-weight: 500;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

h1 {
  font-family: var(--kop-font);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.auteur {
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .7;
  margin-bottom: .5rem;
}
.intro {
  margin-top: .5rem;
  font-size: .92rem;
  line-height: 1.55;
  opacity: .75;
}

/* Iconen (lucide) */
.icoon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icoon-3 { width: .75rem; height: .75rem; }
.icoon-4 { width: 1rem; height: 1rem; }
.icoon-5 { width: 1.25rem; height: 1.25rem; }

/* Tabs */
.tabs {
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--wit);
}
.tab-knoppen {
  display: flex;
  gap: .25rem;
  padding: .375rem;
  background: var(--zand-donker);
  border-radius: 14px 14px 0 0;
}
.tab-knoppen button {
  flex: 1;
  padding: .5rem 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: .01em;
  font-weight: 400;
  color: rgba(22, 71, 141, .4);
  background: transparent;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.tab-knoppen button[aria-selected="true"] {
  font-weight: 600;
  color: var(--blauw);
  background: var(--wit);
  box-shadow: 0 2px 8px rgba(22, 71, 141, .1);
}
.tab-knoppen button:focus-visible { outline: 2px solid var(--blauw); outline-offset: 1px; }
.tab-panelen { padding: 1rem; min-height: 140px; }
.tab-panelen li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  line-height: 1.5;
}
.tab-panelen li + li { margin-top: .75rem; }
.vink { width: 1rem; height: 1rem; margin-top: .125rem; opacity: .5; }

/* Formulier */
.velden { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .7;
}
input {
  width: 100%;
  padding: .75rem 1rem;
  border: 0;
  outline: none;
  border-radius: .75rem;
  background: var(--wit);
  color: var(--blauw);
  font-size: .95rem;
  transition: box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
input::placeholder { color: rgba(22, 71, 141, .45); }
input:focus { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }

.knop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .75rem;
  background: var(--blauw);
  color: var(--wit);
  font-weight: 500;
  cursor: pointer;
}
.knop-verstuur {
  gap: .75rem;
  padding: 1rem;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(22, 71, 141, .3);
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.knop-verstuur:hover:not(:disabled) { transform: scale(1.02); }
.knop-verstuur:disabled { opacity: .5; cursor: not-allowed; }
.knop:focus-visible { outline: 2px solid var(--blauw); outline-offset: 3px; }

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: var(--wit);
  border-radius: 9999px;
  animation: draai 1s linear infinite;
}
@keyframes draai { to { transform: rotate(360deg); } }

.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  margin-top: 1rem;
}
.privacy .icoon { opacity: .25; }
.privacy p { font-size: .68rem; line-height: 1.5; opacity: .3; text-align: center; }

/* Na aanmelden */
.gelukt {
  text-align: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gelukt h2 {
  font-family: var(--kop-font);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: .25rem;
}
.gelukt-tekst { font-size: .88rem; line-height: 1.5; opacity: .55; margin-bottom: 1.25rem; }
.knop-download {
  gap: .5rem;
  padding: 1rem 1.5rem;
  font-size: .95rem;
  animation: puls 1.8s ease-in-out infinite;
}
.knop-download[aria-busy="true"] { animation: none; opacity: .75; cursor: default; }
@keyframes puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.gelukt-kopie { margin-top: 1rem; font-size: .75rem; line-height: 1.5; opacity: .4; overflow-wrap: anywhere; }

/* Meldingen (zoals sonner in het origineel) */
.toaster {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(356px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(22, 71, 141, .15));
  background: var(--wit);
  color: var(--blauw);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  pointer-events: auto;
  animation: toast-in .35s cubic-bezier(.21, 1.02, .73, 1);
}
.toast.weg { opacity: 0; transform: translateY(-8px); transition: all .3s ease; }
.toast .icoon { width: 16px; height: 16px; margin-top: 1px; }
.toast-titel { font-weight: 500; }
.toast-uitleg { opacity: .8; margin-top: 2px; }
.toast-fout .icoon { color: #d4183d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* Vanaf tablet (Tailwind md = 768px) */
@media (min-width: 768px) {
  .pagina { align-items: center; padding: 1.5rem; }
  .sparkle { display: block; }
  .kaart { flex-direction: row; }
  .beeld { width: 50%; min-height: 0; }
  .beeld:hover img { transform: scale(1.05); }
  .inhoud { width: 50%; padding: 2rem; justify-content: center; }
  .velden { grid-template-columns: 1fr 1fr; }
  .gelukt { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
