@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-web-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-web-latin-900-normal.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }

:root {
  --yellow: #FDC034; --purple: #A855C7; --blue: #B7CEE0; --mint: #C5DBC8;
  --pink: #F0B5C2; --peach: #F4C9A8; --ink: #161616; --muted: #535353;
  --paper: #fff; --wash: color-mix(in srgb, var(--yellow) 10%, white);
  color: var(--ink); background: var(--wash); font: 400 1rem/1.55 "DM Sans", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--wash); }
button, input { font: inherit; }
button, input[type="file"], input[type="checkbox"] { min-height: 44px; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 72px; padding: 1rem clamp(1rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: white; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, white); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 900 1.1rem/1 "Titillium Web", sans-serif; text-decoration: none; letter-spacing: .03em; }
.wordmark b { font-weight: 700; }
.wordmark-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--ink); color: var(--yellow); font-size: .85rem; }
.service-label, .eyebrow, .rail-kicker { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.process-rail { background: white; border-bottom: 5px solid color-mix(in srgb, var(--yellow) 34%, white); }
.process-rail ol { width: min(1120px, 100%); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.process-rail li { position: relative; min-height: 56px; padding: .65rem .35rem .55rem; display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .78rem; font-weight: 700; }
.process-rail li::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--rail-color); opacity: .28; }
.process-rail li:nth-child(1) { --rail-color: var(--purple); }
.process-rail li:nth-child(2) { --rail-color: var(--blue); }
.process-rail li:nth-child(3) { --rail-color: var(--mint); }
.process-rail li:nth-child(4) { --rail-color: var(--pink); }
.process-rail li:nth-child(5) { --rail-color: var(--peach); }
.process-rail li[data-stage-state="current"]::after, .process-rail li[data-stage-state="complete"]::after { opacity: 1; }
.process-rail li[data-stage-state="current"] { background: color-mix(in srgb, var(--rail-color) 18%, white); }
h1, h2 { font-family: "Titillium Web", sans-serif; line-height: 1.02; margin-top: 0; }
h1 { margin-bottom: 1rem; max-width: 16ch; font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
h2 { font-weight: 700; }
.lede { max-width: 62ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.upload-shell { width: min(1280px, 100%); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.price-strip { margin: 2.5rem 0 .5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.price-strip p { min-height: 112px; margin: 0; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--ink); }
.price-strip p:last-child { border-right: 0; }
.price-strip p:nth-child(1) { background: color-mix(in srgb, var(--mint) 55%, white); }
.price-strip p:nth-child(2) { background: color-mix(in srgb, var(--peach) 55%, white); }
.price-strip p:nth-child(3) { background: color-mix(in srgb, var(--blue) 45%, white); }
.price-strip strong { font: 900 clamp(1.75rem, 4vw, 3rem)/1 "Titillium Web", sans-serif; }
.price-strip span { margin-top: .35rem; color: var(--muted); font-weight: 700; }
.failure-copy { margin: 0 0 2rem; color: var(--muted); font-size: .9rem; }
.drop-zone { min-height: 230px; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; place-items: center; align-content: center; text-align: center; background: white; border: 2px dashed var(--ink); }
.drop-zone[data-drag-active="true"] { background: color-mix(in srgb, var(--blue) 35%, white); border-style: solid; }
.drop-zone label { min-height: 44px; padding: .7rem 1.1rem; display: inline-flex; align-items: center; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }
.drop-zone input { width: 1px; height: 1px; min-height: 1px; position: absolute; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.drop-zone input:focus-visible + p { outline: 3px solid var(--purple); }
.drop-zone p { margin: .75rem 0 0; }
.drop-zone .limits { color: var(--muted); font-size: .85rem; }
.form-error, [data-result-error], .progress-error, .archive-validation, .recovery-status { padding: .8rem 1rem; overflow-wrap: anywhere; background: color-mix(in srgb, var(--pink) 55%, white); border-left: 5px solid var(--purple); }
.queue { margin-top: 2.25rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
[data-upload-queue] { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.queue-row { padding: 1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, white); }
.queue-row strong { overflow-wrap: anywhere; }
.queue-meta { color: var(--muted); font-size: .85rem; }
.queue-progress { grid-column: 1 / -1; width: 100%; accent-color: var(--purple); }
.queue-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.queue-actions button, .text-action { min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--ink); background: white; font-weight: 700; cursor: pointer; }
.empty-state { padding: 1.5rem 0; color: var(--muted); }
.sr-status, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.setup-rail { position: sticky; top: 1rem; padding: 1.5rem; background: white; border: 1px solid var(--ink); box-shadow: 8px 8px 0 color-mix(in srgb, var(--purple) 42%, white); }
.setup-rail section + section { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 24%, white); }
.consent-row { display: grid; grid-template-columns: 44px 1fr; gap: .6rem; align-items: start; cursor: pointer; }
.consent-row input { width: 22px; margin: 0; accent-color: var(--purple); }
.retention-list { padding: 0; list-style: none; }
.retention-list li { margin-top: .75rem; display: grid; grid-template-columns: 30px 1fr; gap: .6rem; color: var(--muted); font-size: .9rem; }
.retention-list li span { color: var(--ink); font-weight: 900; }
.provider-mount { min-height: 58px; margin-top: .8rem; padding: .8rem; display: grid; align-items: center; background: color-mix(in srgb, var(--blue) 24%, white); border: 1px solid color-mix(in srgb, var(--ink) 25%, white); color: var(--muted); font-size: .85rem; }
.primary-action, .danger-action, dialog button { min-height: 48px; padding: .7rem 1.1rem; border: 1px solid var(--ink); font-weight: 700; cursor: pointer; }
.primary-action { background: var(--yellow); }
.primary-action:disabled { cursor: not-allowed; opacity: .45; }
.setup-rail > .primary-action { width: 100%; margin-top: 1.5rem; }
.danger-action { background: var(--pink); }
.action-note { color: var(--muted); font-size: .82rem; }
.ledger-shell, .result-shell { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0; }
.ledger-heading { max-width: 760px; }
.count-ledger { margin: 3rem 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: white; }
.count-ledger p { margin: 0; padding: 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.count-ledger p:last-child { border: 0; }
.count-ledger strong { font: 900 2.6rem/1 "Titillium Web", sans-serif; }
.count-ledger span { color: var(--muted); }
.current-operation { padding: 1.5rem; display: flex; gap: 1rem; background: color-mix(in srgb, var(--pink) 30%, white); border-left: 8px solid var(--pink); }
.current-operation h2, .current-operation p { margin-bottom: 0; }
.status-glyph { font-size: 1.5rem; }
.privacy-note { color: var(--muted); font-size: .9rem; }
.result-table-wrap { margin: 3rem 0 2rem; overflow-x: auto; background: white; border: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
caption { padding: 1rem; text-align: left; font-weight: 700; }
th, td { padding: .9rem; text-align: left; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, white); }
th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
td small { display: block; color: var(--muted); }
td code { max-width: 16ch; display: block; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
[data-result-select] { width: 22px; accent-color: var(--purple); }
.result-select-hit { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; cursor: pointer; }
.outcome { display: inline-flex; gap: .4rem; font-weight: 700; }
.outcome.success { color: color-mix(in srgb, var(--ink) 82%, var(--mint)); }
.outcome.failed { color: color-mix(in srgb, var(--ink) 75%, var(--purple)); }
.purchase-ledger { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: white; border: 1px solid var(--ink); }
.purchase-ledger h2, .purchase-ledger p { margin-bottom: .25rem; }
.selection-warning { padding: .8rem 1rem; background: color-mix(in srgb, var(--peach) 45%, white); }
dialog { width: min(520px, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--purple); }
dialog::backdrop { background: rgba(22, 22, 22, .55); }
.dialog-actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: .75rem; }
.site-footer { min-height: 64px; padding: 1rem clamp(1rem, 5vw, 4rem); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid color-mix(in srgb, var(--ink) 18%, white); font-size: .8rem; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .upload-shell { grid-template-columns: 1fr; }
  .setup-rail { position: static; }
  .purchase-ledger { align-items: stretch; flex-direction: column; }
}
@media (max-width: 640px) {
  .service-label { display: none; }
  .process-rail li { min-height: 62px; flex-direction: column; gap: .1rem; font-size: .68rem; }
  .price-strip { grid-template-columns: 1fr; }
  .price-strip p { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .price-strip p:last-child { border-bottom: 0; }
  .count-ledger { grid-template-columns: 1fr; }
  .count-ledger p { border-right: 0; border-bottom: 1px solid var(--ink); }
  .section-heading, .site-footer { align-items: flex-start; flex-direction: column; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
