/* ==========================================================================
   PrintFlex marketing site — shared stylesheet
   Plain CSS, no build step. Colours live ONLY in the token block below and
   its dark-mode redefinition. Everything else references var(--token).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — light */
  --ground: #FBF7F3;
  --ground-2: #F3EBE3;
  --surface: #FFFFFF;
  --surface-2: #FDF9F5;
  --ink: #1B1411;
  --ink-2: #4B3C33;
  --muted: #7C6759;
  --line: #E9DED4;
  --line-2: #D9C9BA;
  --accent: #E25B07;
  --accent-2: #B8480A;
  --accent-ink: #A84206;
  --accent-soft: #FDEBDC;
  --accent-soft-2: #FAD9BF;
  --dark: #191109;
  --dark-2: #241A11;
  --dark-line: #3A2A1C;
  --dark-ink: #F7F1EA;
  --dark-muted: #B9A898;
  --good: #2E7D55;
  --good-soft: #E3F3EA;
  --paper: #FFFFFF;
  --paper-ink: #1B1411;
  --paper-muted: #7C6759;
  --paper-line: #E9DED4;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(27, 20, 17, 0.04), 0 12px 32px -12px rgba(27, 20, 17, 0.18);
  --shadow-lg: 0 2px 4px rgba(27, 20, 17, 0.06), 0 28px 60px -20px rgba(27, 20, 17, 0.28);
  --shadow-accent: 0 2px 4px rgba(226, 91, 7, 0.08), 0 24px 48px -16px rgba(226, 91, 7, 0.28);

  /* Type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1120px;
  --gutter: 20px;
  --section-y: 92px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  color-scheme: light;
}

/* Dark mode is intentionally not offered: the site always uses the light
   palette above. To bring it back, redefine the colour tokens inside
   @media (prefers-color-scheme: dark) { :root { ... } }. */

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
}

p,
figure {
  margin: 0;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  margin: 0;
  padding: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 16px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  background: var(--ground);
}

.section--alt {
  background: var(--ground-2);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  font-size: 19px;
  color: var(--ink-2);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-2);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Chips (small dotted bullets) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.chips li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Status pills used in the app mock and phone mock */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.pill--good {
  background: var(--good-soft);
  color: var(--good);
}

.pill--accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.pill--muted {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

/* --------------------------------------------------------------------------
   4. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  background: var(--dark);
  color: var(--dark-ink);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  flex: none;
}

.brand__mark svg {
  width: 16px;
  height: 16px;
}

.brand__mark svg rect {
  fill: var(--on-accent);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.nav__links a:hover {
  opacity: 1;
  background: var(--dark-2);
  color: var(--dark-ink);
}

.nav .btn--primary {
  justify-self: end;
  padding: 10px 18px;
  font-size: 14px;
}

.nav :focus-visible {
  outline-color: var(--accent-2);
}

@media (max-width: 860px) {
  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand__name {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: 64px 96px;
  background: var(--ground);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero__lede {
  font-size: 19px;
  max-width: 560px;
}

.hero__strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mock invoice */
.hero__visual {
  position: relative;
  padding: 24px 10px 32px;
}

.paper-stack {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}

.paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 28px;
  font-variant-numeric: tabular-nums;
}

.paper--behind {
  position: absolute;
  inset: 0;
  transform: rotate(1.6deg) translate(10px, 8px);
  box-shadow: var(--shadow);
  z-index: -1;
}

.paper__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.paper__title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper-ink);
}

.paper__meta {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-muted);
}

.paper__meta strong {
  color: var(--paper-ink);
  font-weight: 600;
}

.tag {
  flex: none;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.paper__lines {
  list-style: none;
  font-size: 13.5px;
}

.paper__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--paper-line);
}

.paper__lines .mono {
  color: var(--paper-ink);
}

.paper__lines .qty {
  color: var(--paper-muted);
  margin-inline-start: 6px;
}

.paper__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid var(--paper-ink);
  font-family: var(--font-mono);
}

.paper__total span:first-child {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-muted);
}

.paper__total span:last-child {
  font-size: 22px;
  font-weight: 600;
}

.paper__codes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}

.qr {
  width: 84px;
  height: 84px;
  flex: none;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.barcode {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bars {
  display: flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
}

.bars i {
  display: block;
  height: 100%;
  flex: none;
}

.bars i.on {
  background: var(--paper-ink);
}

.bars__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--paper-ink);
}

.paper__note {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper-muted);
}

@media (max-width: 900px) {
  .hero {
    padding-block: 40px 72px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero__visual {
    padding-inline: 0;
  }
}

@media (max-width: 420px) {
  .paper {
    padding: 22px 18px 20px;
  }

  .paper__codes {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. Problem
   -------------------------------------------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

/* docket header: same rule height on every card, so the row reads as one object */
.pcard__n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-bottom: 13px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pcard h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}

.pcard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* the total line — margin-top:auto pins it to the card floor, so all four align */
.pcard__cost {
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 1px dashed var(--line-2);
}

.pcard__cost dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.pcard__cost dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

/* running total strip */
.tally {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tally__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.tally__sum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-right: auto;
}

.tally__sum b {
  color: var(--ink);
  font-weight: 600;
}

.tally__total {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tally__total span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* the fix */
.fixlabel {
  display: block;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.fix {
  margin-top: 14px;
  padding: 28px 32px;
  background: var(--dark);
  color: var(--dark-ink);
  border: 1px solid var(--dark-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .fix {
    padding: 22px 20px;
  }
}

.fix b {
  color: var(--accent-2);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. How it works
   -------------------------------------------------------------------------- */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.timeline {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-inline-start: 56px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--line-2);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__badge {
  position: absolute;
  left: -56px;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ground-2);
  border: 2px solid var(--line-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.step__badge {
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.step {
  cursor: pointer;
}

.step:hover .step__badge,
.step.is-done .step__badge {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.step.is-active .step__badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: scale(1.08);
}

.step.is-active .step__title {
  color: var(--accent-ink);
}

.step__title {
  transition: color 300ms ease;
}

/* orange progress line drawn over the grey rail */
.timeline::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 2px;
  height: var(--rail, 0px);
  background: var(--accent);
  border-radius: 2px;
  transition: height 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.step__slot {
  display: none;
}

.step__title {
  font-size: 20px;
  padding-top: 5px;
}

.step__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.step__btn:focus-visible {
  outline-offset: 6px;
}

.step p {
  font-size: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 4px;
}

.tags li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

/* App mock */
.app-mock-wrap {
  position: sticky;
  top: 96px;
}

.app-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}

.app-mock__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.app-mock__url {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
}

.filter {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

.filter--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.filter--ghost {
  border-style: dashed;
  color: var(--muted);
}

.app-mock__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-top: 1px solid var(--accent-soft-2);
  border-bottom: 1px solid var(--accent-soft-2);
}

.app-mock__count {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-ink);
}

.app-mock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.mini-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.app-mock__table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-mock table {
  width: 100%;
  border-collapse: collapse;
}

.app-mock th,
.app-mock td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.app-mock th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-mock td {
  color: var(--ink-2);
}

.app-mock td.mono {
  color: var(--ink);
  font-weight: 500;
}

.app-mock td .docs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.app-mock__foot {
  margin-top: auto;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  background: var(--surface-2);
}

@media (max-width: 940px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .app-mock-wrap {
    position: static;
  }

  .step__slot:not(:empty) {
    display: block;
    position: relative;
    margin-top: 20px;
    margin-left: -56px;
  }

  .how-visual.is-empty {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-mock th:nth-child(3),
  .app-mock td:nth-child(3) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Features
   -------------------------------------------------------------------------- */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card .kicker {
  color: var(--accent-ink);
}

.feature-card p {
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   9. Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--ink-2);
  font-weight: 500;
}

.compare .is-us {
  background: var(--accent-soft);
}

.compare thead .is-us {
  color: var(--accent-ink);
  font-weight: 800;
}

.compare .yes {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
}

.compare .no {
  color: var(--line-2);
  font-size: 17px;
}

.compare .partly {
  color: var(--muted);
  font-size: 17px;
}

.compare .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

.footnote {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Scan mode
   -------------------------------------------------------------------------- */
.scan-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.scan-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phone {
  width: 250px;
  margin-inline: auto;
  border-radius: 30px;
  background: var(--dark);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  color: var(--dark-ink);
}

.phone__screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
}

.phone__cam {
  padding: 18px 18px 14px;
  background: var(--dark-2);
  color: var(--dark-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.viewfinder {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.viewfinder::before,
.viewfinder::after,
.viewfinder i::before,
.viewfinder i::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
}

.viewfinder::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.viewfinder::after {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}

.viewfinder i {
  position: absolute;
  inset: 0;
}

.viewfinder i::before {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}

.viewfinder i::after {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

.viewfinder .qr {
  width: 60px;
  height: 60px;
}

.phone__cap {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dark-muted);
}

.phone__body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone__order {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--paper-ink);
}

.phone__meta {
  font-size: 11.5px;
  color: var(--paper-muted);
  margin-top: -6px;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--paper-line);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 8px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 12px;
  color: var(--paper-ink);
}

.checklist .box {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--paper-line);
  display: grid;
  place-items: center;
}

.checklist .box svg {
  width: 10px;
  height: 10px;
  stroke: var(--on-accent);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist .is-checked .box {
  background: var(--accent);
  border-color: var(--accent);
}

.checklist .is-checked span:not(.box) {
  color: var(--paper-muted);
}

.checklist .qty {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--paper-muted);
}

.phone .btn {
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.steps-strip li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.steps-strip .num {
  color: var(--accent-ink);
}

.scan-card h3 {
  margin-bottom: 8px;
}

.scan-card p {
  font-size: 15.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.stat {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__desc {
  font-size: 13.5px;
  color: var(--ink-2);
}

.disclaimer {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 900px) {
  .scan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .steps-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.toggle {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toggle button {
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.toggle button:focus-visible {
  outline-offset: -3px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.plan__name {
  font-size: 22px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  color: var(--ink);
}

.plan__amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan__period {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
}

.plan__meter {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.plan__desc {
  font-size: 15px;
  color: var(--ink-2);
}

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan__list li::before {
  content: "";
  flex: none;
  margin-top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

.plan__fine {
  font-size: 12.5px;
  color: var(--muted);
}

.billing-note {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.billing-note p {
  font-size: 15px;
}

.billing-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 18px;
}

.billing-note .chips {
  gap: 8px 20px;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .billing-note {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chip-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 200ms ease;
  margin-right: 4px;
}

.faq[open] summary::after {
  transform: rotate(225deg);
}

.faq__body {
  padding: 0 22px 20px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.faq__cat {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.faq-empty {
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-left .chips {
  flex-direction: column;
  gap: 12px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-panel a {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.contact-panel a:hover {
  color: var(--accent);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--ground);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 160ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  outline-width: 2px;
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__status {
  min-height: 1.5em;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent-ink);
}

.form__status:empty {
  display: none;
}

.form__status.is-ok {
  color: var(--good);
}

.form__status.is-error {
  color: var(--accent-ink);
}

.form__note {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: 56px 28px;
  border-top: 1px solid var(--dark-line);
}

.site-footer .brand {
  color: var(--dark-ink);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px 64px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 400px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--dark-ink);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 160ms ease, color 160ms ease;
}

.footer-col a:hover {
  color: var(--accent-2);
  opacity: 1;
}

.footer-col a[href^="mailto:"] {
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dark-muted);
}

.footer-bottom a {
  color: var(--dark-ink);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-2);
}

.site-footer :focus-visible {
  outline-color: var(--accent-2);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   15. Legal / support pages
   -------------------------------------------------------------------------- */
.page {
  padding-block: 56px var(--section-y);
}

.prose {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16.5px;
}

.prose h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 22px;
}

.prose h3 {
  font-size: 18px;
  margin-top: 8px;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-start: 22px;
}

.prose li::marker {
  color: var(--accent);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 500;
}

.draft-banner::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.prose .card {
  padding: 20px 22px;
}

.prose .card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   7b. How it works — panels
   -------------------------------------------------------------------------- */
.how-panels {
  display: grid;
}

.how-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 420ms;
}

.how-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

html:not(.js) .how-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

html:not(.js) .how-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mini-btn--block {
  display: block;
  text-align: center;
  padding: 9px 12px;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

/* Panel 2: print job */
.job {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
}

.job__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.job__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.job__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  transition: width 2200ms cubic-bezier(0.3, 0, 0.2, 1);
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.job__meta .mono {
  color: var(--ink);
  font-weight: 500;
}

.job__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
  margin-inline: 4px;
}

.job__log {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.job__log li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.job__log li .mono {
  color: var(--ink);
  font-weight: 500;
}

.job__log li.is-in {
  opacity: 1;
  transform: none;
}

.job__done {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.job__done.is-in {
  opacity: 1;
  transform: none;
}

/* Panel 3: pick list document */
.doc {
  margin: 14px;
  padding: 18px 18px 14px;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.doc__title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}

.doc__meta {
  font-size: 12px;
  color: var(--paper-muted);
  margin-top: 4px;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.doc__table th,
.doc__table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px dashed var(--paper-line);
}

.doc__table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-muted);
  border-bottom: 1px solid var(--paper-ink);
}

.doc__table .doc__qty {
  text-align: right;
  font-weight: 600;
  color: var(--paper-ink);
}

.doc__table th:last-child {
  text-align: right;
}

.doc__table tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--paper-ink);
  font-weight: 600;
  color: var(--paper-ink);
}

.doc__table tbody tr {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.doc__table tbody tr.is-in,
html:not(.js) .doc__table tbody tr {
  opacity: 1;
  transform: none;
}

/* Panel 4: scan to pack */
.pack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pack__scanned {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  overflow: hidden;
}

.pack__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent-ink);
}

.pack__beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent-soft-2), transparent);
  opacity: 0;
}

.how-panel.is-active .pack__beam {
  animation: beam-sweep 1200ms ease-out 1;
}

@keyframes beam-sweep {
  0% { left: -30%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

.pack__order {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.pack__meta {
  font-size: 12.5px;
  color: var(--muted);
}

.pack .checklist li {
  font-size: 13px;
  padding-block: 9px;
}

.pack .checklist .box {
  transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.pack .checklist .is-checked .box {
  transform: scale(1.1);
}

.pack .checklist span:not(.box):not(.qty) {
  transition: color 250ms ease;
}

/* Panel 5: Shopify order */
.order {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.order__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.order__id {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.order__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order__packed {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 350ms ease, transform 350ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.order__packed.is-in,
html:not(.js) .order__packed {
  opacity: 1;
  transform: none;
}

.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.order__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.order__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tagchip {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}

.tagchip--new {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.tagchip--new.is-in,
html:not(.js) .tagchip--new {
  opacity: 1;
  transform: none;
}

.order__timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.order__timeline li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.order__timeline li.is-in,
html:not(.js) .order__timeline li {
  opacity: 1;
  transform: none;
}

.order__timeline .mono {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .order__grid {
    grid-template-columns: 1fr;
  }

  .doc {
    margin: 10px;
    padding: 14px 12px 10px;
  }

  .doc__table th:nth-child(3),
  .doc__table td:nth-child(3) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   15b. Motion — reveal on scroll, hover lift, nav scroll-spy
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.card,
.pcard,
.plan,
.stat,
.steps-strip li,
.contact-panel {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.card:hover,
.pcard:hover,
.steps-strip li:hover,
.contact-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan--featured:hover {
  box-shadow: var(--shadow-accent);
}

.stat:hover {
  transform: translateY(-3px);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.nav__links a.is-active {
  opacity: 1;
  background: var(--dark-2);
}

.faq[open] .faq__body {
  animation: faq-in 320ms ease;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.paper-stack {
  animation: paper-float 7s ease-in-out infinite;
}

@keyframes paper-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.viewfinder .beam {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  top: 12%;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0.85;
  animation: scan-beam 2.4s ease-in-out infinite alternate;
}

@keyframes scan-beam {
  from { top: 12%; }
  to { top: 86%; }
}

/* --------------------------------------------------------------------------
   16. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .how-panel,
  .job__log li,
  .job__done,
  .doc__table tbody tr,
  .order__packed,
  .tagchip--new,
  .order__timeline li {
    transition: none;
  }

  .viewfinder .beam,
  .paper-stack {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
