/* diparaf.com landing page. The visual system is described in landing/DESIGN.md. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("fonts/red-hat-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/red-hat-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* the page: ledger paper and ink */
  --ground: #fbfcfa;
  --ground-2: #eef4ef;          /* the ledger's pale green, for alternate sections */
  --ink: #16191b;
  --ink-2: #4a5552;
  --ink-3: #66726e;
  --rule: #d5e1d8;
  --rule-2: #a9c4b1;
  --margin: #e3a6a1;            /* the red margin rule of a ledger page */
  --blue: #2747c4;              /* ballpoint ink: actions, links, the paraf, focus */
  --blue-2: #1d3699;
  --blue-tint: #e6ebfa;
  --on-blue: #ffffff;
  --cover: #143a2d;             /* the register book's cloth cover */
  --cover-2: #1b4a3a;
  --on-cover: #eaf2ed;
  --on-cover-2: #b4cbbf;
  --cover-rule: rgba(234, 242, 237, .16);

  /* paper objects keep these in both themes: documents are paper */
  --sheet: #ffffff;
  --p-ink: #16191b;
  --p-ink-2: #4f5a57;
  --p-rule: #dde6df;
  --p-blue: #2747c4;
  --ok: #1b7346;     --ok-bg: #e2f2e8;
  --bad: #b3261e;    --bad-bg: #fbe6e4;
  --warn: #8f520a;   --warn-bg: #fbefd9;
  --wait: #4f5a57;   --wait-bg: #edf0ee;

  --shadow-paper: 0 1px 1px rgba(18, 38, 28, .06), 0 2px 4px -1px rgba(18, 38, 28, .06), 0 18px 36px -18px rgba(18, 38, 28, .28);
  --shadow-lift: 0 1px 1px rgba(18, 38, 28, .06), 0 10px 24px -12px rgba(18, 38, 28, .22);

  --nav-h: 64px;
  --gut: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --gap: clamp(16px, 2vw, 28px);
  --sec-y: clamp(80px, 10vw, 136px);

  --fs-h1: clamp(2.375rem, 1.15rem + 3.9vw, 4.375rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.05vw, 3rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.125rem, 1.02rem + .3vw, 1.3125rem);
  --fs-small: .875rem;
  --fs-label: .8125rem;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --t-in: 150ms;
  --t-out: 120ms;
  --t-press: 90ms;

  --r-s: 6px;
  --r-m: 10px;
  --r-paper: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1512;
    --ground-2: #121c18;
    --ink: #e6ece8;
    --ink-2: #a9b7b0;
    --ink-3: #8a9a93;
    --rule: #26352e;
    --rule-2: #3a5045;
    --margin: #6b3b38;
    --blue: #93a8ff;
    --blue-2: #b6c4ff;
    --blue-tint: #1c2647;
    --on-blue: #0b1230;
    --cover: #0a2219;
    --cover-2: #0f2c21;
    --on-cover: #e3ece7;
    --on-cover-2: #a6bcb1;
    --sheet: #f3f5f2;
    --shadow-paper: 0 1px 1px rgba(0, 0, 0, .4), 0 22px 44px -18px rgba(0, 0, 0, .65);
    --shadow-lift: 0 12px 28px -12px rgba(0, 0, 0, .6);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.62 var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue-tint); color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.fine { font-size: var(--fs-small); color: var(--ink-2); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  padding: 10px 14px; border-radius: var(--r-s);
  background: var(--blue); color: var(--on-blue); font-weight: 500;
}
.skip:focus { top: 12px; }

/* running-text links: a faint hairline, the ink line draws on hover */
.hero-fact a, .qa a, .foot-links a, .legal a {
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
              linear-gradient(color-mix(in srgb, currentColor 32%, transparent), color-mix(in srgb, currentColor 32%, transparent)) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-out) var(--ease);
  padding-bottom: 1px;
}
.hero-fact a:hover, .qa a:hover, .foot-links a:hover {
  background-size: 100% 1px, 100% 1px;
  transition-duration: var(--t-in);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 8px;
  font: 500 1rem/1 var(--font); letter-spacing: 0;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t-out) var(--ease), background-color var(--t-out) var(--ease), border-color var(--t-out) var(--ease), color var(--t-out) var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-ink { background: var(--blue); color: var(--on-blue); }
.btn-line { background: transparent; color: var(--p-blue); border-color: color-mix(in srgb, var(--p-blue) 45%, transparent); }
.btn-paper { background: var(--on-cover); color: var(--cover); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--t-in); }
  .btn-ink:hover { background: color-mix(in srgb, var(--blue) 86%, var(--ink)); }
  .btn-line:hover { background: color-mix(in srgb, var(--p-blue) 7%, transparent); border-color: var(--p-blue); }
  .btn-paper:hover { background: #ffffff; }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--t-press); }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--nav-h);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.nav-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; }
.mark { width: 30px; height: 30px; flex: none; }
.mark-ring { fill: none; stroke: currentColor; stroke-width: 3; }
.mark-dot { fill: currentColor; }
.mark-paraf { fill: none; stroke: var(--blue); stroke-width: 2.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  position: relative; color: var(--ink-2); font-size: .9375rem; font-weight: 500;
  padding: 6px 0; transition: color var(--t-out) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-out) var(--ease);
}
.nav-links a:hover { color: var(--ink); transition-duration: var(--t-in); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--t-in); }
.nav .btn { margin-left: 4px; }
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--sec-y); }
.how, .lab, .faq { background: var(--ground-2); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }
.section h2, .closing h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.026em; }
.section h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(36px, 6vh, 72px)); padding-bottom: clamp(56px, 8vh, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.hero-text { grid-column: 1 / span 6; display: grid; gap: 24px; align-content: start; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.034em; max-width: 11.5em; }
.hero .lead { max-width: 33em; }
.hero-fact { font-size: var(--fs-small); color: var(--ink-2); }
.hero-fact .link-more { margin-left: 6px; white-space: nowrap; }
.hero-visual { grid-column: 7 / -1; position: relative; margin: 0; }
@media (min-width: 1024px) {
  .hero { min-height: 100svh; display: grid; align-content: center; }
}
@media (max-width: 1023px) {
  .hero-text { grid-column: 1 / -1; }
  .hero-visual { grid-column: 1 / -1; }
}

/* the check form */
.check { display: grid; gap: 12px; max-width: 34rem; }
.check-h { font-size: var(--fs-label); font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
.drop {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px 20px; border-radius: var(--r-m);
  border: 1px dashed var(--rule-2); background: var(--sheet); color: var(--p-ink);
  cursor: pointer;
  transition: border-color var(--t-out) var(--ease), background-color var(--t-out) var(--ease), transform var(--t-out) var(--ease);
}
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.drop-icon { grid-row: 1 / span 2; width: 34px; height: 34px; fill: none; stroke: var(--p-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop-main { font-weight: 500; }
.drop-cta { color: var(--p-blue); }
.drop-sub { font-size: var(--fs-small); color: var(--p-ink-2); }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .drop:hover { border-color: var(--p-blue); transition-duration: var(--t-in); }
}
.drop.is-over { border-color: var(--p-blue); border-style: solid; background: color-mix(in srgb, var(--p-blue) 5%, var(--sheet)); }
@media (prefers-color-scheme: dark) { .drop { border-color: transparent; } }

.check-out {
  padding: 16px 18px; border-radius: var(--r-m);
  background: var(--sheet); color: var(--p-ink); box-shadow: var(--shadow-lift);
  display: grid; gap: 10px;
}
.check-out[hidden] { display: none; }
.out-k { font-size: var(--fs-label); font-weight: 500; color: var(--p-ink-2); }
.out-file { font-weight: 500; overflow-wrap: anywhere; }
.out-file span { color: var(--p-ink-2); font-weight: 400; }
.out-hash { font-family: var(--mono); font-size: .875rem; line-height: 1.55; color: var(--p-ink); word-spacing: .2em; }
.out-note { font-size: var(--fs-small); color: var(--p-ink-2); }
.out-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.out-actions .btn { color: #ffffff; background: var(--p-blue); }
.out-again { font: inherit; font-size: var(--fs-small); color: var(--p-blue); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.out-bad { color: var(--bad); font-weight: 500; }

/* ---------- paper objects ---------- */
.paper { background: var(--sheet); color: var(--p-ink); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }

/* the letter (A4), scaled as one object through container units */
.hero-visual { --lw: min(64%, calc((100svh - 250px) / 1.64)); min-height: calc(var(--lw) * 1.64); }
.letter {
  position: relative; width: var(--lw); aspect-ratio: 1 / 1.4142;
  container-type: inline-size; overflow: hidden;
  display: flex; flex-direction: column;
}
.letter > * { margin-inline: 8.5cqi; }
.kop { display: grid; grid-template-columns: auto 1fr; column-gap: 3cqi; align-items: center; margin-top: 8cqi; }
.kop-emblem { grid-row: 1 / span 2; width: 9cqi; height: 9cqi; border-radius: 1.8cqi; background: var(--cover); color: #ffffff; display: grid; place-items: center; font-size: 3.3cqi; font-weight: 700; letter-spacing: .03em; }
.kop-name { font-size: 4.2cqi; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.kop-place { font-size: 2.6cqi; color: var(--p-ink-2); }
.kop-rule { height: 1.6cqi; margin-top: 2.6cqi; border-top: .75cqi solid var(--p-ink); border-bottom: .25cqi solid var(--p-ink); }
.letter-meta { margin-top: 4.5cqi; display: grid; gap: .8cqi; font-size: 2.65cqi; }
.letter-meta div { display: grid; grid-template-columns: 11cqi auto 1fr; gap: 1.2cqi; }
.letter-meta dt::after { content: ":"; position: relative; left: 7cqi; }
.letter-meta dd { grid-column: 3; }
.letter-body { margin-top: 5cqi; display: grid; gap: 2.4cqi; font-size: 2.6cqi; line-height: 1.6; color: #2b3230; }
.letter-list { list-style: decimal; padding-left: 4.6cqi; display: grid; gap: .3cqi; margin-top: -1.2cqi; }
.sign { margin-top: auto; margin-bottom: 9cqi; display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqi; }
.sign-text { display: grid; font-size: 2.6cqi; line-height: 1.5; }
.sign-text b { font-weight: 600; text-decoration: underline; text-decoration-thickness: .2cqi; text-underline-offset: .6cqi; }
.paraf { width: 24cqi; height: auto; margin: .6cqi 0 -.6cqi -1cqi; overflow: visible; }
.paraf path { fill: none; stroke: var(--p-blue); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sign-qr { display: grid; justify-items: center; gap: .8cqi; }
.qr { width: 22cqi; height: auto; fill: var(--p-ink); }
.qr-id { font-family: var(--mono); font-size: 2cqi; color: var(--p-ink-2); letter-spacing: .02em; }

/* the phone and the record page in it */
.phone {
  position: absolute; z-index: 2;
  width: calc(var(--lw) * .625);
  left: calc(var(--lw) * .94); top: calc(var(--lw) * 1.4142 * .3);
  container-type: inline-size;
}
/* a container can't size itself in its own cqi, so the bezel is the phone's first child */
.phone-body {
  position: relative; padding: 3cqi; border-radius: 13cqi; background: #121816;
  box-shadow: 0 2px 3px rgba(10, 20, 15, .2), 0 30px 60px -24px rgba(10, 20, 15, .5);
}
@media (prefers-color-scheme: dark) { .phone-body { box-shadow: 0 0 0 1px rgba(234, 242, 237, .14), 0 30px 60px -24px rgba(0, 0, 0, .7); } }
.phone-body::before { content: ""; position: absolute; top: 5.4cqi; left: 50%; width: 22cqi; height: 4.4cqi; translate: -50% 0; border-radius: 99px; background: #121816; z-index: 1; }
.phone-screen { position: relative; border-radius: 9.6cqi; aspect-ratio: 1 / 1.86; overflow: hidden; box-shadow: none; }
.phone-bar {
  display: flex; align-items: center; justify-content: center; gap: 1.6cqi;
  margin: 12cqi 6cqi 0; padding: 2.4cqi 3cqi; border-radius: 99px;
  background: #eef1ef; color: #3f4a46; font-size: 4.4cqi; font-weight: 500;
}
.phone-bar svg { width: 4.6cqi; height: 4.6cqi; fill: none; stroke: currentColor; stroke-width: 1.5; }
.phone .tag { position: absolute; right: 6cqi; bottom: 5cqi; }
.rec-mini { padding: 6cqi 7cqi 0; display: grid; gap: 2.6cqi; font-size: 4.8cqi; }
.rec-mini .rec-title { font-size: 7.2cqi; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.rec-mini .rec-lead { font-size: 4.6cqi; line-height: 1.4; color: var(--p-ink-2); }
.rec-mini .facts { margin-top: 1cqi; border-top: 1px solid var(--p-rule); }
.rec-mini .facts > div { padding: 2.1cqi 0; border-bottom: 1px solid var(--p-rule); display: grid; gap: .3cqi; }
.rec-mini dt { font-size: 3.9cqi; color: var(--p-ink-2); }
.rec-mini dd { font-size: 4.6cqi; line-height: 1.3; }
.rec-mini dd span { display: block; color: var(--p-ink-2); font-size: 4cqi; }
.rec-mini .pill { justify-self: start; font-size: 3.9cqi; }

.pill {
  display: inline-block; padding: .3em .75em; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.tag {
  display: inline-block; padding: .25em .6em; border-radius: 4px;
  border: 1px solid var(--p-rule); background: #ffffff; color: var(--p-ink-2);
  font-size: .72rem; font-weight: 500; line-height: 1.2;
}
.phone .tag { font-size: 3.6cqi; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.steps { grid-column: 1 / span 5; display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 6px; align-content: start; }
.step-n {
  grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rule-2); color: var(--ink-2);
  font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step h3 { padding-top: 3px; transition: color .3s var(--ease); }
.step p { color: var(--ink-2); max-width: 30em; transition: color .3s var(--ease); }
.stage { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* below 1024px each card follows its own step: both lists dissolve into one ordered column */
@media (max-width: 1023px) {
  .how-grid { display: flex; flex-direction: column; gap: 18px; }
  .steps, .stage { display: contents; }
  .step[data-step="1"] { order: 2; } .step[data-step="2"] { order: 4; } .step[data-step="3"] { order: 6; }
  [data-card="0"] { order: 1; } [data-card="1"] { order: 3; } [data-card="2"] { order: 5; } [data-card="3"] { order: 7; }
  .stage .card { width: min(100%, 26rem); margin: 0 0 22px 56px; }
  .stage .card-check { width: min(100% - 56px, 18rem); }
  .card-n { display: none; }
}
@media (max-width: 480px) {
  .stage .card { margin-left: 0; }
  .stage .card-check { width: min(100%, 17rem); margin-inline: auto; }
}

.card { position: relative; container-type: inline-size; padding: clamp(18px, 2vw, 28px); display: grid; gap: 12px; align-content: start; }
.card-n {
  position: absolute; top: 5cqi; right: 5cqi; width: 9cqi; height: 9cqi; min-width: 22px; min-height: 22px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--p-ink); color: #ffffff; font-size: max(11px, 4.4cqi); font-weight: 600;
}
.card-k { font-size: max(12px, 4.6cqi); font-weight: 500; color: var(--p-ink-2); }
.slip-id { font-family: var(--mono); font-size: 8.6cqi; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.slip-qr .qr { width: 46cqi; margin: 2cqi 0; }
.slip-url { font-family: var(--mono); font-size: max(10px, 3.9cqi); color: var(--p-ink-2); overflow-wrap: anywhere; }
.card .pill { justify-self: start; font-size: max(11px, 4.2cqi); }

.doc-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 5cqi; padding: 4cqi 0 2cqi; }
.doc-sign .sign-text { font-size: max(11px, 4.8cqi); }
.doc-sign .paraf { width: 44cqi; }
.doc-sign .qr { width: 34cqi; }
.file-chip {
  display: flex; align-items: center; gap: 2.4cqi; flex-wrap: wrap;
  padding: 2.6cqi 3.4cqi; border-radius: 6px; background: #f1f4f2;
  font-size: max(11px, 4.2cqi); font-weight: 500;
}
.file-chip svg { width: max(14px, 5.6cqi); height: max(14px, 5.6cqi); fill: none; stroke: var(--bad); stroke-width: 1.6; stroke-linejoin: round; }
.file-chip span { color: var(--p-ink-2); font-weight: 400; margin-left: auto; }

.ledger-row { display: grid; border-top: 1px solid var(--p-rule); }
.ledger-row > div { display: grid; grid-template-columns: 30% 1fr; gap: 3cqi; padding: 2.2cqi 0; border-bottom: 1px solid var(--p-rule); font-size: max(11px, 4.2cqi); }
.ledger-row dt { color: var(--p-ink-2); }
.ledger-row .ledger-hash dd { font-size: max(10px, 3.8cqi); line-height: 1.5; word-spacing: .15em; }
.stamp {
  justify-self: end; margin-top: 1cqi; transform: rotate(-5deg);
  padding: 1.6cqi 4cqi; border: .7cqi double var(--ok); border-radius: 1.4cqi;
  color: var(--ok); font-size: max(12px, 5.2cqi); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  opacity: .9;
}

.card-check { padding: 8px 0; background: transparent; box-shadow: none; }
.phone-sm { position: relative; inset: auto; width: 74%; margin: 0 auto; }
.phone-sm .phone-screen { aspect-ratio: 1 / 1.62; }
.rec-k { font-size: 4.2cqi; color: var(--p-ink-2); margin-top: 2cqi; }
.result-ok {
  display: flex; gap: 2cqi; align-items: flex-start;
  padding: 3.4cqi 3.8cqi; border-radius: 3cqi;
  background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 4.8cqi; line-height: 1.35;
}
.result-ok svg { flex: none; width: 6cqi; height: 6cqi; margin-top: .3cqi; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* live mode: one card at a time beside the steps, chosen by scroll (site.js) */
.how.is-live .step { min-height: 44vh; }
.how.is-live .step:last-child { min-height: 30vh; }
.how.is-live .step h3, .how.is-live .step p { color: var(--ink-3); }
.how.is-live .step.is-active h3 { color: var(--ink); }
.how.is-live .step.is-active p { color: var(--ink-2); }
.how.is-live .step.is-active .step-n { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.how.is-live .stage {
  display: block; position: sticky; top: calc(var(--nav-h) + 6vh);
  height: min(600px, calc(88vh - var(--nav-h)));
}
.how.is-live .stage .card { position: absolute; left: 50%; top: 50%; width: min(100%, 460px); translate: -50% -50%; }
.how.is-live .stage .card-check { width: min(100%, 380px); }
.how.is-live .card-n { display: none; }

/* ---------- anatomy of a record ---------- */
.anatomy-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.anatomy-text { grid-column: 1 / span 5; display: grid; gap: 20px; }
.anatomy-card { grid-column: 7 / -1; }
@media (max-width: 1023px) {
  .anatomy-text, .anatomy-card { grid-column: 1 / -1; }
  .anatomy-card { max-width: 40rem; }
}
.notes { counter-reset: note; border-top: 1px solid var(--rule); margin-top: 8px; }
.notes > li { counter-increment: note; position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.notes > li::before {
  content: counter(note); position: absolute; left: 0; top: 17px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--ground); font-size: .75rem; font-weight: 600;
}
.notes h3 { font-size: 1.0625rem; }
.notes p { color: var(--ink-2); }
.states { display: grid; gap: 8px; margin-top: 8px; }
.states li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; align-items: baseline; font-size: var(--fs-small); color: var(--ink-2); }
.states .pill { justify-self: start; }

.record { overflow: hidden; }
.record-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-bottom: 1px solid var(--p-rule); background: #f6f8f6; color: #47524e;
  font-family: var(--mono); font-size: .8125rem;
}
.record-bar > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-lock { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tag-in { margin-left: auto; font-family: var(--font); }
.record .rec { padding: 24px clamp(18px, 3vw, 32px) 28px; display: grid; gap: 10px; }
.rec-title-lg { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.record .rec-lead { color: var(--p-ink-2); }
.record .facts { margin-top: 8px; border-top: 1px solid var(--p-rule); }
.record .facts > div { display: grid; grid-template-columns: minmax(8.5rem, 36%) 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--p-rule); }
.record dt { color: var(--p-ink-2); font-size: .9375rem; }
.record dd span { display: block; color: var(--p-ink-2); font-size: .9375rem; }
@media (max-width: 520px) { .record .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.hash-wrap { font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.rec-row { position: relative; transition: background-color .2s var(--ease); }
.rec-row[data-f]::after {
  position: absolute; right: -10px; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--p-ink); color: #ffffff; font-size: .6875rem; font-weight: 600;
}
.rec-row[data-f="status"]::after { content: "1"; position: absolute; right: auto; left: 92px; }
.rec-row[data-f="signer"]::after { content: "2"; }
.rec-row[data-f="form"]::after { content: "3"; }
.rec-row[data-f="dates"]::after { content: "4"; }
.rec-row[data-f="hash"]::after { content: "5"; }
.record .facts > .rec-row { padding-right: 22px; }
@media (hover: hover) {
  .anatomy-grid:has(.notes [data-f="status"]:hover) .rec-row[data-f="status"],
  .anatomy-grid:has(.notes [data-f="signer"]:hover) .rec-row[data-f="signer"],
  .anatomy-grid:has(.notes [data-f="form"]:hover) .rec-row[data-f="form"],
  .anatomy-grid:has(.notes [data-f="dates"]:hover) .rec-row[data-f="dates"],
  .anatomy-grid:has(.notes [data-f="hash"]:hover) .rec-row[data-f="hash"] { background: #eef3fd; }
}

/* ---------- fingerprint lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.lab-text { grid-column: 1 / span 5; display: grid; gap: 18px; }
.lab-text > p:not(.lead) { color: var(--ink-2); max-width: 30em; }
.hashlab { grid-column: 7 / -1; padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; }
@media (max-width: 1023px) {
  .lab-text, .hashlab { grid-column: 1 / -1; }
  .hashlab { max-width: 40rem; }
}
.hl-label { font-size: var(--fs-label); font-weight: 500; color: var(--p-ink-2); }
.hl-label + .hash { margin-top: -4px; }
.hl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-in {
  flex: 1 1 15rem; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--p-rule); border-radius: 8px; background: #fbfcfb; color: var(--p-ink);
  font: 400 1rem var(--mono);
  transition: border-color var(--t-out) var(--ease), box-shadow var(--t-out) var(--ease);
}
.hl-in:focus { outline: none; border-color: var(--p-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-blue) 20%, transparent); }
.hash {
  display: grid; grid-template-columns: repeat(var(--hash-cols, 8), max-content); justify-content: start; gap: 4px 14px;
  font-family: var(--mono); font-size: clamp(.9375rem, .85rem + .35vw, 1.125rem); line-height: 1.55; color: var(--p-ink);
  padding: 14px 16px; border-radius: 8px; background: #f3f6f4; min-height: 5.4em;
}
.hash .g { white-space: nowrap; }
@media (max-width: 640px) { .hash { --hash-cols: 4; } }
.hash i { font-style: normal; border-radius: 2px; }
.hash i.chg { background: #dfe6fb; color: #1d3699; }
.hl-diff { font-size: var(--fs-small); color: var(--p-ink-2); min-height: 1.5em; }
.hl-diff b { color: var(--p-ink); font-weight: 600; }

/* ---------- limits ---------- */
.ledger-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 4vw, 48px); }
@media (max-width: 720px) { .ledger-pair { grid-template-columns: minmax(0, 1fr); } }
.ledger { position: relative; padding-left: 22px; }
.ledger::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--margin); }
.ledger h3 { padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.ledger li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.ledger li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.ledger-alt li::before { top: 23px; width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--bad); transform: none; }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 720px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.qa { padding: 22px 0 26px; border-top: 1px solid var(--rule-2); display: grid; gap: 8px; align-content: start; }
.qa p { color: var(--ink-2); max-width: 34em; }

/* ---------- closing: the register's cover ---------- */
.closing { background: var(--cover); color: var(--on-cover); padding-block: var(--sec-y) 40px; }
.closing .lead { color: var(--on-cover-2); }
.close-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.close-text { grid-column: 1 / span 5; display: grid; gap: 20px; justify-items: start; }
.road { grid-column: 7 / -1; border-top: 1px solid var(--cover-rule); }
@media (max-width: 1023px) { .close-text, .road { grid-column: 1 / -1; } }
.road li { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: 20px; row-gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--cover-rule); }
.road h3 { font-size: var(--fs-h3); line-height: 1.3; grid-column: 2; }
.road p { grid-column: 2; color: var(--on-cover-2); }
.road-state {
  grid-row: 1 / span 2; justify-self: start; align-self: start;
  padding: .3em .7em; border-radius: 99px; border: 1px solid var(--cover-rule);
  font-size: .78rem; font-weight: 600; color: var(--on-cover-2); margin-top: 3px;
}
.road-now { background: var(--on-cover); color: var(--cover); border-color: var(--on-cover); }
@media (max-width: 480px) { .road li { grid-template-columns: minmax(0, 1fr); } .road h3, .road p { grid-column: 1; } .road-state { grid-row: auto; } }
.foot-row {
  margin-top: clamp(64px, 9vw, 112px); padding-top: 28px; border-top: 1px solid var(--cover-rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.brand-foot { color: var(--on-cover); }
.brand-foot .mark-paraf { stroke: #9fb4ff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.closing .foot-links a { color: var(--on-cover); }
.legal { flex-basis: 100%; font-size: var(--fs-small); color: var(--on-cover-2); }

/* ---------- motion ---------- */
/* The hero's words, the paraf, the QR and the phone wait for site.js only while html.js-anim is on;
   boot.js drops that class if site.js never starts, so nothing stays hidden. */
.js-anim .hero h1, .js-anim .hero [data-rise] { opacity: 0; }
.js-anim .hero .phone { opacity: 0; }
.js-anim .hero .qr-row { opacity: 0; }
.js-anim .hero .paraf path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.anim-failsafe .hero h1, .anim-failsafe .hero [data-rise], .anim-failsafe .hero .phone, .anim-failsafe .hero .qr-row { transition: opacity .4s var(--ease); }
.split-line { padding-bottom: .06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active { transform: none; }
}

@media print {
  .nav, .skip, .check, .hashlab { display: none; }
  .hero { padding-top: 0; min-height: 0; }
  .how, .lab, .faq, .closing { background: none; color: #000; }
}

/* ---------- 404 ---------- */
.nf { padding-top: calc(var(--nav-h) + clamp(64px, 14vh, 160px)); padding-bottom: 96px; display: grid; gap: 22px; justify-items: start; }
.nf h1 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.026em; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-quiet { color: var(--blue); border-color: var(--rule-2); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { border-color: var(--blue); } }
