/* ────────────────────────────────────────────────────────
   Schwung Contentmotor — stijl matched aan merkscan v3
   Brand-systeem: #0000FE blauw · #FC3765 roze · #f4f5fb bg
   ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f5fb;
  color: #1a1a2e;
  font-size: 16px;
  line-height: 1.55;
  padding: 0 0 60px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ──────────────────────────────────────────────────────
   Sticky header (zelfde patroon als merkscan v3)
   ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 251, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e4de;
  padding: 12px 24px;
  margin-bottom: 28px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .logo {
  font-size: 14px;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -.01em;
}
.topbar .logo strong { color: #0000FE; font-weight: 700; }

.topbar nav {
  display: flex; gap: 18px;
  font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.topbar nav a {
  color: #6b6b76;
  text-decoration: none;
}
.topbar nav a.active, .topbar nav a:hover { color: #0000FE; }

/* ──────────────────────────────────────────────────────
   Hero (blauwe gradient, merkscan-stijl)
   ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0000FE 0%, #2c2cff 100%);
  color: white;
  padding: 36px 36px 30px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 254, 0.18);
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 30px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; color: white;
  margin: 0 0 12px;
}
.hero .lede {
  font-size: 15px; line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  max-width: 540px; margin: 0;
}
.hero.roze {
  background: linear-gradient(135deg, #FC3765 0%, #ff5c80 100%);
  box-shadow: 0 12px 40px rgba(252, 55, 101, 0.22);
}

/* ──────────────────────────────────────────────────────
   Cards
   ────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1.5px solid #e8e4de;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

/* ──────────────────────────────────────────────────────
   Form
   ────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a2e;
}
label > span:first-child {
  display: block;
  margin-bottom: 6px;
}
label em {
  font-weight: 400; color: #6b6b76;
  font-size: 12px; font-style: normal;
}

input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e8e4de;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: #1a1a2e;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0000FE;
}

textarea { resize: vertical; min-height: 80px; }

fieldset {
  border: 1px solid #e8e4de;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
fieldset legend {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #6b6b76;
  padding: 0 6px;
}
.radio, .check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a2e;
}
.radio input, .check input {
  accent-color: #0000FE;
  width: 16px; height: 16px;
  cursor: pointer;
}

/* form-vertical-spacing */
form label { margin-bottom: 18px; }

/* ──────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 150ms, opacity 150ms;
}
.btn-primary {
  background: #0000FE;
  color: white;
}
.btn-primary:hover:not(:disabled) { background: #0000d4; }
.btn:disabled { opacity: 0.5; cursor: wait; }

main h1 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  color: #1a1a2e;
}
.lede {
  color: #6b6b76;
  font-size: 15px;
  max-width: 60ch;
  margin: 0 0 24px;
}

/* ──────────────────────────────────────────────────────
   Status / pipeline-progress
   ────────────────────────────────────────────────────── */
.status h3 {
  margin: 0 0 14px;
  font-size: 16px; font-weight: 700;
  color: #1a1a2e;
}
.pipeline-status {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.pipeline-status li {
  padding: 10px 0;
  border-bottom: 1px solid #f0eee9;
  font-size: 14px;
  color: #1a1a2e;
}
.pipeline-status li:last-child { border-bottom: none; }
.hint {
  color: #6b6b76;
  font-size: 13px;
  margin: 6px 0;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b6b76;
  font-size: 14px;
}

/* ──────────────────────────────────────────────────────
   Preview page — mobile-first met sticky GO
   ────────────────────────────────────────────────────── */
.preview-body {
  background: #f4f5fb;
  padding: 0 0 90px;
}
.preview-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 251, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e4de;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #6b6b76;
  cursor: pointer;
  width: 32px;
  padding: 0;
}
.preview-brand {
  font-size: 12px;
  color: #6b6b76;
  text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600;
}

.preview-titel {
  padding: 28px 20px 18px;
  background: linear-gradient(135deg, #0000FE 0%, #2c2cff 100%);
  color: white;
}
.preview-titel h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.preview-stats {
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 500;
}
.preview-stats .sep { margin: 0 6px; opacity: .6; }

.preview-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid #e8e4de;
  overflow-x: auto;
  background: white;
  position: sticky; top: 49px; z-index: 49;
}
.tab {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #6b6b76;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: #0000FE;
  border-bottom-color: #0000FE;
  font-weight: 600;
}

.preview-panels { padding: 24px 20px; }
.panel { display: none; }
.panel.active { display: block; }
.panel pre {
  background: white;
  border: 1px solid #e8e4de;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #1a1a2e;
  line-height: 1.5;
}
.panel h3 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #6b6b76;
  margin: 24px 0 8px;
}
.panel h3:first-child { margin-top: 0; }

/* Rendered markdown — leesvriendelijk */
.rendered-md {
  background: white;
  border: 1.5px solid #e8e4de;
  border-radius: 12px;
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a2e;
}
.rendered-md h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  line-height: 1.2;
}
.rendered-md h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: #1a1a2e;
}
.rendered-md h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  text-transform: none; letter-spacing: 0; color: #1a1a2e;
}
.rendered-md p { margin: 14px 0; }
.rendered-md hr {
  border: none;
  border-top: 1px solid #e8e4de;
  margin: 24px 0;
}
.rendered-md em {
  font-style: italic;
  color: #1a1a2e;
}
.rendered-md strong {
  font-weight: 700;
  color: #0000FE;
}

.copy-btn {
  float: right;
  background: white;
  color: #0000FE;
  border: 1.5px solid #0000FE;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.copy-btn:hover {
  background: #0000FE;
  color: white;
}

/* Sticky footer met GO */
.preview-foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid #e8e4de;
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  z-index: 50;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
}
.btn-reject, .btn-go {
  padding: 14px;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms;
}
.btn-reject {
  background: white;
  color: #6b6b76;
  border: 1.5px solid #e8e4de;
  flex: 0 0 110px;
}
.btn-reject:hover { color: #FC3765; border-color: #FC3765; }
.btn-go {
  background: #0000FE;
  color: white;
  flex: 1;
}
.btn-go:hover:not(:disabled) { background: #0000d4; }
.btn-go:disabled { opacity: 0.6; cursor: wait; }

.loading {
  padding: 80px 20px;
  text-align: center;
  color: #6b6b76;
  font-size: 14px;
}
