:root {
  --red: #c7203a;
  --red-dark: #9f142b;
  --pink: #f8e4e2;
  --pink-light: #fff8f6;
  --ink: #191617;
  --muted: #6e6567;
  --line: #decfce;
  --white: #ffffff;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--pink-light); font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.hero { min-height: 88vh; background: var(--pink); padding: 28px clamp(22px, 5vw, 76px) 38px; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 42vw; height: 42vw; min-width: 360px; min-height: 360px; border: 1px solid rgba(199,32,58,.22); border-radius: 50%; right: -12vw; top: 18%; box-shadow: 0 0 0 70px rgba(255,255,255,.15), 0 0 0 140px rgba(255,255,255,.10); pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: white; font-family: var(--serif); font-size: 1.25rem; }
.nav-link { font-size: .78rem; font-weight: 600; text-underline-offset: 5px; }
.hero-content { align-self: center; max-width: 760px; padding: 72px 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: .72rem; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: .98; }
h1 { font-size: clamp(4rem, 10vw, 8.5rem); letter-spacing: -.045em; }
h1 em { color: var(--red); font-weight: 400; }
.hero-copy { max-width: 610px; margin: 32px 0; color: #4e4648; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.75; }
.primary-button { display: inline-flex; align-items: center; gap: 22px; border-radius: 999px; background: var(--red); color: white; padding: 16px 22px; text-decoration: none; font-weight: 700; font-size: .84rem; box-shadow: 0 12px 28px rgba(159,20,43,.16); }
.primary-button:hover { background: var(--red-dark); transform: translateY(-1px); }
.hero-note { display: flex; justify-content: space-between; gap: 20px; color: #776d6f; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; }

.library { padding: clamp(74px, 10vw, 140px) clamp(22px, 5vw, 76px); max-width: 1440px; margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); letter-spacing: -.035em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; font-size: .94rem; max-width: 470px; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.prompt-card { min-height: 280px; padding: 28px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; transition: background .2s ease, color .2s ease; }
.prompt-card:hover, .prompt-card:focus-visible { background: var(--red); color: white; outline: none; }
.card-number { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.fill-badge { align-self: flex-start; margin-top: 13px; padding: 7px 10px; border-radius: 999px; background: var(--pink); color: var(--red-dark); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.prompt-card:hover .card-number, .prompt-card:focus-visible .card-number { color: white; }
.prompt-card:hover .fill-badge, .prompt-card:focus-visible .fill-badge { background: rgba(255,255,255,.16); color: white; }
.card-title { margin: auto 0 14px; font-family: var(--serif); font-size: clamp(1.7rem, 2.5vw, 2.7rem); font-weight: 400; line-height: 1.02; }
.card-subtitle { margin: 0; color: var(--muted); line-height: 1.55; font-size: .82rem; }
.prompt-card:hover .card-subtitle, .prompt-card:focus-visible .card-subtitle { color: rgba(255,255,255,.8); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 24px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.card-arrow { font-size: 1.25rem; }

footer { margin: 0 clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); padding: 30px 0 42px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .72rem; }
footer span:first-child { color: var(--red); font-weight: 700; }

dialog { width: min(1040px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 22px; background: var(--white); box-shadow: 0 28px 80px rgba(45,19,23,.24); }
dialog::backdrop { background: rgba(32,17,20,.60); backdrop-filter: blur(4px); }
.dialog-shell { max-height: calc(100dvh - 28px); overflow-y: auto; }
.dialog-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 20px; padding: 30px 32px 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid #eee3e2; backdrop-filter: blur(8px); }
.dialog-header h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.dialog-header #dialog-subtitle { color: var(--muted); margin: 12px 0 0; font-size: .82rem; }
.icon-button { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.icon-button:hover { background: var(--pink); }
.prompt-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 22px 32px 0; background: white; }
.tab-button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 11px 16px; color: var(--muted); font: 600 .74rem var(--sans); cursor: pointer; }
.tab-button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.step-guidance { display: flex; gap: 14px; margin: 18px 32px 0; padding: 17px 18px; border-radius: 13px; background: var(--pink); color: #3f3638; }
.step-guidance[hidden] { display: none; }
.guidance-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: white; font-weight: 700; }
.step-guidance strong { display: block; margin: 1px 0 5px; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.step-guidance p { margin: 0; font-size: .79rem; line-height: 1.55; }
.step-guidance small { display: block; margin-top: 7px; color: var(--red-dark); font-size: .68rem; font-weight: 600; line-height: 1.5; }
.fill-guidance { display: flex; gap: 14px; margin: 18px 32px 0; padding: 17px 18px; border-radius: 13px; background: #fff3d9; color: #3f3638; border: 1px solid #f1dfb9; }
.fill-guidance[hidden] { display: none; }
.fill-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #c58316; color: white; font-weight: 700; }
.fill-guidance strong { display: block; margin: 1px 0 5px; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.fill-guidance p { margin: 0; font-size: .79rem; line-height: 1.55; }
.fill-guidance small { display: block; margin-top: 7px; color: #80570f; font-size: .68rem; font-weight: 600; line-height: 1.5; }
.prompt-panel { padding: 24px 32px 36px; }
.prompt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.prompt-toolbar h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.copy-button { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--red); color: white; padding: 12px 17px; font: 700 .74rem var(--sans); cursor: pointer; }
.copy-button:hover { background: var(--red-dark); }
.copy-icon { width: 13px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.copy-icon::before { content: ""; position: absolute; inset: -5px 3px 3px -5px; border: 1.5px solid currentColor; border-radius: 2px; }
pre { margin: 0; padding: 26px; border-radius: 14px; background: #fbf5f4; border: 1px solid #eee1df; color: #2c2728; font: 400 .9rem/1.72 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 13px 18px; border-radius: 999px; font-size: .76rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 78vh; }
}
@media (max-width: 560px) {
  .hero { padding: 22px 18px 26px; min-height: 84vh; }
  .brand { font-size: .7rem; }
  .nav-link { display: none; }
  .hero-content { padding: 56px 0; }
  h1 { font-size: clamp(3.55rem, 19vw, 5.2rem); }
  .hero-note span:last-child { display: none; }
  .library { padding: 72px 18px; }
  .section-heading { margin-bottom: 34px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card { min-height: 230px; }
  .dialog-header { padding: 24px 20px 20px; }
  .prompt-tabs { padding: 18px 20px 0; }
  .step-guidance { margin: 16px 20px 0; }
  .fill-guidance { margin: 16px 20px 0; }
  .prompt-panel { padding: 20px; }
  .prompt-toolbar { align-items: flex-start; flex-direction: column; }
  .copy-button { width: 100%; justify-content: center; }
  pre { padding: 19px; font-size: .82rem; }
  footer { margin: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Toegang met persoonlijke code */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.access { border-top: 1px solid var(--line); padding-top: 54px; }
.access-card { max-width: 620px; }
.access-card h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.access-copy { margin: 0 0 26px; color: var(--muted); line-height: 1.7; font-size: .92rem; }
.access-form { display: flex; gap: 12px; flex-wrap: wrap; }
.access-form input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 15px 20px; font: 600 .95rem var(--sans); color: var(--ink); letter-spacing: .06em; }
.access-form input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.access-form .primary-button { border: 0; cursor: pointer; font-family: var(--sans); }
.access-form button:disabled { opacity: .6; cursor: wait; }
.access-error { margin: 14px 0 0; color: var(--red-dark); font-size: .84rem; font-weight: 600; }
.access-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.code-input { letter-spacing: .4em !important; font-size: 1.2rem !important; text-align: center; max-width: 260px; }
.link-button { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
footer .link-button { color: var(--muted); }
.loading { border-top: 1px solid var(--line); padding-top: 54px; color: var(--muted); font-size: .9rem; }
