/* ==========================================================================
   CoolMail — luchtpost met attitude
   ========================================================================== */

:root {
  --cobalt: #2337ff;
  --ink: #16133d;
  --paper: #f4f5fa;
  --white: #ffffff;
  --red: #ff3d2e;

  --babe: #ff5cc8;
  --dad: #ffc21a;
  --guy: #29d9ff;
  --mom: #3ee89a;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --stripes: repeating-linear-gradient(-45deg,
    var(--red) 0 14px, var(--paper) 14px 28px,
    var(--cobalt) 28px 42px, var(--paper) 42px 56px);

  --radius: 18px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --topbar-h: 76px;
}

[data-domain="babe"] { --c: var(--babe); }
[data-domain="dad"]  { --c: var(--dad); }
[data-domain="guy"]  { --c: var(--guy); }
[data-domain="mom"]  { --c: var(--mom); }

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

html { scroll-behavior: smooth; }
html.no-motion { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--dad);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.4em;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; box-shadow: none; }
.btn-small:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--paper); }

.text-link {
  font-weight: 600;
  text-underline-offset: .25em;
  text-decoration-thickness: 2px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  padding: 7px 7px 7px 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateX(-50%);
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  text-decoration: none;
}
.logo span { color: var(--cobalt); }

.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a:not(.btn) {
  padding: .45em .8em;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border-radius: 999px;
}
.topnav a:not(.btn):hover { background: rgb(22 19 61 / .07); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--topbar-h) + 6vh) 6vw 12vh;
  color: var(--paper);
  background: var(--cobalt);
  overflow: hidden;
}

.airmail-frame {
  position: absolute;
  inset: 0;
  border: 14px solid transparent;
  border-image: var(--stripes) 14;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-title {
  font-size: clamp(3.3rem, 13.6vw, 15.5rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-cool, .hero-tld { display: inline-block; }

.hero-sticker {
  --c: var(--babe);
  display: inline-block;
  margin: 0 .05em 0 .03em;
  padding: 0 .1em .04em;
  color: var(--ink);
  background: var(--c);
  border-radius: .14em;
  box-shadow: .05em .05em 0 var(--ink);
  transform: rotate(-4deg);
  transition: background-color .35s ease;
}
.hero-suffix { display: inline-block; min-width: 2.2ch; }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 6vh;
}

.hero-lead {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.postmark { fill: none; stroke: currentColor; stroke-width: 2.5; }
.postmark text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
}
.postmark .pm-center { font-size: 26px; letter-spacing: 0; font-weight: 800; }

.hero-postmark {
  position: absolute;
  top: calc(var(--topbar-h) + 4vh);
  right: 6vw;
  width: clamp(104px, 13vw, 190px);
  color: rgb(244 245 250 / .75);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  font-weight: 600;
  font-size: .9rem;
  opacity: .7;
  transform: translateX(-50%);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Vibes / postzegels ---------- */

.vibes {
  --c: var(--babe);
  position: relative;
  background: var(--c);
  transition: background-color .6s ease;
}

.vibes-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vibes-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  width: max-content;
  padding: var(--topbar-h) 8vw 0;
  will-change: transform;
}

.vibes-intro { width: min(82vw, 28rem); flex: none; }
.vibes-intro h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}
.vibes-intro p { max-width: 34ch; margin-top: 1.2em; font-size: 1.2rem; }

.stamp-wrap {
  flex: none;
  width: min(76vw, 21rem);
  filter: drop-shadow(10px 14px 0 rgb(22 19 61 / .9));
}
.stamp-wrap:nth-of-type(odd)  { transform: rotate(-3deg); }
.stamp-wrap:nth-of-type(even) { transform: rotate(2.5deg) translateY(4vh); }

/* Kartelrand: gaatjesraster langs de randen, middenvlak dicht */
.stamp {
  --gap: 22px;
  --r: 7px;
  padding: calc(var(--gap) / 2 + 4px);
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--gap)) calc(100% - var(--gap)) no-repeat,
    radial-gradient(circle at center, #0000 var(--r), #000 calc(var(--r) + .5px)) calc(var(--gap) / -2) calc(var(--gap) / -2) / var(--gap) var(--gap) round;
          mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--gap)) calc(100% - var(--gap)) no-repeat,
    radial-gradient(circle at center, #0000 var(--r), #000 calc(var(--r) + .5px)) calc(var(--gap) / -2) calc(var(--gap) / -2) / var(--gap) var(--gap) round;
}

.stamp-face {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  aspect-ratio: 4 / 5;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--c);
  border: 2px solid var(--ink);
}

.stamp-value { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.stamp-art {
  align-self: center;
  justify-self: center;
  font-size: clamp(4.5rem, 13vw, 7rem);
  line-height: 1;
  filter: drop-shadow(4px 4px 0 rgb(22 19 61 / .25));
}
.stamp-domain { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stamp-line { margin-top: .45em; font-size: 1rem; line-height: 1.35; }
.stamp-example {
  margin-top: .5em;
  font-family: var(--hand);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-2deg);
  transform-origin: left;
}

/* ---------- Inbox ---------- */

.inbox-section {
  position: relative;
  height: 420vh;
  background: var(--paper);
}

.inbox-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(15rem, 24rem) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: calc(var(--topbar-h) + 10px) 5vw 24px;
}

.steps { display: grid; list-style: none; padding: 0; }
.step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .35s ease;
}
.step.is-active { opacity: 1; transform: none; }
.step h3 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.step p { max-width: 32ch; margin-top: .9em; font-size: 1.15rem; }

.step-progress {
  height: 4px;
  margin-top: 2rem;
  background: rgb(22 19 61 / .12);
  border-radius: 4px;
  overflow: hidden;
}
.step-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cobalt);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.mail-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(580px, 100%);
  min-height: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
  font-size: .95rem;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  flex: none;
  padding: 0 14px;
  border-bottom: 2px solid var(--ink);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.app-dots i:nth-child(2) { background: var(--dad); }
.app-dots i:nth-child(3) { background: var(--mom); }

.app-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 380px;
  height: 34px;
  padding: 0 14px;
  background: var(--paper);
  border-radius: 999px;
}
.app-search svg { flex: none; opacity: .6; }
.search-text { font-weight: 600; }
.search-placeholder { position: absolute; left: 38px; opacity: .5; pointer-events: none; }
.app-search.has-text .search-placeholder { display: none; }
.search-caret { display: none; width: 2px; height: 1.1em; margin-left: -6px; background: var(--cobalt); animation: blink 1s steps(1) infinite; }
.app-search.is-typing .search-caret { display: block; }
@keyframes blink { 50% { opacity: 0; } }

.app-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  font-weight: 800;
  background: var(--mom);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.app-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) minmax(0, 1.05fr);
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1.5px solid rgb(22 19 61 / .12);
}
.compose {
  padding: .6em 1em;
  font-weight: 700;
  text-align: center;
  color: var(--paper);
  background: var(--cobalt);
  border-radius: 12px;
}
.folders { list-style: none; padding: 0; display: grid; gap: 2px; }
.folders li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
}
.folders li.is-active { font-weight: 700; background: rgb(35 55 255 / .1); }
.folders b {
  min-width: 1.6em;
  padding: 0 .4em;
  font-size: .78rem;
  text-align: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
}
.app-address { margin-top: auto; font-size: .8rem; opacity: .6; word-break: break-all; }

.mail-list-wrap {
  position: relative;
  overflow: hidden;
  border-right: 1.5px solid rgb(22 19 61 / .12);
}
.mail-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  opacity: .55;
}
.mail-list { list-style: none; padding: 0; position: relative; }

.mail { position: relative; height: 72px; overflow: hidden; }
.mail-btn {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 0 14px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgb(22 19 61 / .08);
  cursor: pointer;
}
.mail-btn:hover { background: rgb(22 19 61 / .04); }
.mail.is-selected .mail-btn { background: rgb(35 55 255 / .09); }
.mail-avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 800;
  background: var(--av, var(--guy));
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.mail-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail.is-unread .mail-from { font-weight: 700; }
.mail.is-unread .mail-from::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--cobalt);
  border-radius: 50%;
}
.mail-time { font-size: .8rem; opacity: .6; }
.mail-snippet {
  grid-column: 2 / 4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}
.mail-snippet span { opacity: .6; }

.spam-stamp {
  position: absolute;
  top: 50%;
  right: 16px;
  padding: 0 .45em;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .02em;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 8px;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

.reader { position: relative; padding: 22px 24px; overflow-y: auto; }
.reader-empty { height: 100%; display: grid; place-items: center; text-align: center; opacity: .55; }
.reader-back { display: none; }
.reader h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.reader-meta { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; font-size: .88rem; }
.reader-meta .mail-avatar { grid-row: auto; }
.reader-meta span { opacity: .65; }
.reader-body p + p { margin-top: .8em; }

/* ---------- Ansichtkaart ---------- */

.postcard-section {
  position: relative;
  height: 280vh;
  background: var(--cobalt);
}
.postcard-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--topbar-h) + 10px) 16px 24px;
  overflow: hidden;
}
.postcard-scene {
  perspective: 1800px;
  width: min(100%, 780px, calc((100svh - var(--topbar-h) - 90px) * 1.5));
}
.postcard {
  position: relative;
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
}

.pc-face {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 14px 14px 0 var(--ink);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.pc-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6%;
  color: var(--paper);
  background: var(--ink);
}
.pc-greeting { font-family: var(--hand); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; transform: rotate(-4deg); transform-origin: left; }
.pc-title {
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
}
.pc-title span { color: var(--dad); }
.pc-stickers { position: absolute; inset: 0; pointer-events: none; }
.pc-stickers span {
  position: absolute;
  padding: .1em .45em;
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  color: var(--ink);
  background: var(--c);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.pc-stickers span:nth-child(1) { top: 9%;  right: 8%;  transform: rotate(8deg); }
.pc-stickers span:nth-child(2) { top: 26%; right: 26%; transform: rotate(-6deg); }
.pc-stickers span:nth-child(3) { bottom: 10%; right: 10%; transform: rotate(-10deg); }
.pc-stickers span:nth-child(4) { bottom: 14%; left: 7%;  transform: rotate(5deg); }

.pc-back {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--paper);
  transform: rotateY(180deg);
}
.pc-message, .pc-address { padding: 6% 6%; }
.pc-message { border-right: 2px solid rgb(22 19 61 / .2); }
.pc-message h2 {
  font-family: var(--hand);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cobalt);
}
.pc-list { list-style: none; padding: 0; margin-top: .6em; }
.pc-list li {
  padding: .22em 0;
  font-family: var(--hand);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  border-bottom: 1.5px solid rgb(22 19 61 / .15);
}
.pc-address { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.pc-stamp {
  position: absolute;
  top: 10%;
  right: 10%;
  display: grid;
  place-items: center;
  width: 28%;
  aspect-ratio: 4 / 5;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--guy);
  outline: 2px dashed var(--ink);
  outline-offset: 4px;
}
.pc-to { font-weight: 700; font-size: .9rem; opacity: .6; }
.pc-line {
  padding: .1em 0 .05em;
  font-family: var(--hand);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  border-bottom: 1.5px solid rgb(22 19 61 / .35);
}

/* ---------- Claim ---------- */

.claim {
  background: var(--c);
  transition: background-color .5s ease;
}
.claim-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 6vw;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 10vh) 6vw 14vh;
}
.claim h2 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
}
.claim-copy > p { max-width: 34ch; margin-top: .8em; font-size: 1.2rem; }

.claim-form { display: grid; gap: 22px; margin-top: 2.4rem; justify-items: start; }
.claim-label { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: .95rem; }
.claim-form > .claim-label { margin-bottom: -14px; }

.claim-field {
  display: flex;
  align-items: baseline;
  width: 100%;
  border-bottom: 3px solid var(--ink);
}
.claim-field input {
  flex: 1;
  min-width: 0;
  padding: .1em 0;
  font: inherit;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.claim-field input::placeholder { color: rgb(22 19 61 / .35); }
.claim-field:focus-within { border-bottom-color: var(--cobalt); }
.claim-at { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }

.domain-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.domain-picker legend { width: 100%; }
.domain-picker label { position: relative; cursor: pointer; }
.domain-picker input { position: absolute; opacity: 0; pointer-events: none; }
.domain-picker span {
  display: inline-block;
  padding: .45em 1em;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.domain-picker label:hover span { background: rgb(22 19 61 / .08); }
.domain-picker input:checked + span { color: var(--paper); background: var(--ink); }
.domain-picker input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.claim-result { min-height: 1.6em; font-weight: 700; font-size: 1.15rem; max-width: 36ch; }

.envelope {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(-3deg);
  overflow: hidden;
}
.env-stripes { position: absolute; inset: 0; background: var(--stripes); }
.env-paper { position: absolute; inset: 14px; background: var(--white); border-radius: 3px; }

.env-stamp {
  --gap: 12px;
  --r: 4px;
  position: absolute;
  top: 7%;
  right: 5%;
  width: 17%;
  aspect-ratio: 4 / 5;
  padding: 9px;
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--gap)) calc(100% - var(--gap)) no-repeat,
    radial-gradient(circle at center, #0000 var(--r), #000 calc(var(--r) + .5px)) calc(var(--gap) / -2) calc(var(--gap) / -2) / var(--gap) var(--gap) round;
          mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--gap)) calc(100% - var(--gap)) no-repeat,
    radial-gradient(circle at center, #0000 var(--r), #000 calc(var(--r) + .5px)) calc(var(--gap) / -2) calc(var(--gap) / -2) / var(--gap) var(--gap) round;
}
.env-stamp-art {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  background: var(--c);
  border: 1.5px solid var(--ink);
  transition: background-color .4s ease;
}

.env-postmark {
  position: absolute;
  top: 4%;
  right: 17%;
  width: 26%;
  color: var(--ink);
  opacity: 0;
}
.envelope.is-taken .env-postmark { color: var(--red); }

.env-from {
  position: absolute;
  top: 8%;
  left: 6%;
  font-family: var(--hand);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  opacity: .6;
}
.env-to {
  position: absolute;
  left: 12%;
  right: 6%;
  bottom: 20%;
  font-family: var(--hand);
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
  border-bottom: 2px solid rgb(22 19 61 / .3);
  padding-bottom: .1em;
}
.env-name { color: var(--cobalt); }

/* ---------- Footer ---------- */

.footer { color: var(--paper); background: var(--ink); overflow: hidden; }
.marquee { padding: 7vh 0 5vh; }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row span {
  padding: 0 .25em;
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}
.marquee-row span:nth-child(4n + 1) { color: var(--babe); }
.marquee-row span:nth-child(4n + 2) { color: var(--dad); }
.marquee-row span:nth-child(4n + 3) { color: var(--guy); }
.marquee-row span:nth-child(4n + 4) { color: var(--mom); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 6vw 36px;
  border-top: 1.5px solid rgb(244 245 250 / .15);
}
.footer-bottom .logo span { color: var(--dad); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a { text-decoration: none; opacity: .8; }
.footer-bottom nav a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom p { opacity: .6; font-size: .95rem; }

/* ---------- Tablet & mobiel ---------- */

@media (max-width: 1240px) {
  .inbox-sticky { grid-template-columns: minmax(13rem, 20rem) minmax(0, 1fr); }
  .app-side { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .inbox-sticky {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: calc(var(--topbar-h) + 28px) 16px 20px;
  }
  .step h3 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .step p { font-size: 1rem; margin-top: .5em; }
  .step-progress { margin-top: 1rem; }
  .mail-app { flex: 1; height: auto; box-shadow: 7px 7px 0 var(--ink); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .mail-list-wrap { border-right: 0; }
  .reader {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--white);
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .mail-app.is-reading .reader { transform: none; }
  .reader-back {
    display: inline-flex;
    margin-bottom: 14px;
    padding: .35em .9em;
    font-weight: 700;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
  }
  .reader-empty { display: none; }

  .claim-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .envelope { max-width: 560px; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 68px; }
  body { font-size: 1.0625rem; }
  .topnav a:not(.btn) { display: none; }
  .topbar { padding-left: 18px; }

  .hero { padding: calc(var(--topbar-h) + 4vh) 22px 14vh; }
  .hero-title { font-size: 14.4vw; }
  .hero-postmark { top: calc(var(--topbar-h) + 20px); right: 22px; width: 96px; }

  .vibes-track { padding-inline: 22px; }

  .postcard-scene { width: min(100%, calc((100svh - var(--topbar-h) - 90px) * 3 / 4.4)); }
  .postcard { aspect-ratio: 3 / 4.4; }
  .pc-front { justify-content: flex-end; padding-bottom: 22%; }
  .pc-back { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pc-message { border-right: 0; border-bottom: 2px solid rgb(22 19 61 / .2); }
  .pc-address { padding-top: 4%; }
  .pc-stamp { width: 22%; top: 12%; }

  .claim-inner { padding-inline: 22px; }
  .envelope { box-shadow: 8px 8px 0 var(--ink); }
}

/* ---------- Minder beweging ---------- */

html.no-motion .scroll-hint { animation: none; }
html.no-motion .vibes-sticky { position: static; height: auto; overflow: visible; }
html.no-motion .vibes-track {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  padding-block: calc(var(--topbar-h) + 8vh) 12vh;
  row-gap: 64px;
}
html.no-motion .inbox-section,
html.no-motion .postcard-section { height: auto; }
html.no-motion .inbox-sticky { position: static; height: auto; min-height: 100svh; }
html.no-motion .mail-app { height: 580px; }
html.no-motion .postcard-sticky { position: static; height: auto; padding-block: 14vh; }
html.no-motion .steps { gap: 28px; }
html.no-motion .step { grid-area: auto; opacity: 1; transform: none; }
html.no-motion .step-progress { display: none; }

@media (max-width: 960px) {
  html.no-motion .mail-app { height: 520px; flex: none; }
}

/* ---------- Cookiemelding ---------- */

.cookie-note {
  position: fixed;
  z-index: 100;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 40rem;
  margin: 0 auto;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-size: 1rem;
}
.cookie-note p { flex: 1 1 18rem; }
.cookie-note a { color: var(--cobalt); }
.cookie-ok {
  padding: 8px 22px;
  font-weight: 700;
  color: var(--white);
  background: var(--cobalt);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.cookie-ok:hover { background: var(--ink); }

/* ---------- Privacy- en cookiepagina ---------- */

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6vw;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}
.legal-top a:not(.logo) { font-weight: 600; }
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 7vh 6vw 10vh;
}
.legal h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.legal .legal-date { margin-top: 12px; opacity: .65; }
.legal h2 { margin-top: 2.2em; font-size: 1.5rem; letter-spacing: -.02em; }
.legal p, .legal ul, .legal table { margin-top: .8em; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: .35em; }
.legal a { color: var(--cobalt); }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border: 1.5px solid var(--ink); }
.legal th { background: var(--paper); }
.legal code { font-size: .92em; }
.legal-foot { padding: 28px 6vw 36px; color: var(--paper); background: var(--ink); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.legal-foot a { text-decoration: none; opacity: .8; }
.legal-foot a:hover { opacity: 1; text-decoration: underline; }

/* ---------- 404-pagina ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 160px);
  padding: 7vh 6vw 10vh;
  text-align: center;
}
.notfound-kicker {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cobalt);
  transform: rotate(-2deg);
}
.notfound-title {
  margin-top: .1em;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
}
.notfound-lead { max-width: 36ch; margin: 1em auto 0; font-size: 1.15rem; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2rem; }
