/* Generated from the shared block in site/index.html by tools/build.mjs. Don't edit. */
/* ==== shared ====
   Everything down to the closing marker is the site's one set of colors and parts.
   tools/build.mjs copies it to dynamic/web/lib/ui.css and pay/web/ui.css, so the signed-in
   pages and the checkout use the same ones. Change a part here, never in a copy.

   Ink on paper, one signal color, hard shadows, corners rounded like the logo's full stop.
   The system font for everything people read and touch; the logo is the only lettering.
   Surfaces (cards, dialogs) are the lighter --field; the controls on them are --paper. */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --ink: #15130f;
  --muted: #5e5850;
  --rule: #15130f;
  --hair: rgba(21, 19, 15, 0.14);
  --dot: rgba(21, 19, 15, 0.17);
  --field: #fffdf8;
  --signal: #f7741c;
  --signal-ink: #15130f;
  --warn: #b3360b;
  --label: #ffffff;
  --shade: #15130f;
  --control: var(--field);
  --radius: 8px;
  --radius-lg: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151310;
    --paper-2: #211e19;
    --ink: #f4f1ea;
    --muted: #ada597;
    --rule: #f4f1ea;
    --hair: rgba(244, 241, 234, 0.16);
    --dot: rgba(244, 241, 234, 0.13);
    --field: #1c1915;
    --warn: #ff9a73;
    --shade: #000000;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Small print: counts, dates, quiet labels. */
.mono { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The wordmark's letters follow the ink (light and dark); its full stop is always the brand orange. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { display: block; height: 28px; width: auto; }
.wm-ink { fill: var(--ink); }
.wm-stop { fill: #f7741c; }
/* A headline's one accent. */
h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 0.14em; text-underline-offset: 0.1em; text-decoration-skip-ink: none; }
/* Short lists of promises, each with a tick. */
.promise, .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.promise li::before, .facts li::before { content: "\2713"; color: var(--signal); font-weight: 800; margin-right: 5px; }

/* A surface: a card or dialog. Controls on it take the page's color. */
.surface { background: var(--field); border: 2px solid var(--rule); border-radius: var(--radius-lg); --control: var(--paper); }
/* A stage: where a QR code is shown. */
.stage { background-color: var(--paper-2); background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 14px 14px; }

/* Fields */
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input:not([type]), textarea, select {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--control);
  border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 10px 11px; outline: none;
  text-transform: none; letter-spacing: normal; transition: box-shadow 0.12s;
}
textarea { resize: vertical; display: block; }
input:focus, textarea:focus, select:focus { box-shadow: 3px 3px 0 var(--signal); }
::placeholder { color: var(--muted); opacity: 0.6; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }

/* Buttons: plain by default. Only the main action (.primary) and the dark one (.ink) cast a
   shadow at rest; the rest lift on hover. */
.btn {
  font: 700 15px/1.3 var(--sans); cursor: pointer; color: var(--ink); background: var(--field); text-decoration: none;
  border: 2px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn.primary { background: var(--signal); color: var(--signal-ink); box-shadow: 3px 3px 0 var(--rule); }
.btn.ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--signal); }
.btn.danger { background: var(--warn); color: var(--field); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--rule); }
.btn.ink:hover { box-shadow: 4px 4px 0 var(--signal); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* One choice of a few, side by side: radio buttons (label > input + span) or tabs (.tab, .on). */
.seg { display: inline-flex; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.seg span, .seg .tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 36px; padding: 0 12px; margin: 0 0 0 -1.5px; cursor: pointer; white-space: nowrap;
  font: 650 14px/1 var(--sans); color: var(--ink); background: var(--control); border: 1.5px solid var(--rule); border-radius: 0; transition: background 0.12s;
}
.seg label:first-child span, .seg .tab:first-child { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.seg label:last-child span, .seg .tab:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.seg label:only-child span, .seg .tab:only-child { border-radius: var(--radius); }
.seg label:hover input:not(:checked) + span, .seg .tab:hover:not(.on):not(:disabled) { background: var(--paper-2); }
.seg input:checked + span, .seg .tab.on { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.seg .tab:disabled { opacity: 0.4; cursor: not-allowed; }
/* ==== /shared ==== */
