/* InletClouds ZPL converter - shared styles ("hi-vis")
   Palette: safety yellow, printer ink, label paper, printer body graphite. */
:root {
  --yellow: #ffce1b;
  --ink: #000;
  --paper: #fff;
  --soft: #f5f3ee;
  --on-yellow: #2b2610;
  --muted: #4a4a4a;
  --graphite: #1e1f21;
  --ready: #1fb25a;
  --busy: #f0a531;
  --fault: #c8321f;
  --rule: #e5e2da;
  --font: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--yellow); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band-ink :focus-visible { outline-color: var(--yellow); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- bands ---------- */
.band-yellow, .band-ink, .band-paper { display: flow-root; }
.band-yellow { background: var(--yellow); color: var(--ink); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-paper { background: var(--paper); color: var(--ink); }
.hazard { height: 30px; background: repeating-linear-gradient(-45deg, var(--ink) 0 20px, var(--yellow) 20px 40px); }

/* ---------- top bar ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: block; width: 230px; }
.brand svg, .foot-logo svg { display: block; width: 100%; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.printer-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 11px 20px 11px 16px; font: 700 15px/1.2 var(--font); cursor: pointer;
}
.printer-chip:hover { background: #262626; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #8d8d8d; flex: none; }
.led.on { background: var(--ready); box-shadow: 0 0 0 3px rgba(31, 178, 90, .3); }
.led.busy { background: var(--busy); animation: blink 1s steps(2, start) infinite; }
.led.off { background: var(--fault); }
@keyframes blink { to { visibility: hidden; } }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 36px 0 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.tag { align-self: flex-start; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.hero h1 {
  margin: 0; font-weight: 900; font-variation-settings: 'wdth' 125;
  font-size: clamp(36px, 6.4vw, 104px); line-height: .9; letter-spacing: -.035em;
}
.hero h1 span { display: block; white-space: nowrap; }
.lead { margin: 0; max-width: 34em; font-size: 20px; line-height: 1.45; color: var(--on-yellow); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-note { font-weight: 700; }
.small { margin: 0; font-size: 15px; color: #3d3615; }
.hero-art { flex: 0 1 420px; display: flex; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  border: 0; border-radius: 14px; padding: 16px 26px; cursor: pointer; text-decoration: none;
  font: 800 18px/1.1 var(--font); font-variation-settings: 'wdth' 110;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #262626; }
.btn-big { font-size: 20px; padding: 18px 28px; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-yellow:hover { background: #ffd947; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-line:hover { background: rgba(0, 0, 0, .06); }
.band-ink .btn-line { color: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow); }
.btn-quiet { background: transparent; color: var(--muted); padding-left: 6px; padding-right: 6px; font-weight: 700; }
.btn-quiet:hover { color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn svg { flex: none; }

/* ---------- converter band ---------- */
.converter { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; padding: 88px 0 40px; }
.conv-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
h2.big { margin: 0; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(40px, 5vw, 64px); line-height: .92; letter-spacing: -.03em; }
.band-ink h2.big { color: var(--yellow); }
.conv-copy p { margin: 0; font-size: 18px; color: #e9e6da; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt-label { font-weight: 700; font-size: 15px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 24px 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  border: 2px solid rgba(255, 206, 27, .55); color: var(--yellow); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.chip:hover span { border-color: var(--yellow); }
.chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.custom-size { display: none; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.custom-size.show { display: flex; }
.custom-size input { width: 90px; }

input[type=number], input[type=text], input[type=password], select {
  font: 500 15px/1.2 var(--font); padding: 10px 12px; min-height: 44px; border-radius: 9px; border: 2px solid #c9c4b8;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { border-color: var(--ink); outline: none; }
.band-ink input:focus, .band-ink select:focus { border-color: var(--yellow); }

/* drop zone */
.dropcard { flex: 1 1 420px; min-width: 0; background: var(--paper); border-radius: 22px; padding: 18px; display: flex; color: var(--ink); }
.dropzone-inner {
  flex: 1; min-height: 380px; border: 3px dashed var(--ink); border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 28px; transition: background .15s;
}
.dropcard.drag .dropzone-inner { background: #fff6cf; }
.dropzone-inner h3 { margin: 0; font-weight: 900; font-variation-settings: 'wdth' 118; font-size: 30px; line-height: 1.05; word-break: break-word; }
.dropzone-inner p { margin: 0; color: var(--muted); font-size: 15px; }
.barcode-art { width: 128px; height: 48px; display: block; }

/* ---------- workspace (after upload) ---------- */
.sheet { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 30px; margin: 24px 0 88px; }
.workspace { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.workspace > div { flex: 1 1 440px; min-width: 0; }
.step-title { margin: 0 0 14px; font-size: 22px; font-weight: 800; font-variation-settings: 'wdth' 112; }
.page-row { display: none; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.page-row.show { display: flex; }
#previewWrapper { width: 100%; height: 520px; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#f1eee8 0 25%, #fbfaf7 0 50%) 0 0 / 18px 18px; }
#previewWrapper img { display: block; max-width: 100%; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.tool {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 8px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer;
}
.tool:hover { background: var(--yellow); }
.hint { font-size: 15px; color: var(--muted); margin: 0 0 14px; }

/* ---------- the printer ---------- */
.printer { position: relative; width: 100%; max-width: 440px; }
.printer-body {
  background: var(--graphite); border-radius: 30px 30px 10px 10px; padding: 22px 24px 20px; color: #d6d9dc;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7);
}
.printer-status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.printer-status .led { width: 12px; height: 12px; }
.printer-status .model { margin-left: auto; color: #a3a9ae; font-weight: 500; }
.slot { height: 12px; border-radius: 6px; background: #000; margin-top: 18px; }
.feed { overflow: hidden; margin: -6px 30px 0; padding: 0 0 30px; }
.label-out {
  background: var(--paper); border-radius: 0 0 14px 14px; box-shadow: 0 30px 40px -26px rgba(0, 0, 0, .55);
  transform: translateY(-101%); transition: transform 1.5s cubic-bezier(.32, .06, .28, 1); min-height: 160px;
}
.label-out.fed { transform: translateY(0); }
.label-out img { display: block; width: 100%; height: auto; border-radius: 0 0 14px 14px; }
.label-empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.printer.idle .label-out { transform: translateY(0); }

/* sample shipping label in the hero */
.ship { font-family: var(--mono); font-size: 11px; line-height: 1.35; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; color: #000; }
.ship-top { display: flex; gap: 14px; align-items: stretch; }
.ship-p { width: 62px; height: 62px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font: 900 46px/1 var(--font); flex: none; }
.ship-top > div { display: flex; flex-direction: column; justify-content: space-between; }
.ship-svc { font: 900 22px/1 var(--font); font-variation-settings: 'wdth' 112; }
.ship-rule { height: 3px; background: #000; }
.ship-to { display: flex; flex-direction: column; gap: 2px; }
.ship-to b { font-weight: 600; }
.ship-name { font-size: 16px; font-weight: 600; }
.ship-addr { font-size: 14px; }
.ship-route { display: flex; gap: 16px; align-items: center; }
.ship-route svg { width: 84px; height: 84px; display: block; flex: none; }
.ship-zip { font: 900 34px/1 var(--font); font-variation-settings: 'wdth' 118; }
.ship-bar { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ship-bar svg { display: block; width: 100%; height: 70px; }
.ship-bar span { font-weight: 600; letter-spacing: .06em; }
.ship-foot { display: flex; justify-content: space-between; font-weight: 600; }

/* ---------- pay ---------- */
.pay { margin-top: 4px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 44px; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; }
.price-note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.facts { font-size: 14px; color: var(--muted); }
.auto-note { font-size: 15px; margin: 12px 0 0; display: flex; gap: 8px; align-items: center; }
details.code { margin-top: 16px; border-top: 2px solid var(--rule); padding-top: 12px; }
details.code summary { cursor: pointer; font-weight: 700; font-size: 15px; }
details.code textarea {
  width: 100%; height: 200px; margin-top: 10px; font: 12px/1.45 var(--mono); background: var(--soft);
  border: 0; border-radius: 10px; padding: 12px; resize: vertical; color: #222;
}

/* ---------- messages ---------- */
.msg { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; line-height: 1.4; border-left: 6px solid; }
.msg.error { display: block; background: #fde7e3; border-color: var(--fault); color: #6e1508; }
.msg.info { display: block; background: #f2f2f2; border-color: var(--ink); color: #111; }
.msg.success { display: block; background: #e2f6e9; border-color: var(--ready); color: #0f4d27; }
.msg a { color: inherit; font-weight: 700; }

/* ---------- how it works ---------- */
.how { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #333; }
.steps li::before {
  content: counter(s); width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; color: var(--ink);
}
.steps b { font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 22px; color: var(--ink); }

/* ---------- pricing ---------- */
.pricing { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.dollar { display: flex; align-items: flex-end; gap: 16px; }
.dollar b { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(120px, 16vw, 220px); line-height: .8; letter-spacing: -.05em; }
.dollar span { font-weight: 800; font-size: 24px; padding-bottom: 10px; }
.perks { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.perks svg { flex: none; }

/* ---------- footer ---------- */
.site-foot { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #d8d8d8; font-size: 15px; }
.foot-logo { display: block; width: 190px; }

/* ---------- download page ---------- */
.done-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 24px 0 96px; }
.done-grid > .printer { flex: 1 1 380px; }
.done-grid > div:last-child { flex: 1 1 460px; min-width: 0; }
.title { margin: 0 0 14px; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(44px, 6vw, 84px); line-height: .88; letter-spacing: -.035em; }
.actions { display: grid; gap: 10px; }
.print-target { font-size: 15px; color: var(--on-yellow); margin: 2px 0 6px; }
.print-target button { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.done-grid details.code { border-top-color: rgba(0, 0, 0, .2); }
.done-grid details.code textarea { background: rgba(255, 255, 255, .7); }
.history { width: 100%; border-collapse: collapse; font-size: 15px; }
.history th, .history td { text-align: left; padding: 9px 8px; border-bottom: 2px solid rgba(0, 0, 0, .15); }
.history th { font-weight: 800; }
code { font-family: var(--mono); }

/* ---------- printer settings dialog ---------- */
dialog.pdlg { border: 0; padding: 0; border-radius: 20px; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
dialog.pdlg::backdrop { background: rgba(0, 0, 0, .6); }
.pdlg-inner { padding: 24px 26px 22px; }
.pdlg header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.pdlg h2 { margin: 0; font-size: 30px; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.02em; }
.pdlg .x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px 10px; color: var(--ink); min-height: 44px; min-width: 44px; }
.pdlg .lead2 { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; margin: 0 0 16px; }
.seg button { border: 0; background: none; padding: 10px 8px; min-height: 44px; border-radius: 9px; font: 700 14px/1.2 var(--font); cursor: pointer; color: var(--muted); }
.seg button[aria-selected=true] { background: var(--ink); color: var(--yellow); }
.pane p { margin: 0 0 12px; font-size: 15px; }
.field { display: grid; gap: 6px; margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.field select, .field input { width: 100%; }
.inline { display: flex; gap: 8px; }
.inline input, .inline select { flex: 1; min-width: 0; }
.inline .btn { white-space: nowrap; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.pdlg .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 2px solid var(--rule); padding-top: 14px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.copies { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.copies input { width: 80px; }
.pdlg footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pdlg footer .btn { padding: 12px 18px; font-size: 16px; }
.pdlg footer .btn-quiet { margin-right: auto; }

/* ---------- responsive / motion ---------- */
@media (max-width: 1060px) {
  .hero h1 { font-size: min(10.5vw, 96px); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .brand { width: 170px; }
  .nav { gap: 16px; font-size: 15px; }
  .nav a { display: none; }
  .hero { padding: 16px 0 56px; gap: 36px; }
  .hero h1 { font-size: min(12vw, 80px); }
  .hero-art { flex-basis: 100%; }
  .lead { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .converter { padding: 56px 0 24px; gap: 32px; }
  .dropzone-inner { min-height: 280px; }
  .sheet { padding: 18px; margin-bottom: 56px; }
  #previewWrapper { height: 380px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .how, .pricing { padding-block: 56px; }
  .feed { margin: -6px 22px 0; }
  .pdlg-inner { padding: 20px 18px; }
  .seg button { font-size: 13px; padding: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .label-out { transition: none; }
  .led.busy { animation: none; }
}
