/* The website's pages other than the landing page: sign-in and account steps, the legal pages,
   contact. Same tokens, type and buttons as the landing page. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/site/fonts/archivo-var-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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/site/fonts/archivo-var-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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/site/fonts/plex-mono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/site/fonts/plex-mono-400-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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/site/fonts/plex-mono-500-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/site/fonts/plex-mono-500-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 {
  --ink: #000000;
  --bg: #050505;
  --raise: #0c0c0c;
  --raise-2: #141414;
  --line: #1b1b1b;
  --line-2: #2a2a2a;
  --text: #ececec;
  --text-2: #a3a3a3;
  --text-3: #6b6b6b;
  --blue: #2f6df6;
  --blue-hover: #4a82ff;
  --blue-text: #7fa6ff;
  --up: #0bb295;
  --down: #f6465d;
  --amber: #f5c542;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(5, 5, 5, 0.92); }
main { flex: 1 0 auto; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: #a9c2ff; }
::selection { background: rgba(47, 109, 246, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.label { margin: 0; font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.lead { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 40em; text-wrap: pretty; }
.body { margin: 0; color: var(--text-2); text-wrap: pretty; }
.fine { margin: 0; font: 400 12.5px/1.55 var(--mono); color: var(--text-3); }

/* ------------------------------------------------------------------ header and footer */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(5, 5, 5, 0.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 17px/1 var(--display); font-stretch: 106%; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 7px; }
.lang a, .lang-switch { display: inline-grid; place-items: center; height: 26px; min-width: 32px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--text-3); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-decoration: none; cursor: pointer; }
.lang-switch { border: 1px solid var(--line-2); border-radius: 7px; height: 30px; }
.lang a:hover, .lang-switch:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--raise-2); color: var(--text); }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font: 400 12px/1.6 var(--mono); color: var(--text-3); }
.foot-in p { margin: 0; max-width: 78ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.page-auth .foot { margin-top: 48px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font: 600 14px/1 var(--display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--raise-2); }
.btn.big { width: 100%; height: 48px; font-size: 16px; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { padding: 0; border: 0; background: none; color: var(--blue-text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: #a9c2ff; }
.linkish[disabled] { color: var(--text-3); cursor: default; text-decoration: none; }

/* ------------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label { font: 500 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--raise);
  color: var(--text);
  font: 400 16px/1.4 var(--display);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a3a3a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.22); background: #0e0e0e; }
.field input[aria-invalid="true"] { border-color: rgba(246, 70, 93, 0.7); }
.field .hint { font: 400 12px/1.45 var(--mono); color: var(--text-3); }
.field .hint.bad { color: #ff8395; }
.field .hint.good { color: #4fd8bd; }
.pass { position: relative; display: block; }
.pass input { padding-right: 48px; }
.reveal { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.reveal:hover { color: var(--text); background: var(--raise-2); }
.reveal svg { width: 20px; height: 20px; }
.reveal[aria-pressed="false"] .slash { display: none; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid #3a3a3a; border-radius: 5px; background: var(--raise); display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: rgba(246, 70, 93, 0.8); }
.check a { color: var(--text); }
.form-error, .notice { padding: 11px 13px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.form-error { background: rgba(246, 70, 93, 0.09); border: 1px solid rgba(246, 70, 93, 0.35); color: #ffb3bd; }
.notice { background: rgba(47, 109, 246, 0.09); border: 1px solid rgba(47, 109, 246, 0.32); color: #c9d8ff; }
.notice.good { background: rgba(11, 178, 149, 0.09); border-color: rgba(11, 178, 149, 0.35); color: #a6ecd9; }
.form-error button, .notice button { margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------------------------------------------------ sign-in and account steps */
.auth-wrap { display: grid; place-items: start center; padding: clamp(32px, 8vh, 96px) max(16px, env(safe-area-inset-left, 0px)) 24px; }
.auth { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth h1 { margin: 0; font: 620 clamp(30px, 4.4vw, 40px)/1.02 var(--display); font-stretch: 110%; letter-spacing: -0.03em; text-wrap: balance; }
.auth .sub { margin: -10px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.auth .alt { margin: 0; font-size: 14.5px; color: var(--text-2); text-align: center; }
.auth .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.auth .between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth .between a { color: var(--text-2); }
.auth .between a:hover { color: var(--text); }
.auth .big-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--raise-2); border: 1px solid var(--line-2); color: var(--text); }
.auth .big-icon svg { width: 26px; height: 26px; }
.auth .big-icon.good { color: var(--up); border-color: rgba(11, 178, 149, 0.4); }
.auth .big-icon.bad { color: var(--down); border-color: rgba(246, 70, 93, 0.4); }
.auth .mail-to { color: var(--text); font-weight: 560; word-break: break-all; }
.auth .moving { color: var(--text-2); }
.turnstile { min-height: 65px; }
html.moving .auth > * { opacity: 0.35; pointer-events: none; }

/* ------------------------------------------------------------------ documents */
.doc { padding-top: clamp(48px, 7vw, 96px); max-width: calc(820px + 2 * var(--gutter)); margin-inline: auto; }
.doc h1 { margin: 14px 0 14px; font: 620 clamp(38px, 5.4vw, 64px)/0.98 var(--display); font-stretch: 110%; letter-spacing: -0.034em; text-wrap: balance; }
.doc .lead { margin-bottom: 28px; }
.legal { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal .meta { margin: 0 0 8px; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
.legal .summary { margin: 28px 0 8px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); }
.legal .summary h2 { margin-top: 0; }
.legal .summary ul { margin-bottom: 0; }
.legal h2 { margin: 48px 0 12px; font: 600 23px/1.25 var(--display); font-stretch: 104%; letter-spacing: -0.012em; color: var(--text); scroll-margin-top: 80px; }
.legal h3 { margin: 26px 0 8px; font: 600 17px/1.35 var(--display); color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 7px; }
.legal li::marker { color: var(--text-3); }
.legal strong { color: var(--text); font-weight: 560; }
.legal .toc { margin: 22px 0 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 32px; font: 400 13.5px/1.6 var(--mono); }
.legal .toc li { margin: 0 0 6px; break-inside: avoid; }
.legal .toc a { color: var(--text-2); text-decoration: none; }
.legal .toc a:hover { color: var(--text); text-decoration: underline; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal th, .legal td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--raise); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { color: var(--text); }
.legal code { font: 400 0.9em/1 var(--mono); color: var(--text); background: var(--raise-2); padding: 2px 6px; border-radius: 4px; }
.legal .note { padding: 14px 16px; border-left: 2px solid var(--amber); background: rgba(245, 197, 66, 0.05); color: var(--text-2); border-radius: 0 8px 8px 0; }

/* ------------------------------------------------------------------ information pages (/pricing, /about, /data-sources) */
/* the legal pages' type, with a call to action and a ruled list of their own */
.info h1 { color: var(--text); }
.info .lead { margin-bottom: 24px; }
.info-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.info-cta .btn { height: 44px; padding: 0 18px; font-size: 15px; }
.info-spec { margin: 4px 0 0; border-top: 1px solid var(--line); }
.info-spec > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-spec dt { font: 500 11.5px/1.85 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.info-spec dd { margin: 0; color: var(--text); line-height: 1.6; text-wrap: pretty; }
.info h3 { margin-top: 30px; }
.info .meta + h2 { margin-top: 36px; }
.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; }

/* the support page (/support-us): one panel per address, its QR code beside it, stacked on a phone */
.pay { display: grid; grid-template-columns: 216px minmax(0, 1fr); margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.pay-qr { display: grid; place-items: center; padding: 20px; border-right: 1px solid var(--line); background: var(--raise); }
.pay-qr .qr { display: block; width: 176px; height: 176px; border-radius: 6px; }
.pay-main { display: grid; align-content: center; min-width: 0; padding: 20px 22px; }
.legal .pay .label { margin: 0; }
.legal .pay h3 { margin: 6px 0 14px; font-size: 19px; }
.pay-addr { display: flex; align-items: stretch; gap: 8px; }
.legal .pay-addr code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--raise-2); font: 400 14px/1.5 var(--mono); color: var(--text-2); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.pay-addr code b { color: var(--text); font-weight: 500; }
.pay-addr .btn { flex: none; height: auto; min-height: 44px; min-width: 96px; }
.pay-addr .btn.done { box-shadow: inset 0 0 0 1px rgba(11, 178, 149, 0.55); color: var(--up); }
.legal .pay-note { margin: 12px 0 0; font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------------------ feature pages (/features, /features/…) */
/* a page head in the text column, the screenshot wider than it, then the legal pages' type */
.feat-head .crumbs { margin-bottom: 18px; }
.feat-shot { max-width: calc(1180px + 2 * var(--gutter)); margin: clamp(20px, 3vw, 36px) auto 0; }
.feat-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); }
.feat-shot figcaption { margin: 10px 2px 0; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
.feat-body { padding-top: 0; }
.feat-body > h2:first-child { margin-top: 44px; }
.legal .feat-related, .legal .feat-list { margin: 8px 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal .feat-related li, .legal .feat-list li { margin: 0; border-bottom: 1px solid var(--line); }
.feat-related a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 13px 0; text-decoration: none; color: var(--text-2); }
.feat-related b { color: var(--text); font-weight: 560; }
.feat-list a { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px; align-items: center; padding: 16px 0; text-decoration: none; color: var(--text-2); }
.feat-list img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-2); border-radius: 6px; background: var(--raise); }
.feat-list b { display: block; margin-bottom: 4px; color: var(--text); font: 600 18px/1.3 var(--display); }
.feat-related a:hover b, .feat-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ guides (/guides, /guides/…) */
/* the legal pages' type, a ruled list of contents, figures as wide as the text */
.guide-toc { margin: 22px 0 6px; padding: 14px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-toc .label { margin-bottom: 10px; }
.legal .guide-toc ol { margin: 0 0 8px; padding-left: 20px; columns: 2; column-gap: 36px; }
.legal .guide-toc li { margin: 0 0 5px; break-inside: avoid; }
.guide-toc a { color: var(--text-2); text-decoration: none; }
.guide-toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.guide-fig { margin: 22px 0 28px; }
.guide-fig a { display: block; cursor: zoom-in; }
.guide-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 8px; background: #000; }
/* wide pictures leave the text column for the feature pages' width, centred on the page */
.guide-fig.wide { width: max(100%, min(1180px, calc(100vw - 2 * var(--gutter) - 16px))); position: relative; left: 50%; transform: translateX(-50%); }
.guide-fig.wide figcaption { max-width: 820px; margin-inline: auto; padding-inline: 2px; }
.guide-fig.narrow a { max-width: 560px; }
.guide-fig figcaption { margin: 10px 2px 0; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
@media (max-width: 640px) { .legal .guide-toc ol { columns: 1; } }

/* ------------------------------------------------------------------ calculators (/tools) */
/* the form and its result side by side in one panel, a hairline between; stacked on a phone */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 6px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.calc [hidden] { display: none !important; }
.calc-in { display: grid; align-content: start; gap: 14px; padding: 20px; border-right: 1px solid var(--line); }
.calc-in .field { gap: 6px; }
.calc-in .field input, .calc-in .field select { min-height: 42px; padding: 9px 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc-rows { display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; gap: 10px; align-items: end; }
.calc-del { height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--text-3); font: 400 18px/1 var(--display); cursor: pointer; }
.calc-del:hover { color: var(--text); border-color: #3a3a3a; }
.calc-add { justify-self: start; }
.calc-out { padding: 20px; background: var(--raise); }
.legal .calc-main { display: grid; gap: 6px; margin: 0 0 14px; }
.calc-main span { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.calc-main b { font: 620 clamp(26px, 3vw, 34px)/1.1 var(--display); letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-res { margin: 0; border-top: 1px solid var(--line); }
.calc-res > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-res dt { font-size: 14px; color: var(--text-2); }
.calc-res dd { margin: 0; font-size: 14px; font-weight: 560; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.calc .up { color: var(--up); }
.calc .down { color: var(--down); }
.legal .calc-msg { margin: 12px 0 0; font-size: 14px; color: var(--amber); }
.legal .calc-note { margin: 0 0 8px; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
.formula { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); font: 400 13.5px/1.8 var(--mono); color: var(--text); overflow-x: auto; }

/* ------------------------------------------------------------------ documentation (/docs/alphascript) */
.page-docs .foot { margin-top: 72px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 56px; align-items: start; padding-top: 40px; }
.docs-nav, .docs-toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 108px); overflow: auto; scrollbar-width: thin; }
.dn-title { margin: 0 0 8px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.dn-group + .dn-group { margin-top: 22px; }
.docs-nav ul, .docs-toc ul { margin: 0; padding: 0; list-style: none; }
.docs-nav li a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; }
.docs-nav li a:hover { color: var(--text); background: var(--raise); }
.docs-nav li a[aria-current="page"] { color: var(--text); background: var(--raise-2); font-weight: 560; }
.dn-mobile { display: none; }
.docs-toc li a { display: block; padding: 4px 0; color: var(--text-3); font-size: 13px; line-height: 1.4; text-decoration: none; }
.docs-toc li a:hover, .docs-toc li a.on { color: var(--text); }

.docs-main { min-width: 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.crumbs { margin: 0 0 14px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.docs-main h1 { margin: 0 0 16px; color: var(--text); font: 620 clamp(34px, 4.2vw, 52px)/1 var(--display); font-stretch: 110%; letter-spacing: -0.032em; text-wrap: balance; }
.docs-main .lead { margin: 0 0 8px; }
.docs-main h2 { position: relative; margin: 56px 0 14px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--text); font: 600 25px/1.25 var(--display); font-stretch: 104%; letter-spacing: -0.014em; scroll-margin-top: 84px; }
.docs-main h3 { position: relative; margin: 34px 0 10px; color: var(--text); font: 600 18px/1.35 var(--display); scroll-margin-top: 84px; }
.docs-main .anchor { position: absolute; left: -22px; padding-right: 6px; color: var(--text-3); text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.docs-main h2 .anchor { top: 30px; }
.docs-main h2:hover .anchor, .docs-main h3:hover .anchor, .ref:hover .sig .anchor, .docs-main .anchor:focus-visible { opacity: 1; }
.docs-main p { margin: 0 0 14px; text-wrap: pretty; }
.docs-main ul { margin: 0 0 16px; padding-left: 22px; }
.docs-main li { margin: 0 0 6px; }
.docs-main li::marker { color: var(--text-3); }
.docs-main b, .docs-main strong { color: var(--text); font-weight: 560; }
.docs-main code { font: 400 0.88em/1.4 var(--mono); color: var(--text); background: var(--raise-2); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.docs-main a code { color: inherit; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--raise-2); color: var(--text); font: 500 12px/1.5 var(--mono); text-align: center; }

/* code: the editor's colours */
.codebox { margin: 18px 0 20px; }
.codebox figcaption { margin: 0 0 8px; font: 400 12.5px/1.4 var(--mono); color: var(--text-3); }
.code-wrap { position: relative; }
pre.code { margin: 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #0a0a0a; color: #d4d9e0; font: 400 13.5px/1.65 var(--mono); tab-size: 4; scrollbar-width: thin; }
pre.code code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.t-com { color: #6b7280; font-style: italic; }
.t-kw, .t-meta { color: #c792ea; }
.t-str { color: #a5d6a7; }
.t-num, .t-atom { color: #f2a65a; }
.t-ty { color: #e8c27a; }
.t-ns { color: #7dc4e4; }
.t-fn { color: #6cb6ff; }
.t-prop { color: #c9d1d9; }
.t-data { color: #63d5c4; }
.t-param { color: var(--text); }
.copy { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--raise); color: var(--text-3); font: 500 11.5px/1 var(--mono); cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s; }
.code-wrap:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--up); }
/* on touch screens the button would sit on the code: a long press selects it there anyway */
@media (hover: none) { .copy { display: none; } }
.codetabs { margin: 18px 0 20px; }
.tablist { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 8px; padding: 2px; width: max-content; max-width: 100%; border: 1px solid var(--line-2); border-radius: 8px; }
.tab { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font: 500 12px/1 var(--mono); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--raise-2); color: var(--text); }

/* notes, tables, cards */
.callout { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.callout.tip { border-color: rgba(47, 109, 246, 0.32); background: rgba(47, 109, 246, 0.05); }
.callout.warn { border-color: rgba(245, 197, 66, 0.32); background: rgba(245, 197, 66, 0.05); }
.tablewrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.tablewrap th, .tablewrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tablewrap th { font: 500 11px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); background: var(--raise); }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap td:first-child { color: var(--text); white-space: nowrap; }
.tablewrap td code { white-space: nowrap; }
.tablewrap.methods td:first-child, .tablewrap .methods td:first-child { white-space: normal; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); color: var(--text-2); font-size: 14px; line-height: 1.5; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.card b { color: var(--text); font-size: 15px; }
.card:hover { border-color: var(--line-2); background: var(--raise-2); color: var(--text-2); }

/* previous / next */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pg { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.pg span { font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pg b { color: var(--text); font-weight: 560; }
.pg.next { grid-column: 2; text-align: right; }
.pg:hover { border-color: var(--line-2); background: var(--raise); }

/* the reference */
.ref-group { scroll-margin-top: 84px; }
.group-lead { color: var(--text-2); }
.ref { padding: 18px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.ref:target, .tablewrap tr:target { background: rgba(47, 109, 246, 0.05); }
.sig { position: relative; margin: 0 0 8px !important; }
.sig .anchor { top: 0; }
.sig code { padding: 0; background: none; color: #d4d9e0; font-size: 14.5px; line-height: 1.55; }
.sig-ret { color: var(--text-3); }
.aka { margin: 0 0 12px !important; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
.aka code { font-size: 1em; background: none; padding: 0; color: var(--text-2); }
.muted { color: var(--text-3); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; margin: 16px 0 20px !important; padding: 0 !important; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 14px; }
.swatches .sw { width: 14px; height: 14px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.swatches .hex { color: var(--text-3); font: 400 12px/1.4 var(--mono); }
.ref-filter-wrap { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; margin: 24px 0 0; padding: 12px 0; background: var(--bg); }
.ref-filter { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--raise); color: var(--text); font: 400 14px/1 var(--mono); }
.ref-filter:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.22); }
.ref-none { margin: 12px 0 0 !important; color: var(--text-3); }
.docs-main.filtering .group-lead { display: none; }
[data-hidden] { display: none !important; }

@media (max-width: 1180px) {
  .docs { grid-template-columns: 210px minmax(0, 1fr); gap: 44px; }
  .docs-toc { display: none; }
}
@media (max-width: 900px) {
  .docs { display: block; padding-top: 16px; }
  .docs-nav { position: static; max-height: none; overflow: visible; margin: 0 0 24px; }
  .dn-desk { display: none; }
  .dn-mobile { display: block; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); }
  .dn-mobile > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font: 500 12px/1.3 var(--mono); color: var(--text-3); letter-spacing: 0.04em; }
  .dn-mobile > summary::-webkit-details-marker { display: none; }
  .dn-mobile > summary b { color: var(--text); font: 560 14px/1.3 var(--display); letter-spacing: 0; }
  .dn-mobile > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
  .dn-mobile[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .dn-mobile > nav { padding: 4px 14px 14px; }
  .docs-main .anchor { display: none; }
  .cards { grid-template-columns: 1fr; }
  .docs-pager { grid-template-columns: 1fr; }
  .pg.next { grid-column: 1; }
  .ref-filter-wrap { top: calc(60px + env(safe-area-inset-top, 0px)); }
}

.contact-form { margin-top: 32px; max-width: 640px; }
.sent { margin-top: 32px; padding: 24px; border: 1px solid rgba(11, 178, 149, 0.35); border-radius: 10px; background: rgba(11, 178, 149, 0.06); }
.sent h2 { margin: 0 0 6px; font: 600 22px/1.3 var(--display); }

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .top-end .btn.ghost { display: none; }
  .foot { margin-top: 64px; }
  .info-spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .pay-qr { border-right: 0; border-bottom: 1px solid var(--line); }
  .pay-qr .qr { width: 200px; height: 200px; }
  .pay-main { padding: 18px 16px; }
  .pay-addr { flex-direction: column; }
  .feat-related a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .feat-list a { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .feat-list b { font-size: 16px; }
}
@media (max-width: 760px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
