@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/spectral-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #E8EEEC;
  --field: #F4F7F6;
  --ink: #18302D;
  --muted: #4F6662;
  --line: #C3D0CC;
  --gold: #B38428;
  --slate: #4D6B8A;
  --ok: #2F6B4F;
  --error: #A3372E;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #132321;
    --field: #1A2E2B;
    --ink: #E3ECE8;
    --muted: #9DB2AC;
    --line: #2E4540;
    --gold: #D3A447;
    --slate: #86A4C2;
    --ok: #7CC39F;
    --error: #F0948B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; flex: 1; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
.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; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; flex: none; display: block; }
.brand .sub { font-weight: 300; color: var(--muted); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { font: 500 14px/1 var(--sans); color: var(--muted); text-decoration: none; border-radius: 999px; padding: 8px 13px; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { padding: 36px 0 0; }
h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 8.4vw, 88px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 26px; max-width: 13ch; }
.lead { margin: 0; max-width: 58ch; color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); }

/* Balance */
.balance { margin: 52px 0 0; }
.balance svg { width: 100%; height: auto; display: block; overflow: visible; }
.ink { fill: var(--ink); }
.ground { stroke: var(--line); stroke-width: 2; }
.w-eq { fill: var(--gold); }
.w-fi { fill: var(--slate); }
#wl, #wr, #fulcrum { transition: transform .55s cubic-bezier(.3, .7, .2, 1); }
.controls { margin-top: 18px; }
.split { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); }
.split strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: 1px; }
.sw-eq { background: var(--gold); margin-right: 8px; }
.sw-fi { background: var(--slate); margin-left: 8px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; margin: 14px 0 0; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gold) 0 var(--p, 62.5%), var(--slate) var(--p, 62.5%) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--slate); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--slate); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--slate); }
.caption { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 60ch; }

/* Waitlist */
.signup { margin: 72px 0 0; padding: 36px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 10px; }
.signup > p { margin: 0 0 24px; color: var(--muted); max-width: 52ch; }
.form { max-width: 560px; }
.form label.field { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.row { display: flex; gap: 10px; }
.row input[type="email"] {
  flex: 1; min-width: 0;
  font: 400 17px/1.2 var(--sans); color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 14px;
}
.row input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
.row input[type="email"]:focus-visible { outline: 2px solid var(--slate); outline-offset: 1px; }
.btn {
  flex: none; cursor: pointer;
  font: 600 16px/1 var(--sans); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 6px; padding: 15px 22px; text-decoration: none; display: inline-block;
}
.btn:hover { opacity: .9; }
.btn[disabled] { opacity: .6; cursor: progress; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--muted); }
.consent input { margin: 4px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.55em; margin: 14px 0 0; font-size: 15px; font-weight: 500; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
.contact-line { margin: 26px 0 0; font-size: 15px; color: var(--muted); }

/* Text pages */
.prose { padding: 28px 0 0; max-width: 66ch; }
.prose h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 18px; }
.prose h2 { font-size: 22px; margin: 34px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose .updated { font-size: 15px; }
.back { display: inline-block; margin-top: 28px; }

/* Footer */
footer { padding: 56px 0 36px; font-size: 13.5px; color: var(--muted); }
footer p { margin: 0 0 4px; }

@media (max-width: 560px) {
  .top { padding: 20px 0; }
  .brand { font-size: 22px; }
  .brand svg { width: 26px; height: 26px; }
  .hero { padding-top: 20px; }
  .balance { margin-top: 36px; }
  .split { font-size: 14px; }
  .signup { margin-top: 56px; }
  .row { flex-direction: column; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #wl, #wr, #fulcrum { transition: none; }
}

.signup > p.contact-line { margin: 16px 0 0; }
