:root {
  --paper: #f3f5f9;
  --sheet: #ffffff;
  --ink: #0e1a33;
  --muted: #5a6478;
  --line: #d3d9e4;
  --c: #00a0dc;
  --m: #e4157f;
  --y: #ffd100;
  --k: #26262b;
  --ok: #1e9e5a;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 800 1.25rem/1 var(--display); letter-spacing: -.01em; text-decoration: none;
}
.cmyk { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; }
.cmyk i { display: block; }
.cmyk i:nth-child(1) { background: var(--c); }
.cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); }
.cmyk i:nth-child(4) { background: var(--k); }
.call { font-weight: 600; text-decoration: none; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }
.call:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.hero { display: grid; gap: 3rem; padding: 2.5rem 0 4rem; align-items: start; }
@media (min-width: 920px) { .hero { grid-template-columns: 1fr 460px; gap: 4.5rem; padding-top: 4rem; } }

h1 {
  margin: 0 0 1.25rem; font: 800 clamp(3.4rem, 9vw, 6.6rem)/.92 var(--display);
  letter-spacing: -.035em;
}
.lead { font-size: 1.15rem; max-width: 34rem; color: var(--muted); margin: 0 0 2rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 34rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: .05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 .85rem/1 var(--display);
  background: var(--ink); color: #fff;
}
.steps b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- order sheet with crop marks ---------- */
.sheet-wrap { position: relative; padding: 18px; }
.mark { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); }
.mark.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.mark.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.mark.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.mark.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.swatches { display: flex; gap: 4px; margin-top: .6rem; }
.swatches i { width: 28px; height: 8px; }
.swatches i:nth-child(1) { background: var(--c); }
.swatches i:nth-child(2) { background: var(--m); }
.swatches i:nth-child(3) { background: var(--y); }
.swatches i:nth-child(4) { background: var(--k); }

.sheet {
  background: var(--sheet); padding: 1.4rem; display: grid; gap: 1rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(14, 26, 51, .35);
}
.sheet label, .sheet legend { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sheet label { display: grid; gap: .3rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; border: 0; margin: 0; padding: 0; align-items: end; }
fieldset.row { grid-template-columns: auto 1fr 1fr; align-items: center; }
fieldset legend { float: left; margin-right: .8rem; padding: 0; line-height: 2.4rem; }

input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--line); border-radius: 6px; padding: .6rem .7rem;
}
input:hover, select:hover, textarea:hover { border-color: #aab3c4; }
textarea { resize: vertical; }

.drop {
  position: relative; display: grid; gap: .2rem; text-align: center;
  padding: 1.8rem 1rem; cursor: pointer; border: 2px dashed var(--line); border-radius: 8px;
  background: var(--paper); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--ink); background: #eaeef5; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font: 700 1.1rem/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.drop-sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.drop.has-file { border-style: solid; border-color: var(--ink); }

.pill { display: block; }
.pill input { position: absolute; opacity: 0; }
.pill span {
  display: block; text-align: center; padding: .6rem .5rem; border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); cursor: pointer; font-weight: 500;
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.check { display: flex !important; align-items: center; gap: .5rem; padding-bottom: .65rem; color: var(--ink) !important; font-weight: 500 !important; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1rem; }
.total span { color: var(--muted); }
.total strong { font: 800 1.9rem/1 var(--display); letter-spacing: -.02em; }
button[type=submit] {
  font: 700 1.05rem/1 var(--display); padding: 1rem; border: 0; border-radius: 6px;
  background: var(--ink); color: #fff; cursor: pointer;
}
button[type=submit]:hover { background: #1a2b52; }
button[type=submit]:disabled { opacity: .6; cursor: progress; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }
.error { margin: 0; padding: .6rem .8rem; border-left: 3px solid var(--m); background: #fdecf4; font-size: .92rem; }

/* ---------- prices ---------- */
.prices { padding: 1rem 0 4rem; max-width: 640px; }
h2 { font: 800 2rem/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--sheet); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
td:first-child { font-weight: 700; font-family: var(--display); }
.prices .fine { margin-top: .8rem; }

/* ---------- status page ---------- */
.status-page { max-width: 640px; padding-top: 3rem; padding-bottom: 4rem; }
.order-no { font-size: clamp(2.6rem, 10vw, 4.4rem); margin-bottom: 1.5rem; letter-spacing: .02em; }
.status { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: var(--sheet); border-left: 6px solid var(--line); margin-bottom: 1.5rem; }
.status strong { font: 700 1.3rem/1.2 var(--display); }
.status p { margin: .25rem 0 0; color: var(--muted); }
.status .dot { width: .9rem; height: .9rem; border-radius: 50%; margin-top: .4rem; background: var(--line); flex: none; }
.status[data-state=new] { border-color: var(--y); } .status[data-state=new] .dot { background: var(--y); }
.status[data-state=printing] { border-color: var(--c); } .status[data-state=printing] .dot { background: var(--c); }
.status[data-state=done] { border-color: var(--ok); } .status[data-state=done] .dot { background: var(--ok); }
.status[data-state=error] { border-color: var(--m); } .status[data-state=error] .dot { background: var(--m); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 0 0 1.5rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.back { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  display: grid; gap: 1.5rem; max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .foot { grid-template-columns: repeat(3, 1fr); } }
.foot p { margin: .2rem 0 0; color: var(--muted); }

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  fieldset.row { grid-template-columns: 1fr 1fr; }
  fieldset legend { float: none; grid-column: 1 / -1; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
