/* Hallmark · shape: One Piece Trail · genre: modern-minimal · theme: custom · job: book · idea: "Follow one tagged ring from purchase to sale, so the page proves the software by showing the trail." · vibe: "calm, precise, bench-and-ledger, blue and gold"
 * paper: oklch(97.1% 0.006 85) · accent: oklch(50.2% 0.164 259) · display: Piazzolla · body: Hanken Grotesk · hero: headline, one sentence and two actions beside a hanging jewellery tag with its three-step trail · nav: wordmark left, four anchors, one action · footer: navy, logo over the address block · imagery: the product built as HTML panes with sample data · signature: the tag JP-0412 and its trail from purchase to sale
 * axes: light/roman-serif/chromatic-blue · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: V, blue is the category colour, so the gold tag and thin gold rules carry the distinct part */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/hanken-grotesk.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/piazzolla.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1240px; --gutter: 48px; --gap-columns: 32px; --section-gap-s: 88px; --section-gap: 112px; --section-gap-l: 136px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #F7F5F1; --color-paper-2: #FFFFFF; --color-paper-3: #E8F0FB;
  --color-ink: #0B2545; --color-ink-2: #1D232B; --color-muted: #55607A;
  --color-rule: #D5DCE8;
  --color-accent: #1F5FBF; --color-accent-ink: #FFFFFF; --color-focus: #1F5FBF;
  --font-display: "Piazzolla", ui-serif, Georgia, serif; --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 16px; --radius-inner: 10px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: 0 1px 2px rgb(11 37 69 / 0.06), 0 18px 40px -20px rgb(11 37 69 / 0.28);
  --tracking-display: -0.012em;
  --color-navy: #0B2545; --color-navy-2: #12315C; --color-royal-deep: #174C9E; --color-sky: #8DB3EE; --color-sky-2: #C9DCF8; --color-sky-3: #A9C6F2;
  --color-gold: #C9A24B; --color-gold-deep: #7A5B12; --color-on-navy: #E8F0FB; --color-on-navy-muted: #A9B9D3; --color-focus-dark: #A9C6F2;
  --color-white: #FFFFFF; --color-gem-crown: #5C93E4; --color-gem-l: #1F5FBF; --color-gem-mid: #0B2545; --color-gem-r: #174C9E; --color-gem-table: #8DB3EE;
  --display-weight: 600;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- page ---------- */
body { color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.08; }
h1 { font-size: var(--text-display-s); }
h2 { font-size: var(--text-section); }
h3 { font-family: var(--font-body); font-size: var(--text-title); font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 34em; }
a { color: var(--color-accent); }

.skip { position: absolute; left: var(--space-md); top: -80px; z-index: var(--z-toast); background: var(--color-navy); color: var(--color-white); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); }
.skip:focus { top: var(--space-md); }

/* logo */
.logo, .gem { --gem-table: var(--color-gem-table); --gem-crown: var(--color-gem-crown); --gem-l: var(--color-gem-l); --gem-mid: var(--color-gem-mid); --gem-r: var(--color-gem-r); --gem-gold: var(--color-gold); --wm-j: var(--color-navy); --wm-p: var(--color-accent); }
.logo--dark { --gem-table: var(--color-sky-2); --gem-crown: var(--color-sky); --gem-l: var(--color-gem-crown); --gem-mid: var(--color-paper-3); --gem-r: var(--color-sky-3); --wm-j: var(--color-white); --wm-p: var(--color-sky-3); }
.gem-table { fill: var(--gem-table); } .gem-gold { fill: var(--gem-gold); } .gem-crown { fill: var(--gem-crown); }
.gem-l { fill: var(--gem-l); } .gem-mid { fill: var(--gem-mid); } .gem-r { fill: var(--gem-r); }
.wm-j { fill: var(--wm-j); } .wm-p { fill: var(--wm-p); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-royal-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn[disabled] { background: var(--color-muted); color: var(--color-white); cursor: progress; }
.btn--sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-paper-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__row { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.nav__brand { display: block; margin-right: auto; }
.nav__links { display: flex; gap: var(--space-lg); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; font-weight: 500; font-size: var(--text-sm); padding-block: var(--space-xs); border-bottom: 2px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { border-bottom-color: var(--color-gold); }

/* bands */
.band { padding-block: var(--section-gap); }
.band--ice { background: var(--color-paper-3); }
.band--navy { background: var(--color-navy); color: var(--color-on-navy); }
.band--navy h2 { color: var(--color-white); }
.band--white { background: var(--color-paper-2); }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 44rem; }

/* hero */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero__note { color: var(--color-muted); font-size: var(--text-sm); }
.hero__visual { display: grid; gap: var(--space-md); justify-items: center; }

.tag { position: relative; width: min(100%, 320px); margin-top: var(--space-lg); padding: var(--space-xl) var(--space-lg) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); border-top: 4px solid var(--color-gold); }
.tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 36px; background: var(--color-gold); }
.tag__hole { position: absolute; left: 50%; top: var(--space-sm); width: 14px; height: 14px; transform: translateX(-50%); border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: inset 0 0 0 2px var(--color-gold); }
.tag__head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.tag__no { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); color: var(--color-ink); line-height: 1; }
.tag__facts, .facts { margin: 0; display: grid; gap: var(--space-xs); }
.tag__facts > div, .facts > div { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); border-bottom: var(--rule-hair) solid var(--color-rule); padding-bottom: var(--space-xs); }
dt { color: var(--color-muted); }
dd { margin: 0; color: var(--color-ink); font-weight: 500; }
.barcode { height: 40px; margin-top: var(--space-md); background: repeating-linear-gradient(90deg, var(--color-navy) 0 2px, transparent 2px 5px, var(--color-navy) 5px 6px, transparent 6px 8px, var(--color-navy) 8px 11px, transparent 11px 13px, var(--color-navy) 13px 14px, transparent 14px 17px); }
.barcode--wide { height: 34px; }

.trail { list-style: none; margin: 0; padding: 0; width: min(100%, 320px); display: grid; gap: 0; }
.trail li { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); animation: rise var(--dur-long) var(--ease-out) both; }
.trail li:nth-child(2) { animation-delay: 120ms; } .trail li:nth-child(3) { animation-delay: 240ms; }
.trail__what { color: var(--color-ink); font-weight: 500; }
.trail__state { color: var(--color-muted); }
.trail__state--done { color: var(--color-royal-deep); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sample { font-size: var(--text-xs); color: var(--color-muted); }

/* steps */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-xl); }
.step + .step { border-top: var(--rule-hair) solid var(--color-rule); }
.step--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step--flip .step__text { order: 2; }
.step__text { display: grid; gap: var(--space-sm); max-width: 28rem; }
.pane { background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg); display: grid; gap: var(--space-md); align-content: start; }
.pane__title { font-weight: 600; color: var(--color-ink); }
.pane__foot { font-size: var(--text-sm); color: var(--color-muted); }

.guar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-lg); align-items: center; }
.guar__photo { width: 112px; height: 112px; display: grid; place-items: center; background: var(--color-paper-3); border-radius: var(--radius-inner); }

.grid { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.grid th, .grid td { text-align: left; padding: var(--space-sm) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: middle; }
.grid thead th { color: var(--color-muted); font-weight: 500; font-size: var(--text-xs); }
.grid td { color: var(--color-ink-2); }
.grid .num { text-align: right; white-space: nowrap; }
.grid thead th:nth-child(3), .grid thead th:nth-child(4) { text-align: right; }
.grid--bill td:last-child, .grid--bill th:last-child { text-align: right; }
.grid tfoot th, .grid tfoot td { border-bottom: 0; border-top: 2px solid var(--color-ink); font-size: var(--text-md); font-weight: 600; color: var(--color-ink); padding-top: var(--space-md); }
.c { color: var(--color-muted); }
.chip { display: inline-block; padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; background: var(--color-paper-3); color: var(--color-royal-deep); }
.chip--done { background: var(--color-navy); color: var(--color-white); }
.chip--wait { background: var(--color-paper); color: var(--color-gold-deep); box-shadow: inset 0 0 0 1px var(--color-gold); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.bars li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 2.5rem; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.bars__name { color: var(--color-ink-2); }
.bars__track { height: 14px; background: var(--color-paper-3); border-radius: var(--radius-pill); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--v); background: var(--color-accent); border-radius: var(--radius-pill); transform-origin: left; animation: grow var(--dur-long) var(--ease-out) both; }
.bars li:first-child .bars__fill { background: var(--color-gold); }
.bars__val { text-align: right; color: var(--color-ink); font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pane--msg { background: var(--color-paper-3); box-shadow: none; }
.msg { max-width: 24rem; padding: var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 4px; box-shadow: var(--shadow-card); display: grid; gap: var(--space-sm); font-size: var(--text-sm); }
.msg--alt { justify-self: end; background: var(--color-sky-2); border-radius: var(--radius-card) var(--radius-card) 4px var(--radius-card); box-shadow: none; }
.msg__file { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-inner); background: var(--color-paper-3); color: var(--color-royal-deep); font-weight: 600; font-size: var(--text-xs); justify-self: start; }

/* modules */
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-columns); }
.mods li { padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-xs); align-content: start; }
.mods li:nth-child(-n+3) { border-top: 2px solid var(--color-gold); }
.mods p { color: var(--color-muted); font-size: var(--text-sm); }

/* reports */
.rep { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-2xl); }
.rep > div { padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-navy-2); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-md); }
.rep dt { color: var(--color-white); font-weight: 600; }
.rep dd { color: var(--color-on-navy-muted); font-weight: 400; }
.band--navy :focus-visible { outline-color: var(--color-focus-dark); }

/* who */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.trio > div { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--color-gold); }
.trio p { color: var(--color-ink-2); font-size: var(--text-sm); }
.who__line { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-weight: 500; max-width: none; }

/* demo */
.demo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.demo__text { display: grid; gap: var(--space-lg); justify-items: start; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); font-size: var(--text-sm); }
.contact li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--space-sm); }
.contact__k { color: var(--color-muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); background: var(--color-paper-2); padding: var(--space-xl); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-sky-2); }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.form__status { font-size: var(--text-sm); min-height: 1.4em; }
.form__status.is-ok { color: var(--color-success); font-weight: 600; }
.form__status.is-err { color: var(--color-error); font-weight: 600; }

/* footer */
.foot { background: var(--color-navy); color: var(--color-on-navy); padding-block: var(--space-3xl) var(--space-xl); }
.foot a { color: var(--color-on-navy); }
.foot a:focus-visible { outline-color: var(--color-focus-dark); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xl); }
.foot__tag { margin-top: var(--space-sm); color: var(--color-on-navy-muted); font-size: var(--text-sm); }
.foot__addr { font-style: normal; display: grid; gap: var(--space-xs); font-size: var(--text-sm); max-width: 24rem; }
.foot__addr p:first-child { color: var(--color-white); font-weight: 600; }
.foot__legal { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-navy-2); font-size: var(--text-xs); color: var(--color-on-navy-muted); }

/* responsive */
@media (max-width: 64rem) {
  .hero__grid, .step, .step--flip, .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .step--flip .step__text { order: 0; }
  .step { gap: var(--space-lg); }
  .hero__visual { justify-items: start; }
  .mods, .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mods li:nth-child(3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .mods li:nth-child(-n+2) { border-top: 2px solid var(--color-gold); }
  .rep { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .nav__links { display: none; }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .mods, .trio { grid-template-columns: minmax(0, 1fr); }
  .mods li:nth-child(2) { border-top: var(--rule-hair) solid var(--color-rule); }
  .mods li:nth-child(1) { border-top: 2px solid var(--color-gold); }
  .rep > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .form { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .guar { grid-template-columns: minmax(0, 1fr); }
  .grid { font-size: var(--text-xs); }
  .grid th, .grid td { padding-inline: var(--space-3xs); }
  .pane { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .trail li, .bars__fill { animation: none; }
}
