:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --line: #d5d1c9;
  --text: #112031;
  --muted: #65717c;
  --accent: #2858d8;
  --accent-2: #183f9e;
  --danger: #b63f46;
  --radius: 4px;
  font-family: "Segoe UI Variable", Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
a { color: inherit; }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .dropzone:focus-within, .merge-dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }

.site-header, footer { max-width: 1180px; margin: auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--text); color: #fff; font-weight: 900; }
.privacy-chip, .count-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.site-nav, footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-nav a, footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"], footer a:hover { color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 48px 24px 80px; }
.hero { max-width: 820px; padding: 42px 0 46px; }
.eyebrow, .kicker { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
h1 { font-size: clamp(42px, 6.5vw, 68px); line-height: 1; letter-spacing: -.042em; margin: 12px 0 20px; }
h2 { margin: 5px 0 10px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.65; }
.lede { max-width: 700px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 22px; background: var(--surface); }
.step { color: #738198; padding: 14px; text-align: center; border-right: 1px solid var(--line); font-size: 14px; }
.step:last-child { border: 0; }
.step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7e9ec; margin-right: 6px; }
.step.active { color: var(--text); background: #f0f4ff; }
.step.active b { background: var(--accent); color: #fff; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 42px); box-shadow: 0 20px 60px rgba(33,43,54,.08); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.centered { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.dropzone { margin: 24px 0; min-height: 210px; border: 1px dashed #98a3ad; border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: var(--surface-2); transition: .2s ease; }
.dropzone:hover { border-color: var(--accent); background: #f4f7ff; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone span { color: var(--muted); }
.upload-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #c8d3f0; border-radius: 2px; background: #edf2ff; color: var(--accent) !important; font-size: 26px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 3px; text-decoration: none; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--accent); color: #fff; box-shadow: none; }
.button.primary:hover { background: var(--accent-2); }
.button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
label { color: #334252; font-size: 13px; font-weight: 700; }
select, input[type="number"] { width: 100%; margin-top: 8px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 12px; outline: none; }
select:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,88,216,.1); }

.canvas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.canvas-grid article { min-width: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: 3px; padding: 12px; overflow: hidden; }
.canvas-title { display: flex; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.canvas-title span { color: var(--muted); font-size: 12px; }
canvas { display: block; width: 100%; height: auto; cursor: crosshair; border-radius: 8px; touch-action: none; }

.spinner { width: 54px; height: 54px; border: 4px solid #d9dde2; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; cursor: grab; }
.result-card.dragging { opacity: .45; border-color: var(--accent); }
.result-card.unknown { border-color: rgba(255,107,120,.7); }
.result-card img { width: 100%; aspect-ratio: 3/4; display: block; object-fit: contain; background: #eef0f2; }
.result-controls { padding: 12px; display: grid; gap: 9px; }
.result-controls input { margin: 0; }
.virtual-label { display: flex; align-items: center; gap: 7px; font-weight: 500; color: var(--muted); }
.virtual-label input { width: auto; margin: 0; }

.success-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #edf2ff; border: 1px solid #bdccef; color: var(--accent); font-size: 32px; }
.notice { position: fixed; right: 24px; bottom: 24px; max-width: 440px; padding: 16px 18px; border-radius: 3px; background: #fff1f1; border: 1px solid var(--danger); color: #7f252b; box-shadow: 0 16px 45px rgba(33,43,54,.15); }
.merge-notice { display: flex; align-items: flex-start; gap: 14px; z-index: 20; }
.merge-notice button { flex: 0 0 32px; min-height: 32px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 22px; line-height: 1; }
footer { border-top: 1px solid var(--line); color: #6f7881; font-size: 13px; }

.seo-section { margin-top: 72px; padding-top: 54px; border-top: 1px solid var(--line); }
.seo-section > p { max-width: 850px; }
.seo-section h2 { max-width: 820px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.feature-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.feature-grid h3 { margin: 0 0 8px; font-size: 19px; }
.feature-grid p { margin: 0; }
.feature-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-link a, .article-body a:not(.button) { color: var(--accent); text-underline-offset: 3px; }
.faq details { max-width: 900px; border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--text); font-weight: 750; cursor: pointer; }
.faq details p { margin-bottom: 0; }

.content-page { max-width: 960px; padding-top: 74px; }
.content-page > h1 { max-width: 900px; }
.article-body { margin-top: 58px; }
.article-body h2 { margin-top: 48px; font-size: clamp(24px, 4vw, 34px); }
.article-body h3 { color: var(--text); }
.article-body p, .article-body li { max-width: 820px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.numbered-list { display: grid; gap: 16px; padding-left: 24px; }
.numbered-list strong { color: var(--text); }
.legal-page { max-width: 900px; }

@media (max-width: 780px) {
  .privacy-chip { display: none; }
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; padding-top: 6px; }
  main { padding-top: 10px; }
  .hero { padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reference-grid, .canvas-grid, .feature-grid, .feature-grid.compact { grid-template-columns: 1fr; }
  .panel-heading { display: block; }
  .count-chip { display: inline-block; margin-top: 8px; }
  .content-page { padding-top: 34px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; gap: 12px 18px; }
}

/* PDF-werkruimte: rustige, editoriale premiumrichting. */
.studio-page { background: #f4f2ed; color: #112031; }
.studio-page .studio-header { max-width: 1280px; border-bottom: 1px solid #d9d6ce; }
.studio-page .brand-mark { border-radius: 4px; background: #112031; color: #fff; }
.studio-page .site-nav a { color: #53606c; }
.studio-page .site-nav a:hover, .studio-page .site-nav a[aria-current="page"] { color: #112031; }
.studio-page .privacy-chip { border-color: #d4d0c7; color: #66717b; }
.merge-main { max-width: 1100px; padding-top: 56px; }
.merge-intro { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.merge-intro .eyebrow { color: #2858d8; }
.merge-intro h1 { margin: 10px 0 18px; color: #112031; font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.merge-intro p { margin: auto; max-width: 650px; color: #596571; font-size: 18px; }
.merge-workspace { overflow: hidden; border: 1px solid #d4d0c7; background: #fff; box-shadow: 0 24px 70px rgba(33,43,54,.1); }
.workspace-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #e3e0d9; }
.workspace-topline > div { display: flex; align-items: center; gap: 14px; }
.workspace-topline strong, .workspace-topline small { display: block; }
.workspace-topline small { margin-top: 2px; color: #74808b; }
.workspace-index { color: #2858d8; font: 700 12px/1 ui-monospace, monospace; }
.secure-note { color: #3d6c55; font-size: 13px; font-weight: 700; }
.merge-empty { padding: clamp(28px, 6vw, 68px); }
.merge-dropzone { min-height: 285px; border: 1px dashed #9ca7b1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #112031; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.merge-dropzone:hover, .merge-dropzone.is-dragover { border-color: #2858d8; background: #f7f9ff; }
.merge-dropzone input, .add-files input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.merge-dropzone strong { font-size: 22px; }
.merge-dropzone span:last-child { color: #707b85; font-weight: 500; }
.file-symbol { display: grid; place-items: center; width: 62px; height: 74px; margin-bottom: 4px; background: #112031; color: #fff; font: 800 13px/1 ui-monospace, monospace; box-shadow: 7px 7px 0 #d9e2ff; }
.limit-note { margin: 16px 0 0; color: #7b858e; text-align: center; font-size: 13px; }
.arrange-toolbar, .merge-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.arrange-toolbar { border-bottom: 1px solid #e3e0d9; }
.arrange-toolbar > div { display: flex; gap: 8px; }
.tool-button { min-height: 44px; padding: 0 13px; border: 1px solid #cfd3d7; background: #fff; color: #233141; cursor: pointer; font: 700 13px/1 inherit; }
.tool-button:hover { border-color: #2858d8; color: #2858d8; }
.add-files { display: inline-flex; align-items: center; }
.reorder-hint { margin: 18px 24px 0; color: #6d7780; font-size: 14px; }
.merge-file-list { display: grid; gap: 10px; padding: 18px 24px 24px; }
.merge-file-card { position: relative; display: grid; grid-template-columns: 22px 30px 46px minmax(180px, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 13px 14px; border: 1px solid #d9dce0; background: #fff; cursor: grab; }
.merge-file-card:focus { outline: 2px solid #2858d8; outline-offset: 2px; }
.merge-file-card.dragging { opacity: .45; border-color: #2858d8; }
.merge-file-card.drag-target { border-color: #2858d8; background: #f5f7ff; }
.drag-handle { color: #929ba3; font-size: 20px; }
.file-order { color: #2858d8; font: 700 11px/1 ui-monospace, monospace; }
.pdf-sheet { display: grid; place-items: center; width: 34px; height: 42px; background: #edf1f5; color: #25364a; font: 800 9px/1 ui-monospace, monospace; transition: transform .18s ease; }
.pdf-sheet.rotate-90 { transform: rotate(90deg); }
.pdf-sheet.rotate-180 { transform: rotate(180deg); }
.pdf-sheet.rotate-270 { transform: rotate(270deg); }
.file-details { min-width: 0; }
.file-details strong, .file-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details strong { color: #182737; font-size: 14px; }
.file-details small { margin-top: 4px; color: #737e88; }
.file-controls { display: flex; gap: 5px; }
.file-controls button { width: 44px; height: 44px; border: 1px solid #d6dade; background: #fff; color: #344353; cursor: pointer; }
.file-controls button:hover { border-color: #2858d8; color: #2858d8; }
.file-controls .remove-file:hover { border-color: #bb3e45; color: #a52f37; }
.password-field { grid-column: 4 / -1; color: #66727e; font-size: 12px; }
.password-field summary { width: max-content; cursor: pointer; }
.password-field label { display: flex; align-items: center; gap: 10px; max-width: 360px; margin-top: 10px; color: #384757; }
.password-input { flex: 1; min-width: 0; margin: 0; border: 1px solid #cfd4d9; background: #fff; color: #182737; padding: 9px 10px; }
.merge-actionbar { border-top: 1px solid #e3e0d9; background: #f8f7f4; }
.merge-actionbar > div span { display: block; margin-top: 3px; color: #727c85; font-size: 13px; }
.studio-page .button { border-radius: 3px; }
.studio-page .button.primary { min-height: 52px; background: #2858d8; color: #fff; box-shadow: none; }
.studio-page .button.primary:hover { background: #1d46b8; }
.button.secondary { border: 1px solid #cbd0d5; background: #fff; color: #1b2a3a; }
.button.quiet-danger { border: 1px solid transparent; background: transparent; color: #9f3239; }
.button.quiet-danger:hover { border-color: #d8a9ac; }
.disabled-link { pointer-events: none; opacity: .45; }
.merge-status { min-height: 400px; padding: 54px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.merge-status h2 { color: #112031; }
.merge-status p { max-width: 560px; color: #69747f; }
.progress-line { width: min(360px, 80%); height: 3px; margin-bottom: 34px; overflow: hidden; background: #e0e4e8; }
.progress-line i { display: block; width: 42%; height: 100%; background: #2858d8; animation: merge-progress 1.2s ease-in-out infinite alternate; }
@keyframes merge-progress { to { transform: translateX(140%); } }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid #d5d1c9; border-bottom: 1px solid #d5d1c9; }
.trust-strip article { padding: 28px 26px; border-right: 1px solid #d5d1c9; }
.trust-strip article:last-child { border-right: 0; }
.trust-strip span { color: #2858d8; font: 700 12px/1 ui-monospace, monospace; }
.trust-strip h2 { margin: 14px 0 7px; color: #112031; font-size: 18px; }
.trust-strip p { margin: 0; color: #67727c; font-size: 14px; line-height: 1.55; }
.studio-page .seo-section { border-color: #d5d1c9; }
.studio-page .seo-section h2, .studio-page .faq summary { color: #112031; }
.studio-page .faq details { border-color: #d5d1c9; }
.studio-page footer { border-color: #d5d1c9; color: #67727c; }

@media (max-width: 720px) {
  .merge-main { padding: 28px 16px 60px; }
  .merge-intro { text-align: left; }
  .merge-intro h1 { font-size: clamp(40px, 13vw, 58px); }
  .workspace-topline, .arrange-toolbar, .merge-actionbar { align-items: flex-start; flex-direction: column; }
  .arrange-toolbar > div { flex-wrap: wrap; }
  .merge-empty { padding: 18px; }
  .merge-dropzone { min-height: 240px; padding: 20px; text-align: center; }
  .merge-file-card { grid-template-columns: 20px 24px 40px minmax(0, 1fr); }
  .file-controls { grid-column: 2 / -1; flex-wrap: wrap; }
  .password-field { grid-column: 2 / -1; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article { border-right: 0; border-bottom: 1px solid #d5d1c9; }
  .trust-strip article:last-child { border-bottom: 0; }
}

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