/* ============================================================================
   SHIPIFY — shared.css
   The design system. Owned by the SYSTEM cell. Consumes tokens.css only.

   LOAD ORDER (every page):
     tokens.css → shared.css → css/<page>.css → shared.js (defer) → js/<page>.js (defer)
   Your page CSS loads AFTER this file, so anything here is overridable by you.

   WHAT YOU GET
     Layout ....... .sy-container .sy-section .sy-stack .sy-grid .sy-split
     Type ......... .sy-h1 .sy-h2 .sy-h3 .sy-lede .sy-eyebrow .sy-mono .sy-note
     Controls ..... .sy-btn (+ --ghost --paper --quiet --lg --sm --block), stamp-press built in
     Forms ........ .sy-field .sy-field__label .sy-input .sy-select .sy-textarea .sy-check
     Surfaces ..... .sy-card .sy-callout .sy-tape .sy-chip .sy-rule .sy-rule--perf
     Data ......... .sy-table-wrap > .sy-table (tabular numerals, zebra, scrolls on mobile)
     Signature .... .sy-label (built by SY.label) · .sy-barcode · .print-in
     Mascot ....... .sy-zip (+ --sm --lg), assets/zip.svg zip-wave.svg zip-shrug.svg zip-cheer.svg

   HOUSE RULES BAKED IN
     - --accent as TEXT is only AA-safe on white label stock (5.1:1) or at >=24px on
       paper (4.3:1, large-text rule). For red body text on paper use --sy-ink-danger;
       on kraft cardboard --sy-ink-danger drops to 4.15:1, so use --sy-ink-deep (5.4:1).
     - --accent-bright NEVER carries a word. It is border/gradient/glow only. A stamp
       is a disclosure ("DEMO", "sample data") — it has to be the MOST readable ink on
       the label, so stamps are --accent at full opacity, never a faded --accent-bright.
     - Every interactive thing has a :focus-visible ring. Do not remove it.
     - Inputs are 16px minimum (no iOS zoom) and 48px min target.
     - .print-in clips only while it is printing (~700ms). Don't put it on an
       element with position:sticky children — they will not stick until the
       sweep finishes.
     - Reduced motion collapses every reveal to an instant, no-translate state.
   ========================================================================== */

:root {
  /* the palette is a light paper stock and has no dark counterpart. Saying so
     stops the browser painting form controls, scrollbars and autofill in its
     own dark theme on a dark-mode machine, which is where the 16px inputs and
     the AA contrast quietly stop being true. */
  color-scheme: light;

  /* derived, not new brand colour: red that passes AA as body text on paper */
  --sy-ink-danger: #A62B21;         /* 4.9:1 on paper/manila — NOT on kraft */
  --sy-ink-deep:   #85261D;         /* darker red, 5.4:1 on kraft cardboard */
  --sy-ink-disabled: #3F372E;       /* disabled-control ink: 4.7:1 on kraft at .85 */
  --sy-stock: #FFFFFF;              /* label stock */
  --sy-shadow: 24 20 16;            /* ink rgb, for soft shadows */
  --sy-nav-h: 72px;

  /* Translucent accent washes. Every one of these is the brand red at a
     stated strength — never a fresh rgb() literal. The rgba() values are
     the pre-color-mix fallback only; the @supports block below is the
     definition that actually ships. Decorative surfaces ONLY: nothing that
     carries a word is allowed to be one of these (see the stamp rules). */
  --sy-accent-veil:  rgba(206, 50, 38, .22);   /* focus glow, quiet splat */
  --sy-accent-splat: rgba(206, 50, 38, .30);   /* ghost/paper button ink splat */
  --sy-accent-bleed: rgba(206, 50, 38, .45);   /* stamp inner ink bleed */
  --sy-stock-splat:  rgba(255, 255, 255, .55); /* splat on a red button */
  --sy-glow-hot:     rgba(229, 55, 43, .45);   /* print-head heat bloom */
}
@supports (color: color-mix(in srgb, red 50%, black)) {
  :root {
    --sy-ink-danger:   color-mix(in srgb, var(--accent) 78%, var(--ink));
    --sy-ink-deep:     color-mix(in srgb, var(--accent) 60%, var(--ink));
    --sy-ink-disabled: color-mix(in srgb, var(--ink) 80%, var(--kraft));
    --sy-accent-veil:  color-mix(in srgb, var(--accent) 22%, transparent);
    --sy-accent-splat: color-mix(in srgb, var(--accent) 30%, transparent);
    --sy-accent-bleed: color-mix(in srgb, var(--accent) 45%, transparent);
    --sy-stock-splat:  color-mix(in srgb, var(--accent-ink) 55%, transparent);
    --sy-glow-hot:     color-mix(in srgb, var(--accent-bright) 45%, transparent);
  }
}

/* ---------------------------------------------------------------- 1. base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sy-nav-h) + var(--sp-300));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-200);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--fs-2xl), 5.4vw, var(--fs-4xl)); }
h2 { font-size: clamp(var(--fs-xl), 3.6vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-200); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--accent); }

img, svg, video { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 2px solid var(--line); margin: var(--sp-400) 0; }

/* iOS never zooms a Shipify input */
input, select, textarea, button { font: inherit; font-size: max(16px, 1em); color: inherit; }

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

/* ------------------------------------------------------- 2. focus + skip */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.sy-btn:focus-visible,
.sy-input:focus-visible,
.sy-select:focus-visible,
.sy-textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--sy-accent-veil);
}

.sy-skip {
  position: absolute;
  left: var(--sp-200);
  top: var(--sp-200);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-150) var(--sp-300);
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  text-decoration: none;
  transition: transform var(--dur-quick) var(--ease-stamp);
}
.sy-skip:focus-visible { transform: translateY(0); }

.sy-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- 3. layout */
.sy-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-300);
}
.sy-container--narrow { max-width: 760px; }
.sy-container--wide   { max-width: 1320px; }

.sy-section { padding-block: clamp(var(--sp-600), 9vw, var(--sp-1200)); }
.sy-section--tight { padding-block: clamp(var(--sp-400), 6vw, var(--sp-800)); }
.sy-section--surface { background: var(--surface); }
.sy-section--kraft { background: var(--kraft); }

.sy-stack > * + * { margin-top: var(--sp-300); }
.sy-stack--sm > * + * { margin-top: var(--sp-150); }
.sy-stack--lg > * + * { margin-top: var(--sp-600); }

.sy-grid {
  display: grid;
  gap: var(--sp-300);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.sy-split {
  display: grid;
  gap: clamp(var(--sp-400), 5vw, var(--sp-800));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .sy-split { grid-template-columns: 1.05fr .95fr; } }

/* --------------------------------------------------------------- 4. type */
.sy-h1 { font-family: var(--font-display); font-size: clamp(var(--fs-2xl), 5.4vw, var(--fs-4xl)); line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.sy-h2 { font-family: var(--font-display); font-size: clamp(var(--fs-xl), 3.6vw, var(--fs-3xl)); line-height: 1.1; margin: 0; text-wrap: balance; }
.sy-h3 { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.2; margin: 0; }

.sy-lede {
  font-size: clamp(var(--fs-base), 1.6vw, var(--fs-lg));
  color: var(--ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.sy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sy-eyebrow::before {
  content: "";
  width: 24px; height: 4px;
  background: var(--accent);
  border-radius: var(--r-none);
}

.sy-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sy-num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.01em; }

.sy-note { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5; }
.sy-danger { color: var(--sy-ink-danger); font-weight: 700; }

.sy-strike { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); color: var(--ink-muted); }

/* ------------------------------------------------------------ 5. buttons */
.sy-btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-line: var(--line);
  --btn-splat: var(--sy-stock-splat);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-100);
  min-height: 48px;
  padding: var(--sp-150) var(--sp-300);
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 2px solid var(--btn-line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--btn-line);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-quick) var(--ease-stamp),
    box-shadow var(--dur-quick) var(--ease-stamp),
    background-color var(--dur-quick) linear;
}
.sy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-line); }
/* the stamp press: the button drives itself into the paper */
.sy-btn:active,
.sy-btn.is-stamping { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-line); }

.sy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--sy-stamp-x, 50%) var(--sy-stamp-y, 50%), var(--btn-splat), transparent 62%);
}
.sy-btn.is-stamping::after { animation: sy-ink 420ms var(--ease-print) both; }
@keyframes sy-ink {
  0%   { opacity: .9; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(1.5); }
}

.sy-btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-splat: var(--sy-accent-splat); }
.sy-btn--paper { --btn-bg: var(--sy-stock); --btn-ink: var(--ink); --btn-splat: var(--sy-accent-splat); }
.sy-btn--ghost:hover, .sy-btn--paper:hover { background: var(--surface); }

.sy-btn--quiet {
  --btn-bg: transparent; --btn-ink: var(--ink); --btn-splat: var(--sy-accent-veil);
  border-color: transparent;
  box-shadow: none;
  padding-inline: var(--sp-150);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.sy-btn--quiet:hover { transform: none; box-shadow: none; background: var(--surface); }
.sy-btn--quiet:active, .sy-btn--quiet.is-stamping { transform: translateY(2px); box-shadow: none; }

.sy-btn--lg { min-height: 56px; padding: var(--sp-200) var(--sp-400); font-size: var(--fs-lg); }
.sy-btn--sm { min-height: 40px; padding: var(--sp-100) var(--sp-200); font-size: var(--fs-sm); border-radius: var(--r-md); box-shadow: 0 3px 0 var(--btn-line); }
.sy-btn--block { display: flex; width: 100%; }

.sy-btn[disabled],
.sy-btn[aria-disabled="true"] {
  /* A disabled control still has to be readable — it usually says WHY it is
     disabled ("Payments open at launch"). The disabled read comes from the flat
     kraft fill, the dropped shadow and the cursor, not from faint ink: at .85
     opacity --sy-ink-disabled measures 4.71:1 on kraft, --ink-muted only 3.3:1. */
  --btn-bg: var(--kraft);
  --btn-ink: var(--sy-ink-disabled);
  --btn-line: var(--sy-ink-disabled);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: .85;
}
.sy-btn[disabled]:hover,
.sy-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.sy-btn__icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* -------------------------------------------------------------- 6. forms */
.sy-field { display: block; }
.sy-field + .sy-field { margin-top: var(--sp-300); }

.sy-field__label {
  display: block;
  margin-bottom: var(--sp-100);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sy-field__hint { display: block; margin-top: var(--sp-100); font-size: var(--fs-sm); color: var(--ink-muted); }
.sy-field__error {
  display: none;
  margin-top: var(--sp-100);
  padding-left: var(--sp-150);
  border-left: 4px solid var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sy-ink-danger);
}
.sy-field.is-invalid .sy-field__error { display: block; }
.sy-field.is-invalid .sy-input,
.sy-field.is-invalid .sy-select { border-color: var(--accent); }

.sy-input, .sy-select, .sy-textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-150);
  background: var(--sy-stock);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--dur-quick) linear, background-color var(--dur-quick) linear;
}
.sy-textarea { min-height: 120px; resize: vertical; }
.sy-input::placeholder, .sy-textarea::placeholder { color: var(--ink-muted); opacity: .75; }
.sy-input:hover, .sy-select:hover, .sy-textarea:hover { border-color: var(--accent); }

.sy-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--sp-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 7 6-7' fill='none' stroke='%23181410' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-150) center;
  background-size: 20px 20px;
  cursor: pointer;
}

.sy-inputgroup { display: flex; gap: var(--sp-100); align-items: stretch; }
.sy-inputgroup > .sy-input { flex: 1 1 auto; }

.sy-check { display: flex; gap: var(--sp-150); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.sy-check input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }

/* ----------------------------------------------------------- 7. surfaces */
.sy-card {
  background: var(--sy-stock);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-300);
  box-shadow: 0 10px 24px -18px rgb(var(--sy-shadow) / .8);
}
.sy-card--manila { background: var(--surface); }
.sy-card--kraft  { background: var(--kraft); }

.sy-callout {
  border-left: 6px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-200) var(--sp-300);
}

.sy-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-050);
  padding: 2px var(--sp-100);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sy-chip--hot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* a strip of packing tape — for pinning things to the page */
.sy-tape {
  display: inline-block;
  padding: var(--sp-050) var(--sp-200);
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-1.6deg);
  box-shadow: 0 2px 6px -3px rgb(var(--sy-shadow) / .6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px)),
                      repeating-linear-gradient(0deg, #000 0 6px, transparent 6px 7px);
  mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px)),
              repeating-linear-gradient(0deg, #000 0 6px, transparent 6px 7px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.sy-rule { border: 0; border-top: 2px solid var(--line); margin: var(--sp-400) 0; }
.sy-rule--perf {
  border: 0;
  height: 2px;
  margin: var(--sp-400) 0;
  background-image: radial-gradient(circle at 50% 50%, var(--line) 0 1.6px, transparent 1.7px);
  background-size: 12px 2px;
  background-repeat: repeat-x;
}

/* ---------------------------------------------------------- 8. data table */
.sy-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--sy-stock);
  -webkit-overflow-scrolling: touch;
}
.sy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.sy-table caption {
  caption-side: top;
  padding: var(--sp-200);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  border-bottom: 2px solid var(--line);
}
.sy-table th, .sy-table td { padding: var(--sp-150) var(--sp-200); text-align: right; white-space: nowrap; }
.sy-table th:first-child, .sy-table td:first-child { text-align: left; }
.sy-table thead th {
  position: sticky;
  top: 0;
  background: var(--line);
  color: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sy-table tbody tr + tr { border-top: 1px solid rgb(var(--sy-shadow) / .18); }
.sy-table tbody tr:nth-child(even) { background: var(--bg); }
.sy-table tbody tr:hover { background: var(--surface); }
.sy-table td.is-hot { color: var(--sy-ink-danger); font-weight: 700; }

/* ============================================================= 9. LABEL ==
   The signature surface. Build with SY.label(); this styles the output. */
.sy-label {
  position: relative;
  display: block;
  margin: 0;
  padding-bottom: var(--sp-200);
  background: var(--sy-stock);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 var(--line), 0 18px 32px -24px rgb(var(--sy-shadow) / .9);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
/* thermal stock texture */
.sy-label::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background-image: repeating-linear-gradient(0deg, rgb(var(--sy-shadow) / .035) 0 1px, transparent 1px 3px);
}

.sy-label__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-100) var(--sp-200);
  padding: var(--sp-150) var(--sp-200);
  background: var(--line);
  color: var(--bg);
}
.sy-label__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}
.sy-label__sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kraft);
}

.sy-label__lines { margin: 0; padding: var(--sp-200) var(--sp-200) 0; }
.sy-label__line {
  display: flex;
  align-items: baseline;
  gap: var(--sp-100);
  padding-block: var(--sp-050);
}
/* dotted leader, rendered as a flex item between dt and dd — no extra markup */
.sy-label__line::before {
  content: "";
  order: 2;
  flex: 1 1 auto;
  align-self: center;
  height: 0;
  border-bottom: 2px dotted rgb(var(--sy-shadow) / .32);
  transform: translateY(2px);
}
/* the key names the number ("Retail", "You keep") — a stranger reads these to
   understand the claim, so they hold at --fs-sm, never the 10.2px --fs-xs */
.sy-label__line dt {
  order: 1;
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sy-label__line dd {
  order: 3;
  flex: 0 0 auto;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sy-label__line--strike dd { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); color: var(--ink-muted); }
.sy-label__line--hot dd { color: var(--sy-ink-danger); }

.sy-label__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-200);
  margin: var(--sp-200) var(--sp-200) 0;
  padding-top: var(--sp-150);
  border-top: 3px solid var(--line);
}
.sy-label__total dt {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sy-label__total dd {
  margin: 0;
  font-size: var(--fs-xl);   /* 25px — large text, so --accent clears AA on stock */
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.1;
}

.sy-label__barcode { padding: var(--sp-200) var(--sp-200) 0; }
.sy-label__code {
  padding-top: var(--sp-050);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .34em;
  text-align: center;
  text-indent: .34em;   /* re-centre against the trailing letter-space */
  color: var(--ink);
}
/* the honesty line ("sample data", "commercial rate + $0.25"). This is the
   sentence that keeps the label honest, so it is never the smallest ink here. */
.sy-label__foot {
  margin: var(--sp-150) var(--sp-200) 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-muted);   /* 7.54:1 on label stock */
}

/* Red rubber stamp — deliberately imperfect, deliberately LOUD.
   A stamp is a disclosure: "DEMO", "sample data", "COUNTER WINS". It is the one
   word on the label a reader must not miss, so it gets full-strength --accent
   ink at opacity 1 (5.11:1 on stock; 5.02:1 across the thermal texture lines).
   The hand-stamped feel comes from the crooked rotation, the uneven corner radii
   and the inner ink bleed — not from washing the ink out. */
.sy-label__stamp {
  position: absolute;
  z-index: 2;
  right: var(--sp-200);
  bottom: var(--sp-400);
  padding: var(--sp-050) var(--sp-150);
  border: 3px solid var(--accent);
  border-radius: 7px 5px 8px 4px;
  box-shadow: inset 0 0 0 1px var(--sy-accent-bleed);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;   /* footprint unchanged; the legibility comes from the ink */
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-11deg);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.sy-label.is-printed .sy-label__stamp { animation: sy-stamp 380ms var(--ease-stamp) calc(var(--sy-print-delay, 0ms) + 260ms) both; }
@keyframes sy-stamp {
  0%   { opacity: 0; transform: rotate(-19deg) scale(1.7); }
  70%  { opacity: 1; transform: rotate(-9deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-11deg) scale(1); }
}

/* the print head: a hot bar that travels down the stock as it prints */
.sy-label__printhead {
  position: absolute;
  z-index: 4;
  left: -2px; right: -2px;
  top: 0;
  height: 4px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 14%, #FFF 50%, var(--accent-bright) 86%, transparent);
  box-shadow: 0 0 14px 3px var(--sy-glow-hot);
}
.sy-label.print-in.is-printed .sy-label__printhead { animation: sy-printhead var(--dur-print) var(--ease-print) var(--sy-print-delay, 0ms) both; }
@keyframes sy-printhead {
  0%   { top: 0;    opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* perforated tear-off edge (opt in: SY.label({tear:true})) */
.sy-label--tear { padding-bottom: var(--sp-400); }
.sy-label--tear::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -2px; right: -2px; bottom: -2px;
  height: 14px;
  background-image: radial-gradient(circle at 50% 100%, var(--bg) 0 6px, transparent 6.5px);
  background-size: 16px 14px;
  background-repeat: repeat-x;
}

/* calm variant — money surfaces (signup, checkout, receipts) */
.sy-label--calm { box-shadow: 0 1px 0 var(--line); }
.sy-label--calm .sy-label__total dd { color: var(--ink); }
/* calm ≠ faint: on a money surface the stamp straightens up and stops bouncing,
   but the disclosure keeps every bit of its ink (5.11:1). */
.sy-label--calm .sy-label__stamp { transform: rotate(-5deg); }
.sy-label--calm.is-printed .sy-label__stamp { animation: none; }

/* --------------------------------------------------------- 10. barcode */
.sy-barcode {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: var(--r-none);
  color: var(--ink);
}
.sy-barcode--sm { height: 28px; }
.sy-barcode--xs { height: 18px; }

/* ------------------------------------------------- 11. .print-in reveal */
/* The resting state is opacity only — NEVER a clip. A clip-collapsed box has an
   empty intersection rect, so IntersectionObserver would never see the element
   and the reveal would defeat itself. The thermal sweep lives in the keyframes,
   played with fill-mode:backwards so the clip is gone once printing finishes
   (nothing permanently clips a shadow or a stamp). */
.print-in { opacity: .001; }
.print-in.is-printed {
  opacity: 1;
  animation: sy-print var(--dur-print) var(--ease-print) var(--sy-print-delay, 0ms) backwards;
}
@keyframes sy-print {
  0%   { opacity: .55; clip-path: inset(0 0 100% 0); filter: contrast(1.35) saturate(.55); }
  100% { opacity: 1;   clip-path: inset(0 0 0 0);    filter: none; }
}
/* opt-in print-head bar for a whole section */
.print-in--bar { position: relative; }
.print-in--bar.is-printed::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: sy-printhead var(--dur-print) var(--ease-print) var(--sy-print-delay, 0ms) both;
}
/* if scripting is off nothing may ever be hidden */
@media (scripting: none) {
  .print-in { opacity: 1; }
}

/* ----------------------------------------------------------- 12. mascot */
.sy-zip { width: 120px; height: auto; flex: 0 0 auto; }
.sy-zip--sm { width: 64px; }
.sy-zip--lg { width: clamp(180px, 24vw, 280px); }

/* -------------------------------------------------------------- 13. nav */
.sy-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  transition: box-shadow var(--dur-quick) linear;
}
.sy-nav.is-stuck { box-shadow: 0 10px 24px -20px rgb(var(--sy-shadow) / .9); }
/* the tear-off perforation under the header */
.sy-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 7px;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0, var(--line) 0 1.6px, transparent 1.7px);
  background-size: 11px 7px;
  background-repeat: repeat-x;
  opacity: .4;
}

.sy-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-300);
  min-height: var(--sy-nav-h);
  padding-block: var(--sp-100);
}

.sy-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-150);
  margin-right: auto;
  text-decoration: none;
  border-radius: var(--r-md);
}
.sy-brand__zip { width: 40px; height: 40px; flex: 0 0 auto; }
.sy-brand__wordmark { width: 128px; height: auto; flex: 0 0 auto; }
.sy-brand__chip {
  align-self: center;
  padding: 2px var(--sp-100);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sy-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-050);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sy-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-100) var(--sp-150);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.sy-nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-150); right: var(--sp-150);
  bottom: 8px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-quick) var(--ease-print);
}
.sy-nav__link:hover::after { transform: scaleX(1); }
.sy-nav__link[aria-current="page"] { font-weight: 700; }
.sy-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.sy-nav__cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: var(--sp-100) var(--sp-200);
  box-shadow: 0 3px 0 var(--btn-line);
}
.sy-nav__cta:hover { box-shadow: 0 5px 0 var(--btn-line); }
.sy-nav__cta:active, .sy-nav__cta.is-stamping { box-shadow: 0 0 0 var(--btn-line); }

.sy-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.sy-nav__bars { display: block; width: 22px; height: 16px; position: relative; }
.sy-nav__bars i {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-quick) var(--ease-stamp), opacity var(--dur-quick) linear;
}
.sy-nav__bars i:nth-child(1) { top: 0; }
.sy-nav__bars i:nth-child(2) { top: 6.5px; }
.sy-nav__bars i:nth-child(3) { top: 13px; }
.sy-nav.is-open .sy-nav__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sy-nav.is-open .sy-nav__bars i:nth-child(2) { opacity: 0; }
.sy-nav.is-open .sy-nav__bars i:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

@media (max-width: 880px) {
  .sy-nav__toggle { display: inline-flex; }
  .sy-nav__menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-100);
    padding: var(--sp-200) var(--sp-300) var(--sp-400);
    background: var(--bg);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 20px 30px -26px rgb(var(--sy-shadow) / .9);
  }
  .sy-nav.is-open .sy-nav__menu { display: flex; }
  .sy-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .sy-nav__link { min-height: 56px; font-size: var(--fs-lg); border-bottom: 1px solid rgb(var(--sy-shadow) / .16); border-radius: 0; }
  .sy-nav__link::after { left: 0; right: auto; width: 26px; bottom: 12px; }
  .sy-nav__cta { margin-top: var(--sp-200); display: flex; min-height: 52px; }
  .sy-brand__chip { display: none; }
}
@media (min-width: 881px) {
  .sy-nav__menu { display: flex; align-items: center; gap: var(--sp-300); }
}
@media (max-width: 420px) {
  .sy-brand__wordmark { width: 104px; }
}

/* ----------------------------------------------------------- 14. footer */
.sy-footer {
  position: relative;
  margin-top: var(--sp-1200);
  background: var(--surface);
  border-top: 2px solid var(--line);
  color: var(--ink);
}
.sy-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 8px;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, var(--bg) 0 4px, transparent 4.5px);
  background-size: 12px 8px;
  background-repeat: repeat-x;
}
.sy-footer__inner {
  display: grid;
  gap: var(--sp-600);
  padding-block: var(--sp-800) var(--sp-600);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .sy-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; } }

.sy-footer__brandline { display: flex; align-items: center; gap: var(--sp-150); margin-bottom: var(--sp-200); }
.sy-footer__zip { width: 52px; height: 52px; }
.sy-footer__wordmark { width: 150px; height: auto; }
.sy-footer__note { max-width: 46ch; font-size: var(--fs-sm); color: var(--ink-muted); }
.sy-footer__status { max-width: 46ch; margin-top: var(--sp-200); font-size: var(--fs-sm); }

.sy-footer__coltitle {
  margin: 0 0 var(--sp-150);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sy-footer__list { list-style: none; margin: 0; padding: 0; }
/* standalone section links (see-more arrows) — >=44px hit area, same look */
.proof__link, .feats__more a, .faq__more a, .sy-morelink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sy-footer__list li + li { margin-top: var(--sp-050); }
.sy-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target; visual rhythm unchanged */
  padding-block: var(--sp-100);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(var(--sy-shadow) / .28);
  text-underline-offset: 4px;
}
.sy-footer__list a:hover { text-decoration-color: var(--accent); }

.sy-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding-block: var(--sp-200);
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--ink-muted);
}
.sy-footer__barcode { width: 180px; height: 26px; color: var(--ink); opacity: .8; }

/* ---------------------------------------------------------- 15. utility */
.sy-hide { display: none !important; }
.sy-center { text-align: center; }
.sy-center .sy-lede { margin-inline: auto; }
.sy-flow { display: flex; flex-wrap: wrap; gap: var(--sp-200); align-items: center; }
.sy-flow--center { justify-content: center; }
.sy-nowrap { white-space: nowrap; }
.sy-maxw { max-width: 62ch; }

/* --------------------------------------------------- 16. reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .print-in.is-printed { opacity: 1; animation: none; }
  .sy-label__printhead, .print-in--bar.is-printed::after { display: none; }
  .sy-btn:hover, .sy-btn:active, .sy-btn.is-stamping { transform: none; }
}

/* ------------------------------------------------------------ 17. print */
@media print {
  .sy-nav, .sy-footer, .sy-skip, .sy-btn { display: none !important; }
  .print-in { opacity: 1 !important; clip-path: none !important; animation: none !important; }
  body { background: #fff; }
  .sy-label { box-shadow: none; break-inside: avoid; }
}
