/* ============================================================
   Nieuwjaarsmail 2027 — "Middernacht"
   nachtblauw · champagnegoud · roze confetti
   ============================================================ */
:root {
  --night: #0e1530;
  --night-2: #17214a;
  --night-3: #222e63;
  --gold: #f1c86b;
  --gold-2: #ffdf9a;
  --pink: #ff8db3;
  --mint: #7fe0c8;
  --sky: #8fb4ff;
  --cream: #fff7e8;
  --ink: #141a33;
  --muted: #a9b1d6;
  --line: rgba(255, 247, 232, .12);
  --radius: 22px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  color: var(--cream); background: var(--night);
  background-image:
    radial-gradient(1200px 600px at 110% -10%, rgba(143,180,255,.18), transparent 60%),
    radial-gradient(900px 500px at -20% 30%, rgba(255,141,179,.12), transparent 60%),
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(241,200,107,.6), transparent 60%),
    radial-gradient(1px 1px at 60px 200px, rgba(255,255,255,.35), transparent 60%);
  background-size: auto, auto, 240px 240px, 240px 240px, 240px 240px, 240px 240px;
  background-attachment: fixed;
}
[hidden] { display: none !important; }
a { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ---------- topbar & menu ---------- */
.demo-banner { background: var(--pink); color: var(--ink); text-align: center; font-size: .85rem; padding: .45rem 1rem; font-weight: 500; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem;
  background: rgba(14, 21, 48, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); z-index: 2; }
.logo-mark {
  font: 700 .72rem var(--sans); letter-spacing: .08em; color: var(--ink);
  background: var(--gold); border-radius: 8px; padding: .3rem .4rem; transform: rotate(-6deg);
}
.logo-txt { font-family: var(--serif); font-size: 1.2rem; }
.logo-txt em { color: var(--pink); font-style: normal; }
.top-actions { display: flex; align-items: center; gap: .5rem; z-index: 2; }
.pill {
  background: transparent; color: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .7rem; font: 600 .78rem var(--sans); cursor: pointer;
}
.burger { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); cursor: pointer; display: grid; place-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1; padding: 6rem 1.5rem 2rem;
  background: var(--night); display: flex; flex-direction: column; gap: .2rem;
  opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .22s, transform .22s;
}
.menu.open { opacity: 1; pointer-events: auto; transform: none; }
.menu a {
  display: flex; align-items: baseline; gap: 1rem; text-decoration: none; color: var(--cream);
  font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.25;
  padding: .35rem 0; border-bottom: 1px solid var(--line);
}
.menu a.active { color: var(--gold); }
.menu a:hover { color: var(--pink); }
.menu-num { font: 600 .8rem var(--sans); color: var(--muted); min-width: 1.6rem; }

@media (min-width: 900px) {
  .burger { display: none; }
  .menu {
    position: static; flex-direction: row; opacity: 1; pointer-events: auto; transform: none;
    background: none; padding: 0; gap: .2rem; margin-left: auto; margin-right: 1rem;
  }
  .menu a { font: 500 .92rem var(--sans); border: 0; padding: .4rem .8rem; border-radius: 999px; }
  .menu a.active { background: rgba(241,200,107,.14); }
  .menu-num { display: none; }
  .topbar { justify-content: flex-start; }
  .top-actions { order: 3; }
}

/* ---------- layout ---------- */
main { max-width: 820px; margin: 0 auto; padding: 1.2rem 1.1rem 6rem; }
.kicker { font: 700 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .4rem; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.02; margin: 0 0 .6rem; }
.h1 em { font-style: italic; color: var(--pink); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0 0 .5rem; }
.lead { font-size: 1.1rem; color: #dfe3f7; max-width: 36rem; }
.small { font-size: .88rem; color: var(--muted); }
.hand { font-family: var(--hand); font-size: 1.6rem; color: var(--gold-2); line-height: 1; }
.page-head { padding: 1.4rem 0 .6rem; }

/* ---------- video (voorpagina, direct bovenaan) ---------- */
.video-hero { margin: .4rem -1.1rem 0; padding: 0 1.1rem; }
.video-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #070b1d;
  aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px var(--line);
}
.video-wrap.portrait { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2; pointer-events: none;
  background: var(--pink); color: var(--ink); font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.video-empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .4rem; padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,141,179,.35), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(143,180,255,.35), transparent 40%),
    radial-gradient(circle at 60% 20%, rgba(241,200,107,.3), transparent 30%), #0b1230;
}
.video-empty .play {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto .4rem; background: var(--gold);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(241,200,107,.15);
}
.video-empty .play::after { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

/* ---------- hero tekst ---------- */
.hero { padding: 1.6rem 0 .5rem; position: relative; }
.hero .h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
.edition-tag {
  display: inline-flex; gap: .5rem; align-items: center; margin-bottom: .8rem;
  border: 1px dashed rgba(241,200,107,.6); color: var(--gold); border-radius: 999px;
  padding: .3rem .8rem; font: 600 .78rem var(--sans); letter-spacing: .06em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.cd { background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: .45rem .75rem; text-align: center; min-width: 64px; }
.cd b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--gold); line-height: 1.1; }
.cd span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cd-cap { font-size: .85rem; color: var(--muted); margin-left: .3rem; }

/* ---------- tegels naar de pagina's ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2rem 0; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  min-height: 150px; padding: 1.1rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  overflow: hidden; transition: transform .15s ease;
}
.tile:hover { transform: translateY(-3px) rotate(-.4deg); }
.tile-num { font: 700 .75rem var(--sans); letter-spacing: .12em; opacity: .7; }
.tile-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.05; }
.tile-sub { font-size: .82rem; opacity: .8; margin-top: .3rem; display: block; font-family: var(--sans); }
.tile::after { content: "↗"; position: absolute; right: 1rem; top: .8rem; font-size: 1.2rem; }
.tile.t-gold { background: var(--gold); }
.tile.t-pink { background: var(--pink); }
.tile.t-mint { background: var(--mint); }
.tile.t-sky { background: var(--sky); }
.tile.t-cream { background: var(--cream); }
.tile.wide { grid-column: span 2; min-height: 120px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile.wide { grid-column: span 1; } }

/* ---------- kaarten ---------- */
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin: 1rem 0; }
.card.light { background: var(--cream); color: var(--ink); border: 0; }
.card.light .small { color: #5b6180; }
.card.gold { background: var(--gold); color: var(--ink); border: 0; }
.card.gold .small { color: #4b4021; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.2rem 0; }
.fact { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: .9rem .6rem; text-align: center; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--pink); line-height: 1.1; }
.fact span { font-size: .78rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chips span { border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; padding: .2rem .65rem; color: #dfe3f7; }

/* ---------- formulieren ---------- */
.form-card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 1.3rem; margin: 1rem 0; }
.form-card .h2 { color: var(--ink); }
.form-card .small { color: #5b6180; }
.form-card a { color: #b4366b; }
.step { display: inline-block; font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b4366b; margin-bottom: .2rem; }
label { display: block; margin: .9rem 0; font-weight: 500; font-size: .97rem; }
label > small { display: block; font-weight: 400; color: #5b6180; font-size: .84rem; }
input, textarea, select {
  display: block; width: 100%; margin-top: .35rem;
  font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #e4dccb; border-radius: 14px; padding: .7rem .85rem;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,141,179,.35); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--ink); }
.options { display: grid; gap: .45rem; margin-top: .4rem; }
.opt { display: flex !important; align-items: center; gap: .6rem; margin: 0 !important; cursor: pointer; font-weight: 500;
  background: #fff; border: 1.5px solid #e4dccb; border-radius: 14px; padding: .65rem .85rem; }
.opt input { width: auto; margin: 0; accent-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: #fff1d2; }
.form-error { background: #ffe0ea; color: #8a1f47; border-radius: 12px; padding: .65rem .9rem; font-size: .92rem; }
.form-error a { color: #8a1f47; font-weight: 600; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: #fff; border-radius: 14px; padding: .7rem .9rem; border: 1.5px dashed #e4dccb; }
.who-dot { width: 10px; height: 10px; border-radius: 50%; background: #2bb673; }
.linklike { background: none; border: 0; color: #b4366b; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; margin-left: auto; }
details.more summary { cursor: pointer; font-weight: 600; margin-top: .6rem; }

/* ---------- voorspellingen-lijst ---------- */
.pred-list { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .45rem; }
.pred-list li { display: flex; gap: .6rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: .6rem .8rem; border: 1.5px solid #e4dccb; }
.pred-list .n { font-family: var(--serif); color: #b4366b; min-width: 1.4rem; }
.pred-list .txt { flex: 1; }
.pred-list button { background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: #9aa; line-height: 1; }
.add-row { display: flex; gap: .5rem; }
.add-row input { margin: 0; }
.idea-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.idea-chips button { background: #fff1d2; color: var(--ink); border: 0; border-radius: 999px; padding: .3rem .7rem; font: 500 .8rem var(--sans); cursor: pointer; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer; text-decoration: none; font: 600 1rem var(--sans);
  padding: .85rem 1.4rem; border-radius: 999px; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.btn-wide { width: 100%; margin-top: 1rem; }

/* ---------- succes ---------- */
.done { text-align: center; }
.done .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: .2rem 0 .6rem; }
.confetti-burst { font-size: 2.4rem; }
.linkbox { display: flex; gap: .5rem; margin: 1rem 0; }
.linkbox input { margin: 0; font-size: .88rem; }

/* ---------- archief ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; margin-top: 1.4rem; align-items: start; }
.issue {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  aspect-ratio: 3 / 4; border-radius: 6px 16px 16px 6px; padding: 1rem .9rem; overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 14px 30px -14px rgba(0,0,0,.7);
  transition: transform .15s ease;
}
.issue:nth-child(5n+1) { background: var(--gold); }
.issue:nth-child(5n+2) { background: var(--pink); }
.issue:nth-child(5n+3) { background: var(--mint); }
.issue:nth-child(5n+4) { background: var(--sky); }
.issue:nth-child(5n+5) { background: var(--cream); }
a.issue:hover { transform: translateY(-4px) rotate(-1deg); }
.issue-ed { font: 700 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.issue-year { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin-top: .3rem; }
.issue-desc { font-size: .78rem; margin: .5rem 0 0; opacity: .85; }
.issue-cta { position: absolute; left: .9rem; bottom: .8rem; font: 700 .78rem var(--sans); }
.issue.soon { opacity: .55; }

/* ---------- deelknop + deelvenster ---------- */
.share-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--pink); color: var(--ink); border: 0; border-radius: 999px;
  padding: .8rem 1.15rem; font: 700 .95rem var(--sans); cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(255,141,179,.6);
}
.share-fab svg { width: 18px; height: 18px; }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,8,20,.6); opacity: 0; transition: opacity .2s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: var(--cream); color: var(--ink); border-radius: 26px 26px 0 0; padding: 1.5rem 1.3rem 1.8rem;
  transform: translateY(100%); transition: transform .22s ease;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet .kicker { color: #b4366b; }
.sheet-title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; }
.sheet-x { position: absolute; right: 1rem; top: .8rem; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }
.sheet .small { color: #5b6180; margin-bottom: 0; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 16px; padding: .8rem .4rem; font-size: .8rem; font-weight: 500;
}
.share-item svg { width: 28px; height: 28px; fill: currentColor; }
.share-whatsapp svg { color: #25d366; }
.share-facebook svg { color: #1877f2; }
.share-telegram svg { color: #229ed9; }
.share-linkedin svg { color: #0a66c2; }
.share-mail svg { color: #b4366b; }

/* ---------- footer & toast ---------- */
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 2rem 1rem 6rem; border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 5rem; transform: translate(-50%, 20px); opacity: 0;
  background: var(--gold); color: var(--ink); font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px;
  z-index: 70; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .facts { gap: .4rem; }
  .fact b { font-size: 1.45rem; }
}

/* fijnslijpen */
.card.gold .hand { color: #8a5a00; }
.tile-title { hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 420px) { .tile-title { font-size: 1.28rem; } }
/* menu: backdrop-filter maakt van de topbar een 'containing block' voor fixed elementen; uitzetten als het menu open is */
body.menu-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
body.menu-open .share-fab { display: none; }
