/* ───────── tokens ───────── */
:root {
  --bg: #0b0c0f;
  --bg-2: #0f1115;
  --surface: #14171d;
  --surface-2: #1a1e26;
  --border: #252a34;
  --border-2: #323845;
  --text: #eef0f4;
  --muted: #959eae;
  --faint: #6b7383;
  --accent: #ff6a1a;
  --accent-ink: #170903;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --ok: #3ddc97;
  --danger: #ff5d5d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Unbounded", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.container.narrow {
  width: min(780px, 100% - 32px);
}

/* ───────── buttons ───────── */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 14px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  --h: 34px;
  padding: 0 13px;
  font-size: 13px;
}
.btn-lg {
  --h: 50px;
  padding: 0 24px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--faint);
}
.btn-added {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--ok);
}
.btn.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn-primary.loading::after {
  border-color: var(--accent-ink);
  border-right-color: transparent;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-2);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ───────── demo banner ───────── */
.demo-banner {
  background: repeating-linear-gradient(-45deg, #2a1608 0 12px, #241307 12px 24px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: #ffd7bd;
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
}
.demo-banner code {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ───────── header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 17px/1 var(--display);
  letter-spacing: -0.01em;
}
.logo.small {
  font-size: 15px;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  clip-path: polygon(58% 0, 8% 58%, 44% 58%, 36% 100%, 92% 38%, 54% 38%);
}
.main-nav {
  display: flex;
  gap: 4px;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  font: 600 14px var(--font);
  cursor: pointer;
}
.cart-btn:hover {
  border-color: var(--faint);
}
.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
.cart-count.has {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 380px at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(var(--bg-2), var(--bg));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 500 12px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eyebrow .dot {
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font: 700 clamp(36px, 5.4vw, 64px) / 1.05 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  margin: 22px 0 32px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 44px 0 0;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
}
.stats dd {
  margin: 0;
  font: 700 22px var(--display);
  letter-spacing: -0.02em;
}
.stats dt {
  font-size: 13px;
  color: var(--faint);
}

.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: #0a0b0e;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.terminal-bar em {
  margin-left: 8px;
  font: 500 12px var(--mono);
  font-style: normal;
  color: var(--faint);
}
.terminal pre {
  margin: 0;
  padding: 20px 22px 24px;
  font: 500 13.5px/1.9 var(--mono);
  color: #c8cdd6;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 210px;
}
.terminal .c {
  color: var(--faint);
}
.terminal .ok {
  color: var(--ok);
}
.terminal .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ───────── trust strip ───────── */
.trust {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-inner div {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.trust-inner div:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust strong {
  font-size: 14px;
}
.trust span {
  font-size: 13px;
  color: var(--faint);
}

/* ───────── sections ───────── */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head.center {
  justify-content: center;
  text-align: center;
  margin-bottom: 44px;
}
.kicker {
  margin: 0 0 10px;
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.section h2 {
  font: 700 clamp(26px, 3.4vw, 38px) / 1.1 var(--display);
  letter-spacing: -0.025em;
}

/* ───────── toolbar ───────── */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  min-width: 260px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--faint);
}
.search:focus-within {
  border-color: var(--accent);
}
.search svg {
  width: 17px;
  height: 17px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: 14px var(--font);
}
select {
  height: 42px;
  padding: 0 36px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23959eae' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: var(--text);
  font: 14px var(--font);
  appearance: none;
  cursor: pointer;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: 500 14px var(--font);
  cursor: pointer;
}
.chip span {
  font: 500 12px var(--mono);
  color: var(--faint);
}
.chip:hover {
  color: var(--text);
  border-color: var(--border-2);
}
.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.chip.active span {
  color: var(--faint);
}

/* ───────── grid & cards ───────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img,
.card:hover .cover-gen svg {
  transform: scale(1.05);
}
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.badge {
  padding: 4px 9px;
  border-radius: 6px;
  font: 600 11px var(--font);
  letter-spacing: 0.02em;
  background: rgba(10, 11, 14, 0.82);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.badge-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.badge-free {
  color: var(--ok);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 18px;
}
.tag {
  align-self: flex-start;
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card h3 {
  margin: 8px 0 8px;
  font: 600 18px/1.25 var(--font);
  letter-spacing: -0.01em;
}
.card h3 a {
  text-decoration: none;
}
.card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price {
  font: 700 18px var(--font);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price s {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
}
.price .free {
  color: var(--ok);
}
.price-lg {
  font-size: 28px;
  margin: 14px 0 22px;
}

/* gegenereerde cover (als een package geen afbeelding heeft) */
.cover-gen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: hsl(var(--h) 90% 72%);
  background:
    radial-gradient(circle at 30% 15%, hsl(var(--h) 85% 55% / 0.32), transparent 55%),
    linear-gradient(transparent 95%, hsl(var(--h) 60% 60% / 0.08) 95%) 0 0 / 100% 22px,
    linear-gradient(140deg, hsl(var(--h) 35% 13%), #0c0e12 75%);
}
.cover-gen svg {
  width: 52px;
  height: 52px;
  stroke-width: 1.4;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 6px 18px hsl(var(--h) 90% 50% / 0.5));
}
.cover-gen code {
  background: rgba(0, 0, 0, 0.35);
  border-color: hsl(var(--h) 60% 60% / 0.2);
  color: hsl(var(--h) 40% 82%);
  font-size: 12px;
}
.cover-gen.large svg {
  width: 72px;
  height: 72px;
}

/* skeleton */
.skeleton .card-media,
.skeleton i {
  background: linear-gradient(90deg, var(--surface-2), #20242d, var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.skeleton i {
  display: block;
  height: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.skeleton i.short {
  width: 50%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.empty h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty p {
  margin: 4px 0;
}
.empty a {
  color: var(--accent);
}

/* ───────── features ───────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.features article {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.f-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.features h3 {
  font: 600 17px var(--font);
  margin-bottom: 8px;
}
.features p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ───────── faq ───────── */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 20px;
}
.faq details[open] {
  border-color: var(--border-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 400 22px/1 var(--font);
  color: var(--faint);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.faq a {
  color: var(--accent);
}

/* ───────── footer ───────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-inner p {
  font-size: 14px;
  margin: 12px 0 0;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--text);
}
.legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}

/* ───────── dialogs ───────── */
dialog {
  color: var(--text);
  border: 1px solid var(--border-2);
  background: var(--surface);
  padding: 0;
}
dialog::backdrop {
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(1000px, 100vw - 32px);
  max-height: calc(100dvh - 48px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.modal[open] {
  animation: pop 0.22s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(6px);
}
.pm {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.pm-media {
  padding: 20px;
}
.pm-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.pm-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumb {
  flex: 0 0 76px;
  height: 50px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}
.thumb.active {
  border-color: var(--accent);
  opacity: 1;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-info {
  padding: 32px 32px 20px 12px;
  display: flex;
  flex-direction: column;
}
.pm-info h2 {
  margin-top: 10px;
  font: 700 28px/1.15 var(--display);
  letter-spacing: -0.02em;
  padding-right: 40px;
}
.pm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pm-actions .btn {
  flex: 1;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perks li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 15%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    no-repeat center / 11px;
}
.pm-desc {
  grid-column: 1 / -1;
  padding: 8px 32px 36px;
  border-top: 1px solid var(--border);
  margin: 0 20px;
  padding-inline: 0;
}

.prose {
  color: #cfd4dc;
  font-size: 15px;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font: 600 18px var(--font);
  margin: 28px 0 10px;
  color: var(--text);
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin: 4px 0;
}
.prose li::marker {
  color: var(--accent);
}
.prose a {
  color: var(--accent);
}
.prose img {
  border-radius: 10px;
  margin: 12px 0;
}
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}

/* drawer */
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(440px, 100vw);
  max-width: 100vw;
  border-width: 0 0 0 1px;
  border-radius: 0;
}
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: slide 0.25s ease;
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 {
  font: 700 18px var(--display);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 28px;
}
.account {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  margin-bottom: 18px;
}
.account.ok {
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  border-color: color-mix(in srgb, var(--ok) 25%, transparent);
}
.account strong {
  color: var(--text);
}
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.cart-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ci-thumb {
  position: relative;
  width: 72px;
  height: 46px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.ci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-thumb .cover-gen svg {
  width: 20px;
  height: 20px;
}
.ci-thumb .cover-gen code {
  display: none;
}
.ci-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.ci-info span {
  color: var(--muted);
  font-size: 13px;
}
.coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.coupon input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font: 14px var(--font);
  text-transform: uppercase;
}
.coupon input:focus {
  outline: none;
  border-color: var(--accent);
}
.coupon-chip {
  display: inline-flex;
  gap: 6px;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  border-radius: 6px;
  border: 1px dashed var(--ok);
  background: none;
  color: var(--ok);
  font: 500 12px var(--mono);
  cursor: pointer;
}
.totals {
  margin: 14px 0 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.totals div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.totals dd {
  margin: 0;
}
.totals .total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin: 12px 0 0;
}
.cart-empty {
  text-align: center;
  padding: 60px 10px;
  color: var(--muted);
}
.cart-empty svg {
  width: 40px;
  height: 40px;
  color: var(--faint);
}

/* ───────── toasts ───────── */
.toasts {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, 100vw - 32px);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: #1d212a;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: pop 0.2s ease;
  transition: opacity 0.3s, transform 0.3s;
}
.toast-success {
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
}
.toast-error {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  color: #ffc9c9;
}
.toast.out {
  opacity: 0;
  transform: translateY(6px);
}

/* toasts draaien als popover in de top-layer, zodat ze ook boven open dialogs staan */
.toasts[popover] {
  inset: auto auto 24px 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: var(--text);
}

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 0 72px;
  }
  .terminal {
    transform: none;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-inner div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .trust-inner div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .pm {
    grid-template-columns: 1fr;
  }
  .pm-info {
    padding: 4px 20px 20px;
  }
}
@media (max-width: 760px) {
  .main-nav,
  .cart-label,
  .user-chip {
    display: none !important;
  }
  .header-inner {
    gap: 12px;
  }
  .cart-btn {
    padding: 0 8px 0 10px;
  }
  .section {
    padding: 64px 0;
  }
  .toolbar,
  .search {
    width: 100%;
    min-width: 0;
  }
  .toolbar select {
    width: 100%;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 24px;
  }
  .modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
