/* ───────────────────────────────────────────────────────────────────────────
   Provev — provev.com

   Tokens are the product's own, from packages/ui/src/theme.css. The palette rule
   carries over: green, amber and red are reserved for compliance verdicts, and
   the brand petrol is identity only. A marketing page that spends the status
   colours on decoration teaches the eye to ignore them, and this product needs
   them to mean something on the day a technician is reading one at 2am.

   The palette is deliberately cold and institutional. Photography is what makes
   the site feel like it was made by people who have been in a kitchen at 2am —
   so the pictures carry the warmth the tokens refuse to.

   One family, Archivo, across three widths. Hierarchy is encoded by WIDTH as
   well as size: display expanded, labels condensed and tracked, body normal.
   JetBrains Mono is a real role, not an accent — it sets anything a person might
   have to read back exactly.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --ink:          oklch(0.1763 0.0140 258.36);
  --ink-2:        oklch(0.2494 0.0240 256.44);
  --slate:        oklch(0.4514 0.0296 252.16);
  --muted:        oklch(0.5737 0.0331 253.09);
  --paper:        oklch(0.9850 0.0041 91.45);
  --paper-2:      oklch(0.9580 0.0083 91.48);
  --card:         oklch(1 0 0);
  --rule:         oklch(0.8943 0.0126 91.53);
  --rule-strong:  oklch(0.8051 0.0188 89.38);

  --seal:         oklch(0.3873 0.0642 220.08);
  --seal-2:       oklch(0.4895 0.0815 218.17);
  --seal-tint:    oklch(0.9445 0.0120 209.80);

  --pass:         oklch(0.5273 0.1371 150.07);
  --pass-tint:    oklch(0.9540 0.0199 154.90);
  --due:          oklch(0.5553 0.1455 49.00);
  --due-tint:     oklch(0.9595 0.0243 77.46);
  --overdue:      oklch(0.5003 0.1821 29.51);
  --overdue-tint: oklch(0.9478 0.0199 25.17);
  --void:         oklch(0.5544 0.0407 257.42);

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 3px;
  --shell: 68rem;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink:          oklch(0.9459 0.0050 258);
    --ink-2:        oklch(0.8657 0.0083 258);
    --slate:        oklch(0.7118 0.0206 254);
    --muted:        oklch(0.6294 0.0257 254);
    --paper:        oklch(0.1763 0.0140 258.36);
    --paper-2:      oklch(0.2216 0.0176 257.40);
    --card:         oklch(0.2216 0.0176 257.40);
    --rule:         oklch(0.2905 0.0184 257);
    --rule-strong:  oklch(0.3686 0.0208 256);
    --seal:         oklch(0.7238 0.0894 214);
    --seal-2:       oklch(0.7854 0.0798 213);
    --seal-tint:    oklch(0.2704 0.0374 217);
    --pass:         oklch(0.7248 0.1543 150);
    --pass-tint:    oklch(0.2624 0.0508 153);
    --due:          oklch(0.7752 0.1462 68);
    --due-tint:     oklch(0.2836 0.0538 63);
    --overdue:      oklch(0.7052 0.1690 26);
    --overdue-tint: oklch(0.2764 0.0669 27);
    --void:         oklch(0.6294 0.0349 256);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: oklch(0.9459 0.0050 258);      --ink-2: oklch(0.8657 0.0083 258);
  --slate: oklch(0.7118 0.0206 254);    --muted: oklch(0.6294 0.0257 254);
  --paper: oklch(0.1763 0.0140 258.36); --paper-2: oklch(0.2216 0.0176 257.40);
  --card: oklch(0.2216 0.0176 257.40);  --rule: oklch(0.2905 0.0184 257);
  --rule-strong: oklch(0.3686 0.0208 256);
  --seal: oklch(0.7238 0.0894 214);     --seal-2: oklch(0.7854 0.0798 213);
  --seal-tint: oklch(0.2704 0.0374 217);
  --pass: oklch(0.7248 0.1543 150);     --pass-tint: oklch(0.2624 0.0508 153);
  --due: oklch(0.7752 0.1462 68);       --due-tint: oklch(0.2836 0.0538 63);
  --overdue: oklch(0.7052 0.1690 26);   --overdue-tint: oklch(0.2764 0.0669 27);
  --void: oklch(0.6294 0.0349 256);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 1.5rem; }

/* Type roles, by width axis. */
.eyebrow {
  display: block; font-stretch: 82%; font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; letter-spacing: -0.02em; }

h1, h2, h3 { font-stretch: 112%; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); line-height: 1.12; }
h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: var(--seal-2); text-underline-offset: 2px; }
:where(a, button):focus-visible { outline: 2px solid var(--seal-2); outline-offset: 3px; border-radius: var(--radius); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0.6875rem 1.1875rem; font: inherit; font-size: 0.9375rem; font-weight: 600;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.on-photo { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.ghost-photo { background: transparent; color: oklch(0.98 0 0); border-color: oklch(0.98 0 0 / 0.45); }
.btn:hover { border-color: var(--seal-2); }
.btn.ghost:hover, .btn.ghost-photo:hover { color: var(--seal-2); }

/* “Coming soon” is a state, not a button. It must not look pressable — a
   disabled-looking control that does nothing is worse than a plain label. */
.soon {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  padding: 0.5rem 0.8125rem; font-size: 0.8125rem; font-weight: 600;
  color: var(--muted); background: transparent; cursor: default;
}
.soon .dot {
  width: 0.4375rem; height: 0.4375rem; border-radius: 50%;
  background: var(--due); flex: none;
}

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.site-head .shell { display: flex; align-items: center; gap: 1.25rem; padding-block: 0.875rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5625rem; color: var(--seal); text-decoration: none; flex: none; }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }
.brand b { font-stretch: 112%; font-weight: 600; font-size: 1.0625rem; color: var(--ink); letter-spacing: -0.025em; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav a { font-size: 0.875rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
@media (max-width: 34rem) { .site-nav .hide-sm { display: none; } }

/* ── hero over photography ──────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; background: oklch(0.16 0.014 258); overflow: hidden; }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  /* Two stops, not one: a flat scrim greys the photograph, while a gradient
     keeps the lit part of the frame readable and still lets the dark side carry
     type at full contrast. */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, oklch(0.12 0.014 258 / 0.92) 0%, oklch(0.12 0.014 258 / 0.78) 42%, oklch(0.12 0.014 258 / 0.30) 100%);
}
.hero .shell { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero-copy { max-width: 46ch; color: oklch(0.98 0 0); }
.hero-copy .eyebrow { color: oklch(0.85 0.02 214); }
@media (min-width: 34rem) { .hero-copy .eyebrow { white-space: nowrap; } }
.hero-copy h1 { margin-top: 0.75rem; }
.hero-copy p.lede { margin-top: 1.125rem; font-size: 1.125rem; color: oklch(0.90 0.005 258); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.875rem; align-items: center; }
.hero-actions .soon { border-color: oklch(0.98 0 0 / 0.35); color: oklch(0.88 0.005 258); }

/* ── sections ───────────────────────────────────────────────────────────── */
.band { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.band.tint { background: var(--paper-2); }
.band > .shell > .eyebrow { margin-bottom: 0.625rem; }
.band p.intro { margin-top: 1rem; font-size: 1.0625rem; color: var(--slate); max-width: var(--measure); }

.cols { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .cols.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .cols.two { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.cols h3 { margin-bottom: 0.5rem; }
.cols p { color: var(--slate); font-size: 0.9375rem; }
.rulemark { width: 2rem; height: 3px; background: var(--seal); border-radius: 2px; margin-bottom: 0.875rem; }

/* Numbered steps — used only where the content genuinely is a sequence. */
.steps { counter-reset: step; display: grid; gap: 1.75rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps > li { list-style: none; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 0.8125rem; font-weight: 700;
  color: var(--seal); margin-bottom: 0.625rem;
}

/* ── media + copy split ─────────────────────────────────────────────────── */
.split { display: grid; gap: 2rem; align-items: start; margin-top: 2.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
@media (min-width: 52rem) { .split.flip > figure { order: 2; } }
.split.middle { align-items: center; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); border: 1px solid var(--rule); }
.split figcaption { margin-top: 0.625rem; font-size: 0.8125rem; color: var(--muted); }

/* ── the record card ────────────────────────────────────────────────────── */
.record {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  box-shadow: 0 1px 2px -1px oklch(0.1763 0.014 258.36 / 0.10), 0 16px 40px -18px oklch(0.1763 0.014 258.36 / 0.26);
}
.record .band-top { height: 3px; background: var(--seal); }
.record .inner { padding: 1.25rem; }
.record h3 { margin-top: 0.3125rem; }
.record .site { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.9375rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border: 1px solid; border-radius: var(--radius);
  padding: 0.1875rem 0.5rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.chip .g { font-size: 0.7em; line-height: 1; }
.chip.pass { color: var(--pass); background: var(--pass-tint); border-color: color-mix(in oklch, var(--pass) 28%, transparent); }
.chip.due  { color: var(--due);  background: var(--due-tint);  border-color: color-mix(in oklch, var(--due) 28%, transparent); }
.chip.void { color: var(--void); background: var(--paper-2);   border-color: var(--rule); }

.mini { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.8125rem; }
.mini th {
  text-align: left; font-stretch: 82%; font-weight: 700; font-size: 0.625rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
  padding: 0.4375rem 0.5rem; background: var(--paper-2); border-bottom: 1px solid var(--rule-strong);
}
.mini td { padding: 0.5rem; border-bottom: 1px solid var(--rule); }
.mini td.n { font-family: var(--mono); font-size: 0.75rem; text-align: right; }
.mini tr:last-child td { border-bottom: 0; }

/* The seal — the one place brand colour carries weight. */
.seal {
  margin-top: 1rem; padding: 0.8125rem 0.9375rem; border-radius: 2px;
  background: color-mix(in oklch, var(--seal-tint) 62%, var(--card));
  border: 1px solid color-mix(in oklch, var(--seal) 30%, transparent);
}
.seal dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3125rem 0.75rem; margin: 0; font-size: 0.75rem; }
.seal dd { margin: 0; }
.hashline { font-family: var(--mono); font-size: 0.6875rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 0.125rem 0.375rem; }

/* ── fact list ──────────────────────────────────────────────────────────── */
.facts { display: grid; gap: 0.75rem; margin-top: 2rem; }
.fact {
  display: grid; gap: 0.1875rem 1.25rem; padding: 1rem 1.125rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--seal);
  border-radius: var(--radius); background: var(--card);
}
@media (min-width: 46rem) { .fact { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; } }
.fact dt { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--seal-2); }
.fact dd { margin: 0; font-size: 0.9375rem; color: var(--slate); }

/* ── trades ─────────────────────────────────────────────────────────────── */
.trades { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 44rem) { .trades { grid-template-columns: repeat(2, 1fr); } }
.trade {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.9375rem 1.0625rem; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--card);
}
.trade a { text-decoration: none; }
.trade .name { font-weight: 600; }
.trade .when { font-size: 0.75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trade .when.now { color: var(--pass); }

/* ── closing CTA ────────────────────────────────────────────────────────── */
.closer { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); background: var(--paper-2); }
.closer .shell { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .closer .shell { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; } }
.closer p { margin-top: 0.75rem; color: var(--slate); max-width: 52ch; }
.closer .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); background: var(--paper); padding-block: 2rem 2.75rem; }
.site-foot .shell { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-foot p { font-size: 0.8125rem; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-nav a { font-size: 0.8125rem; color: var(--slate); text-decoration: none; }
.foot-nav a:hover { color: var(--seal-2); }

/* ── the real artifact, shown as itself ─────────────────────────────────── */
/*
   The record on this page is a page image of an actual PDF produced by the
   render engine, not a hand-built HTML facsimile. It links to the file so a
   visitor can open it, search the text and find data.json attached inside —
   which is the claim the page makes, and the only convincing way to make it.
*/
.record-shot {
  display: block; position: relative; isolation: isolate;
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; background: var(--card); text-decoration: none;
  box-shadow: 0 1px 2px -1px oklch(0.1763 0.014 258.36 / 0.10), 0 18px 44px -20px oklch(0.1763 0.014 258.36 / 0.30);
  transition: border-color .15s ease;
}
.record-shot:hover { border-color: var(--seal-2); }
.record-shot img { display: block; width: 100%; height: auto; }
.record-open {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4375rem 0.75rem; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-size: 0.8125rem; font-weight: 600;
}
.record-shot:hover .record-open { background: var(--seal); }
.split figcaption code {
  font-family: var(--mono); font-size: 0.85em; letter-spacing: -0.02em;
  background: var(--paper-2); padding: 0.1em 0.3em; border-radius: 2px;
}
