/* Billprove site. One typeface (Schibsted Grotesk, self-hosted, OFL), ink and highlighter.
   The highlighter box is the one signature: it marks evidence, the way the product boxes
   each quoted figure on the page it came from. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.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 {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f2f5f4;      /* a cool grey-green band, never cream */
  --ink: #172430;       /* blue-black ink */
  --ink-2: #4b5864;     /* secondary text, 7:1 on white */
  --line: #dbe2e0;
  --hi: #ffe14d;        /* highlighter */
  --hi-edge: #b98f00;   /* the evidence box's outline */
  --ok: #22704e;
  --flag: #b42318;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  /* No tabular figures: in this face "tnum" also widens commas and full stops. */
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.005em; }

a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.02em;
}
.mark { width: 28px; height: 28px; flex: none; }
.mark rect { fill: var(--hi); stroke: var(--ink); stroke-width: 2; }
.mark path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: #fff;
  border-radius: 8px; text-decoration: none;
  font-weight: 650; font-size: 1.0625rem; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #263a4c; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn-quiet:hover { background: var(--tint); }
.btn-hi { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hi-edge); }
.btn-hi:hover { background: #ffd81f; }
.text-link { font-weight: 600; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px);
}
.hero-copy { max-width: 34rem; }
.lede { margin-top: 24px; font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* The evidence figure */
.evidence {
  margin: 0;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 24px);
  font-size: 0.96875rem;
  line-height: 1.45;
}
.sheets { display: grid; gap: 10px; }
.sheet-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
}
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  margin-bottom: 8px; font-size: 0.8125rem; color: var(--ink-2);
}
.sheet-kind { font-weight: 700; color: var(--ink); }
.lines { width: 100%; border-collapse: collapse; }
.lines th {
  text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--ink-2);
  padding: 0 0 5px; border-bottom: 1px solid var(--line);
}
.lines td { padding: 8px 0 0; }
.lines .num { text-align: right; padding-left: 12px; white-space: nowrap; }

mark.q {
  color: inherit;
  padding: 0.05em 0.28em;
  margin: 0 -0.08em;
  border-radius: 3px;
  background: linear-gradient(var(--hi), var(--hi)) no-repeat left center / 100% 100%;
  box-shadow: inset 0 0 0 1.5px var(--hi-edge);
  animation: hilite 0.55s cubic-bezier(0.3, 0.7, 0.4, 1) both;
}
.q1 { animation-delay: 0.35s; }
.q3 { animation-delay: 0.8s; }
.q2 { animation-delay: 1.25s; }
.q4 { animation-delay: 1.45s; }
@keyframes hilite {
  from { background-size: 0% 100%; box-shadow: inset 0 0 0 1.5px transparent; }
}

.checks {
  list-style: none; margin: 10px 0 0; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 9px;
}
.checks li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  animation: appear 0.4s ease-out both;
}
.checks li:nth-child(1) { animation-delay: 1.9s; }
.checks li:nth-child(2) { animation-delay: 2.1s; }
.checks li:nth-child(3) { animation-delay: 2.35s; }
.checks svg { width: 20px; height: 20px; margin-top: 1px; }
.checks circle { fill: none; stroke-width: 1.8; }
.checks path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks .ok svg { stroke: var(--ok); }
.checks .flag svg { stroke: var(--flag); }
.checks .flag strong { color: var(--flag); }
@keyframes appear { from { opacity: 0; transform: translateY(3px); } }

.evidence figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }

/* Sections */
.band { background: var(--tint); padding-block: clamp(56px, 7vw, 88px); }
.section-lede { margin-top: 14px; color: var(--ink-2); max-width: 40em; }

.slips { width: 100%; border-collapse: collapse; margin-top: 32px; }
.slips th {
  text-align: left; font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
  padding: 0 24px 10px 0; border-bottom: 2px solid var(--ink);
}
.slips td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.slips td:first-child { width: 42%; font-weight: 700; }

.how, .trust { padding-block: clamp(56px, 7vw, 96px); }
.trust { padding-top: 0; }

.steps {
  list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 16px;
  background: var(--hi); box-shadow: inset 0 0 0 1.5px var(--hi-edge); border-radius: 6px;
  font-weight: 800;
}
.steps p, .principles p { margin-top: 8px; color: var(--ink-2); }

.principles {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px);
}
.principles > div { padding-top: 16px; border-top: 2px solid var(--ink); }
.runs { margin-top: 40px; max-width: 46em; color: var(--ink-2); }

.pilot {
  background: var(--ink); color: #fff;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
}
.pilot p { margin-top: 12px; color: #c9d3dc; max-width: 38em; }

.foot {
  padding-block: 48px 56px; margin-top: clamp(56px, 7vw, 96px);
  font-size: 0.875rem; color: var(--ink-2);
  display: grid; gap: 6px;
}
.foot strong { color: var(--ink); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pilot { grid-template-columns: minmax(0, 1fr); }
  .pilot .btn { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .lede { font-size: 1.125rem; }
  .top .btn-quiet { padding: 0 12px; font-size: 0.9375rem; }
  .sheet-pair { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .slips thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .slips tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .slips td { display: block; width: auto; padding: 0; border: 0; }
  .slips td:first-child { width: auto; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  mark.q, .checks li { animation: none; }
  .btn { transition: none; }
}
