/* Toolboks landing page. Tokens mirror DESIGN.md; the page is a single dark world by choice. */
:root {
  color-scheme: dark;
  --ink: #070809;          /* page ground, darker than the app so the window lifts off it */
  --rail: #0a0b0c;         /* sidebar, title bar, status bar */
  --window: #0e0f11;
  --card: #15161a;
  --sel: #1b1c21;
  --line: #24262c;
  --line-soft: #1c1e22;
  --fg: #e8e9ec;
  --muted: #9a9ea8;
  --accent: #8b5cf6;
  --accent-text: #b39dfa;
  --accent-wash: #8b5cf633;
  --accent-fill: #7a4be8;  /* button fill: white text passes 4.5:1 here, the plain accent does not */
  --mem: #b39dfa; --gpu: #3ecf8e; --disk: #f0a83a; --net: #45b8f0; --second: #9a9ea8;
  --ok: #3ecf8e; --watch: #f0a83a; --bad: #e5534b;

  --display: "Schibsted Grotesk", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --data: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
html { scrollbar-color: #2c2e35 var(--ink); }
.num { font-family: var(--data); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--body); text-decoration: none;
  padding: 14px 20px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn:hover { background: var(--sel); border-color: #33363e; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.btn.primary:hover { background: #6c3fdc; border-color: #6c3fdc; }
.btn.small { padding: 9px 14px; font-size: .875rem; border-radius: 6px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--ink) 88%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--ink); }
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.125rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; }
.mark svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { margin-left: auto; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: 72px 0; }
.trace { position: absolute; inset: 0 0 auto 0; height: var(--trace-h, 720px); z-index: -1; cursor: crosshair; }
.trace canvas { width: 100%; height: 100%; display: block; }
.trace-tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: .8125rem; line-height: 1.45; color: var(--muted); white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.6); opacity: 0; transition: opacity .15s; }
.trace-tip b { color: var(--fg); font-weight: 600; }
.trace-tip i { display: inline-block; width: 10px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.trace-bar { position: absolute; left: 0; right: 0; top: calc(var(--trace-h, 720px) - 48px); z-index: -1; pointer-events: none; }
.trace-bar .wrap { display: flex; gap: 20px; font-size: .8125rem; color: var(--muted); }
.trace-bar b { color: var(--fg); font-weight: 600; }
.trace-bar span:last-child { margin-left: auto; }

.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 5.75rem); line-height: .98; letter-spacing: -0.04em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lede { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero .lede strong { color: var(--fg); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.cta-meta { font-size: .8125rem; color: var(--muted); }
.cta-meta .num { color: var(--fg); }

/* ---------- app window mock ---------- */
.stage { perspective: 1800px; margin-top: 300px; }
@media (max-width: 720px) { .stage { margin-top: 220px; } }
.win { --tilt: 16deg; transform: rotateX(var(--tilt)) scale(calc(1 - var(--tilt) / 200deg)); transform-origin: 50% 0;
  background: var(--window); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 2px 0 rgba(255,255,255,.02) inset;
  display: grid; grid-template-rows: 34px 1fr 24px; height: 560px; font-size: 12px; line-height: 1.4; }
.win-title { background: var(--rail); display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 12px; }
.win-title .mark { width: 14px; height: 14px; border-radius: 4px; }
.win-title .mark svg { width: 9px; height: 9px; }
.win-ctl { margin-left: auto; display: flex; gap: 20px; color: var(--muted); }
.win-body { display: grid; grid-template-columns: 170px 240px 1fr; min-height: 0; }
.win-side { background: var(--rail); border-right: 1px solid var(--line-soft); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.win-side .it { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--muted); }
.win-side .it .ic { width: 15px; height: 15px; }
.win-side .it.on { background: var(--accent-wash); color: var(--fg); }
.win-side .sub { padding: 5px 8px 5px 33px; color: var(--muted); border-radius: 6px; }
.win-side .sub.on { background: var(--sel); color: var(--fg); }
.win-side .it:last-child { margin-top: auto; }
.win-list { border-right: 1px solid var(--line-soft); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.res { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.res.on { background: var(--sel); }
.res canvas { width: 58px; height: 22px; }
.res b { display: block; font-weight: 600; color: var(--fg); }
.res small { color: var(--muted); font-size: 11px; }
.res .v { font-weight: 600; font-family: var(--data); font-size: 12px; font-variant-numeric: tabular-nums; }
.win-main { padding: 12px 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; }
.win-main header { display: flex; align-items: baseline; gap: 10px; }
.win-main header b { font-size: 15px; }
.win-main header span { color: var(--muted); }
.win-main header .pills { margin-left: auto; display: flex; background: var(--rail); border: 1px solid var(--line-soft); border-radius: 7px; padding: 2px; }
.win-main header .pills i { font-style: normal; padding: 3px 8px; border-radius: 5px; color: var(--muted); }
.win-main header .pills i.on { background: var(--sel); color: var(--fg); }
.gcard { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-height: 0; overflow: hidden; }
.gcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 92px; }
.cores .gcard span { position: absolute; top: 7px; left: 9px; right: 9px; display: flex; justify-content: space-between; color: var(--muted); z-index: 1; }
.cores .gcard span b { color: var(--fg); font-family: var(--data); font-weight: 500; }
.win-status { background: var(--rail); border-top: 1px solid var(--line-soft); display: flex; gap: 18px; align-items: center; padding: 0 12px; color: var(--muted); font-size: 11px; }
.win-status span:last-child { margin-left: auto; }
@media (max-width: 900px) { .win-body { grid-template-columns: 52px 1fr; } .win-list { display: none; } .win-side .it span, .win-side .sub { display: none; } .win { height: 460px; } }
@media (max-width: 520px) { .cores { grid-template-columns: repeat(2, 1fr); height: 110px; } .cores .gcard:nth-child(n+3) { display: none; } .win { height: 400px; } .win-main header span { display: none; } }

/* ---------- section scaffolding ---------- */
section.block { padding-block: 140px 0; }
.sec-head { max-width: 760px; }
.sec-head h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.sec-head p { margin-top: 18px; color: var(--muted); max-width: 36em; font-size: 1.125rem; }

/* ---------- tools tour ---------- */
.tour { display: grid; grid-template-columns: 252px 1fr; gap: 48px; margin-top: 64px; align-items: start; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); background: var(--rail); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px; text-decoration: none; color: var(--muted);
  font-size: .9375rem; transition: background .15s, color .15s; }
.rail a:hover { color: var(--fg); background: var(--sel); }
.rail a.on { background: var(--accent-wash); color: var(--fg); }
.rail-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; font-size: .8125rem; font-weight: 600; color: var(--accent-text); }
.rail-head .ic { width: 17px; height: 17px; }
.vbadge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px; padding: 3px 9px 3px 6px; border-radius: 99px;
  background: var(--accent-wash); color: var(--accent-text); font: 500 .75rem/1.2 var(--body); letter-spacing: 0; white-space: nowrap; }
.vbadge .ic { width: 15px; height: 15px; }
.pcopy h3 .vbadge { display: flex; width: fit-content; margin: 12px 0 0; }
.rail hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 4px; }
.rail .tag { margin-left: auto; font-size: .6875rem; color: var(--muted); }
.panels { display: flex; flex-direction: column; gap: 120px; min-width: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; scroll-margin-top: 120px; }
.panel:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel:nth-child(even) .pcopy { order: 2; }
.pcopy h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.pcopy .by { font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.pcopy p { margin-top: 14px; color: var(--muted); }
.pcopy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9375rem; }
.pcopy li { display: flex; gap: 10px; }
.pcopy li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .6em; flex: none; }
.pcopy .addon { display: inline-block; margin-top: 18px; font-size: .8125rem; color: var(--accent-text); }
.demo { background: var(--window); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 13px; line-height: 1.45; min-width: 0; }
.demo-note { margin-top: 10px; font-size: .75rem; color: var(--muted); }
@media (max-width: 980px) {
  .tour { grid-template-columns: 1fr; gap: 24px; }
  .rail { flex-direction: row; overflow-x: auto; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 20; border-radius: 10px; scrollbar-width: none; }
  .rail a { white-space: nowrap; padding: 8px 12px; }
  .rail a span.tag, .rail hr { display: none; }
  .panel, .panel:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .panel:nth-child(even) .pcopy { order: 0; }
  .panels { gap: 88px; }
}

/* memory demo */
.btn { white-space: nowrap; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--watch); flex: none; transition: background .3s; }
.verdict b { display: block; font-size: 18px; font-weight: 600; }
.verdict small { color: var(--muted); font-size: 12px; }
.verdict .btn { margin-left: auto; }
.membar { display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 16px; background: var(--card); }
.membar i { display: block; height: 100%; transition: width 1.4s var(--ease); }
.memkey { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.memkey span { display: inline-flex; align-items: center; gap: 6px; }
.memkey span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mem-result { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; min-height: 2.9em; }
.mem-result b { color: var(--fg); font-weight: 600; }

/* resource demo */
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rcard { position: relative; height: 112px; }
.rcard .lbl { position: absolute; z-index: 1; left: 10px; top: 8px; right: 10px; display: flex; justify-content: space-between; font-size: 12px; }
.rcard .lbl b { font-weight: 600; }
.rcard .lbl span { font-family: var(--data); font-size: 12px; }
.rcard .foot { position: absolute; z-index: 1; left: 10px; bottom: 7px; font-size: 11px; color: var(--muted); }

/* debloat demo */
.dlist { display: grid; gap: 2px; }
.drow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 8px; }
.drow:hover { background: var(--card); }
.drow input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.drow b { display: block; font-weight: 500; }
.drow small { color: var(--muted); font-size: 12px; }
.drow .st { font-size: 12px; color: var(--muted); }
.drow .st.done { color: var(--ok); }
.dfoot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.dfoot p { color: var(--muted); font-size: 12.5px; margin-right: auto; }

/* system profiles */
.prof-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.prof-head .aic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.prof-head .aic .ic { width: 18px; height: 18px; color: var(--accent-text); }
.prof-head b { display: block; font-size: 15px; font-weight: 600; }
.prof-head small { color: var(--muted); font-size: 12px; }
.plog { list-style: none; margin: 10px 0 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font: 12px/1.7 var(--data); color: var(--muted); }
.plog:empty { display: none; }
.plog li span { color: var(--ok); }

/* event table */
.etable { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.etable th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.etable td { padding: 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etable td:first-child { width: 78px; font-family: var(--data); color: var(--muted); }
.etable tr.new td { animation: rowin .7s var(--ease); }
@keyframes rowin { from { background: var(--accent-wash); } to { background: transparent; } }
.lv { display: inline-flex; align-items: center; gap: 6px; }
.lv::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.etable th:nth-child(2), .etable td:nth-child(2) { width: 92px; }

/* disk treemap */
.tree { display: grid; grid-template-columns: 5fr 3fr 2fr; grid-template-rows: 90px 70px 56px; gap: 3px; height: 222px; }
.tree div { border-radius: 4px; padding: 7px 9px; font-size: 11.5px; display: flex; flex-direction: column; justify-content: space-between; color: #0b0b0d; font-weight: 600; transition: filter .15s; min-width: 0; overflow: hidden; }
.tree div:hover { filter: brightness(1.15); }
.tree div small { font-family: var(--data); font-weight: 500; opacity: .75; }
.tree .a { grid-row: 1 / 3; background: #6a48c9; color: #fff; }
.tree .a small, .tree .g small, .tree .e small, .tree .f small { opacity: 1; }
.tree .b { background: #f0a83a; }
.tree .c { background: #45b8f0; }
.tree .d { grid-column: 2 / 4; background: #3ecf8e; }
.tree .e { background: #2d2f37; color: var(--fg); }
.tree .f { background: #3a3d46; color: var(--fg); }
.tree .g { background: #24262c; color: var(--fg); }
.disk-meta { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 12px; }
.disk-meta b { color: var(--fg); font-weight: 600; }

/* macro */
.mac { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.steps { display: grid; gap: 2px; align-content: start; font-size: 12px; }
.steps div { padding: 7px 8px; border-radius: 6px; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.steps div b { color: var(--fg); font-weight: 500; }
.steps div.on { background: var(--sel); }
.canvas-area { background: var(--card); border: 1px solid var(--line); border-radius: 8px; position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
.canvas-area svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mpath { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 0; }
.inview .mpath { animation: draw 3.2s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 520; } 60%, 100% { stroke-dashoffset: 0; } }
.mac .playrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.track { flex: 1; height: 4px; background: var(--card); border-radius: 2px; position: relative; overflow: hidden; }
.track i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--accent); }
.inview .track i { animation: fill 3.2s linear infinite; }
@keyframes fill { from { width: 0; } 60%, to { width: 100%; } }
@media (max-width: 520px) { .mac { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; } }

/* audio */
.meter { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; height: 64px; align-items: end; }
.meter i { display: block; background: var(--gpu); border-radius: 2px; height: 10%; transition: height .12s linear; }
.meter i.hot { background: var(--watch); }
.sliders { display: grid; gap: 14px; margin-top: 18px; }
.sl { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.sl input { width: 100%; accent-color: var(--accent); }
.sl output { font-family: var(--data); color: var(--fg); text-align: right; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.sw { width: 34px; height: 20px; border-radius: 10px; background: var(--accent); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* ---------- add-on browser ---------- */
.wall { margin-top: 56px; display: grid; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wrow { display: flex; overflow: hidden; }
.wtrack { display: flex; gap: 10px; flex: none; padding-right: 10px; animation: drift var(--dur, 90s) linear infinite; }
.wrow.rev .wtrack { animation-direction: reverse; }
.wall:hover .wtrack { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-soft); white-space: nowrap; font-size: .9375rem; color: var(--fg); }
.chip .aic { width: 30px; height: 30px; border-radius: 8px; }
.chip .aic .ic { width: 16px; height: 16px; color: var(--muted); }
.chip small { color: var(--muted); font-size: .8125rem; }
.chip.v .aic .ic { color: var(--accent-text); }
.alist { max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2c2e35 transparent; }
.lfoot { padding: 12px; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--line-soft); margin-top: 6px; }
.store { margin-top: 56px; background: var(--window); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.store-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: var(--rail); }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; flex: 1 1 220px; max-width: 320px; color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: .9375rem; padding: 10px 0; width: 100%; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search .ic { width: 17px; height: 17px; }
.cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cats button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .875rem; padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.cats button:hover { color: var(--fg); }
.cats button.on { background: var(--sel); color: var(--fg); }
.store-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 440px; }
.alist { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line-soft); }
.arow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 8px; cursor: pointer; }
.arow:hover { background: var(--card); }
.arow.on { background: var(--sel); }
.aic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--fg); }
.arow.on .aic { border-color: #33363e; }
.aic .ic { width: 20px; height: 20px; }
.arow b { font-weight: 600; font-size: .9375rem; }
.arow .pub { color: var(--muted); font-size: .8125rem; margin-left: 6px; }
.arow .vbadge { margin-left: 6px; padding: 2px 7px 2px 4px; font-size: .6875rem; }
.arow .vbadge .ic { width: 13px; height: 13px; }
.arow p { color: var(--muted); font-size: .8125rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.astate { font-size: .8125rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.astate.ok { color: var(--ok); }
.astate .ic { width: 15px; height: 15px; }
.aempty { padding: 32px 16px; color: var(--muted); font-size: .9375rem; }
.adetail { padding: 20px; display: flex; flex-direction: column; gap: 16px; font-size: .875rem; }
.adetail h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.adetail .meta { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.adetail p { color: var(--muted); }
.access { border-top: 1px solid var(--line-soft); padding-top: 14px; display: grid; gap: 10px; }
.access h4 { margin: 0; font: 600 .8125rem/1.3 var(--body); color: var(--fg); }
.access div { display: flex; gap: 10px; color: var(--muted); }
.access div .ic { width: 16px; height: 16px; color: var(--accent-text); margin-top: 2px; }
.trust { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: .8125rem; }
.trust .ic { width: 17px; height: 17px; flex: none; color: var(--accent-text); }
.trust.plain .ic { color: var(--muted); }
.adetail .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) {
  .store-body { grid-template-columns: 1fr; }
  .alist { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .search { max-width: none; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
}

/* ---------- honesty ---------- */
.truths { margin-top: 72px; border-top: 1px solid var(--line-soft); }
.truth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; padding-block: 44px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.truth h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
.truth p { margin-top: 12px; color: var(--muted); max-width: 30em; }
.statbar { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.statbar b { font-weight: 600; }
.statbar span { color: var(--muted); }
.statbar em { font-style: normal; color: var(--watch); font-size: 11px; border: 1px solid #f0a83a55; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.banner { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.banner button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 4px; border-radius: 4px; }
.banner button:hover { color: var(--fg); }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.flow span { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.flow span.last { border-color: var(--accent); color: var(--accent-text); }
.flow .ic { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 820px) { .truth { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- add-ons ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 0; }
.dev .caps { display: grid; gap: 10px; margin-top: 28px; font-size: .9375rem; }
.dev .caps div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.dev .caps code { font-family: var(--data); font-size: .8125rem; color: var(--accent-text); }
.dev .caps span { color: var(--muted); }
.code { background: var(--window); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.code header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: .8125rem; color: var(--muted); }
.code header b { color: var(--fg); font-weight: 500; font-family: var(--data); font-size: .8125rem; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 .8125rem/1.7 var(--data); color: #c9cbd2; }
.code .k { color: var(--accent-text); } .code .s { color: #8fd8b4; } .code .p { color: #6b6f7a; }
.drop { margin: 0 14px 14px; border: 1px dashed #3a3d46; border-radius: 8px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; }
.drop b { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .dev { grid-template-columns: 1fr; gap: 36px; } .dev .caps div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- download close ---------- */
.close { padding-block: 160px 120px; }
.close h2 { font-size: clamp(2.75rem, 9vw, 7rem); line-height: .95; letter-spacing: -0.045em; font-weight: 800; }
.close h2 .num { font-family: var(--display); letter-spacing: -0.045em; }
.close h2 .exe { color: var(--accent-text); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 48px; align-items: start; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.close .warn { margin-top: 18px; color: var(--muted); font-size: .875rem; max-width: 34em; }
@media (max-width: 820px) { .close-grid { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: 2px; } }

footer { border-top: 1px solid var(--line-soft); padding-block: 28px; color: var(--muted); font-size: .8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { text-decoration: none; } footer a:hover { color: var(--fg); }
footer .brand { font-size: .9375rem; color: var(--fg); }


/* ---------- document pages (privacy) ---------- */
.nav-links a[aria-current="page"] { color: var(--fg); }
footer a[aria-current="page"] { color: var(--fg); }
.doc { padding-block: 88px 120px; }
.doc-head { max-width: 46rem; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.doc-lede { margin-top: 24px; font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.45; color: var(--fg); text-wrap: pretty; }
.doc-meta { margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.doc-body { max-width: 42rem; margin-top: 24px; }
.doc-body section { padding-top: 56px; }
.doc-body h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 88px; }
.doc-body p { margin-top: 14px; color: #c9cbd1; text-wrap: pretty; }
.doc-body strong { color: var(--fg); font-weight: 600; }
.doc-body a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent); text-underline-offset: 3px; }
.doc-body a:hover { text-decoration-color: currentColor; }
.conn-list { margin-top: 28px; border-top: 1px solid var(--line); }
.conn { padding-block: 22px; border-bottom: 1px solid var(--line); }
.conn h3 { font-size: 1.0625rem; font-weight: 600; }
.conn p { margin-top: 6px; }
.conn dl { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 14px 0 0; font-size: .875rem; }
.conn dl div { display: flex; gap: 8px; }
.conn dt { color: var(--muted); }
.conn dd { margin: 0; color: var(--fg); font-weight: 500; }
@media (max-width: 720px) { .doc { padding-block: 56px 88px; } .doc-body section { padding-top: 44px; } }


/* entrance: content is visible at rest; this only adds a short rise */
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); filter: blur(4px); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .win { --tilt: 0deg !important; }
}

/* skip link: hidden until focused */
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--accent-fill); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .15s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
