/* Public pages outside the chart: sign-in, account, legal. One black theme; text colours pass WCAG AA on it. */
:root {
  --bg: #000; --panel: #0d0d0e; --field: #121214; --line: #26262a; --edge: #6b6b73;
  --ink: #f2f2f3; --soft: #c9c9ce; --muted: #a1a1aa; --good: #4ade80; --bad: #ff8a94; --focus: #8ab4ff;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.65 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.head { display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.head nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.head nav a { color: var(--soft); text-decoration: none; }
.head nav a:hover { color: #fff; }
main { flex: 1; width: 100%; padding: clamp(24px, 6vw, 64px) 16px; }
.foot { border-top: 1px solid var(--line); padding: 18px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); display: inline-block; padding: 3px 0; }
.foot .grow { flex: 1; }

/* ---- forms ---- */
.card { max-width: 420px; margin: 0 auto; }
.card.wide { max-width: 640px; }
.card h1 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 6px; }
.card > p.lead { color: var(--muted); margin: 0 0 26px; }
.card h2 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
.view[hidden] { display: none; }
label.field { display: block; margin: 0 0 16px; font-size: 13px; color: var(--soft); }
label.field input { display: block; width: 100%; margin-top: 6px; height: 44px; padding: 0 12px; background: var(--field); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 3px; font: 15px var(--font); }
label.field input:focus { border-color: #fff; }
.hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
label.tick { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 0 0 14px; font-size: 13.5px; color: var(--soft); cursor: pointer; }
label.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; }
button.main, button.plain { height: 44px; padding: 0 18px; border-radius: 3px; font: 500 14.5px var(--font); cursor: pointer; }
button.main { background: #fff; color: #000; border: 1px solid #fff; }
button.main.full { width: 100%; }
button.main:hover { background: #dcdce0; }
button.plain { background: none; color: var(--ink); border: 1px solid var(--edge); }
button.plain:hover { border-color: #fff; }
button.danger { color: var(--bad); }
.pw { display: block; position: relative; } .pw input { padding-right: 64px !important; }
.reveal { position: absolute; right: 4px; bottom: 6px; height: 32px; padding: 0 10px; background: none; border: 0; color: var(--muted); font: 500 12.5px var(--font); cursor: pointer; }
.reveal:hover { color: #fff; }
.forgot { margin: -6px 0 16px; font-size: 13px; }
button:disabled { opacity: .55; cursor: progress; }
.aside { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.msg { border-left: 3px solid var(--muted); padding: 8px 12px; margin: 0 0 18px; background: var(--panel); font-size: 14px; }
.msg:empty { display: none; }
.msg.bad { border-color: var(--bad); color: var(--bad); }
.msg.good { border-color: var(--good); }
.section { border-top: 1px solid var(--line); padding: 22px 0; }
.section p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
code.secret { display: block; padding: 12px; background: var(--field); border: 1px solid var(--line); font-size: 16px; letter-spacing: .12em; overflow-wrap: anywhere; user-select: all; margin: 0 0 12px; }
ul.codes { list-style: none; margin: 0 0 14px; padding: 12px; background: var(--field); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; font-family: ui-monospace, Consolas, monospace; user-select: all; }

/* ---- the way in: a picture beside the form, the form alone on narrow screens ---- */
.pitch[hidden] { display: none; }
main.auth.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); padding: 0; }
.pitch { position: relative; display: flex; align-items: flex-end; min-height: 560px; padding: clamp(28px, 4vw, 56px); border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 55%, #000 100%), url(/site/media/hero.jpg) center / cover no-repeat; }
.pitch-in { max-width: 460px; }
.pitch-over { margin: 0 0 14px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--soft); }
.pitch-head { margin: 0 0 26px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.pitch ul { list-style: none; margin: 0; padding: 0; }
.pitch li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.16); color: var(--soft); font-size: 14px; }
main.auth.split .deck { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 64px) 20px; }
main.auth.split .card { width: 100%; }
@media (max-width: 940px) { main.auth.split { grid-template-columns: 1fr; } .pitch { display: none; } main.auth.split .deck { padding: 28px 16px 48px; } }
/* log in or sign up: the chosen one has the line under its word */
.switch { display: flex; gap: 26px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.switch a { padding: 0 0 10px; margin-bottom: -1px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14.5px; }
.switch a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; }
.steps[hidden] { display: none; }
.steps li { flex: 1; counter-increment: step; padding-top: 8px; border-top: 2px solid var(--line); color: var(--muted); font-size: 12.5px; }
.steps li::before { content: counter(step) ". "; }
.steps li[aria-current="step"] { border-top-color: #fff; color: var(--ink); }
.rules { list-style: none; margin: -8px 0 18px; padding: 0; font-size: 12.5px; color: var(--muted); }
.rules li { position: relative; padding-left: 18px; }
.rules li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--edge); }
.rules li.met { color: var(--ink); }
.rules li.met::before { left: 2px; top: .45em; width: 4px; height: 8px; border-radius: 0; background: none; border: solid var(--good); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hint.former { margin-top: 16px; }

/* ---- legal documents ---- */
.doc { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; }
.doc aside { position: sticky; top: 24px; align-self: start; font-size: 13px; }
.doc aside ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc aside a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; }
.doc aside a:hover { color: #fff; }
.doc article h1 { font-size: 34px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 8px; }
.doc article .meta { color: var(--muted); font-size: 13px; margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc article h2 { font-size: 18px; font-weight: 600; margin: 38px 0 10px; scroll-margin-top: 20px; }
.doc article p, .doc article li { color: var(--soft); }
.doc article li { margin-bottom: 4px; }
.doc article strong { color: var(--ink); }
.table { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 8px 0 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.doc th { color: var(--ink); font-weight: 600; }
.unset { background: #3a2a00; color: #ffd76a; padding: 0 4px; border-radius: 2px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 20px; } .doc aside { position: static; } .head nav { gap: 12px; } }

/* ---- storage notice ---- */
.notice { position: fixed; left: 16px; bottom: 16px; right: 16px; max-width: 460px; background: #171717; border: 1px solid #3a3a40; border-radius: 12px; padding: 14px 16px; z-index: 50; font-size: 13.5px; line-height: 1.55; color: var(--soft); box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.notice p { margin: 0 0 12px; }
.notice .row { align-items: center; }
.notice button { height: 36px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.errorpage { text-align: center; } .errorpage .code { color: var(--muted); font-size: 13px; letter-spacing: .08em; margin: 0 0 8px; } .errorpage .aside { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.human { margin: 8px 0 12px; min-height: 65px; }
#resetoffer { max-width: 380px; padding: 20px; background: #171717; color: inherit; border: 1px solid #2f2f37; border-radius: 12px; }
#resetoffer::backdrop { background: rgba(0,0,0,.7); }
#resetoffer h2 { margin-top: 0; font-size: 18px; }
#resetoffer .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* what a picture is, behind a small i: shown on hover, on keyboard focus and on a tap */
.made { position: relative; display: inline-block; vertical-align: middle; }
.made-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #55565e; border-radius: 50%; color: #c9cad1; font: italic 600 12px Georgia, serif; cursor: help; user-select: none; }
.made-i:hover, .made-i:focus-visible { border-color: #fff; color: #fff; }
.made-t { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(290px, 78vw); padding: 8px 11px; background: #171717; border: 1px solid #2f2f37; color: #e8e8ec; font: 400 12.5px/1.45 var(--font); letter-spacing: 0; text-align: left; text-transform: none; opacity: 0; visibility: hidden; transition: opacity 80ms linear; z-index: 5; }
.made:hover .made-t, .made-i:focus ~ .made-t { opacity: 1; visibility: visible; }
.made-row { display: flex; justify-content: flex-end; padding-top: 12px; }
