@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════════════════════
   TWINE — THE OPERATOR'S FILE
   Shared design system for every page in /next/.
   Paper, ink, hairlines, one green: the color of an approval.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* paper */
  --paper: #F5F2EA;          /* the page */
  --paper-raised: #FCFBF6;   /* receipts, exhibits */
  --paper-well: #EDE9DD;     /* recessed exhibit wells */

  /* ink */
  --ink: #1A1812;
  --ink-2: #57534A;
  --ink-3: #696459;          /* carries the 8-10px labels: needs AA, not just "muted" */

  /* rules */
  --rule: rgba(26, 24, 18, 0.16);
  --rule-soft: rgba(26, 24, 18, 0.09);
  --rule-strong: rgba(26, 24, 18, 0.82);

  /* the approval */
  --green: #1E7A4C;
  --green-wash: rgba(30, 122, 76, 0.08);

  /* label-on-wash variants: same hues, darkened to clear AA at 9px */
  --green-ink: #1B7045;
  --amber-ink: #815A07;
  --red-ink: #B6322D;

  /* semantic (inside artifacts only) */
  --violet: #6C3BD1;
  --violet-wash: rgba(108, 59, 209, 0.08);
  --amber: #8A6008;
  --amber-wash: rgba(147, 103, 13, 0.09);
  --red: #C03530;
  --red-wash: rgba(192, 53, 48, 0.07);

  /* platform marks */
  --g-blue: #1a73e8;
  --li-blue: #0a66c2;
  --rd-orange: #d93900;

  /* type */
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 44px);
  --measure: 62ch;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(30, 122, 76, 0.18); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Skip link ──────────────────────────────────────────── */
.skip {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Type voices ────────────────────────────────────────── */
.k {  /* mono annotation: the file's marginalia */
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif { font-family: var(--serif); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; }
h1 .dim, h2 .dim, h3 .dim, .dim { color: var(--ink-3); }
.payoff { color: var(--green); }

/* numerals in data always tabular */
.num, .mono-fig { font-variant-numeric: tabular-nums; }

/* ── The sheet: page-wide ruled frame ───────────────────── */
.sheet {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
}
@media (max-width: 1240px) { .sheet { border-left: none; border-right: none; } }

/* ── Announcement bar ───────────────────────────────────── */
.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: rgba(245, 242, 234, 0.85);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 9px 16px;
  text-align: center;
}
.bar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; white-space: nowrap; }
.bar a:hover { border-bottom-color: #fff; }
.bar .bar-dim { color: rgba(245, 242, 234, 0.5); }
@media (max-width: 700px) { .bar { flex-wrap: wrap; gap: 4px 10px; line-height: 1.7; } }

/* ── Nav ────────────────────────────────────────────────── */
.sn {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
  z-index: 80;
  background: var(--paper);
}
.sn__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sn__lockup { width: 102px; height: auto; flex-shrink: 0; }
.sn__by {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  top: 1px;
}
.sn__links { display: flex; gap: 2px; margin-left: auto; }
.sn__links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 11px;
}
.sn__links a:hover { color: var(--ink); }
.sn__links a.active { color: var(--ink); }
.sn__links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--green);
  margin-top: 3px;
}
.sn__mobile { display: none; }
.sn__cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 11px 16px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.sn__cta:hover { background: var(--green); }
.sn__cta-short { display: none; }
@media (max-width: 961px) {
  .sn {
    position: sticky;
    top: 0;
    height: 64px;
    padding: 0 var(--gutter);
    gap: 8px;
  }
  .sn__brand { min-width: 0; }
  .sn__links { display: none; }
  .sn__mobile { display: block; margin-left: auto; }
  .sn__mobile summary {
    min-width: 66px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }
  .sn__mobile summary::-webkit-details-marker { display: none; }
  .sn__mobile summary::marker { content: ''; }
  .sn__mobile summary:hover { background: var(--paper-well); }
  .sn__mobile[open] summary { color: var(--paper); background: var(--ink); }
  .sn__mobile-icon {
    width: 11px;
    height: 11px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.18s ease;
  }
  .sn__mobile-icon::before,
  .sn__mobile-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 11px;
    border-top: 1px solid currentColor;
  }
  .sn__mobile-icon::after { transform: rotate(90deg); }
  .sn__mobile[open] .sn__mobile-icon { transform: rotate(45deg); }
  .sn__mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--paper-raised);
    border-top: 1px solid var(--rule);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 36px rgba(26, 24, 18, 0.12);
  }
  .sn__mobile-nav { padding: 8px var(--gutter) 10px; }
  .sn__mobile-nav a {
    min-height: 48px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  .sn__mobile-nav a:last-child { border-bottom: none; }
  .sn__mobile-nav a:hover { color: var(--green); }
  .sn__mobile-nav a.active::after {
    content: 'Current';
    color: var(--green);
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .sn__mobile-n {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.08em;
  }
  .sn__mobile-signoff {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 var(--gutter);
    border-top: 1px solid var(--rule);
    background: var(--paper-well);
  }
  .sn__mobile-signoff img { width: 86px; height: auto; }
  .sn__mobile-signoff span {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .sn__cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 10px 12px;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  /* Swap the label by swapping elements, not by zeroing the font size:
     pseudo-element text is invisible to translation tools and to screen
     readers reading the real link text. */
  .sn__cta-full { display: none; }
  .sn__cta-short { display: inline; }
  .sn__lockup { width: 94px; }
  .sn__by { font-size: 7.5px; }
}
@media (max-width: 560px) {
  /* Keep the founding-ten offer on phones; shed the secondary clause instead. */
  .bar { gap: 4px 8px; letter-spacing: 0.08em; }
  .bar .bar-lock,
  .bar .bar-dim { display: none; }
}
@media (max-width: 420px) { .sn__by { display: none; } }
@media (max-width: 360px) {
  .sn__mobile summary { min-width: 52px; padding-inline: 8px; gap: 7px; }
  .sn__cta { padding-inline: 9px; font-size: 9px; letter-spacing: 0.05em; }
}

/* ── Section scaffold with margin numbers ───────────────── */
.sec {
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.sec__no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  position: absolute;
  top: 26px;
  left: var(--gutter);
}
.sec__no::before { content: '№ '; color: var(--ink-3); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* mono links */
.lnk {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.lnk:hover { color: var(--green); border-bottom-color: var(--green); }
.lnk--quiet { color: var(--ink-3); border-bottom-color: transparent; }
.lnk--quiet:hover { color: var(--ink); border-bottom-color: transparent; }
.lnk-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 24px; margin-top: 30px; }

/* rule-anchored link: hairline with a right-aligned mono link on it */
.rule-lnk {
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  justify-content: flex-end;
}
.rule-lnk a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rule-lnk a::after { content: ''; width: 7px; height: 7px; background: var(--green); flex-shrink: 0; transition: transform 0.15s ease; }
.rule-lnk a:hover { color: var(--green); }
.rule-lnk a:hover::after { transform: translateX(3px); }

/* the read-only assurance line */
.readonly-line {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.readonly-line::before { content: ''; width: 7px; height: 7px; border: 1px solid var(--green); background: var(--green-wash); flex-shrink: 0; }

/* ── Chips (file annotations) ───────────────────────────── */
.chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
  background: var(--paper-raised);
}
/* Chip labels sit on their own wash, which costs ~0.5 of contrast and drops the
   brand tones just under AA at 9px. The ink variants below are those tones
   darkened to clear 4.5:1 on wash, paper, and well; the brand tokens stay
   canonical for headlines, buttons, and rules. */
.chip--green   { color: var(--green-ink);  border-color: rgba(30,122,76,0.4);  background: var(--green-wash); }
.chip--auto    { color: var(--green-ink);  border-color: rgba(30,122,76,0.4);  background: transparent; }
.chip--violet  { color: var(--violet);     border-color: rgba(108,59,209,0.35); background: var(--violet-wash); }
.chip--amber   { color: var(--amber-ink);  border-color: rgba(138,96,8,0.4);   background: var(--amber-wash); }
.chip--red     { color: var(--red-ink);    border-color: rgba(192,53,48,0.35); background: var(--red-wash); }
.chip--rolled  { color: var(--red-ink);    border-color: rgba(192,53,48,0.35); background: transparent; }
.chip--dim     { color: var(--ink-3);  border-color: var(--rule); background: transparent; }
.chip--ink     { color: var(--paper);  border-color: var(--ink); background: var(--ink); }

/* platform badges */
.pbadge {
  font-family: var(--mono);
  font-size: 8px;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  flex-shrink: 0;
}
.pbadge--g  { color: var(--g-blue);    border-color: rgba(26,115,232,0.4); }
.pbadge--in { color: var(--li-blue);   border-color: rgba(10,102,194,0.4); }
.pbadge--r  { color: var(--rd-orange); border-color: rgba(217,57,0,0.4); }

/* ── Receipt (the atomic exhibit card) ──────────────────── */
.receipt {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(26, 24, 18, 0.04);
}
.receipt + .receipt { margin-top: 12px; }
.receipt__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.receipt__time { font-family: var(--mono); font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.receipt__body { padding: 14px 18px 16px; }
.receipt__title { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.receipt__text { font-size: 13px; line-height: 1.62; color: var(--ink-2); margin-top: 6px; max-width: var(--measure); }
.receipt__trail {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
  font-variant-numeric: tabular-nums;
}
.receipt__trail b { color: var(--ink-2); font-weight: 400; }

/* diff rows */
.diff {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 7px 12px;
  margin-top: 8px;
  border-left: 2px solid;
  font-variant-numeric: tabular-nums;
}
.diff--minus { border-left-color: var(--red); background: var(--red-wash); color: var(--ink-2); }
.diff--minus .diff__v { text-decoration: line-through; opacity: 0.72; }
.diff--plus { border-left-color: var(--green); background: var(--green-wash); color: var(--ink-2); }
.diff__sign { width: 10px; flex-shrink: 0; }
.diff__f { min-width: 150px; color: var(--ink-3); }
.diff__v { color: var(--ink); }
@media (max-width: 700px) { .diff { flex-wrap: wrap; } .diff__f { min-width: 110px; } }

.impact { font-family: var(--mono); font-size: 10px; color: var(--green); margin-top: 12px; font-variant-numeric: tabular-nums; }

/* ── Exhibit well: recessed panel that holds artifacts ──── */
.well {
  background: var(--paper-well);
  border: 1px solid var(--rule);
  padding: clamp(22px, 3.5vw, 44px);
  position: relative;
}
.well__caption {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

/* ── Plate: dot-leader ledger rows ──────────────────────── */
.plate { border-top: 1px solid var(--rule-strong); }
.plate__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--rule);
}
.plate__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.plate__dots { flex: 1; border-bottom: 1px dotted var(--rule); position: relative; top: -3px; min-width: 30px; }
.plate__v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .plate__row { flex-wrap: wrap; }
  .plate__v { text-align: left; width: 100%; padding-left: 0; }
  .plate__dots { display: none; }
}

/* ── Margin note ────────────────────────────────────────── */
.note {
  max-width: var(--measure);
  margin: 18px 0 4px 18px;
  padding-left: 18px;
  border-left: 2px solid var(--green);
}
.note__k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.note__t { font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) { .note { margin-left: 4px; } }

/* ── Page scaffold (interior pages) ─────────────────────── */
.pg-wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.pg-head { padding-top: clamp(64px, 9vw, 104px); padding-bottom: 40px; }
.pg-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pg-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--green); flex-shrink: 0; }
.pg-head h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.pg-sub {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
}
.pg-sec { padding-top: clamp(48px, 7vw, 80px); }
.pg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pg-label::after { content: ''; flex: 1; border-top: 1px solid var(--rule); position: relative; top: -3px; }
.pg-h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 500; }
.pg-body { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: var(--measure); }

/* ── Q&A rows ───────────────────────────────────────────── */
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa__q {
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 18px 0;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after { content: "+"; font-family: var(--mono); font-size: 14px; line-height: 1; color: var(--ink-3); flex: none; transition: color 0.15s ease; }
.qa[open] .qa__q::after { content: "\2212"; }
.qa__q:hover::after { color: var(--green); }
.qa__a { font-family: var(--serif); font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: var(--measure); padding-bottom: 20px; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.28s cubic-bezier(0.4, 0, 0.2, 1), content-visibility 0.28s allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}
.qa__a a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(30,122,76,0.35); }
.qa__a a:hover { border-bottom-color: var(--green); }

/* ── Close band ─────────────────────────────────────────── */
.close-band { padding-top: clamp(56px, 8vw, 88px); padding-bottom: 20px; }
.close-band__line {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 24em;
}
.close-band__line .dim { color: var(--ink-3); font-weight: 400; }

/* ── The stamp ──────────────────────────────────────────── */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 8px 14px 7px;
  transform: rotate(-2.5deg);
  opacity: 0.85;
  user-select: none;
}

/* ── Meters (trust page) ────────────────────────────────── */
.meter { display: flex; gap: 4px; margin: 2px 0 8px; }
.meter i { width: 15px; height: 7px; border: 1px solid var(--rule); background: var(--paper-raised); }
.meter i.on { background: var(--green); border-color: var(--green); }
.meter-cap { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }

/* ── Footer ─────────────────────────────────────────────── */
.sf { border-top: 1px solid var(--rule-strong); margin-top: clamp(72px, 10vw, 110px); }
.sf__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px var(--gutter) 44px;
}
.sf__brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.sf__line { font-family: var(--serif); font-size: 13.5px; line-height: 1.65; color: var(--ink-2); max-width: 300px; }
.sf__k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.sf a { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.sf a:hover { color: var(--green); }
.sf__motto {
  border-top: 1px solid var(--rule);
  padding: clamp(36px, 5vw, 56px) var(--gutter);
}
.sf__motto p {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 21em;
}
.sf__motto .dim { color: var(--ink-3); font-weight: 400; }
.sf__base {
  border-top: 1px solid var(--rule);
  padding: 16px var(--gutter) 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .sf__grid { grid-template-columns: 1fr 1fr; } }

/* ── The form (a document you fill in) ──────────────────── */
.form-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  box-shadow: 0 1px 0 rgba(26,24,18,0.04), 0 16px 36px rgba(26,24,18,0.06);
  padding: clamp(26px, 4vw, 42px);
}
.form-card__k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.f-field { display: flex; flex-direction: column; gap: 7px; }
.f-field--full { grid-column: 1 / -1; }
.f-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); }
.f-label .opt { color: var(--ink-3); text-transform: none; letter-spacing: 0.04em; }
.f-input, .f-select, .f-textarea {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 12px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--ink-3); }
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.f-select {
  background-image: linear-gradient(45deg, transparent 49%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 51%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.f-textarea { min-height: 84px; resize: vertical; }
.f-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.f-check { position: relative; }
.f-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.f-check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 9px 13px;
  min-height: 44px;
  cursor: pointer;
}
.f-check span::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--ink-3); flex-shrink: 0; }
.f-check input:checked + span { border-color: var(--green); color: var(--ink); }
.f-check input:checked + span::before { background: var(--green); border-color: var(--green); }
.f-check input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.f-submit { width: 100%; justify-content: center; margin-top: 6px; font-size: 11.5px; padding: 15px 20px; }
.f-fine { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; line-height: 1.9; color: var(--ink-3); margin-top: 14px; }
.f-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* success: the receipt */
.form-done { text-align: left; }
.form-done__stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 10px 16px 9px;
  transform: rotate(-2.5deg);
  margin-bottom: 20px;
}
.form-done__line { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; }
.form-done__sub { font-family: var(--serif); font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: 48ch; }
.form-err { display: none; font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: var(--red); margin-top: 12px; }
.form-err a { color: var(--red); }
@media (max-width: 680px) { .f-grid { grid-template-columns: 1fr; } }

/* ── Small-screen edge cases ────────────────────────────── */
.chaos { overflow: hidden; }

@media (max-width: 480px) {
  .prop__btn { min-height: 44px; }

  /* The signal ladder becomes a readable two-column record. */
  .app .tier {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 4px 12px;
  }
  .app .tier__n { grid-row: 1 / 3; min-width: 0; }
  .app .tier__name { min-width: 0; }
  .app .tier__d { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }

  /* Date and entry count stack instead of forcing the ledger wider. */
  .lg-day .lg-day__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px 12px;
  }
  .lg-day .lg-day__sub { grid-column: 1 / -1; white-space: normal; }
}

/* ── Legal pages ────────────────────────────────────────── */
.legal-hero { padding-top: clamp(60px, 8vw, 96px); padding-bottom: 34px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 500; }
.legal-hero > p { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 56ch; margin-top: 18px; }
.legal-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: inline-block;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}
.legal-summary__cell { padding: 19px 21px; border-right: 1px solid var(--rule); }
.legal-summary__cell:last-child { border-right: none; }
.legal-summary__cell h3 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.legal-summary__cell p { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) {
  .legal-summary { grid-template-columns: 1fr; }
  .legal-summary__cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .legal-summary__cell:last-child { border-bottom: none; }
}

.legal-body { padding: clamp(34px, 5vw, 52px) 0 clamp(56px, 8vw, 92px); max-width: 70ch; }
.legal-body h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 38px 0 13px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}
.legal-body h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 8px;
}
.legal-body p { font-family: var(--serif); font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 13px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(30, 122, 76, 0.32); }
.legal-body a:hover { border-bottom-color: var(--green); }

/* ── Reveal ─────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
