/* JG BeatsLab order page: near-black, white, brand red. Fonts are self-hosted from /fonts. */

@font-face { font-family: "Archivo Black"; src: url("fonts/ArchivoBlack-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: #262626;
  --text: #ffffff;
  --body: #b3b3b3;
  --dim: #737373;
  --red: #e50914;
  --red-hover: #a3060d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --error: #ff5a5f;
  --font-head: "Archivo Black", "Arial Black", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 880px; margin: 0 auto; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-mark { font-family: var(--font-head); background: var(--red); color: #fff; padding: 2px 7px; border-radius: 2px; font-size: 15px; letter-spacing: 0.5px; }
.brand-name { font-family: var(--font-head); font-size: 17px; letter-spacing: 0.5px; text-transform: uppercase; }
.product, .label, .eyebrow, .mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.product { color: var(--dim); font-size: 12px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; color: var(--text); line-height: 1.1; letter-spacing: 0.01em; }
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: clamp(32px, 7vw, 52px); margin: 4px 0 10px; }
.tagline { margin: 0; font-size: 18px; max-width: 38em; }
.eyebrow { color: var(--red); font-size: 12px; margin: 0; }

.step { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.step h2 { font-size: 22px; margin: 4px 0 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.label { font-size: 11px; color: var(--dim); }
input:not([type="checkbox"]), textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 2px; padding: 11px 12px; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--dim); outline: none; }
input[aria-invalid="true"] { border-color: var(--error); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; color: var(--text); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.hint { color: var(--dim); font-size: 14px; margin: 8px 0; }
.hint.err { color: var(--error); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 170px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 2px; background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--red); background: var(--surface-2); }
.drop-icon { width: 34px; height: 34px; color: var(--red); }
.drop-title { color: var(--text); font-weight: 600; font-size: 17px; }
.drop-sub { font-size: 11px; color: var(--dim); }
.check-box { margin: 0 0 14px; }

.tracks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 14px; }
.track-top { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.track-file { font-family: var(--font-mono); font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.track-status { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.track-status.done { color: var(--ok); }
.track-status.error, .track-status.missing { color: var(--error); }
.track-status.waiting, .track-status.awaiting { color: var(--warn); }
.bar { height: 4px; background: var(--line); margin: 10px 0 12px; border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.track.done .bar span { background: var(--ok); }
.track-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 12px; }
.track-fields .field { margin-bottom: 8px; }
.track-fields textarea { min-height: 44px; }
.measured { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--surface-2); border-left: 2px solid var(--red); padding: 8px 10px; margin: 0 0 10px; }
.track-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.track-addons { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 4px 0 6px; }
.track-addons .checkbox { margin: 0; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; color: var(--dim); text-decoration: underline; cursor: pointer; min-height: 32px; }
.link-btn:hover { color: var(--red); }

.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: #fff; background: var(--red); border: 0; border-radius: 2px;
  padding: 12px 22px; min-height: 46px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em;
}
.btn:hover:not(:disabled) { background: var(--red-hover); }
.btn:disabled { background: #3a3a3a; color: var(--dim); cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--red); }
.btn-pay { width: 100%; font-size: 18px; min-height: 56px; margin-top: 8px; }

.code-row { display: flex; gap: 10px; align-items: flex-end; }
.code-row .grow { flex: 1; margin-bottom: 0; }
.code-row input { text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.08em; }
.code-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; }
.code-msg.ok { color: var(--ok); }
.code-msg.error { color: var(--error); }
.code-msg .sub { display: block; color: var(--body); }

.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-size: 13px; }
.summary dt { padding-right: 16px; }
.summary dt { color: var(--body); text-transform: none; letter-spacing: 0.02em; }
.summary dd { margin: 0; text-align: right; color: var(--text); }
.summary .discount { color: var(--ok); }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; color: var(--text); font-weight: 700; }
.turnaround { color: var(--text); margin: 14px 0 6px; font-weight: 600; }

.alert { border: 1px solid var(--error); color: var(--text); background: rgba(229, 9, 20, 0.1); padding: 12px 14px; margin: 16px 0 0; border-radius: 2px; }
.alert.info { border-color: var(--line); background: var(--surface); }
.fine-print { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 14px; color: var(--dim); }
.fine-print ul { margin: 0; padding-left: 18px; }

/* Status confirm page and thank-you page */
.status-page .wrap, .thanks .wrap { max-width: 640px; padding-top: 32px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
.kv dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.notice { border-left: 2px solid var(--red); padding: 8px 12px; background: var(--surface); color: var(--text); }
.status-form { margin-top: 16px; }

@media (max-width: 640px) {
  .grid-3, .track-fields { grid-template-columns: 1fr; }
  .dropzone { min-height: 200px; }
  .step h2 { font-size: 20px; }
  .code-row { flex-direction: column; align-items: stretch; }
}
