/*
  Zip Courier: bike courier booking app (Screenery template)
  Editorial graphic-novel and Risograph multi-panel splash page:
  thick black ink borders, asymmetric comic panels, controlled Ben-Day halftones,
  oversized display typography, geometric street-grid dispatch artwork, and crisp sequential panels.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. The comic kit: page grid, panels, folios, captions, balloons, bursts, SFX, buttons
   4. Masthead
   5. Editorial splash page (hero) and geometric dispatch map
   6. The job: map, choices, quote, form, states, tracking
   7. How a job runs (four-panel strip)
   8. App screens on CSS phones
   9. Prices
  10. Questions
  11. Back cover
  12. Motion
  13. Tablet and phone layouts
*/

/* ========== 1. Tokens ========== */
:root {
  /* Editorial Risograph four-ink palette */
  --ink: #111114;
  --paper: #fbf5e6;        /* warm newsprint cream */
  --paper-hi: #fffdf7;     /* bright balloon stock */
  --cyan: #0099db;         /* electric cyan */
  --magenta: #d91656;      /* punchy magenta */
  --yellow: #ffd600;       /* electric taxi yellow */

  /* Derived accessible tones */
  --ink-soft: #3a353d;     /* secondary text on cream, >10:1 */
  --err: #a80f42;          /* deepened magenta for inline errors, >6.8:1 on cream */
  --street: #1b1921;

  /* Typography */
  --display: 'Bangers', 'Impact', sans-serif;
  --text: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;

  /* Space, borders, and press shadows */
  --gut: clamp(10px, 1vw, 14px);
  --pad: clamp(18px, 2.2vw, 30px);
  --line: 3px;
  --border-panel: 4px;
  --r-ctl: 8px;
  --shadow-ink: 4px 4px 0 var(--ink);
  --dots: 10px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ========== 2. Base and browser surfaces ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--yellow) var(--ink); scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 1.02rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--magenta);
  caret-color: var(--magenta);
  overflow-x: clip;
}
::selection { background: var(--yellow); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--ink); border-radius: 8px; }
:focus-visible { outline: 4px solid var(--magenta); outline-offset: 3px; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 16px; border: var(--line) solid var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--lg { width: 42px; height: 42px; stroke-width: 2; }
.num, .sums td, .ptable td, .track__eta { font-variant-numeric: tabular-nums; }

/* ========== 3. The comic kit ========== */
.page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gut) var(--gut);
}
.panel {
  position: relative;
  min-width: 0;
  padding: var(--pad);
  background: var(--paper);
  border: var(--border-panel) solid var(--ink);
  margin: 0;
}
/* Controlled Risograph halftone screens that never muddy text readability */
.panel--paper { background: var(--paper); }
.panel--y { background: var(--yellow); }
.panel--c {
  background:
    radial-gradient(circle, rgb(0 153 219 / .32) 28%, transparent 31%) 0 0 / var(--dots) var(--dots),
    var(--paper);
}
.panel--m {
  background:
    radial-gradient(circle, rgb(217 22 86 / .24) 26%, transparent 29%) 0 0 / var(--dots) var(--dots),
    var(--paper);
}

/* Sequential panel folio tags */
.folio {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--ink);
  color: var(--yellow);
  padding: .32em .7em;
  border: 2px solid var(--ink);
  align-self: flex-start;
}
.folio--paper {
  background: var(--paper-hi);
  color: var(--ink);
  border: var(--line) solid var(--ink);
}

/* Display typography */
.h2, .h3, .title { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: .94; }
.h2 { font-size: clamp(2.5rem, 4.4vw, 4.1rem); }
.h3 { font-size: clamp(1.75rem, 2.3vw, 2.25rem); margin-bottom: .55em; padding: 0; }
.h2--paper { color: var(--ink); }

/* Narrator caption box */
.caption {
  display: inline-block;
  max-width: 36ch;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  padding: .42em .75em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 3px 3px 0 var(--ink);
}
.caption--paper { background: var(--paper-hi); }
.caption--tl { position: absolute; top: 0; left: 0; border-width: 0 var(--line) var(--line) 0; box-shadow: none; z-index: 4; }
.caption--inline { max-width: none; box-shadow: none; }

/* Speech balloon with sharp graphic tail */
.balloon {
  position: relative;
  display: inline-block;
  background: var(--paper-hi);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 26px;
  padding: .95em 1.35em;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  max-width: 28ch;
  box-shadow: 4px 4px 0 var(--ink);
}
.balloon::before, .balloon::after {
  content: '';
  position: absolute;
  left: 20%;
  top: 100%;
  width: 28px;
  height: 24px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 10% 100%);
}
.balloon::after { width: 20px; height: 17px; left: calc(20% + 4px); top: calc(100% - 4px); background: var(--paper-hi); }
.balloon--small { font-size: .88rem; border-radius: 20px; padding: .8em 1.15em; }

/* Action burst */
.burst { position: absolute; display: grid; place-items: center; pointer-events: none; }
.burst svg { width: 100%; height: 100%; overflow: visible; }
.burst polygon { fill: var(--yellow); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.burst .burst__back { fill: var(--magenta); transform: translate(14px, 12px); }
.burst span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); color: var(--magenta); letter-spacing: .04em;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}

/* Sound effects lettering */
.sfx {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: .9;
  letter-spacing: .04em;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-5deg);
}
.sfx--paper { color: var(--paper-hi); }
.sfx--small { font-size: clamp(2.2rem, 3.2vw, 3rem); color: var(--paper-hi); }

/* Buttons: inked, tactile Risograph press lift */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .6em 1.25em;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-ctl);
  background: var(--paper-hi);
  color: var(--ink);
  font-family: var(--display); font-size: 1.4rem; letter-spacing: .05em; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn--shadow { box-shadow: var(--shadow-ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--y { background: var(--yellow); }
.btn--y:hover { background: #ffe233; }
.btn--paper { background: var(--paper-hi); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn--big { font-size: 1.7rem; min-height: 58px; padding: .55em 1.35em; }
.btn[disabled] { cursor: progress; opacity: .7; transform: none; box-shadow: none; }

/* ========== 4. Masthead ========== */
.mast {
  display: flex; align-items: center; gap: 20px;
  max-width: 1600px; margin: 0 auto;
  padding: 12px calc(var(--gut) + 6px);
  color: var(--paper);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__burst { width: 46px; height: 46px; flex: none; }
.logo__bolt { fill: var(--ink); }
.logo__word {
  font-family: var(--display); font-size: 2.25rem; line-height: 1; letter-spacing: .05em;
  color: var(--yellow); text-shadow: 3px 3px 0 var(--magenta);
}
.mast__tag {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .76rem; color: var(--paper);
  padding: 5px 10px; border: 2px solid rgb(251 245 230 / .35); border-radius: 4px;
  line-height: 1.2;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: .94rem;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px;
}
.nav a:not(.btn):hover { color: var(--yellow); text-decoration: underline; }
.nav__cta { margin-left: 8px; color: var(--ink); min-height: 44px; }
.menu-btn { display: none; }

/* ========== 5. Editorial splash page ========== */
.splash {
  grid-template-rows: minmax(0, 1fr) auto;
  height: max(660px, calc(100svh - 76px));
  max-height: 840px;
}

/* Left dominant editorial title panel */
.p-title {
  grid-column: 1 / 7;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgb(255 214 0 / .22), transparent 52%),
    var(--paper);
}
.splash__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.issue-chip {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .42em .7em;
  background: var(--ink);
  color: var(--paper);
  border: var(--line) solid var(--ink);
}
.title {
  font-size: clamp(3.6rem, 6.2vw, 6.2rem);
  line-height: .88;
  letter-spacing: .025em;
  color: var(--ink);
  text-transform: uppercase;
}
.title span {
  display: block;
  color: var(--magenta);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.lede {
  max-width: 48ch;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* Bottom-left skewed action strips */
.p-ticket {
  grid-column: 1 / 4;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  padding: 18px calc(var(--pad) + 14px) 18px 20px;
}
.ticket {
  background: var(--paper-hi);
  border: var(--line) solid var(--ink);
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.ticket__kicker {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.ticket__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.ticket strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: .95;
  color: var(--ink);
}
.ticket__stamp {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 6px;
}
.p-ticket__note {
  display: inline-block;
  align-self: flex-start;
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  padding: 3px 8px;
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink);
}

.p-cargo {
  grid-column: 4 / 7;
  grid-row: 2;
  margin-left: -22px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  padding: 18px 20px 18px calc(20px + 22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.p-cargo__text {
  background: var(--paper-hi);
  border: var(--line) solid var(--ink);
  padding: .55em .8em;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.35;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Right dominant artwork panel: geometric street-grid dispatch map & speed-bolt */
.p-hero {
  grid-column: 7 / 13;
  grid-row: 1 / 3;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgb(0 153 219 / .34) 22%, transparent 25%) 0 0 / 10px 10px,
    var(--paper);
}
.dispatch-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.burst--hero {
  top: 14px;
  right: 14px;
  width: clamp(128px, 13.5vw, 186px);
  aspect-ratio: 410 / 395;
  z-index: 4;
  transform: rotate(8deg);
}
.burst--hero span {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  padding-bottom: 8%;
}
.balloon--hero {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 4;
  font-size: clamp(.82rem, 1vw, .95rem);
  max-width: 24ch;
  padding: .75em 1.1em;
}
.balloon--hero::before { left: 72%; }
.balloon--hero::after { left: calc(72% + 4px); }

/* ========== 6. The job ========== */
.job { margin-top: 0; }
.job__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.job__head p { max-width: 56ch; font-weight: 700; font-size: 1.05rem; }
.job__map { grid-column: 1 / 8; grid-row: 2 / 5; display: flex; flex-direction: column; gap: 16px; }
.job__size { grid-column: 8 / 13; grid-row: 2; }
.job__tier { grid-column: 8 / 13; grid-row: 3; }
.job__quote { grid-column: 8 / 13; grid-row: 4; }
.job__form { grid-column: 1 / 7; grid-row: 5; }
.track { grid-column: 7 / 13; grid-row: 5; }

.job__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pins { display: flex; gap: 8px; flex-wrap: wrap; }
.pin {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  min-height: 52px; padding: 6px 14px 6px 8px;
  background: var(--paper-hi); border: var(--line) solid var(--ink); border-radius: var(--r-ctl);
  cursor: pointer; text-align: left;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease-out), background-color .18s;
}
.pin:hover { transform: translate(-1px, -1px); }
.pin__dot {
  grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: var(--line) solid var(--ink);
  font-family: var(--display); font-size: 1.2rem;
}
.pin--p .pin__dot { background: var(--magenta); color: var(--paper-hi); }
.pin--d .pin__dot { background: var(--cyan); color: var(--ink); }
.pin__label { font-family: var(--mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pin strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; line-height: 1; }
.pin[aria-pressed="true"] { background: var(--yellow); }

.map-wrap { border: var(--border-panel) solid var(--ink); background: var(--street); box-shadow: var(--shadow-ink); }
.map { width: 100%; height: auto; }
.map__ground { fill: var(--street); }
.blk rect { stroke: var(--ink); stroke-width: 4; transition: fill .2s; }
.blk text { font-family: var(--mono); font-weight: 700; font-size: 21px; fill: var(--ink); letter-spacing: .02em; pointer-events: none; }
.blk--c rect { fill: url(#bg-c); }
.blk--m rect { fill: url(#bg-m); }
.blk--y rect { fill: url(#bg-y); }
.blk--n rect { fill: var(--paper); }
.blk--park rect { fill: url(#dot-park); }
.blk--hq rect { fill: var(--yellow); }
#map .blk { cursor: pointer; outline: none; }
#map .blk:hover rect { fill: var(--paper-hi); }
#map .blk--park { cursor: not-allowed; }
#map .blk:focus-visible rect { stroke: var(--paper-hi); stroke-width: 8; }
.blk.is-p rect, #map .blk.is-p:hover rect { fill: var(--magenta); }
.blk.is-p text { fill: var(--paper-hi); }
.blk.is-d rect, #map .blk.is-d:hover rect { fill: var(--cyan); }
.blk.is-d text { fill: var(--ink); }

.map__deco { pointer-events: none; }
.map__deco circle { fill: #258a43; stroke: var(--ink); stroke-width: 4; }
.map__bolt { fill: var(--magenta); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map__route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-ink { stroke: var(--paper-hi); stroke-width: 16; }
.route-line { stroke: var(--magenta); stroke-width: 8; stroke-dasharray: 2 16; }
.route-done { stroke: var(--magenta); stroke-width: 8; }
.mark circle { stroke: var(--ink); stroke-width: 5; }
.mark text { font-family: var(--display); font-size: 30px; text-anchor: middle; dominant-baseline: central; }
.mark--p circle { fill: var(--paper-hi); }
.mark--d circle { fill: var(--paper-hi); }
.mark--p text { fill: var(--err); }
.mark--d text { fill: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 22px; border: var(--line) solid var(--ink); border-radius: 4px; }
.sw--hq { background: var(--yellow); }
.sw--park { background: radial-gradient(circle, var(--cyan) 36%, transparent 38%) 0 0 / 7px 7px, var(--yellow); }

.field-err { color: var(--err); font-weight: 700; font-size: .92rem; display: flex; gap: 6px; align-items: baseline; }
.field-err::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--err); transform: rotate(45deg) translateY(-1px); }

/* Radio choices */
fieldset.panel { min-inline-size: 0; }
legend.h3 { float: left; width: 100%; }
.choices { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: grid; justify-items: start; gap: 3px; height: 100%;
  padding: 12px; background: var(--paper-hi); border: var(--line) solid var(--ink); border-radius: var(--r-ctl);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.choice__box b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; line-height: 1; margin-top: 4px; }
.choice__box small { font-size: .84rem; line-height: 1.25; color: var(--ink-soft); }
.choice__box em { font-family: var(--mono); font-style: normal; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.choice:hover .choice__box { transform: translate(-1px, -2px); }
.choice input:checked + .choice__box { background: var(--yellow); transform: rotate(-1.2deg); }
.choice input:checked + .choice__box small { color: var(--ink); }
.choice input:focus-visible + .choice__box { outline: 4px solid var(--magenta); outline-offset: 3px; }

/* Quote receipt */
.job__quote { overflow: visible; }
.quote-empty { padding: 8px 0 24px; }
.quote__route { font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: var(--line) solid var(--ink); }
.sums { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .94rem; }
.sums th { text-align: left; font-weight: 700; padding: 6px 0; white-space: nowrap; }
.sums td { padding: 6px 0 6px 10px; color: var(--ink-soft); font-size: .88rem; }
.sums td:last-child { text-align: right; color: var(--ink); font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.sums tr { border-bottom: 2px dotted var(--ink); }
.sums__sub th, .sums__sub td:last-child { font-style: italic; }
.sums__total { border-bottom: 0 !important; }
.sums__total th, .sums__total td:last-child { font-family: var(--display); font-weight: 400; font-size: 1.95rem; letter-spacing: .03em; padding-top: 8px; }
.sums__total td { font-size: .84rem; }
.burst--quote { top: -26px; right: 4px; width: 118px; aspect-ratio: 1; opacity: 0; transform: scale(.4) rotate(-30deg); }
.burst--quote span { font-size: 1.9rem; }
.burst--quote.is-on { opacity: 1; transform: scale(1) rotate(10deg); transition: transform .55s var(--ease-out), opacity .2s; }

/* Form */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.opt { text-transform: none; font-weight: 400; letter-spacing: 0; font-family: var(--text); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--paper-hi); border: var(--line) solid var(--ink); border-radius: var(--r-ctl);
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input::placeholder, .field textarea::placeholder { color: #59525e; }
.field input:focus-visible, .field textarea:focus-visible { outline: 4px solid var(--cyan); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); background: #fff0f5; }
.count { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); text-align: right; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.send__price:not(:empty) { padding-left: .5em; border-left: var(--line) solid var(--ink); }
.send__small { font-size: .88rem; max-width: 34ch; color: var(--ink-soft); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; padding: 14px 16px; border: var(--line) solid var(--ink); background: var(--paper-hi); border-radius: var(--r-ctl); box-shadow: 3px 3px 0 var(--ink); }
.status p { flex: 1 1 22ch; }
.status .sfx { flex: none; font-size: 2.5rem; }
.status--err { background: #ffe4ee; }
.status--err .sfx { color: var(--magenta); }
.status--ok { background: var(--yellow); }
.status--ok .sfx { color: var(--paper-hi); }
.status__row { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
.spin { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 3; }
.spin circle { stroke-width: 5; }

/* Tracking */
.track .h3 { display: inline-block; background: var(--paper-hi); border: var(--line) solid var(--ink); padding: .2em .45em; box-shadow: 3px 3px 0 var(--ink); }
.track__side.track__side--empty { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 22px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.track__side--empty .track__fine { background: var(--paper-hi); border: var(--line) solid var(--ink); padding: .55em .8em; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.track__live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.track__side[data-track="live"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; align-items: start; }
.track__side[data-track="live"] .steps { grid-row: 1 / 5; grid-column: 2; }
.no-js .track__map, .no-js .burst--quote { display: none; }
.track__map { border: var(--border-panel) solid var(--ink); background: var(--street); align-self: start; box-shadow: var(--shadow-ink); }
.map--mini .blk text { font-size: 22px; }
.rider-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 5; }
.rider-ic { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.track__side { background: var(--paper-hi); border: var(--line) solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 3px 3px 0 var(--ink); }
.track__eta { font-family: var(--display); font-size: 2.6rem; line-height: 1; letter-spacing: .03em; }
.track__eta small { display: block; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin-top: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); padding: 2px 0; }
.steps li::before { content: ''; width: 16px; height: 16px; flex: none; border: var(--line) solid var(--ink); border-radius: 50%; background: var(--paper-hi); }
.steps li.done::before { background: var(--ink); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--magenta); }
.track__note { font-size: .94rem; font-weight: 500; }
.track__fine { font-size: .82rem; color: var(--ink-soft); }

/* ========== 7. How a job runs ========== */
.strip { grid-template-columns: 1.2fr 1fr 1.1fr 1fr; }
.strip__p { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-height: 310px; }
.strip__num {
  position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-weight: 700; font-size: .8rem;
  background: var(--ink); color: var(--yellow);
  padding: 4px 10px;
}
.strip__p .sfx { margin: auto 0; }
.strip__text { font-weight: 700; font-size: .95rem; max-width: 34ch; }
.strip__text--paper { background: var(--paper-hi); border: var(--line) solid var(--ink); padding: .7em .9em; box-shadow: 3px 3px 0 var(--ink); }
.sig { width: 100%; max-width: 240px; margin: auto 0; }
.sig path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ========== 8. App screens ========== */
.app__head { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.app__p { grid-column: span 3; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: 36px; }
.app__p .caption { align-self: flex-start; }
.phone {
  position: relative;
  width: min(100%, 236px);
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 6px 6px 0 rgb(17 17 20 / .28);
  transform: rotate(-2deg);
}
.app__p:nth-child(3) .phone { transform: rotate(2deg); }
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 64px; height: 16px; margin-left: -32px; background: var(--ink); border-radius: 10px; z-index: 2; }
.phone__screen { height: 100%; background: var(--paper-hi); border-radius: 25px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 38px 12px 14px; font-size: .78rem; }
.ps-top { display: flex; justify-content: space-between; font-weight: 700; font-family: var(--display); font-size: 1rem; letter-spacing: .04em; }
.ps-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 5px; background: var(--street); border-radius: 6px; }
.ps-map i { aspect-ratio: 1; border-radius: 3px; background: radial-gradient(circle, rgb(0 153 219 / .35) 30%, transparent 32%) 0 0 / 6px 6px, var(--paper); border: 2px solid var(--ink); }
.ps-map i.park { background: radial-gradient(circle, var(--cyan) 36%, transparent 38%) 0 0 / 5px 5px, var(--yellow); }
.ps-map i.on-p { background: var(--magenta); }
.ps-map i.on-d { background: var(--cyan); }
.ps-card { display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--ink); border-radius: 8px; padding: 8px; gap: 0 8px; }
.ps-card b { font-size: .88rem; }
.ps-card span { grid-row: 2; }
.ps-card strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.ps-btn { margin-top: auto; text-align: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 8px; font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em; }
.ps-track { background: var(--street); border-radius: 6px; padding: 6px; }
.ps-track svg { width: 100%; height: auto; }
.pt-road, .pt-done { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pt-road { stroke: var(--paper); stroke-dasharray: 1 9; }
.pt-done { stroke: var(--magenta); }
.pt-rider { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.pt-d { fill: var(--cyan); stroke: var(--paper); stroke-width: 3; }
.ps-eta strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.ps-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-weight: 700; color: var(--ink-soft); }
.ps-steps li::before { content: ''; display: inline-block; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ps-steps li.done::before { background: var(--ink); }
.ps-steps li.now { color: var(--ink); }
.ps-steps li.now::before { background: var(--magenta); }
.ps-door { background: radial-gradient(circle, rgb(0 153 219 / .34) 30%, transparent 32%) 0 0 / 7px 7px, var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 6px 6px 0; }
.ps-door svg { width: 100%; height: auto; }
.pd-door { fill: var(--magenta); stroke: var(--ink); stroke-width: 3; }
.pd-knob { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.pd-box { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.pd-line { stroke: var(--ink); stroke-width: 3; }
.ps-sig { border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.ps-sig svg { width: 100%; height: 40px; }
.ps-sig path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.ps-sig span { font-weight: 700; }
.ps-paid { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 6px 8px; font-weight: 700; }
.ps-paid strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }

/* ========== 9. Prices ========== */
.prices__sum { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 18px; }
.prices__sum > p:last-child { max-width: 46ch; font-weight: 700; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 1.8rem); letter-spacing: .03em; line-height: 1; }
.formula span { background: var(--paper-hi); border: var(--line) solid var(--ink); padding: .28em .45em; box-shadow: 3px 3px 0 var(--ink); }
.formula i { font-style: normal; font-size: 1.3em; }
.prices__table { grid-column: 6 / 13; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 0; }
.ptable { width: 100%; border-collapse: collapse; background: var(--paper-hi); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ptable th, .ptable td { border: 2px solid var(--ink); padding: 12px 14px; text-align: left; }
.ptable thead th { background: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .03em; line-height: 1; vertical-align: bottom; }
.ptable thead small { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: 0; margin-top: 4px; }
.ptable tbody th { font-weight: 700; }
.ptable td { font-family: var(--display); font-size: 1.65rem; letter-spacing: .03em; }
.prices__acct { grid-column: 1 / -1; }
.acct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: var(--line) solid var(--ink); background: var(--paper-hi); box-shadow: 3px 3px 0 var(--ink); }
.acct > div { padding: 16px 20px; }
.acct > div + div { border-left: var(--line) solid var(--ink); }
.acct dt { font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em; margin-bottom: 6px; }
.acct dd { margin: 0; max-width: 42ch; }

/* ========== 10. Questions ========== */
.faq__head { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.faq__head .h2 { background: var(--paper-hi); border: var(--line) solid var(--ink); padding: .18em .35em; box-shadow: 4px 4px 0 var(--ink); }
.faq__list { grid-column: 5 / 13; display: grid; gap: 10px; }
.faq details { border: var(--line) solid var(--ink); border-radius: 14px; background: var(--paper-hi); box-shadow: 3px 3px 0 var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 10px 18px;
  font-family: var(--display); font-size: 1.45rem; letter-spacing: .03em; line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border: var(--line) solid var(--ink); border-radius: 50%; background: linear-gradient(var(--ink) 0 0) center / 12px 3px no-repeat, linear-gradient(var(--ink) 0 0) center / 3px 12px no-repeat, var(--yellow); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 2px dotted var(--ink); }
.faq details p { padding: 12px 18px 16px; max-width: 70ch; }

/* ========== 11. Back cover ========== */
.cover {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  max-width: 1600px; margin: 0 auto; padding: 0 var(--gut) var(--gut);
}
.cover__brand { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.logo__word--big { font-size: clamp(3rem, 5.8vw, 5.2rem); color: var(--paper-hi); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.cover__brand p:last-child { font-weight: 700; max-width: 36ch; }
.cover__info { grid-column: 6 / 10; }
.cover__info address { font-style: normal; font-weight: 700; line-height: 1.7; }
.cover__info address a { display: inline-flex; align-items: center; min-height: 36px; }
.hours { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
.cover__links { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 2px; }
.cover__links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.cover__small { grid-column: 1 / -1; color: var(--paper); font-family: var(--mono); font-size: .78rem; padding: 8px 4px 60px; }

/* ========== 12. Motion ========== */
@media (prefers-reduced-motion: no-preference) {
  .hero-corridor-pulse { animation: corridorFlow 1.6s linear infinite; }
  .hero-corridor-hq { animation: corridorFlow 2.2s linear infinite; }
  .hero-bolt { animation: boltHover 2.6s ease-in-out infinite; }
  .route-line { animation: march 1s linear infinite; }
  .spin { animation: spin .9s linear infinite; }
  .burst--hero { animation: pop .75s var(--ease-out) both .18s; }
  .status:not([hidden]) { animation: panelIn .45s var(--ease-out); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corridorFlow { to { stroke-dashoffset: -60; } }
@keyframes boltHover { 50% { transform: translate(324px, 102px); } }
@keyframes march { to { stroke-dashoffset: -36; } }
@keyframes pop { from { transform: scale(.55) rotate(-18deg); } to { transform: scale(1) rotate(8deg); } }
@keyframes panelIn { from { transform: translateY(8px) rotate(-.6deg); } }

/* ========== 13. Tablet and phone ========== */
@media (max-width: 1180px) {
  .mast__tag { display: none; }
  .splash { height: auto; max-height: none; grid-template-rows: auto; }
  .p-title { grid-column: 1 / 8; grid-row: 1; }
  .p-ticket { grid-column: 8 / 13; grid-row: 1; clip-path: none; padding: var(--pad); }
  .p-hero { grid-column: 1 / 9; grid-row: 2; min-height: 440px; }
  .p-cargo { grid-column: 9 / 13; grid-row: 2; margin-left: 0; clip-path: none; padding: var(--pad); }
  .job__map { grid-column: 1 / -1; grid-row: auto; }
  .job__size { grid-column: 1 / 7; grid-row: auto; }
  .job__tier { grid-column: 7 / 13; grid-row: auto; }
  .job__quote { grid-column: 1 / -1; grid-row: auto; }
  .job__form, .track { grid-column: 1 / -1; grid-row: auto; }
  .choices { grid-template-columns: 1fr; }
  .choice__box { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; }
  .choice__box svg { grid-row: 1 / 3; }
  .choice__box b { margin: 0; }
  .choice__box small { grid-column: 2; }
  .choice__box em { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .strip { grid-template-columns: 1fr 1fr; }
  .app__head { grid-column: 1 / -1; }
  .app__p { grid-column: span 4; }
  .prices__sum, .prices__table { grid-column: 1 / -1; }
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .cover__brand { grid-column: 1 / -1; }
  .cover__info { grid-column: 1 / 7; }
  .cover__links { grid-column: 7 / 13; }
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 48px; padding: 0 14px; background: var(--yellow); color: var(--ink);
    border: var(--line) solid var(--paper); border-radius: var(--r-ctl); font-weight: 700; cursor: pointer;
  }
  .nav { display: none; position: absolute; top: 72px; right: var(--gut); left: var(--gut); z-index: 20; flex-direction: column; align-items: stretch; background: var(--ink); border: var(--line) solid var(--yellow); padding: 10px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav__cta { margin: 6px 0 0; }
  .mast { position: relative; }
  .no-js .nav { display: flex; position: static; flex-wrap: wrap; border: 0; padding: 0; flex-direction: row; }
  .p-title { grid-column: 1 / -1; grid-row: 1; }
  .p-hero { grid-column: 1 / -1; grid-row: 2; min-height: 420px; }
  .p-ticket { grid-column: 1 / 7; grid-row: 3; }
  .p-cargo { grid-column: 7 / 13; grid-row: 3; }
  .app__p { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }
  .app__p .caption { align-self: center; }
  .acct { grid-template-columns: 1fr; }
  .acct > div + div { border-left: 0; border-top: var(--line) solid var(--ink); }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .page, .cover { grid-template-columns: minmax(0, 1fr); }
  .page > *, .cover > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .logo__word { font-size: 1.9rem; }
  .logo__burst { width: 42px; height: 42px; }
  .splash { min-height: 0; }
  .p-hero { min-height: 360px; padding-top: 36px; }
  .caption--tl { font-size: .7rem; max-width: 28ch; }
  .burst--hero { width: 104px; top: 8px; right: 8px; }
  .burst--hero span { font-size: 2.2rem; }
  .balloon--hero { bottom: 12px; left: 12px; max-width: 20ch; font-size: .76rem; padding: .65em .9em; }
  .title { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .fields { grid-template-columns: 1fr; }
  .track__side[data-track="live"] { grid-template-columns: 1fr; }
  .track__side[data-track="live"] .steps { grid-row: auto; grid-column: auto; }
  .strip__p { min-height: 0; }
  .strip__p .sfx { margin: 8px 0; }
  .pins { width: 100%; }
  .pin { flex: 1 1 0; }
  .legend { font-size: .85rem; }
  .ptable th, .ptable td { padding: 10px 8px; }
  .ptable td { font-size: 1.3rem; }
  .ptable thead th { font-size: 1.15rem; }
  .btn--big { width: 100%; }
}
