@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #EEF1F5;
  --field: #FFFFFF;
  --ink: #13233F;
  --muted: #52617A;
  --line: #C9D2DE;
  --eq: #2D5BE3;
  --fi: #E9A93A;
  --on-eq: #FFFFFF;
  --on-fi: #13233F;
  --ok: #23704E;
  --warn: #A3372E;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A2E;
    --field: #16243C;
    --ink: #E6ECF5;
    --muted: #9AA8BE;
    --line: #2A3A55;
    --eq: #7E9BFF;
    --fi: #F2BE5C;
    --on-eq: #0F1A2E;
    --on-fi: #0F1A2E;
    --ok: #7CC9A2;
    --warn: #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(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 960px; 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(--eq); 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; }
.num { font-variant-numeric: tabular-nums; }

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

/* Hero */
.hero { padding: 40px 0 0; }
h1 { font-weight: 800; font-size: clamp(44px, 7.6vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 0 0 24px; max-width: 12ch; }
.lead { margin: 0; max-width: 56ch; color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); }

/* Rebalancing demo */
.demo { margin: 64px 0 0; padding: 32px 0 0; border-top: 2px solid var(--ink); }
h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.demo > p { margin: 0 0 28px; color: var(--muted); max-width: 58ch; }

.target-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.target-row label { font-weight: 500; font-size: 15px; }
.target-row output { font-weight: 700; min-width: 7ch; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 180px; height: 28px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--eq) 0 var(--p, 62.5%), var(--fi) var(--p, 62.5%) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fi); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--eq); }
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(--eq); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--eq); }

.bars { --lbl: 112px; --t: .6; position: relative; display: grid; grid-template-columns: var(--lbl) 1fr; row-gap: 14px; align-items: center; }
.bars .label { font-size: 15px; color: var(--muted); }
.bar { position: relative; display: flex; width: 100%; border-radius: 4px; overflow: hidden; }
.bar.target { height: 10px; }
.bar.current { height: 52px; }
.seg { height: 100%; transition: flex-basis .9s cubic-bezier(.3, .7, .2, 1); flex: 0 0 auto; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.seg.eq { background: var(--eq); color: var(--on-eq); justify-content: flex-start; padding-left: 12px; }
.seg.fi { background: var(--fi); color: var(--on-fi); justify-content: flex-end; padding-right: 12px; flex: 1 1 auto; }
.seg span { font-weight: 700; font-size: 15px; }
.bar.target .seg { padding: 0; }
.marker { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px dashed var(--ink); left: calc(var(--lbl) + (100% - var(--lbl)) * var(--t) - 1px); transition: left .9s cubic-bezier(.3, .7, .2, 1); pointer-events: none; }

.readout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.status { margin: 0; font-weight: 500; max-width: 52ch; min-height: 3.1em; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.year { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  cursor: pointer; font: 700 16px/1 var(--font); border-radius: 6px; padding: 15px 20px; text-decoration: none; display: inline-block;
  color: var(--bg); background: var(--ink); border: 2px solid var(--ink);
}
.btn.secondary { color: var(--ink); background: transparent; }
.btn:hover { opacity: .9; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.footnote { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Steps: an actual sequence, so it is numbered */
.how { margin: 72px 0 0; }
.how ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.how li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 16px; }
.how li::before { content: counter(step); display: block; font-weight: 800; font-size: 34px; line-height: 1; color: var(--eq); margin-bottom: 12px; }
.how h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.how p { margin: 0; color: var(--muted); font-size: 16px; }

/* Waitlist */
.signup { margin: 80px 0 0; padding: 32px 0 0; border-top: 2px solid var(--ink); scroll-margin-top: 24px; }
.signup > p { margin: 0 0 24px; color: var(--muted); max-width: 52ch; }
.form { max-width: 580px; }
.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(--font); color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 14px;
}
.row input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
.row input[type="email"]:focus-visible { outline: 2px solid var(--eq); outline-offset: 1px; }
.row .btn { flex: none; }
.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(--eq); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { min-height: 1.55em; margin: 14px 0 0; font-size: 15px; }
.form .status.error { color: var(--warn); }
.contact-line { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* Text pages */
.prose { padding: 28px 0 0; max-width: 66ch; }
.prose h1 { font-size: clamp(36px, 6vw, 54px); margin-bottom: 18px; }
.prose h2 { font-size: 21px; margin: 32px 0 6px; letter-spacing: -.01em; }
.prose p { margin: 0 0 12px; color: var(--muted); }
.prose .updated { font-size: 15px; }
.back { display: inline-block; margin-top: 28px; }

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

@media (max-width: 720px) {
  .how ol { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .top { padding: 20px 0; }
  .brand { font-size: 19px; }
  .hero { padding-top: 22px; }
  .demo { margin-top: 48px; }
  .bars { --lbl: 92px; }
  .bars .label { font-size: 14px; }
  .readout { flex-direction: column; align-items: stretch; }
  .actions .btn, .row .btn { width: 100%; }
  .row { flex-direction: column; }
  .signup { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .seg, .marker { transition: none; }
}

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

/* Balance (hero) */
.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(--eq); }
.w-fi { fill: var(--fi); }
#wl, #wr, #fulcrum { transition: transform .55s cubic-bezier(.3, .7, .2, 1); }
.controls { margin-top: 18px; }
.controls input[type="range"] { display: block; width: 100%; margin: 14px 0 0; }
.split { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); }
.split strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: 1px; }
.sw-eq { background: var(--eq); margin-right: 8px; }
.sw-fi { background: var(--fi); margin-left: 8px; }
.caption { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 60ch; }
.hero + .signup { margin-top: 72px; }
@media (max-width: 560px) {
  .balance { margin-top: 36px; }
  .split { font-size: 14px; }
  .hero + .signup { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  #wl, #wr, #fulcrum { transition: none; }
}
