/* Shared by the order, tracking and admin pages. The landing page carries its own styles. */
:root {
  --ink: #0b0b0f;
  --ink-2: #16161d;
  --ink-3: #20202a;
  --line: #2c2c38;
  --yellow: #ffd23f;
  --blue: #3355ff;
  --green: #25d366;
  --red: #ff5a4f;
  --muted: #9a9aa8;
  --text: #f2f2f5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(28px, 7vw, 40px); text-transform: uppercase; }
h2 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.yellow { color: var(--yellow); }
[hidden] { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 80px; }
.wrap.wide { max-width: 1100px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 28px; }
.logo { font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: -0.04em; text-decoration: none; }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.code {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--ink-3);
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}

label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
label .hint { font-weight: 500; color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn.block { width: 100%; }
.btn.green { background: var(--green); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--line); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--yellow); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.notice { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--ink-3); }
.notice.error { background: #3a1512; color: #ffc9c4; }
.notice.ok { background: #10301c; color: #b9f5cf; }

.chip { display: inline-block; border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 800; background: var(--ink-3); white-space: nowrap; }
.chip.created { color: var(--muted); }
.chip.submitted { background: #3a2f08; color: var(--yellow); }
.chip.paid { background: #10301c; color: #7ee2a8; }
.chip.in_production { background: #141f52; color: #a9b8ff; }
.chip.delivered { background: #7ee2a8; color: var(--ink); }
.chip.canceled { background: #3a1512; color: #ffb0a9; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; padding: 0 0 22px 36px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 16px; height: 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--ink-2); }
.steps li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--yellow); border-color: var(--yellow); }
.steps li.done::after { background: var(--yellow); }
.steps li.now { color: var(--text); }
.steps li.now::before { border-color: var(--yellow); }
.steps b { display: block; font-weight: 800; }

video.delivery { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; display: block; margin: 0 auto; }
dl.brief { margin: 0; display: grid; gap: 12px; }
dl.brief dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
dl.brief dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
