/* Slaapverhalen — nachtthema, zelfde kleuren als de app */
:root {
  --night-1: #1b1e3f;
  --night-2: #2c245a;
  --night-3: #4b2f63;
  --cream: #fdf4e3;
  --cream-2: #faead1;
  --amber: #f2b86a;
  --amber-2: #e89a55;
  --ink: #3a2f4c;
  --ink-soft: #7a6b8f;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(12, 10, 35, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 82% -8%, var(--night-3), transparent 60%),
    radial-gradient(900px 700px at -5% 105%, #3d2a5e, transparent 55%),
    linear-gradient(160deg, var(--night-1), var(--night-2) 60%, var(--night-3));
  background-attachment: fixed;
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 76% 10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 32% 46%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 60% 32%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 46% 74%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.8px 1.8px at 18% 66%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 94% 26%, rgba(255,255,255,.8), transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* header */
header.site {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; padding: 26px 22px 10px;
  display: flex; align-items: center; gap: 12px;
}
header.site img { width: 40px; height: 40px; border-radius: 11px; }
header.site .brand {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 20px; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(120deg, #fff, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
header.site nav a { color: rgba(253,244,227,.75); text-decoration: none; }
header.site nav a:hover { color: var(--amber); }

/* hero */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center;
  padding: 46px 0 30px;
}
.hero h1 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.08; letter-spacing: -.5px;
  background: linear-gradient(120deg, #ffffff, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline {
  margin-top: 16px; font-size: 18px; color: rgba(253,244,227,.86); max-width: 30ch;
}
.hero .cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; color: #33240f; text-decoration: none;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  box-shadow: 0 10px 26px rgba(232,154,85,.35);
}
.btn.ghost {
  background: rgba(255,255,255,.07); color: var(--cream);
  border: 1px solid rgba(255,255,255,.18); box-shadow: none; font-weight: 600;
}
.btn-note { font-size: 13px; color: rgba(253,244,227,.6); }

/* telefoon-mockup */
.phone {
  justify-self: center;
  width: 280px; height: 560px; border-radius: 38px;
  background: #0e0d1d;
  border: 8px solid #26233c;
  box-shadow: 0 30px 70px rgba(8,7,22,.6);
  padding: 12px; overflow: hidden;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, var(--night-1), var(--night-2) 60%, var(--night-3));
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 14px; gap: 6px;
}
.phone .moon {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffbe8, #ffe9a8 55%, #f4c96c);
  box-shadow: 0 0 30px 8px rgba(255,233,168,.28);
}
.phone .ptitle {
  font-family: Georgia, "Iowan Old Style", serif; font-size: 30px; font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phone .psub { font-size: 9px; color: rgba(253,244,227,.75); text-align: center; }
.phone .plabel { font-size: 7px; letter-spacing: 1.4px; color: var(--amber); align-self: flex-start; margin: 8px 0 2px; }
.phone .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.phone .tile {
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
  border-radius: 12px; padding: 6px; height: 100px;
  display: flex; flex-direction: column; gap: 5px;
}
.phone .tile .img {
  height: 58px; border-radius: 9px;
  background: linear-gradient(135deg, #cbb9e6, #f0d7b4);
}
.phone .tile .img.b { background: linear-gradient(135deg, #a9c6e8, #f3dcc0); }
.phone .tile .img.c { background: linear-gradient(135deg, #e4b7c9, #f7e2c4); }
.phone .tile .img.d { background: linear-gradient(135deg, #b7dcc4, #f5e3bd); }
.phone .tile span { font-family: Georgia, serif; font-size: 8px; color: var(--ink); line-height: 1.2; }
.phone .pbtn {
  margin-top: auto; width: 100%; text-align: center;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  color: #33240f; font-weight: 700; font-size: 10px;
  border-radius: 999px; padding: 8px 0;
}

/* secties */
section { position: relative; z-index: 1; padding: 44px 0; }
h2 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 18px; color: var(--cream);
}
.lead { color: rgba(253,244,227,.8); max-width: 62ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.card {
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
  color: var(--ink); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { font-family: Georgia, serif; font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--ink-soft); }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 22px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: rgba(242,184,106,.16); color: var(--amber);
  display: grid; place-items: center; font-weight: 700;
}
.step p { color: rgba(253,244,227,.85); }

.faq { display: grid; gap: 10px; margin-top: 20px; }
details {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 14px 18px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--cream); }
details p { margin-top: 8px; color: rgba(253,244,227,.78); font-size: 15px; }

footer.site {
  position: relative; z-index: 1; max-width: 980px; margin: 40px auto 0;
  padding: 26px 22px 50px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px;
  color: rgba(253,244,227,.6);
}
footer.site a { color: rgba(253,244,227,.8); text-decoration: none; }
footer.site a:hover { color: var(--amber); }
footer.site .right { margin-left: auto; }

/* tekstpagina's (privacy, voorwaarden) */
.doc { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 30px 22px 60px; }
.doc h1 { font-family: Georgia, serif; font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 8px; }
.doc .updated { color: rgba(253,244,227,.55); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc h3 { font-size: 16px; margin: 18px 0 6px; color: var(--amber); }
.doc p, .doc li { color: rgba(253,244,227,.84); font-size: 15.5px; margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--amber); }
.doc .box {
  background: rgba(255,255,255,.05); border-left: 3px solid var(--amber);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 26px; }
  .phone { order: -1; transform: scale(.92); }
  .cards { grid-template-columns: 1fr; }
  header.site nav { gap: 12px; font-size: 13px; }
}
