/* Caseback marketing site
   Layout: editorial two-column hero (thesis left, engraved caseback right), then a
   single reading column that widens for the passport specimen and the shop stepper.
   Palette: steel-tinted neutrals with heat-blued steel as the one accent. */
:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --ink: #12161d;
  --muted: #586172;
  --line: #d4d9e0;
  --blued: #2a45b0;
  --blued-soft: #e4e9f8;
  --graphite: #6b7280;
  --graphite-soft: #eceef1;
  --lume-glow: transparent;
  --box: #1c2230;
  --paper: #fbfaf7;
  --paper-ink: #2b2f36;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);

  --wrap: 72rem;
  --read: 40rem;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1016;
    --surface: #141a23;
    --ink: #e7eaf0;
    --muted: #9aa3b3;
    --line: #283242;
    --blued: #93a9f6;
    --blued-soft: #1a2442;
    --graphite: #a1a8b5;
    --graphite-soft: #1d232d;
    --lume-glow: rgba(190, 246, 200, 0.85);
    --box: #05070b;
    --paper: #e9e6df;
    --paper-ink: #22252b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1016;
  --surface: #141a23;
  --ink: #e7eaf0;
  --muted: #9aa3b3;
  --line: #283242;
  --blued: #93a9f6;
  --blued-soft: #1a2442;
  --graphite: #a1a8b5;
  --graphite-soft: #1d232d;
  --lume-glow: rgba(190, 246, 200, 0.85);
  --box: #05070b;
  --paper: #e9e6df;
  --paper-ink: #22252b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blued); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blued); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-optical-sizing: auto; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand persona nav";
  align-items: center; gap: 0.75rem 1rem; padding-block: 0.75rem;
}
.site-header .brand { grid-area: brand; justify-self: start; }
.site-header .nav { grid-area: nav; justify-self: end; }
.site-header .persona { grid-area: persona; }
@media (max-width: 56rem) {
  .site-header .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand nav" "persona persona"; }
  .site-header .persona { justify-self: stretch; }
  .nav .hide-md { display: none; }
}

/* Persona toggle: two real pages; the thumb morphs between them with a
   cross-document view transition where the browser supports it. */
@view-transition { navigation: auto; }
.persona {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.persona a {
  position: relative; z-index: 1; text-align: center; white-space: nowrap;
  padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.persona a:hover { color: var(--ink); }
.persona a[aria-current="page"] { color: var(--bg); }
.persona-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--ink); view-transition-name: persona-thumb;
}
.persona[data-active="shops"] .persona-thumb { left: 50%; }
.persona[data-active="none"] .persona-thumb { display: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .persona a { transition: none; } }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.01em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9375rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blued); }
.nav a[aria-current="page"] { color: var(--blued); }
.nav .btn { padding: 0.5rem 0.9rem; }
@media (max-width: 40rem) { .nav .hide-sm { display: none; } }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  padding: 0.8rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--blued); background: var(--blued); color: var(--bg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--blued); }
.signup { display: grid; gap: 0.6rem; max-width: 30rem; }
.signup-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup-row > * { flex: 1 1 12rem; min-width: 0; }
.signup-row .btn { flex: 0 0 auto; }
label.field { display: grid; gap: 0.35rem; font-size: 0.9375rem; font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blued); outline-offset: 0; border-color: var(--blued); }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-size: 0.9375rem; min-height: 1.5em; }
.form-status[data-state="ok"] { color: var(--blued); }
.form-status[data-state="error"] { color: var(--ink); font-weight: 600; }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9375rem; }
.radio-row label { display: inline-flex; gap: 0.4rem; align-items: center; }
.radio-row input { width: auto; }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--blued); }
.caseback { width: 100%; max-width: 30rem; justify-self: center; aspect-ratio: 1; }
.caseback .ring-text { animation: turn 240s linear infinite; transform-origin: 200px 200px; }
@keyframes turn { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .caseback .ring-text { animation: none; } }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .caseback { max-width: 22rem; order: -1; }
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.rule { border-top: 1px solid var(--line); }
.section-head { display: grid; align-content: start; gap: 1rem; max-width: var(--read); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }
.prose { display: grid; gap: 1.1rem; max-width: var(--read); }
.prose p { color: var(--ink); }

/* Problem statement */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.problem h2 { font-style: italic; }
@media (max-width: 52rem) { .problem { grid-template-columns: 1fr; } }

/* Passport specimen */
.passport-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .passport-grid { grid-template-columns: 1fr; } }
.specimen {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px color-mix(in srgb, var(--ink) 45%, transparent);
  overflow: hidden; min-width: 0;
}
.specimen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.specimen-head .title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.specimen-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); padding: 0.15rem 0.5rem; border-radius: 3px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin: 0; }
.specs div { padding: 0.9rem 1.5rem; border-right: 1px solid var(--line); min-width: 0; }
.specs div:nth-child(3n) { border-right: 0; }
.specs div:nth-child(n+4) { border-top: 1px solid var(--line); }
.specs dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0.2rem 0 0; font-family: var(--font-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div { border-right: 1px solid var(--line); }
  .specs div:nth-child(3n) { border-right: 1px solid var(--line); }
  .specs div:nth-child(2n) { border-right: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.timeline { list-style: none; margin: 0; padding: 0.5rem 1.5rem 1.25rem; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.timeline .entry { display: grid; gap: 0.3rem; min-width: 0; }
.timeline .entry strong { font-weight: 600; }
.timeline .entry span { color: var(--muted); font-size: 0.9375rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.badge svg { width: 12px; height: 12px; }
.badge-verified { background: var(--blued-soft); color: var(--blued); }
.badge-owner { background: var(--graphite-soft); color: var(--graphite); }
.backstory { padding: 1.1rem 1.5rem 1.4rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--blued-soft) 45%, var(--surface)); }
.backstory p { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; line-height: 1.5; margin-top: 0.35rem; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.points li { display: grid; gap: 0.35rem; }
.points p { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; align-content: start; gap: 0.6rem; padding: 1.25rem 1.25rem 0 0; min-width: 0; }
.steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.steps .num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--blued); }
.steps p { color: var(--muted); font-size: 0.9375rem; }
.later { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0.1rem 0.4rem; justify-self: start; }
@media (max-width: 56rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { padding-top: 2rem; }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; padding-top: 1.5rem; }
}

/* Two-column feature lists */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.ledger .k { font-weight: 600; }
.ledger .v { color: var(--muted); }
@media (max-width: 30rem) { .ledger li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Wrist check band */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.wrist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 48rem) { .wrist { grid-template-columns: 1fr; } }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.day { display: grid; gap: 0.4rem; justify-items: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.day .dot { width: 100%; max-width: 3rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.day .dot[data-w="a"] { background: var(--blued-soft); border-color: var(--blued); color: var(--blued); }
.day .dot[data-w="b"] { background: var(--graphite-soft); border-color: var(--graphite); }
.week-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

/* Shop callout */
.callout { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; border: 1px solid var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.callout p { color: var(--muted); max-width: 46ch; margin-top: 0.75rem; }
@media (max-width: 40rem) { .callout { grid-template-columns: 1fr; align-items: start; } }

/* Job stepper (servicers) */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: s; }
.stepper li { position: relative; padding-top: 1.6rem; font-size: 0.9375rem; min-width: 0; }
.stepper li::before { content: ""; position: absolute; top: 0.45rem; left: 0; right: 0; border-top: 1px solid var(--line); }
.stepper li::after { content: ""; position: absolute; top: 0; left: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.stepper li.done::after { background: var(--blued); border-color: var(--blued); }
.stepper li.done::before { border-top-color: var(--blued); }
.stepper li.current::after { background: var(--bg); border: 3px solid var(--blued); box-shadow: 0 0 0 4px var(--blued-soft); }
.stepper li.current strong { color: var(--blued); }
.stepper strong { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stepper span { color: var(--muted); font-size: 0.875rem; display: block; padding-right: 0.75rem; }
@media (max-width: 48rem) {
  .stepper { grid-template-columns: 1fr; }
  .stepper li { padding: 0 0 1.25rem 1.75rem; }
  .stepper li::before { top: 1rem; bottom: 0; left: 0.45rem; right: auto; border-top: 0; border-left: 1px solid var(--line); }
  .stepper li:last-child::before { display: none; }
}
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 30rem) { .form-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--blued); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 62ch; }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .prose { gap: 1rem; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-top: 1.25rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.draft-note { border: 1px dashed var(--muted); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.9375rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: start; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blued); }
.footer-brand { display: grid; gap: 0.35rem; }
.footer-brand .brand { font-size: 1.125rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 30rem) { .nav .hide-xs { display: none; } .nav { gap: 0.75rem; } }

/* Repair tag illustration (watchmakers hero) */
.tag-wrap { justify-self: center; width: 100%; max-width: 23rem; position: relative; padding-top: 3.5rem; }
.tag-string { position: absolute; top: 0; left: 50%; width: 120px; height: 72px; transform: translateX(-50%); overflow: visible; }
.tag {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(18% 0, 82% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  padding: 3.25rem 1.5rem 6.5rem; display: grid; gap: 1rem;
  transform: rotate(-3deg); transform-origin: 50% 0;
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--ink) 45%, transparent);
}
.tag::before {
  content: ""; position: absolute; top: 1.1rem; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -0.55rem;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 5px var(--graphite-soft);
}
.tag-no { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 0.6rem; }
.tag-no b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.tag dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1rem; font-size: 0.9375rem; }
.tag dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.tag dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tag-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.tag-progress i { height: 4px; background: var(--blued); border-radius: 1px; }
.tag-progress i.todo { background: var(--line); }
.stamp {
  position: absolute; right: 1.25rem; bottom: 0.6rem; width: 5.5rem; height: 5.5rem;
  color: var(--blued); transform: rotate(-14deg); opacity: 0.9; pointer-events: none;
}

/* Record cards (trust page) */
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 44rem) { .records { grid-template-columns: 1fr; } }
.record {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.5rem; display: grid; gap: 0.9rem; min-width: 0;
}
.record-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 3px double var(--line); padding-bottom: 0.6rem; }
.record-head b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
.record p { font-size: 0.9375rem; }
.record .meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.record .stamp { position: absolute; right: 1rem; bottom: 1rem; width: 5rem; height: 5rem; }
.record:has(.stamp) .note { padding-right: 6rem; min-height: 5rem; }
.record .note { color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.record-pending { color: var(--graphite); }

.hero { overflow-x: clip; }

/* ---------- Iteration 3: interactive pieces ---------- */
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: default; filter: none; }
.lume { filter: drop-shadow(0 0 2.5px var(--lume-glow)); }

/* Hero watch */
.hero-watch .wrap { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem); }
.watch-stage { margin: 0; display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.watch3d {
  width: min(100%, 24rem); aspect-ratio: 400 / 480; perspective: 1400px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 2rem;
}
.watch3d:active { cursor: grabbing; }
.watch-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: watch-hint 1.6s 0.8s ease-in-out 1; }
.watch-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 26px 30px color-mix(in srgb, var(--ink) 28%, transparent)); }
.watch-back { transform: rotateY(180deg); }
@keyframes watch-hint { 0%, 100% { transform: rotateY(0); } 40% { transform: rotateY(-24deg); } 70% { transform: rotateY(8deg); } }
.watch-caption { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: center; text-align: center; max-width: 26rem; font-size: 0.9375rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .watch-inner { animation: none; } }
@media (max-width: 52rem) { .watch3d { width: min(80%, 19rem); } }

/* Listing comparison */
.compare { position: relative; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare-layer { grid-area: 1 / 1; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--surface); min-width: 0; }
.compare-before { background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--graphite-soft) 14px 15px); }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.listing { display: grid; gap: 1.5rem; max-width: 44rem; margin-inline: auto; }
.listing-head { display: grid; gap: 0.3rem; }
.listing-head b { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; }
.listing-head .meta { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.listing-tag { justify-self: start; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 3px; background: var(--graphite-soft); color: var(--graphite); }
.listing-tag-on { background: var(--blued); color: var(--bg); }
.claims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 40rem) { .claims { grid-template-columns: 1fr; } }
.claims li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.claims b { display: block; font-weight: 600; }
.claims em { font-style: normal; color: var(--muted); font-size: 0.9375rem; }
.compare-before .claims b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.125rem; }
.claim-mark { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; border: 1px dashed var(--graphite); color: var(--graphite); }
.claim-ok { border: 0; background: var(--blued-soft); color: var(--blued); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; border-left: 2px solid var(--blued); }
.compare-handle span { position: absolute; top: 50%; left: -1.25rem; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border-radius: 50%; background: var(--blued); box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--ink) 50%, transparent); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.compare-handle span::before { left: 6px; border-right-color: var(--bg); }
.compare-handle span::after { right: 6px; border-left-color: var(--bg); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; padding: 0; border: 0; }
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--blued); outline-offset: 3px; }

/* Build-a-backstory demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 52rem) { .demo { grid-template-columns: 1fr; } }
.demo-stage { display: grid; gap: 1.25rem; min-width: 0; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; font-size: 0.875rem; }
.demo-steps li { display: grid; gap: 0.4rem; padding-top: 0.6rem; border-top: 3px solid var(--line); color: var(--muted); }
.demo-steps li::before { content: attr(data-step-label); font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.demo-steps li[aria-current] { border-top-color: var(--blued); color: var(--ink); font-weight: 600; }
.demo-steps li[aria-current]::before { color: var(--blued); }
.demo-steps li.done { border-top-color: var(--blued); }
.demo-panel { display: grid; gap: 1.1rem; justify-items: start; animation: rise 0.45s ease both; }
@keyframes rise { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .demo-panel { animation: none; } }
.demo-note { font-size: 0.9375rem; color: var(--muted); }
.receipt {
  position: relative; overflow: hidden; width: 100%; max-width: 22rem; justify-self: center;
  background: var(--paper); color: var(--paper-ink); padding: 1.5rem 1.4rem 2rem; transform: rotate(-1.5deg);
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.5;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
}
.receipt p { margin: 0; }
.receipt-shop { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-align: center; letter-spacing: 0.02em; }
.receipt-meta { text-align: center; color: color-mix(in srgb, var(--paper-ink) 70%, transparent); }
.receipt-lines { margin: 1rem 0 0; display: grid; gap: 0.25rem; border-top: 1px dashed color-mix(in srgb, var(--paper-ink) 40%, transparent); padding-top: 0.75rem; }
.receipt-lines div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt-lines dt, .receipt-lines dd { margin: 0; }
.receipt-total { border-top: 1px dashed color-mix(in srgb, var(--paper-ink) 40%, transparent); padding-top: 0.4rem; margin-top: 0.3rem; font-weight: 600; }
.receipt-hand { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; margin-top: 0.8rem !important; text-align: right; transform: rotate(-3deg); }
.receipt-scan { position: absolute; left: 0; right: 0; top: -20%; height: 18%; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, #2a45b0 22%, transparent) 70%, #2a45b0 100%); }
.receipt.is-scanning .receipt-scan { animation: scan 1.4s ease-in-out both; }
@keyframes scan { 0% { top: -20%; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.draft { display: grid; gap: 0.6rem; width: 100%; }
.draft-field { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.draft-field > span { display: flex; flex-direction: column; gap: 0.15rem; font-weight: 600; }
.draft-field input { padding: 0.55rem 0.7rem; font-size: 0.9375rem; }
.draft-check input { border-color: var(--blued); background: var(--blued-soft); }
@media (max-width: 30rem) { .draft-field { grid-template-columns: 1fr; gap: 0.3rem; } .draft-field > span { flex-direction: row; gap: 0.5rem; align-items: center; } }
.conf, .private { justify-self: start; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 0.05rem 0.35rem; border-radius: 3px; background: var(--graphite-soft); color: var(--graphite); }
.conf-check { background: var(--blued); color: var(--bg); }
.private { background: transparent; border: 1px solid var(--line); }
.request { width: 100%; display: grid; gap: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.1rem 1.25rem; }
.request-status { color: var(--blued); font-size: 0.9375rem; min-height: 1.4em; }
.meter { display: flex; align-items: center; gap: 0.6rem; }
.meter svg { width: 3.25rem; height: 3.25rem; }
.meter [data-meter-arc] { transition: stroke-dasharray 0.8s cubic-bezier(.2,.8,.2,1); }
.meter span { display: grid; line-height: 1.1; }
.meter b { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; }
.meter small { font-size: 0.75rem; color: var(--muted); }
.timeline li.is-new { animation: slot-in 0.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slot-in { from { opacity: 0; transform: translateY(-10px); background: var(--blued-soft); } to { opacity: 1; transform: none; background: transparent; } }
.timeline .entry { position: relative; }
.entry .stamp { position: absolute; right: -0.25rem; top: -0.5rem; width: 4.5rem; height: 4.5rem; color: var(--blued); transform: rotate(-14deg); opacity: 0.85; pointer-events: none; }
.stamp-in { animation: stamp 0.45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { from { transform: rotate(-30deg) scale(1.9); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 0.85; } }
.timeline .entry:has(.stamp) { padding-right: 4.5rem; }
@media (prefers-reduced-motion: reduce) { .timeline li.is-new, .stamp-in, .receipt.is-scanning .receipt-scan { animation: none; } }

/* Collection: a watch box (one row of slots) above a detail view */
.collection { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.collection-grid {
  display: grid; grid-template-columns: repeat(var(--slots, 5), minmax(0, 1fr)); gap: 0.5rem;
  padding: 0.5rem; border-radius: calc(var(--radius) + 4px);
  background: var(--box); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 52rem) {
  .collection-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 42%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .watch-slot { scroll-snap-align: start; }
}
.watch-slot {
  display: grid; gap: 0.6rem; align-content: start; min-width: 0; padding: 0.75rem 0.6rem 0.9rem;
  font: inherit; text-align: center; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.watch-cushion {
  display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) - 2px); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--surface) 0%, var(--graphite-soft) 100%);
}
.watch-slot-photo { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.watch-slot:hover .watch-slot-photo { transform: translateY(-4px) scale(1.04); }
.watch-slot[aria-selected="true"] { border-color: var(--blued); box-shadow: inset 0 0 0 1px var(--blued); }
@media (prefers-reduced-motion: reduce) { .watch-slot:hover .watch-slot-photo { transform: none; } }
.watch-slot-label { display: grid; gap: 0.2rem; justify-items: center; line-height: 1.25; }
.watch-slot-label b { font-weight: 600; font-size: 0.875rem; overflow-wrap: anywhere; }
.watch-slot-brand { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.complete-bar { display: block; width: 70%; height: 3px; margin-top: 0.35rem; border-radius: 2px; background: var(--line); overflow: hidden; }
.complete-bar span { display: block; height: 100%; background: var(--blued); }
.collection-detail {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0;
}
@media (max-width: 44rem) { .collection-detail { grid-template-columns: 1fr; } }
.detail-figure { margin: 0; display: grid; place-items: center; }
.detail-photo { width: min(100%, 17rem); height: auto; animation: rise 0.45s ease both; }
@media (prefers-reduced-motion: reduce) { .detail-photo { animation: none; } }
.detail-info { display: grid; gap: 1rem; min-width: 0; }
.detail-info .eyebrow { margin-bottom: -0.6rem; }
.detail-name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.05; }
.detail-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.detail-stats div { padding: 0.75rem 0; }
.detail-stats div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.detail-stats dt { font-size: 0.8125rem; color: var(--muted); }
.detail-stats dd { margin: 0; font-family: var(--font-mono); font-size: 1.0625rem; }
.detail-missing { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.9375rem; }
.detail-missing-label { margin-bottom: -0.5rem !important; }
.detail-info .btn { justify-self: start; }
.wrist-feed { list-style: none; margin: 0; padding: 0.75rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.wrist-feed b { color: var(--ink); }

/* Serial fingerprint */
.serial-demo { display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.serial-demo input { font-size: 1.25rem; letter-spacing: 0.08em; }
.serial-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 30rem) { .serial-out { grid-template-columns: 1fr; } }
.serial-public { font-size: 1.75rem; margin-top: 0.4rem !important; letter-spacing: 0.06em; }
.serial-hash { font-size: 0.8125rem; color: var(--muted); margin-top: 0.4rem !important; overflow-wrap: anywhere; }
.fingerprint { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-width: 12rem; margin-top: 0.5rem; }
.fingerprint i { aspect-ratio: 1; border-radius: 2px; background: var(--graphite-soft); transition: background 0.3s; }
.fingerprint i.l0 { background: var(--blued-soft); }
.fingerprint i.l1 { background: color-mix(in srgb, var(--blued) 40%, var(--blued-soft)); }
.fingerprint i.l2 { background: color-mix(in srgb, var(--blued) 70%, var(--blued-soft)); }
.fingerprint i.l3 { background: var(--blued); }

/* Watchmakers: tag swing, job demo, intake tabs */
.tag-wrap .tag { animation: swing 2.4s 0.4s cubic-bezier(.3,.6,.4,1) 1 both; }
@keyframes swing { 0% { transform: rotate(7deg); } 30% { transform: rotate(-7deg); } 55% { transform: rotate(1deg); } 75% { transform: rotate(-4.5deg); } 100% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .tag-wrap .tag { animation: none; } }
.job-demo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 52rem) { .job-demo { grid-template-columns: 1fr; } }
.job-main { display: grid; gap: 1.75rem; min-width: 0; }
.job-demo .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
@media (max-width: 48rem) { .job-demo .stepper { grid-template-columns: 1fr; } }
.job-controls { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.job-side { display: grid; gap: 1rem; min-width: 0; }
.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: grid; gap: 0.75rem; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-height: 17rem; overflow: auto; }
.inbox-list li { display: grid; gap: 0.15rem; padding: 0.7rem 0.8rem; border-radius: var(--radius); background: var(--bg); font-size: 0.9375rem; }
.inbox-list li b { font-size: 0.8125rem; }
.inbox-list li.is-new { animation: slot-in 0.5s cubic-bezier(.2,.8,.2,1) both; }
.job-record { display: grid; gap: 0.4rem; border: 1px solid var(--blued); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--blued-soft); animation: rise 0.5s ease both; }
.job-record .meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.intake { display: grid; gap: 1rem; min-width: 0; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] { font: inherit; font-size: 0.9375rem; font-weight: 500; padding: 0.6rem 0.9rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blued); }
.tab-panel { display: grid; gap: 0.75rem; }
.tab-panel .meta { color: var(--muted); font-size: 0.9375rem; }
.qr-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.qr { width: 9rem; flex: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-row > div:last-child { flex: 1 1 12rem; min-width: 0; display: grid; gap: 0.35rem; }
