/* Generated from tokens.json by build.py. Don't edit by hand. */
:root {
  color-scheme: light;
  --snow: #f5f7f6;
  --surface: #ffffff;
  --birch: #ece6da;
  --ink: #2b3a45;
  --ink-muted: #56646d;
  --line: #d9dfe0;
  --line-strong: #7f8c93;
  --action: var(--ink);
  --on-action: #f5f7f6;
  --focus: #2c6bb0;
  --cloudberry: #f2a33a;
  --fjord: #8db9d4;
  --moss: #9bbf8e;
  --lingon: #c8375a;
  --on-lingon: #ffffff;
  --stamp-ink: #2b3a45;
  --stamp-paper: #ffffff;
  --good: #2b6a4c;
  --good-tint: #e4f0e9;
  --bad: #a6392a;
  --bad-tint: #f7e3df;
  --info-tint: #e3eef5;
  --shadow-lift: 0 1px 2px rgba(43,58,69,0.08), 0 6px 20px rgba(43,58,69,0.10);
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  --snow: #11191f;
  --surface: #18232b;
  --birch: #212d35;
  --ink: #e8edef;
  --ink-muted: #a3afb6;
  --line: #2c3a44;
  --line-strong: #65747e;
  --action: var(--ink);
  --on-action: #11191f;
  --focus: #7fb2e5;
  --cloudberry: #f5b45c;
  --fjord: #8db9d4;
  --moss: #a5c79a;
  --lingon: #f07892;
  --on-lingon: #11191f;
  --stamp-ink: #2b3a45;
  --stamp-paper: #e8edef;
  --good: #7cc4a0;
  --good-tint: #1b3228;
  --bad: #f2917f;
  --bad-tint: #3a211d;
  --info-tint: #1c2c38;
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.40), 0 8px 24px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --snow: #11191f;
  --surface: #18232b;
  --birch: #212d35;
  --ink: #e8edef;
  --ink-muted: #a3afb6;
  --line: #2c3a44;
  --line-strong: #65747e;
  --action: var(--ink);
  --on-action: #11191f;
  --focus: #7fb2e5;
  --cloudberry: #f5b45c;
  --fjord: #8db9d4;
  --moss: #a5c79a;
  --lingon: #f07892;
  --on-lingon: #11191f;
  --stamp-ink: #2b3a45;
  --stamp-paper: #e8edef;
  --good: #7cc4a0;
  --good-tint: #1b3228;
  --bad: #f2917f;
  --bad-tint: #3a211d;
  --info-tint: #1c2c38;
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.40), 0 8px 24px rgba(0,0,0,0.35);
}
/* Self-hosted faces (SIL Open Font License, see fonts/). Latin subset, variable weight. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/spline-sans-mono.woff2") format("woff2");
}
/* Ziftwo components. Plain CSS classes, prefixed z-, styled only through tokens. */

body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 25px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.z-pad { padding: var(--space-5); }
.z-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.z-stack { display: grid; gap: var(--space-4); }
.z-muted { color: var(--ink-muted); }
.z-small { font-size: 14px; line-height: 20px; }
.z-label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.z-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.z-code { font-family: var(--font-mono); font-size: 14px; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.z-btn { display: inline-flex; align-items: center; gap: var(--space-2); font: inherit; font-weight: 600; font-size: 15px; line-height: 20px;
  padding: 10px var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--action);
  background: var(--action); color: var(--on-action); cursor: pointer; text-decoration: none; transition: background-color 120ms ease-out, color 120ms ease-out; }
.z-btn:hover { background: transparent; color: var(--ink); }
.z-btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.z-btn-quiet:hover { background: var(--birch); }
.z-btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.z-btn-danger:hover { background: var(--bad-tint); color: var(--bad); }
.z-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Card */
.z-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
.z-card > h2 { margin: 0 0 var(--space-3); font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.01em; }
.z-card > p { margin: 0 0 var(--space-3); }
.z-card > :last-child { margin-bottom: 0; }

/* Notice */
.z-notice { display: flex; gap: var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--info-tint); color: var(--ink); }
.z-notice > .z-label { flex: none; }
.z-notice p { margin: 0; }
.z-notice-good { background: var(--good-tint); }
.z-notice-good > .z-label { color: var(--good); }
.z-notice-bad { background: var(--bad-tint); }
.z-notice-bad > .z-label { color: var(--bad); }

/* Field */
.z-field { display: grid; gap: var(--space-2); max-width: 28rem; }
.z-field label { font-weight: 600; }
.z-field input, .z-field textarea { font: inherit; color: var(--ink); background: var(--surface); padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.z-field .z-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.z-field.is-bad input { border-color: var(--bad); }
.z-field.is-bad .z-hint { color: var(--bad); }

/* Disclosure: a question that unfolds its answer. Native <details>, so it
   works without JavaScript; stacked ones share their dividers. */
.z-disclosure { border-top: 1px solid var(--line); }
.z-disclosure:last-of-type { border-bottom: 1px solid var(--line); }
.z-disclosure > summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-3) 0; font-weight: 600; font-size: 17px; line-height: 24px; cursor: pointer; list-style: none; }
.z-disclosure > summary::-webkit-details-marker { display: none; }
.z-disclosure > summary::after { content: "+"; flex: none; width: 1ch; font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); }
.z-disclosure[open] > summary::after { content: "\2212"; }
.z-disclosure > summary:hover::after { color: var(--ink); }
.z-disclosure > :not(summary) { margin: 0 0 var(--space-4); max-width: 40rem; }

/* Stat */
.z-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-4); }
.z-stat { display: grid; gap: var(--space-1); align-content: start; }
.z-stat b { font-size: 28px; line-height: 32px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.z-stat-hero b { font-size: 40px; line-height: 44px; }
.z-stat span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Tag */
.z-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stamp-ink); background: var(--birch); }
.z-tag::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }
.z-tag-held { background: var(--fjord); }
.z-tag-delivered { background: var(--moss); }
.z-tag-stamp { background: var(--cloudberry); }
.z-tag-expired { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Table */
.z-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.z-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); padding: 0 var(--space-3) var(--space-2) 0; }
.z-table td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-top: 1px solid var(--line); vertical-align: middle; }
.z-table td.z-num { font-variant-numeric: tabular-nums; }
.z-table .z-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; padding-right: 0; }
.z-table .z-actions form { margin: 0; }
/* .z-table-stack: on phones each row becomes a block and cells show their data-label. */
@media (max-width: 40rem) {
  .z-table-stack thead, .z-table-stack tr.z-head { display: none; }
  .z-table-stack tr { display: block; border-top: 1px solid var(--line); padding: var(--space-3) 0; }
  .z-table-stack td { display: block; border: 0; padding: 2px 0; }
  .z-table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-muted); }
  .z-table-stack .z-actions { justify-content: flex-start; padding-top: var(--space-2); }
}

/* Stamp: sizes are multiples of 12px (space-3) so the perforation closes. */
.z-stamp { --hole: 4px; position: relative; display: inline-block; width: 96px; height: 120px; box-sizing: border-box; padding: 8px;
  background: radial-gradient(circle at 50% 50%, transparent var(--hole), var(--stamp-paper) calc(var(--hole) + .5px)) -6px -6px / 12px 12px;
  filter: drop-shadow(0 1px 1px rgba(43,58,69,.12)) drop-shadow(0 6px 12px rgba(43,58,69,.10)); }
.z-stamp-face { height: 100%; box-sizing: border-box; background: var(--cloudberry); color: var(--stamp-ink);
  display: grid; grid-template-rows: auto 1fr auto; padding: 6px; }
.z-stamp-face .z-stamp-country { font-family: var(--font-mono); font-size: 9px; line-height: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.z-stamp-face svg { width: 100%; height: 100%; fill: var(--stamp-ink); }
.z-stamp-face .z-stamp-value { font-family: var(--font-mono); font-size: 15px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.z-stamp-fjord .z-stamp-face { background: var(--fjord); }
.z-stamp-moss .z-stamp-face { background: var(--moss); }
.z-stamp-lingon .z-stamp-face { background: var(--lingon); color: var(--on-lingon); }
.z-stamp-lingon .z-stamp-face svg { fill: var(--on-lingon); }
.z-stamp-lg { width: 144px; height: 180px; }
.z-stamp-lg .z-stamp-face { padding: 10px; }
.z-stamp-lg .z-stamp-value { font-size: 22px; line-height: 24px; }
.z-stamp.is-new { animation: z-stamp-drop 240ms ease-out; }
@keyframes z-stamp-drop { from { transform: translateY(-8px) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .z-stamp.is-new { animation: none; } }

/* Weekly bars: .z-bar wrappers are focusable and show data-tip on hover and focus. */
.z-bars { display: flex; align-items: flex-end; gap: 3px; height: 112px; border-bottom: 1px solid var(--line); }
.z-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline-offset: 0; }
.z-bar > span { display: block; width: 100%; background: var(--ink); border-radius: var(--radius-sm) var(--radius-sm) 0 0; opacity: .85; transition: opacity 120ms ease-out; }
/* Bar heights in 5% steps, as classes rather than style= so pages can keep a strict Content-Security-Policy. */
.z-bar-5 > span { height: 5% } .z-bar-10 > span { height: 10% } .z-bar-15 > span { height: 15% } .z-bar-20 > span { height: 20% } .z-bar-25 > span { height: 25% }
.z-bar-30 > span { height: 30% } .z-bar-35 > span { height: 35% } .z-bar-40 > span { height: 40% } .z-bar-45 > span { height: 45% } .z-bar-50 > span { height: 50% }
.z-bar-55 > span { height: 55% } .z-bar-60 > span { height: 60% } .z-bar-65 > span { height: 65% } .z-bar-70 > span { height: 70% } .z-bar-75 > span { height: 75% }
.z-bar-80 > span { height: 80% } .z-bar-85 > span { height: 85% } .z-bar-90 > span { height: 90% } .z-bar-95 > span { height: 95% } .z-bar-100 > span { height: 100% }
.z-bar:hover > span, .z-bar:focus-visible > span { opacity: 1; }
.z-bar:last-child > span { background: var(--cloudberry); opacity: 1; }
.z-bar[data-tip]:hover::after, .z-bar[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + var(--space-1));
  left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1; font-size: 13px; line-height: 18px;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--ink); color: var(--snow); box-shadow: var(--shadow-lift); }
.z-bar:first-child::after { left: 0; transform: none; }
.z-bar:last-child::after { left: auto; right: 0; transform: none; }
.z-bars-axis { display: flex; justify-content: space-between; margin-top: var(--space-1); font-size: 14px; color: var(--ink-muted); }

/* Sift pattern */
.z-sift { display: block; width: 100%; height: auto; }
.z-sift .z-in-a { fill: var(--fjord); }
.z-sift .z-in-b { fill: var(--cloudberry); }
.z-sift .z-in-c { fill: var(--lingon); }
.z-sift .z-out { fill: var(--ink); }
/* App shell and page layout. Served after the design system's tokens.css,
   fonts.css and components.css (see handbook/brand/design-system/). Use tokens only. */

* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }
.wrap { max-width: 56rem; margin: 0 auto; padding-inline: var(--space-4); }

h1 { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
h2 { font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 var(--space-3); text-wrap: balance; }
h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: var(--space-5) 0 var(--space-1); }
p, ul, ol { margin: 0 0 var(--space-3); }
code { font-family: var(--font-mono); font-size: .9em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.lede { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 40rem; }

/* Header and footer */
header.site { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.brand i { width: 32px; height: 21px; background: currentColor;
  -webkit-mask: url(/static/icon.svg) center / contain no-repeat; mask: url(/static/icon.svg) center / contain no-repeat; }
nav { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
nav a:not(.z-btn) { text-decoration: none; color: var(--ink-muted); }
nav a:not(.z-btn):hover { color: var(--ink); }
nav form { margin: 0; }
main { padding-block: var(--space-6) var(--space-12); display: grid; gap: var(--space-6); align-content: start; }
main > * { margin: 0; }
footer.site { border-top: 1px solid var(--line); padding-block: var(--space-6); }
footer.site nav { gap: var(--space-5); }

/* Forms */
form.z-form { display: grid; gap: var(--space-4); }
form.z-form .z-field { max-width: none; }
.z-field textarea { resize: vertical; }
.z-field .optional { font-weight: 400; color: var(--ink-muted); }

/* Narrow single-card pages: sign in, request access, pay, messages */
.narrow { max-width: 34rem; }

/* Landing */
.hero { display: grid; gap: var(--space-8); grid-template-columns: 1fr auto; align-items: center; padding-block: var(--space-8) var(--space-4); }
.hero h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -.025em; max-width: 36rem; }
.hero .z-row { margin-top: var(--space-5); }
.hero .z-stamp { transform: rotate(2deg); }
@media (max-width: 40rem) { .hero { grid-template-columns: 1fr; } .hero .z-stamp { display: none; } }
.sift-band { background: var(--birch); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); }

/* Questions */
.z-card > .z-disclosure:first-of-type { margin-top: var(--space-2); }

/* How it works: a storyboard of line drawings, one per step. Colour only
   where it means something: fjord for held, cloudberry for the stamp. */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.flow li { display: grid; grid-template-columns: minmax(0, 18rem) 1fr; grid-template-rows: auto 1fr; gap: var(--space-2) var(--space-5); }
.flow svg { grid-row: span 2; display: block; width: 100%; height: auto; background: var(--birch); border-radius: var(--radius-md); }
.flow h3 { margin: var(--space-3) 0 0; display: flex; gap: var(--space-2); align-items: baseline; }
.flow p { margin: 0; max-width: 32rem; }
@media (max-width: 40rem) {
  .flow li { grid-template-columns: 1fr; grid-template-rows: none; }
  .flow svg { grid-row: auto; margin-bottom: var(--space-1); }
  .flow h3 { margin-top: 0; }
}
.flow .ink, .flow .faint { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.flow .faint { stroke: var(--line-strong); }
.flow .paper { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.flow .paper.faint { stroke: var(--line-strong); }
.flow .dash { stroke-dasharray: 4 4; }
.flow .held { fill: var(--fjord); }
.flow .stamp { fill: var(--cloudberry); }
.flow .on-tag { fill: var(--stamp-ink); }
.flow text { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.flow text.quiet { fill: var(--ink-muted); }

/* Stamp icon in the app: mask the served icon instead of inlining its path. */
.z-stamp-icon { display: block; background: currentColor;
  -webkit-mask: url(/static/icon.svg) center / contain no-repeat; mask: url(/static/icon.svg) center / contain no-repeat; }

/* Pay page */
.pay { max-width: 44rem; display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 34rem) { .pay { grid-template-columns: 1fr; } }

/* Dashboard */
.weekly { margin: var(--space-5) 0; }
.weekly figcaption { margin-bottom: var(--space-2); }
.z-card > .z-stats + .weekly, .z-card > .weekly + .z-stats { margin-top: var(--space-5); }
.inline-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); justify-content: space-between;
  padding-block: var(--space-3); border-top: 1px solid var(--line); }
.inline-pay p { margin: 0; }
.status-good { color: var(--good); }
.status-bad { color: var(--bad); }
.scroll { overflow-x: auto; }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { margin-top: var(--space-8); }
.legal h3 { font-size: 17px; }
.hl { color: var(--lingon); }
