/* Home page. It uses the launchpad's own tokens (styles.css): dark slate surfaces, blue for actions,
   amber only for the floor. The one loud thing on the page is the machine you can operate; everything
   around it stays quiet. Chart hues are the white paper's: blue for price, yellow for the floor and
   the reserve, aqua for the creator, checked for colour-blind separation on this surface. */
.home{--f-floor:#c98500;--f-plat:#3987e5;--f-crea:#199e70;--f-you:#aeb7c9}
.home .wrap{max-width:1120px}
.home nav a{padding:10px 12px}
.home .right .btn{padding:8px 13px;font-size:13.5px}
@media (min-width:820px){.home nav a{padding:19px 14px 17px}}

/* opening: the statement on one side, the machine on the other */
.open{display:grid;gap:28px;grid-template-columns:minmax(0,1fr);padding:34px 0 10px;align-items:start}
@media (min-width:980px){.open{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:44px;padding:56px 0 20px}}
.open h1{font-weight:800;font-size:clamp(34px,6.4vw,58px);line-height:1.04;letter-spacing:-.03em;margin:0 0 18px;text-wrap:balance}
.open .lede{font-size:17.5px;line-height:1.6;color:var(--ink);opacity:.86;margin:0 0 22px;max-width:34em}
.open .doors{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.open .doors .btn{padding:12px 18px}
.open .fine{font-size:13.5px;line-height:1.55;color:var(--muted);margin:0;max-width:36em}
.open .fine b{color:var(--floor);font-weight:700}

/* the machine */
.machine{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px 18px 16px}
.machine h2{font-size:16px;font-weight:700;margin:0 0 2px}
.machine .sub{font-size:13.5px;color:var(--muted);margin:0 0 12px;line-height:1.5}
.m-chart{position:relative;touch-action:none;cursor:ew-resize;user-select:none;-webkit-user-select:none}
.m-chart svg{display:block;width:100%;height:auto;overflow:visible}
.m-chart .grid{stroke:var(--line);stroke-width:1}
.m-chart .band{fill:var(--ink);opacity:.04}
.m-chart .tick{font:12px var(--mono);fill:var(--muted)}
.m-chart .ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.m-chart .ln-price{stroke:var(--f-plat)}
.m-chart .ln-floor{stroke:var(--f-floor)}
.m-chart .sold{fill:var(--f-plat);opacity:.1}
.m-chart .ring{fill:var(--surface)}
.m-chart .knob{fill:var(--f-plat)}
.m-chart .stem{stroke:var(--muted);stroke-width:1}
.m-chart .zone{position:absolute;top:13%;font-size:12.5px;color:var(--muted);pointer-events:none;text-align:center;line-height:1.3}
@media (max-width:620px){.m-chart .tick{font-size:21px}.m-chart .ln{stroke-width:3.6}.m-chart .grid,.m-chart .stem{stroke-width:1.6}.m-chart .ring{r:13px}.m-chart .knob{r:9px}}
.m-key{list-style:none;display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0 12px;padding:0;font-size:13px;color:var(--muted)}
.m-key li{display:flex;align-items:center;gap:7px}
.m-key i{display:inline-block;width:18px;height:3px;border-radius:2px}
.m-ctl{display:grid;gap:12px;margin:4px 0 14px}
.m-ctl label{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;font-weight:600;margin-bottom:4px}
.m-ctl label output{font-family:var(--mono);font-weight:600;color:var(--ink)}
.m-ctl input[type=range]{width:100%;accent-color:var(--accent);height:26px;margin:0}
.m-ctl .off{opacity:.45}
.m-ctl .hint{font-size:12.5px;color:var(--muted);margin:2px 0 0;line-height:1.45}
.m-read{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.m-read div{background:var(--raise);padding:10px 12px}
.m-read span{display:block;font-size:12.5px;color:var(--muted);line-height:1.35}
.m-read b{display:block;font:600 17px var(--mono);margin-top:3px;letter-spacing:-.01em}
.m-cover{margin-top:12px}
.m-cover .row1{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;line-height:1.4}
.m-cover .row1 b{font:600 14px var(--mono)}
.m-cover .track{height:8px;border-radius:4px;background:#3a2a06;margin-top:6px;overflow:hidden}
.m-cover .fill{height:100%;background:var(--f-floor);border-radius:4px 0 0 4px}
.m-cover p{font-size:12.5px;color:var(--muted);margin:6px 0 0;line-height:1.45}

/* try a buy */
.m-buy{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.m-buy .ask{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14.5px;font-weight:600}
.m-buy .amt{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:0 10px;font-family:var(--mono)}
.m-buy .amt input{width:6.5em;border:0;background:none;padding:9px 6px;font:600 15px var(--mono);outline:none}
.m-buy .amt:focus-within{border-color:var(--accent)}
.m-buy .out{font-size:14.5px;line-height:1.6;margin:10px 0 10px}
.m-buy .out b{font-family:var(--mono);font-weight:600}
.segs{display:flex;gap:2px;height:22px}
.segs i{min-width:3px;height:100%}
.segs i:first-child{border-radius:4px 0 0 4px}
.segs i:last-child{border-radius:0 4px 4px 0}
.sw-floor{background:var(--f-floor)}
.sw-extra{background:repeating-linear-gradient(135deg,var(--f-floor) 0 3px,#6d4a05 3px 6px)}
.sw-prem{background:#7a5aa8}
.sw-plat{background:var(--f-plat)}
.sw-crea{background:var(--f-crea)}
.m-buy ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:5px}
.m-buy li{display:flex;align-items:center;gap:9px;font-size:13.5px;line-height:1.4}
.m-buy li i{flex:none;width:12px;height:12px;border-radius:3px}
.m-buy li span{flex:1;min-width:0;color:var(--muted)}
.m-buy li b{font:600 13.5px var(--mono)}
.m-foot{font-size:12.5px;color:var(--muted);margin:12px 0 0;line-height:1.5}

/* sections */
.sec{padding:54px 0 0}
.sec>h2{font-weight:800;font-size:clamp(24px,4.2vw,34px);line-height:1.15;letter-spacing:-.02em;margin:0 0 10px;text-wrap:balance}
.sec>.say{font-size:16.5px;line-height:1.65;color:var(--ink);opacity:.84;margin:0 0 20px;max-width:44em}

/* live checks */
.console{background:#070A10;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.console .bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.console .bar button{border:1px solid var(--line);background:var(--raise);color:var(--ink);border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600}
.console .bar button:disabled{opacity:.5;cursor:default}
.console ol{list-style:none;margin:0;padding:6px 0;font:13.5px/1.5 var(--mono)}
.console li{display:grid;grid-template-columns:5.2em 4.6em minmax(0,1fr);gap:0 10px;padding:6px 14px;align-items:baseline}
.console li .st{font-weight:600;white-space:nowrap}
.console li .ms{color:var(--muted);text-align:right;white-space:nowrap}
.console li .tx{min-width:0;overflow-wrap:anywhere;color:var(--ink)}
.console li .tx small{display:block;font-size:12.5px;color:var(--muted)}
.console li .tx a{color:var(--accent);text-decoration:none}
.console li .tx a:hover{text-decoration:underline}
.console li.ok .st{color:var(--good)}
.console li.bad .st{color:var(--bad)}
.console li.na .st,.console li.run .st{color:var(--muted)}
.console li.head{display:block;padding:10px 14px 2px;color:var(--muted);font-family:var(--body);font-weight:700;font-size:13.5px}
@media (max-width:560px){.console li{grid-template-columns:minmax(0,1fr);gap:1px}.console li .ms{display:none}}
.console .sum{padding:10px 14px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted);line-height:1.5}

/* steps, facts, doors */
.steps{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@media (min-width:760px){.steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
.steps li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.steps li::before{content:counter(s);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:var(--bg);font:600 13px var(--mono);margin-bottom:10px}
.steps b{display:block;font-size:16px;margin-bottom:4px}
.steps span{display:block;font-size:14.5px;line-height:1.55;color:var(--muted)}
.facts{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.facts div{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:13px 16px;border-top:1px solid var(--line)}
.facts div:first-child{border-top:0}
@media (min-width:720px){.facts div{grid-template-columns:minmax(0,15em) minmax(0,1fr);gap:18px}}
.facts dt{font-weight:700;font-size:15px}
.facts dd{margin:0;font-size:15px;line-height:1.55;color:var(--ink);opacity:.86}
.facts dd.no{opacity:1}
.facts dd.no::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--floor);margin-inline-end:8px}
.two{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
@media (min-width:820px){.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.door{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px}
.door h3{font-size:18px;margin:0 0 6px}
.door p{font-size:14.5px;line-height:1.55;color:var(--muted);margin:0 0 12px}
.door ol{margin:0 0 14px;padding-inline-start:20px;font-size:14.5px;line-height:1.6}
.door li{margin-bottom:3px}
.end{margin-top:60px;border-top:1px solid var(--line);padding:22px 0 40px;font-size:13.5px;line-height:1.6;color:var(--muted)}
.end a{color:var(--muted)}
.end p{margin:0 0 6px;max-width:60em}

/* stress test */
.stress{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
.s-btns{display:flex;flex-wrap:wrap;gap:10px}
.s-read{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:16px 0 14px}
@media (min-width:760px){.s-read{grid-template-columns:repeat(5,minmax(0,1fr))}}
.s-read div{background:var(--raise);padding:10px 12px}
.s-read span{display:block;font-size:12.5px;color:var(--muted)}
.s-read b{display:block;font:600 17px var(--mono);margin-top:3px}
.s-read .good b{color:var(--good)}
.s-read .bad b{color:var(--bad)}
.s-chart{display:block;width:100%;height:auto;overflow:visible;margin-bottom:6px}
.s-chart .grid{stroke:var(--line);stroke-width:1}
.s-chart .tick{font:12px var(--mono);fill:var(--muted)}
.s-chart .ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.s-chart .ln-price{stroke:var(--f-plat)}
.s-chart .ln-floor{stroke:var(--f-floor)}
.s-chart .s-res{fill:var(--f-floor);opacity:.22}
.s-chart .s-owed{stroke:var(--ink)}
.s-chart .mark{stroke:var(--muted);stroke-width:1}
.sw-res{background:var(--f-floor);opacity:.5;height:10px !important;border-radius:2px}
.sw-owed{background:var(--ink)}
@media (max-width:620px){.s-chart .tick{font-size:20px}.s-chart .ln{stroke-width:3.4}.s-chart .grid,.s-chart .mark{stroke-width:1.6}}
.s-axis{font-size:12.5px;color:var(--muted);margin:0 0 12px;text-align:center}
.s-cols{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}
@media (min-width:980px){.s-cols{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:30px;align-items:start}.s-say{padding-top:26px}}
.s-say p{font-size:15px;line-height:1.6;margin:0 0 8px;max-width:60em}

/* the welcome window: shown once to a new visitor, and again from "How to help test" */
.welcome{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:26px 26px 20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px rgba(0,0,0,.6)}
.welcome::backdrop{background:rgba(5,7,12,.72)}
.welcome .w-x{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;background:none;color:var(--muted);cursor:pointer}
.welcome .w-x:hover{color:var(--ink);background:var(--raise)}
.welcome .w-tag{margin:0 0 10px;font:600 13px var(--mono);color:var(--floor)}
.welcome h2{margin:0 44px 12px 0;font-size:27px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
.welcome .w-say{margin:0 0 16px;font-size:15.5px;line-height:1.6;color:var(--ink);opacity:.86}
.welcome .w-steps{margin:0 0 18px;padding:0 0 0 22px;display:grid;gap:8px;font-size:15px;line-height:1.5;color:var(--muted)}
.welcome .w-steps b{color:var(--ink);font-weight:700}
.welcome .w-go{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.welcome .w-go .btn{flex:1 1 200px;text-align:center;padding:13px 16px}
.welcome .w-fb{border:1px solid var(--line);border-radius:12px;background:var(--raise);padding:12px 14px;font-size:14.5px;line-height:1.55;color:var(--muted)}
.welcome .w-fb b{color:var(--ink)}
.welcome .w-fb span{display:block;margin-top:4px}
.welcome .w-fb a{color:var(--accent);font-weight:700;text-decoration:none}
.welcome .w-fb a:hover{text-decoration:underline}
.welcome .w-later{display:block;margin:14px auto 0;padding:10px 12px;min-height:44px}
.strip .linkbtn{margin-left:6px}
@media (max-width:480px){.welcome{padding:22px 18px 16px}.welcome h2{font-size:23px}}
