@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #17211d;
  --muted: #6a746e;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --line: #d9d8cf;
  --lime: #d7ff4f;
  --lime-dark: #badf37;
  --red: #c84832;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 9%, rgba(215, 255, 79, .28), transparent 21rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid rgba(23, 33, 29, .18);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 700 20px "Manrope", sans-serif; }
.brand > span:last-child > span { color: var(--red); }
.brand-mark { width: 29px; height: 31px; position: relative; display: block; }
.brand-mark i { position: absolute; display: block; width: 20px; height: 25px; border: 2px solid var(--ink); background: var(--paper); }
.brand-mark i:first-child { left: 0; top: 5px; transform: rotate(-6deg); }
.brand-mark i:last-child { right: 0; top: 0; background: var(--lime); }
.privacy-note { color: var(--muted); font-size: 13px; letter-spacing: .01em; }
.privacy-note span { color: #67a642; font-size: 9px; margin-right: 6px; }

.intro { padding: 76px 0 58px; display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 60px; }
.intro .eyebrow { grid-column: 1 / -1; margin-bottom: -35px; }
.eyebrow { font: 600 11px "Manrope", sans-serif; letter-spacing: .18em; color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 500 clamp(52px, 8vw, 105px)/.92 "Manrope", sans-serif; letter-spacing: -.065em; }
h1 em { color: var(--red); font-family: Georgia, serif; font-weight: 400; }
.lede { max-width: 390px; margin-bottom: 8px; color: var(--muted); font-size: 18px; line-height: 1.6; }

.workspace { background: var(--card); border: 1px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.workspace-topline, .selection-heading, .submit-row { display: flex; justify-content: space-between; align-items: center; }
.workspace-topline { padding: 24px 30px; border-bottom: 1px solid var(--line); }
.workspace-topline > div, .selection-heading > div, .submit-copy { display: flex; align-items: center; gap: 15px; }
.workspace-topline h2, .selection-heading h2 { margin: 0; font: 600 18px "Manrope", sans-serif; letter-spacing: -.02em; }
.workspace-topline > p { margin: 0; color: var(--muted); font-size: 12px; }
.step-number { font: 600 10px "Manrope", sans-serif; color: var(--red); letter-spacing: .1em; }

.drop-zone { margin: 30px; min-height: 270px; border: 1.5px dashed #a9ada7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; text-align: center; transition: .2s ease; position: relative; }
.drop-zone.dragging { background: rgba(215, 255, 79, .18); border-color: var(--ink); transform: scale(.995); }
.drop-zone.compact { min-height: 108px; flex-direction: row; margin-bottom: 0; }
.drop-zone.compact .file-stack { transform: scale(.7); margin: -8px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-title { font: 600 21px "Manrope", sans-serif; margin-bottom: 5px; }
.drop-subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.drop-subtitle button { border: 0; padding: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.file-stack { width: 70px; height: 67px; position: relative; }
.file-stack span { position: absolute; inset: 3px 8px 7px; border: 1.5px solid var(--ink); background: var(--paper); transform: rotate(-9deg); }
.file-stack span:nth-child(2) { transform: rotate(7deg); background: var(--lime); }
.file-stack span:nth-child(3) { transform: rotate(0); background: var(--card); display: grid; place-items: center; }
.file-stack b { color: var(--red); font-size: 11px; letter-spacing: .08em; }

.selection { padding: 30px; }
.selection-heading { margin-bottom: 8px; }
.text-button { border: 0; background: none; cursor: pointer; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.reorder-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px 43px; }
.file-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.file-item { display: grid; grid-template-columns: 26px 36px 45px minmax(0, 1fr) 58px 36px; gap: 12px; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); background: var(--card); transition: opacity .15s, transform .15s; }
.file-item.is-dragging { opacity: .38; }
.drag-handle { color: #999f9b; cursor: grab; font-size: 22px; line-height: 1; }
.file-index { font: 500 12px "Manrope", sans-serif; color: var(--muted); }
.file-badge { display: grid; place-items: center; height: 42px; font-size: 9px; font-weight: 700; letter-spacing: .08em; border-radius: 2px; }
.pdf-badge { background: #f3ddd7; color: var(--red); }
.image-badge { background: #e2ead7; color: var(--ink); }
.file-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-meta small { color: var(--muted); }
.move-buttons { display: flex; gap: 3px; }
.move-file { width: 27px; height: 30px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.move-file:hover:not(:disabled) { border-color: var(--ink); background: var(--lime); }
.move-file:disabled { opacity: .25; cursor: default; }
.remove-file { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; border-radius: 50%; }
.remove-file:hover { background: #eeeae1; color: var(--red); }
.form-error { margin-top: 18px; padding: 12px 15px; color: #842d20; background: #f8e1dc; border-left: 3px solid var(--red); font-size: 14px; }
.submit-row { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ink); }
.submit-copy p { margin: 0; font-size: 14px; line-height: 1.45; }
.submit-copy p span { color: var(--muted); font-size: 12px; }
.merge-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 0 22px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.merge-button:hover { background: var(--lime-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.merge-button:disabled { cursor: wait; opacity: .75; }
.arrow { font-size: 20px; }
.button-working { display: none; }
.merge-button.working .button-label { display: none; }
.merge-button.working .button-working { display: inline; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid rgba(23, 33, 29, .22); border-bottom: 1px solid rgba(23, 33, 29, .22); }
.trust-strip article { display: flex; gap: 17px; padding: 30px 28px 30px 0; }
.trust-strip article + article { border-left: 1px solid rgba(23, 33, 29, .22); padding-left: 28px; }
.trust-strip article > span { color: var(--red); font: 600 10px "Manrope", sans-serif; }
.trust-strip h3 { margin-bottom: 8px; font: 600 14px "Manrope", sans-serif; }
.trust-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 42px 0 70px; color: var(--muted); font-size: 12px; }
footer span { color: var(--ink); font-weight: 700; }
.footer-note p { margin: 7px 0 0; }
.footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.return-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.return-link:hover { background: var(--ink); color: var(--card); }
.bmc-wrapper { display: flex; align-items: center; min-height: 44px; }
.bmc-wrapper .bmc-btn-container { margin: 0 !important; }

.error-page { display: grid; place-items: center; padding: 30px; }
.error-card { width: min(620px, 100%); background: var(--card); border: 1px solid var(--ink); box-shadow: 9px 9px var(--ink); padding: clamp(30px, 6vw, 60px); }
.error-card h1 { font-size: clamp(40px, 7vw, 65px); margin: 16px 0 24px; }
.error-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin-bottom: 30px; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 72px; }
  .privacy-note { display: none; }
  .intro { display: block; padding: 55px 0 40px; }
  .intro .eyebrow { margin-bottom: 20px; }
  h1 { font-size: clamp(51px, 17vw, 75px); }
  .lede { margin-top: 28px; font-size: 16px; }
  .workspace { box-shadow: 5px 5px 0 var(--ink); }
  .workspace-topline { align-items: flex-start; padding: 20px; }
  .workspace-topline > p { display: none; }
  .drop-zone { margin: 20px; min-height: 240px; }
  .drop-zone.compact { min-height: 118px; margin-bottom: 0; gap: 14px; }
  .drop-zone.compact .drop-title { font-size: 17px; }
  .selection { padding: 22px 20px 20px; }
  .reorder-hint { margin-left: 0; }
  .file-item { grid-template-columns: 20px 25px 38px minmax(0, 1fr) 50px 27px; gap: 6px; }
  .move-buttons { gap: 2px; }
  .move-file { width: 24px; }
  .file-index { font-size: 10px; }
  .file-badge { height: 38px; }
  .submit-row { align-items: stretch; flex-direction: column; gap: 22px; }
  .merge-button { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article, .trust-strip article + article { padding: 24px 5px; border-left: 0; }
  .trust-strip article + article { border-top: 1px solid rgba(23, 33, 29, .22); }
  footer { align-items: stretch; flex-direction: column; padding-bottom: 36px; }
  .footer-actions { align-items: stretch; justify-content: flex-start; flex-direction: column; }
  .return-link { justify-content: center; }
  .bmc-wrapper { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
