/* ==========================================================================
   Inkyard banner configurator - site theme
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-100_900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #14212d;
  --ink-2: #22374a;
  --ink-soft: #5b6a77;
  --bg: #e7eaec;
  --card: #ffffff;
  --line: #cfd5da;
  --hi: #ffd23f;
  --hi-deep: #f2b700;
  --ok: #1d7f55;
  --warn: #b86e00;
  --bad: #c8203a;
  --info: #0b6fa4;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.wrap { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--hi); padding: 8px 14px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.topline { background: var(--ink); color: #c9d3dc; font-size: 13px; text-align: center; padding: 7px 16px; }
.topline p { margin: 0; }
.topline .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hi); margin-right: 6px; vertical-align: 1px; }
.site-head { background: #fff; border-bottom: 2px solid var(--ink); position: relative; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--ink); }
.brand-word { font-weight: 850; font-stretch: 118%; font-size: 23px; letter-spacing: -.01em; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-weight: 500; font-stretch: 100%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 6px; transition: background .2s var(--ease); }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--hi); border-radius: 0; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { font-family: var(--mono); font-weight: 600; font-size: 14px; text-decoration: none; }
.head-admin { font-size: 14px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.head-admin:hover { background: var(--ink); color: #fff; }

/* ---------- stage ---------- */
.stage-wrap { background: var(--ink); color: #fff; padding: 22px 0 0; position: relative; }
.stage-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: end; }
.crumbs { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #8fa1b1; }
.crumbs a { color: #c9d3dc; text-decoration: none; }
.crumbs span { margin: 0 6px; opacity: .5; }
.stage-intro h1 { margin: 0; font-weight: 850; font-stretch: 122%; font-size: clamp(32px, 4.3vw, 58px); line-height: .98; letter-spacing: -.025em; }
.stage-intro h1 em { font-style: normal; color: var(--hi); position: relative; white-space: nowrap; }
.stage-intro h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; background: repeating-linear-gradient(90deg, var(--hi) 0 2px, transparent 2px 10px); }
.lede { grid-column: 1; margin: 0; color: #c9d3dc; max-width: 58ch; font-size: 17px; }
.facts { grid-column: 2; grid-row: 2 / span 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #33485b; }
.facts li { padding: 14px 12px 4px 0; display: flex; flex-direction: column; }
.facts b { font-family: var(--mono); font-weight: 600; font-size: 19px; color: var(--hi); }
.facts span { font-size: 13px; color: #8fa1b1; }

.stage { margin: 20px auto 0; width: min(1440px, 100%); position: relative; height: clamp(320px, 40vw, 560px); overflow: hidden; border-top: 1px solid #2a3c4d; }
.stage svg { width: 100%; height: 100%; }
.stage .art-head { font-family: var(--sans); font-weight: 900; font-stretch: 112%; fill: #ffd23f; letter-spacing: -.01em; }
.stage .art-sub { font-family: var(--sans); font-weight: 700; fill: #ffffff; letter-spacing: .08em; }
.stage .art-file { font-family: var(--mono); fill: #5b6a77; }
.stage .lbl-pill { font-family: var(--mono); font-weight: 600; fill: var(--ink); }
.stage .lbl-dim { font-family: var(--mono); fill: #8fa1b1; }
.stage-cap { position: absolute; left: max(20px, calc((100% - 1280px) / 2)); bottom: 18px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; color: #c9d3dc; background: rgba(11, 20, 28, .72); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 8px; }
.cap-size { color: var(--hi); font-weight: 600; }
.cap-sep { width: 4px; height: 4px; border-radius: 50%; background: #5b6a77; }
.stage-tools { position: absolute; right: max(20px, calc((100% - 1280px) / 2)); bottom: 18px; display: flex; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .08); color: #e6ecf1; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chip-btn svg { width: 15px; height: 15px; fill: currentColor; }
.chip-btn:hover { background: rgba(255, 255, 255, .16); }
.chip-btn.is-on { background: var(--hi); color: var(--ink); border-color: var(--hi); }

/* ---------- builder ---------- */
.builder { padding: 46px 0 30px; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { margin: 0; border: 2px solid var(--ink); background: var(--card); border-radius: 4px; padding: 26px 28px 28px; box-shadow: var(--shadow); min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
.step legend + * { clear: both; }
.num { font-family: var(--sans); font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: .8; color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.step-t { font-weight: 800; font-stretch: 112%; font-size: 24px; letter-spacing: -.01em; }

/* units */
.units { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 20px; }
.units input, .art-tabs input, .edge-chips input, .turn input, .mat input { position: absolute; opacity: 0; pointer-events: none; }
.units span { display: block; padding: 5px 15px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s var(--ease), color .2s; }
.units input:checked + span { background: var(--ink); color: #fff; }
.units input:focus-visible + span { outline: 3px solid var(--info); }

/* dimensions */
.dims { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: start; }
.dim label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 6px; }
.num-field { display: flex; align-items: baseline; border-bottom: 3px solid var(--ink); transition: border-color .2s; }
.num-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); padding: 2px 0; outline: none; -moz-appearance: textfield; }
.num-field input::-webkit-outer-spin-button, .num-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit-tag { font-family: var(--mono); font-size: 16px; color: var(--ink-soft); padding-left: 6px; }
.num-field:focus-within { border-color: var(--hi-deep); }
.num-field.bad { border-color: var(--bad); }
.num-field.bad input { color: var(--bad); }
.slider { width: 100%; margin: 14px 0 4px; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; --fill: 50%; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--line) var(--fill)); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--hi); border: 2.5px solid var(--ink); transition: transform .15s; }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--hi); border: 2.5px solid var(--ink); }
.slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.hint { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.swap { margin-top: 30px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.swap svg { width: 20px; height: 20px; }
.swap:hover { background: var(--hi); }
.swap.spin svg { animation: spin .5s var(--ease); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(180deg); } }

.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.presets-t { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.presets button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; transition: border-color .2s, background .2s; }
.presets button:hover { border-color: var(--ink); background: var(--bg); }

.field-error { margin: 10px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s var(--ease), opacity .3s; }
.field-error.show { max-height: 120px; opacity: 1; }
.ck-fix { margin-left: 6px; border: 1.5px solid currentColor; background: transparent; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; color: inherit; }
.ck-fix:hover { background: var(--hi); color: var(--ink); border-color: var(--ink); }

/* materials */
.materials { display: grid; gap: 10px; }
.mat { display: block; cursor: pointer; }
.mat-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; border: 2px solid var(--line); border-radius: 4px; padding: 12px 16px 12px 12px; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); position: relative; }
.mat:hover .mat-card { border-color: var(--ink-soft); }
.mat input:checked + .mat-card { border-color: var(--ink); box-shadow: 4px 4px 0 var(--hi), 4px 4px 0 2px var(--ink); transform: translate(-2px, -2px); }
.mat input:focus-visible + .mat-card { outline: 3px solid var(--info); }
.swatch { width: 74px; height: 58px; border-radius: 3px; border: 1px solid #b8c0c7; position: relative; overflow: hidden; background: #f3f3ef; }
.tex-matte { background: radial-gradient(circle at 30% 30%, rgba(0,0,0,.05) 0 1px, transparent 1.5px) 0 0 / 5px 5px, #f1f1ec; }
.tex-gloss { background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.95) 47%, transparent 58%), linear-gradient(180deg, #f8f8f8, #e3e6e9); }
.tex-mesh { background: radial-gradient(circle, #14212d 0 1.3px, transparent 1.6px) 0 0 / 5px 5px, #f3f3ef; }
.tex-blockout { background: linear-gradient(135deg, #f4f4f0 50%, #9ca5ad 50%); }
.tex-fabric { background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px), #f6f4f0; }
.mat-body { display: flex; flex-direction: column; min-width: 0; }
.mat-name { font-weight: 800; font-size: 17px; }
.mat-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.mat-desc { font-size: 14px; color: #3d4c59; margin-top: 2px; }
.mat-rate { text-align: right; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; align-items: flex-end; }
.mat-rate b { font-family: var(--mono); font-size: 20px; color: var(--ink); }
.mat-rate i { font-style: normal; font-size: 12px; margin-top: 2px; }

/* finishes */
.finishes { display: grid; gap: 12px; }
.fin { border: 2px solid var(--line); border-radius: 4px; padding: 14px 16px 16px; transition: border-color .25s, background .25s; position: relative; }
.fin.is-on { border-color: var(--ink); background: linear-gradient(90deg, var(--hi) 0 6px, #fff 6px); }
.fin-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.fin-ico svg { width: 52px; height: 52px; }
.fin-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.fin-head p { margin: 2px 0 0; font-size: 14px; color: #3d4c59; }
.fin-price { font-family: var(--mono); font-weight: 600; font-size: 17px; text-align: right; display: flex; flex-direction: column; }
.fin-price small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.edge-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-left: 66px; }
.edge-chips span { display: block; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; transition: all .2s var(--ease); }
.edge-chips label:hover span { border-color: var(--ink-soft); }
.edge-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.edge-chips input:focus-visible + span { outline: 3px solid var(--info); }

/* artwork */
.art-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.art-tabs span { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 4px; padding: 12px 16px; cursor: pointer; transition: border-color .2s, background .2s; height: 100%; }
.art-tabs b { font-size: 15.5px; }
.art-tabs small { font-size: 13px; color: var(--ink-soft); }
.art-tabs input:checked + span { border-color: var(--ink); background: #f6f8f9; box-shadow: inset 0 -4px 0 var(--hi); }
.art-tabs input:focus-visible + span { outline: 3px solid var(--info); }
.drop { position: relative; border: 2px dashed #9aa6b1; border-radius: 6px; background: repeating-linear-gradient(-45deg, #fafbfb 0 10px, #f3f5f6 10px 20px); transition: border-color .2s, background .2s; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.over { border-color: var(--ink); background: #fff8d6; }
.drop.has-file input[type=file] { pointer-events: none; }
.drop-empty { text-align: center; padding: 28px 16px; pointer-events: none; }
.drop-empty svg { width: 42px; height: 42px; margin: 0 auto 6px; color: var(--ink); }
.drop-empty p { margin: 0; }
.drop-rules { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 6px !important; }
.drop-file { padding: 16px; background: #fff; border-radius: 4px; position: relative; z-index: 2; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-badge { font-family: var(--mono); font-weight: 600; font-size: 12px; background: var(--ink); color: var(--hi); padding: 10px 8px; border-radius: 3px; min-width: 48px; text-align: center; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { font-family: var(--mono); color: var(--ink-soft); }
.file-x { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.file-x:hover { border-color: var(--bad); color: var(--bad); }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 28px; font-size: 14px; animation: rise .35s var(--ease) both; }
.checks li::before { position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.ck-ok::before { content: "✓"; background: var(--ok); }
.ck-warn::before { content: "!"; background: var(--warn); }
.ck-bad::before { content: "×"; background: var(--bad); }
.ck-info::before { content: "i"; background: var(--info); }
.ck-warn { color: #6b4300; }
.ck-bad { color: var(--bad); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.brief { margin-top: 14px; }
.brief label, .field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.brief textarea, .field input, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 4px; padding: 10px 12px; background: #fff; transition: border-color .2s; }
.brief textarea:focus, .field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 3px 0 var(--hi); }
.field.has-err input { border-color: var(--bad); }
.field small { font-weight: 500; color: var(--ink-soft); }
.rules { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rules summary { font-weight: 700; cursor: pointer; font-size: 14.5px; }
.rules ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: #3d4c59; }
.rules li { margin: 3px 0; }

/* qty + turnaround */
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.qty { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.qty button { width: 46px; border: 0; background: #fff; font-size: 24px; font-weight: 600; transition: background .15s; }
.qty button:hover { background: var(--hi); }
.qty input { width: 76px; border: 0; border-inline: 2px solid var(--ink); text-align: center; font-family: var(--mono); font-weight: 600; font-size: 22px; padding: 8px 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.breaks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breaks li { font-size: 13.5px; border: 1.5px dashed var(--line); border-radius: 999px; padding: 5px 12px; transition: all .25s var(--ease); }
.breaks li.hit { background: var(--hi); border: 1.5px solid var(--ink); font-weight: 700; }
.turns { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.turn span { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 4px; padding: 12px 14px; cursor: pointer; height: 100%; transition: border-color .2s, background .2s; }
.turn b { font-size: 16px; }
.turn small { font-size: 13px; color: var(--ink-soft); }
.turn i { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 13px; margin-top: 6px; }
.turn input:checked + span { border-color: var(--ink); background: #f6f8f9; box-shadow: inset 4px 0 0 var(--hi); }
.turn input:focus-visible + span { outline: 3px solid var(--info); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }

/* ---------- docket (the receipt) ---------- */
.docket-col { position: sticky; top: 20px; filter: drop-shadow(0 14px 18px rgba(20, 33, 45, .16)) drop-shadow(0 2px 2px rgba(20, 33, 45, .12)); }
.docket { position: relative; background: #fff; padding: 28px 26px 24px; font-family: var(--mono); font-size: 14px; transform: rotate(-.6deg);
  --z: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  padding-top: calc(28px + var(--z)); padding-bottom: calc(24px + var(--z)); }
.docket-col::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2.5deg); background: rgba(255, 210, 63, .78); z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dk-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.dk-t { font-weight: 600; color: var(--ink); }
.dk-size { font-family: var(--sans); font-weight: 900; font-stretch: 115%; font-size: 30px; letter-spacing: -.02em; margin: 14px 0 0; line-height: 1.1; }
.dk-sub { margin: 2px 0 12px; color: var(--ink-soft); font-size: 13px; }
.dk-lines { list-style: none; margin: 0; padding: 10px 0; border-top: 1px dashed #9aa6b1; border-bottom: 1px dashed #9aa6b1; }
.dk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; animation: rise .3s var(--ease) both; }
.l-t { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.l-t small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.l-a { white-space: nowrap; font-weight: 600; }
.dk-sums { margin: 0; padding: 10px 0 4px; }
.dk-sums div { display: flex; justify-content: space-between; padding: 3px 0; }
.dk-sums dt { color: #3d4c59; }
.dk-sums dd { margin: 0; font-weight: 600; }
.dk-sums .save dd, .dk-sums .save dt { color: var(--ok); }
.dk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); }
.dk-total span { font-family: var(--sans); font-weight: 800; font-size: 16px; display: flex; flex-direction: column; line-height: 1.1; }
.dk-total small { font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.dk-total b { font-family: var(--sans); font-weight: 900; font-stretch: 112%; font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.dk-each { margin: 4px 0 0; text-align: right; color: var(--ink-soft); font-size: 12.5px; min-height: 1em; }
.dk-warn { margin: 10px 0 0; padding: 9px 12px; background: #fff1f3; color: var(--bad); font-family: var(--sans); font-weight: 600; font-size: 14px; border-left: 4px solid var(--bad); }
.docket.is-invalid .dk-total b { color: #9aa6b1; }
.order-btn { position: relative; overflow: hidden; width: 100%; margin-top: 18px; border: 0; border-radius: 4px; background: var(--ink); color: var(--hi); font-family: var(--sans); font-weight: 800; font-stretch: 110%; font-size: 18px; padding: 16px 18px; transition: background .2s, color .2s, transform .15s; }
.order-btn:hover:not(:disabled) { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.order-btn:active:not(:disabled) { transform: translateY(1px); }
.order-btn:disabled { background: #b7c0c8; color: #eef1f3; cursor: not-allowed; }
.order-btn.busy { background: var(--ink-2); color: #fff; cursor: progress; }
.ob-label { position: relative; z-index: 1; }
.ob-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 210, 63, .35); transition: width .2s linear; }
.dk-fine { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- mobile price bar ---------- */
.mbar { display: none; }

/* ---------- guide + faq ---------- */
.guide { padding: 50px 0 20px; }
.guide h2, .faq h2 { font-weight: 850; font-stretch: 118%; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; margin: 0 0 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide article { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.guide article:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.g-art { width: 100%; aspect-ratio: 16 / 9; background: var(--bg); border-radius: 3px; display: grid; place-items: center; margin-bottom: 14px; }
.g-art svg { width: 38%; height: auto; }
.guide h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.guide p { margin: 0; color: #3d4c59; font-size: 15px; }
.soon { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--hi); padding: 2px 7px; border-radius: 3px; vertical-align: 3px; margin-left: 4px; }
.faq { padding: 40px 0 70px; max-width: 900px; }
.faq details { border-top: 2px solid var(--ink); padding: 16px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: #3d4c59; max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9d3dc; padding: 46px 0 22px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot-brand { font-weight: 850; font-stretch: 118%; font-size: 26px; color: #fff; margin: 0 0 8px; display: flex; flex-direction: column; line-height: 1; }
.foot-brand span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8fa1b1; margin-top: 4px; font-stretch: 100%; }
.foot-note { max-width: 40ch; margin: 0; }
.site-foot h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hi); margin: 0 0 8px; }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2c4052; margin-top: 30px; padding-top: 16px; font-size: 13px; color: #8fa1b1; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--hi); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 30; box-shadow: 3px 3px 0 var(--ink); }
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .builder-grid { grid-template-columns: minmax(0, 1fr); }
  .steps, .step { min-width: 0; max-width: 100%; }
  .docket-col { position: relative; top: 0; max-width: 520px; width: 100%; margin: 10px auto 0; }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 10px 10px 16px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .35s var(--ease), opacity .35s; }
  .mbar small { display: block; font-size: 11px; color: #8fa1b1; }
  .mbar b { font-family: var(--sans); font-weight: 900; font-stretch: 112%; font-size: 24px; color: var(--hi); line-height: 1.1; }
  .mbar-btn { background: var(--hi); color: var(--ink); font-weight: 800; text-decoration: none; padding: 11px 16px; border-radius: 6px; }
  .mbar.hide { transform: translateY(130%); opacity: 0; }
  .to-top { bottom: 88px; }
}
@media (max-width: 860px) {
  .main-nav, .head-phone { display: none; }
  .stage-intro { grid-template-columns: 1fr; }
  .facts { grid-column: 1; grid-row: auto; }
  .stage { height: clamp(300px, 78vw, 460px); }
  .stage-cap { font-size: 12px; gap: 8px; left: 12px; bottom: 10px; }
  .stage-tools { right: 12px; top: 10px; bottom: auto; }
  .topline .more { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); }
  .step { padding: 20px 16px 22px; box-shadow: 4px 4px 0 var(--ink); }
  .num { font-size: 34px; }
  .step-t { font-size: 20px; }
  .dims { grid-template-columns: 1fr; gap: 6px; }
  .swap { margin: 0 auto; transform: rotate(90deg); }
  .mat-card { grid-template-columns: 54px 1fr; }
  .swatch { width: 54px; height: 46px; }
  .mat-rate { grid-column: 2; flex-direction: row; gap: 6px; align-items: baseline; text-align: left; }
  .fin-head { grid-template-columns: 40px 1fr; }
  .fin-ico svg { width: 40px; height: 40px; }
  .fin-price { grid-column: 2; flex-direction: row; gap: 6px; align-items: baseline; text-align: left; }
  .edge-chips { padding-left: 0; }
  .art-tabs, .grid2 { grid-template-columns: 1fr; }
  .head-admin { padding: 6px 11px; font-size: 13px; }
  .stage-cap .cap-sep, .stage-cap [data-out=material] { display: none; }
  .chip-btn { font-size: 12px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- order confirmation ---------- */
.order-page { padding: 40px 0 70px; }
.ticket-hero { position: relative; margin-bottom: 28px; }
.ticket-hero h1 { font-weight: 850; font-stretch: 118%; font-size: clamp(28px, 4vw, 50px); letter-spacing: -.02em; line-height: 1.02; margin: 0 0 10px; max-width: 20ch; }
.lede-dark { margin: 0; color: #3d4c59; }
.lede-dark b { font-family: var(--mono); background: var(--hi); padding: 1px 6px; }
.stamp { display: inline-block; margin: 0 0 14px; font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ok); border: 2.5px solid var(--ok); padding: 4px 12px; border-radius: 4px; transform: rotate(-3deg); animation: stamp .5s var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.6); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.mini-stage { margin: 0; height: 360px; background: var(--ink); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--ink); }
.mini-stage svg { width: 100%; height: 100%; }
.mini-stage .art-file { font-family: var(--mono); fill: #5b6a77; }
.mini-stage .lbl-pill { font-family: var(--mono); font-weight: 600; fill: var(--ink); }
.mini-stage .lbl-dim { font-family: var(--mono); fill: #8fa1b1; }
.mini-stage .art-head { font-family: var(--sans); font-weight: 900; fill: #ffd23f; }
.mini-stage .art-sub { font-family: var(--sans); font-weight: 700; fill: #fff; letter-spacing: .08em; }
.next-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.next-steps li { counter-increment: s; background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 16px 16px 16px 76px; position: relative; display: flex; flex-direction: column; }
.next-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 14px; top: 12px; font-weight: 900; font-stretch: 125%; font-size: 26px; color: transparent; -webkit-text-stroke: 1.3px var(--ink); }
.next-steps span { font-size: 14px; color: #3d4c59; }
.docket-static { transform: rotate(.5deg); }
.order-btn.as-link { display: block; text-align: center; text-decoration: none; }
.ticket-missing { padding: 60px 0; }
.btn-ink { display: inline-block; background: var(--ink); color: var(--hi); text-decoration: none; font-weight: 800; padding: 12px 20px; border-radius: 4px; }
@media (max-width: 1080px) { .ticket-grid { grid-template-columns: minmax(0, 1fr); } .docket-static { max-width: 520px; } }
@media (max-width: 600px) { .next-steps { grid-template-columns: 1fr; } .mini-stage { height: 260px; } }
