/* Maben Sweep website. The Maben Awake stylesheet with Sweep's colour; Sweep's own styles are at the end.
   Maben Awake website. Built on the same craft as t3.codes: pure black, hairline white borders, the same fonts
   (system font, self-hosted Inter elsewhere, system monospace), large tight headings, real interface built in HTML.
   Outfit is only used for the maben wordmark. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-elev: #0a0a0a;
  --bg-card: #0d0d0d;
  --fg: #f5f5f5;
  --fg-muted: #a3a3a3;
  --fg-dim: #8a8a8a;
  --fg-faint: #525252;
  --border: #ffffff14;
  --border-strong: #ffffff24;
  --ok: #3cd3f0;
  /* The one action colour: the same green as the "awake / on" dots */
  --go: #3cd3f0;
  --go-hover: #6adffa;
  --cold: #64d2ff;
  --font: -apple-system, BlinkMacSystemFont, "Inter Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--font); letter-spacing: -.005em; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body > main { flex: 1 0 auto; width: 100%; }
p, h1, h2, h3, figure, dl, dd, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: .9em var(--mono); color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #000 4%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in, .foot-in { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.nav-in { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.lockup { display: inline-flex; align-items: baseline; gap: .28em; font: 600 18px/1 "Outfit", var(--font); letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
.lockup svg { height: .72em; width: auto; aspect-ratio: 68 / 58; }
.lockup .p { font-weight: 400; color: var(--fg-dim); margin-left: -.04em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--fg-muted); text-decoration: none; transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links .nav-dl { display: inline-flex; align-items: center; gap: 6px; color: #000; background: var(--go); padding: 7px 14px; border-radius: var(--radius-sm); }
.nav-dl .ic { width: 14px; height: 14px; margin-top: -2px; }
.nav-lang { font-size: 12px !important; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 6px; }
.nav-links .nav-dl:hover { color: #000; background: var(--go-hover); }

/* Buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: background-color .18s, border-color .18s, transform .18s;
}
.btn-primary { background: var(--go); color: #000; }
.btn-primary:hover { background: var(--go-hover); }
.btn-primary:active, .btn-ghost:active { transform: scale(.98); }
.btn-primary .ic { width: 18px; height: 18px; margin-top: -2px; }
.btn-ghost { color: var(--fg-muted); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--fg); border-color: #ffffff40; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 24px 0; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, #ffffff07 1px, transparent 1px), linear-gradient(#ffffff07 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-elev); font-size: 13px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color .18s, border-color .18s; }
.pill:hover { color: var(--fg); border-color: #ffffff40; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #3cd3f026; }
.pill .arr { color: var(--fg-dim); }
.hero h1 { max-width: 16ch; margin: 28px auto 22px; font-size: clamp(40px, 6.4vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.hero-sub { max-width: 680px; margin: 0 auto 36px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--fg-muted); text-wrap: balance; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-meta { font-size: 13px; color: var(--fg-dim); }

/* Floating marks around the headline: they settle in, then follow the pointer by depth */
.hero-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; --px: 0px; --py: 0px; }
.mark { position: absolute; left: calc(50% + var(--x) * var(--k, 1)); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth)); transition: translate .7s var(--ease); }
.mark-card { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 25%; background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: 0 12px 32px -16px #000000a6; color: var(--c); transform: rotate(var(--rot)); animation: mark-in 1s var(--ease) var(--d) both; }
.mark-card svg { width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The real menu, with two callouts tied to it */
.preview { position: relative; z-index: 2; max-width: var(--wrap); margin: 64px auto 0; padding-bottom: 32px; display: flex; justify-content: center; }
.preview::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.menu-shot { width: 380px; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -24px #000, 0 0 0 6px #ffffff06; }
.callout { position: absolute; top: 120px; display: flex; align-items: flex-start; gap: 12px; width: 230px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: 0 12px 32px -16px #000000a6; font-size: 13px; line-height: 1.45; }
.callout b { display: block; font-size: 15px; font-weight: 600; color: var(--fg); }
.callout span { color: var(--fg-dim); }
.callout::after { content: ""; position: absolute; top: 50%; width: 72px; height: 1px; background: var(--border-strong); }
.c-left { right: calc(50% + 190px + 72px); }
.c-left::after { left: 100%; }
.c-right { left: calc(50% + 190px + 72px); top: 330px; }
.c-right::after { right: 100%; }
.led { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--fg-faint); }
.led.on { background: var(--ok); box-shadow: 0 0 0 3px #3cd3f026; }
.led.cold { background: var(--cold); box-shadow: 0 0 0 3px #64d2ff26; }

/* Sections */
.sec { position: relative; max-width: calc(var(--wrap) + 48px); margin: 72px auto 0; padding: 72px 24px 0; }
.sec::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; translate: -50% 0; background: var(--border); }
.numbers + .sec { margin-top: 0; }
.numbers + .sec::before { display: none; }
.sec h2, .cta h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.sec h2 { max-width: 24ch; margin-bottom: 18px; }
.sec h2.center { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 40px; }
.lead, .copy > p { max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--fg-muted); }

.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; font-size: 15px; color: var(--fg-muted); }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks svg { flex: none; width: 15px; height: 15px; margin-top: 3px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks.col { flex-direction: column; font-size: 15px; }
.ticks b { color: var(--fg); font-weight: 600; font-family: var(--mono); font-size: 15px; }

/* Works-with strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.cell + .cell { border-left: 1px solid var(--border); }
.cell b { display: block; font-size: 15px; font-weight: 600; }
.cell code { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-dim); white-space: nowrap; }
.cell-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--c); }
.cell-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.works .ticks { padding-top: 22px; border-top: 0; }

/* Split sections: an interface mock beside the words */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.split.flip .mock { order: 2; }
.mock { display: flex; justify-content: center; }
.panel { width: 100%; max-width: 460px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 24px 64px -32px #000; overflow: hidden; font-size: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.frozen-count { display: inline-flex; align-items: center; gap: 6px; color: var(--cold); font-weight: 500; }
.frozen-count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ok { color: var(--ok); font-weight: 500; }
.apps { list-style: none; padding: 6px 0; }
.app { display: flex; align-items: center; gap: 12px; padding: 9px 18px; transition: opacity .5s var(--ease); }
.app-ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--c); color: #000; font-size: 12px; font-weight: 700; transition: filter .5s var(--ease); }
.app-nm { flex: 1; color: var(--fg); transition: color .5s var(--ease); }
.app .snow { width: 14px; height: 14px; color: var(--cold); opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.app .snow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mode { min-width: 86px; text-align: right; font-size: 12px; color: var(--fg-dim); }
.mode.always { color: var(--fg-muted); }
.mode.ai { color: var(--go); }
.app.fz .app-ic { filter: grayscale(1) brightness(.55); }
.app.fz .app-nm { color: var(--fg-dim); }
.app.fz .snow { opacity: 1; transform: none; }
.panel-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }
.panel-foot .led { margin-top: 0; }

.stats { padding: 6px 18px; }
.stats > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; }
.stats > div + div { border-top: 1px solid var(--border); }
.stats dt { color: var(--fg-muted); }
.stats dd { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.stats .good { color: var(--ok); }
.bar { width: 64px; height: 6px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg-muted); border-radius: 3px; }
.timeline { display: flex; height: 8px; margin: 8px 18px 0; border-radius: 4px; background: #ffffff10; overflow: hidden; }
.tl-awake { background: var(--ok); opacity: .85; transform-origin: left; }
.tl-labels { display: flex; justify-content: space-between; padding: 10px 18px 16px; font-size: 12px; color: var(--fg-dim); }

/* Command section: terminal beside a card */
.cli-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.term { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ffffff1f; }
.term-bar em { flex: 1; margin-right: 40px; text-align: center; font: 400 12px/1 var(--mono); font-style: normal; color: var(--fg-dim); }
.term pre { margin: 0; padding: 18px 20px 22px; font: 400 13px/1.75 var(--mono); color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .ln { display: block; }
.term .ln b { font-weight: 400; color: #4c9dff; }
.term .out { color: var(--fg-dim); }
.term .caret { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--fg); animation: blink 1s steps(2, end) infinite; }
.js .term:not(.done) .ln { visibility: hidden; }
.js .term:not(.done) .ln.shown { visibility: visible; }
.card { display: flex; flex-direction: column; justify-content: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.card .ticks { margin-top: 0; gap: 16px; }
.card-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-dim); }

/* Safety */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.trio > div { padding: 28px; }
.trio > div + div { border-left: 1px solid var(--border); }
.trio-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--fg); }
.trio-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trio h3 { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.trio p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }

/* Closing */
.cta { position: relative; margin-top: 72px; padding: 120px 24px 140px; border-top: 1px solid var(--border); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, #ffffff06 1px, transparent 1px), linear-gradient(#ffffff06 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(60% 70% at 50% 40%, #000 20%, transparent 70%); }
.cta h2 { position: relative; font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.cta p { position: relative; max-width: 520px; margin: 24px auto 36px; font-size: 20px; color: var(--fg-muted); text-wrap: balance; }
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--border); }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--fg-dim); }
.foot-l { display: inline-flex; align-items: center; gap: 10px; }
.foot-mark svg { display: block; width: 16px; height: auto; aspect-ratio: 68 / 58; color: var(--fg); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--fg-muted); text-decoration: none; transition: color .18s; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--fg); }

/* ───── Text pages: support, privacy, changelog, 404 ───── */
.doc { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 72px 24px 140px; }
.doc-grid { display: grid; grid-template-columns: 200px minmax(0, 680px); gap: 0 80px; align-items: start; }
.doc-single > p, .doc-single > .actions { max-width: 680px; }
.toc { position: sticky; top: 100px; padding-top: 8px; }
.toc > p { font-size: 13px; color: var(--fg-dim); }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; font-size: 15px; color: var(--fg-dim); text-decoration: none; transition: color .18s, border-color .18s; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-left-color: var(--fg); }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.doc .lead { margin-top: 18px; max-width: none; font-size: 20px; line-height: 1.6; color: var(--fg-muted); }
.doc .meta { margin-top: 12px; font-size: 13px; color: var(--fg-dim); }
.doc .actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.doc .actions .req { margin: 0; font-size: 15px; color: var(--fg-dim); }
.doc .actions + p { margin-top: 24px; }
.doc .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--go); color: #000; font-size: 15px; font-weight: 600; text-decoration: none; }
.doc .btn:hover { background: var(--go-hover); }
.doc-body > section { margin-top: 64px; scroll-margin-top: 100px; }
.doc-head { scroll-margin-top: 100px; }
.doc h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.doc h3 { margin-top: 32px; font-size: 17px; font-weight: 600; }
.doc h2 + h3 { margin-top: 18px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--fg-muted); }
.doc p { margin-top: 14px; }
.doc h2 + p { margin-top: 10px; }
.doc h3 + p, .doc h3 + ul { margin-top: 6px; }
.doc ul { margin: 14px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--fg-faint); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.doc a:not(.btn):hover { text-decoration-color: var(--fg); }
.doc .toc a { text-decoration: none; color: var(--fg-dim); }
.doc .toc a.on, .doc .toc a:hover { color: var(--fg); }
.doc code { overflow-wrap: anywhere; }
.doc-single .actions a:not(.btn) { color: var(--fg-muted); text-decoration: none; }
.req-list { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.req-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 24px; padding: 14px 20px; }
.req-list > div + div { border-top: 1px solid var(--border); }
.req-list dt { font-weight: 600; font-size: 15px; }
.req-list dd { font-size: 15px; color: var(--fg-muted); }
.faq { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { position: relative; padding: 16px 48px 16px 20px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--fg); transition: background-color .18s; }
.faq summary:hover { background: #ffffff05; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--fg-dim); border-bottom: 1.5px solid var(--fg-dim); transform: translateY(-70%) rotate(45deg); transition: transform .24s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > p { margin: 0; padding: 0 20px 18px; font-size: 15px; }
.release + .release { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.release h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release h2 span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--fg-dim); }

/* ───── Motion ───── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 24px)) rotate(calc(var(--rot) + 24deg)) scale(.6); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes blink { 50% { opacity: 0; } }
[data-rise] { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1280px) { .hero-float { --k: .82; } }
@media (max-width: 1100px) {
  .hero-float { --k: .74; }
  .callout { display: none; }
  .mark:nth-child(5), .mark:nth-child(6) { display: none; }
}
@media (max-width: 900px) {
  .split, .cli-grid { grid-template-columns: minmax(0, 1fr); }
  .split .copy { order: -1; }
  .split .mock { order: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:nth-child(3) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .mark { display: none; }
}
@media (max-width: 640px) {
  .nav-in, .foot-in { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 18px; }
  .hero { padding: 48px 16px 0; }
  .hero h1 { margin-top: 22px; }
  .menu-shot { width: min(340px, 100%); }
  .preview { margin-top: 48px; }
  .sec { padding: 88px 16px 0; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--border); }
  .cell code { white-space: normal; }
  .mode { min-width: 0; }
  .cta { margin-top: 48px; padding: 72px 16px 88px; }
  .doc { padding: 48px 16px 100px; }
  .req-list > div { grid-template-columns: minmax(0, 1fr); }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rise], .mark-card { animation: none; }
  .mark { transition: none; translate: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .term .caret { animation: none; }
  .app, .app-ic, .app-nm, .app .snow { transition: none; }
}

/* ───── Logos of the tools it works with ───── */
.logo { display: block; width: 46%; height: auto; }
.t3 { font: 800 1em/1 var(--font); letter-spacing: -.04em; color: #fff; }
.mark-card .t3 { font-size: calc(var(--s) * .3); }
.cell-ic .logo { width: 20px; }
.cell-ic .t3 { font-size: 13px; }
.cell-ic { color: var(--fg-muted); }

/* ───── The menu, rebuilt in HTML ───── */
.mm { width: 380px; padding: 10px; border-radius: 14px; background: #0e0e0f; border: 1px solid #ffffff1f; box-shadow: 0 40px 80px -24px #000, 0 0 0 6px #ffffff06;
  font: 13px/1.3 var(--font); color: #ececf0; text-align: left; -webkit-font-smoothing: antialiased; }
.mm svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.mm-orb { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #7fe08f, #30d158); box-shadow: 0 6px 16px -6px #30d158; }
.mm-orb svg { width: 20px; height: 20px; fill: #050a06; stroke: none; }
.mm-head b { display: block; font-size: 15px; font-weight: 600; }
.mm-head div span { font-size: 12px; color: #a1a1a8; }
.mm-toggle { margin-left: auto; width: 34px; height: 20px; border-radius: 10px; background: #69696f; position: relative; }
.mm-toggle i { position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #f2f2f2; box-shadow: 0 1px 2px #0006; }
.mm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #ffffff17; }
.mm-tiles span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 10px; background: #171718; font-size: 11px; font-weight: 600; }
.mm-tiles svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fe08f, #30d158); color: #000; stroke-width: 2; }
.mm-sec { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 4px; font-size: 11.5px; font-weight: 600; color: #9b9ba3; }
.mm-sec a { color: #5a9af8; font-weight: 500; }
.mm-fz { display: inline-flex; align-items: center; gap: 5px; color: var(--cold); font-weight: 500; }
.mm-fz svg { width: 12px; height: 12px; stroke-width: 2.2; }
.mm ul { list-style: none; padding: 0; }
.mm-req li, .mm-apps li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; }
.mm-ri { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffffff14; color: #d6d6d6; }
.mm-ri svg { width: 13px; height: 13px; }
.mm-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-apps .mm-nm { flex: 0 1 auto; }
.mm-apps .mm-mode { margin-left: auto; }
.mm-t { font-size: 12px; color: #9b9ba3; font-variant-numeric: tabular-nums; }
.mm-x { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #ffffff14; color: #8a8a92; }
.mm-x svg { width: 9px; height: 9px; stroke-width: 2.4; }
.mm-ic { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--c); color: #000; font-size: 10px; font-weight: 800; letter-spacing: -.03em; }
.mm-ic[style*="#111"] { color: #fff; border: 1px solid #ffffff2a; }
.mm-app.fz .mm-ic { filter: grayscale(1) brightness(.6); }
.mm-app.fz .mm-nm { color: #8a8a92; }
.mm-snow { flex: none; width: 12px; height: 12px; margin-left: -4px; color: var(--cold); stroke-width: 2.2; }
.mm-mode { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #ececf0; }
.mm-mode svg { width: 12px; height: 12px; }
.mm-chev { width: 10px !important; height: 10px !important; stroke-width: 2.4; color: #a1a1a8; }
.mm-foot { display: flex; justify-content: space-between; margin-top: 6px; padding: 10px 8px 2px; border-top: 1px solid #ffffff17; font-size: 12.5px; }
.mm-foot span { display: inline-flex; align-items: center; gap: 7px; }
.mm-foot svg { width: 14px; height: 14px; }
kbd { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border: 1px solid #ffffff24; border-bottom-width: 2px; border-radius: 5px; font: 500 10.5px/1 var(--font); color: #a1a1a8; background: #ffffff08; }
.mm-foot kbd { margin-left: 2px; }

/* ───── Numbers under the hero ───── */
.numbers { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 56px 24px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers > div { padding: 4px 24px 4px 0; }
.numbers > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.numbers b { display: block; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.numbers span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--fg-dim); }
.works { margin-top: 0; }

/* Freeze panel footer hint */
.foot-kbd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-dim); }

/* What the visitor's device can do (app.js) */
.hero-meta a { color: var(--fg-muted); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.hero-meta a:hover { color: var(--fg); }
.os-note { color: var(--fg-muted); }

/* ───── Download page ───── */
.doc .btn .ic { width: 15px; height: 15px; margin: -2px 7px 0 0; }
.files { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px 20px; }
.file + .file { border-top: 1px solid var(--border); }
.file b { display: block; font-size: 17px; }
.file > div > span { display: block; font-size: 15px; color: var(--fg-muted); }
.file .sum { display: block; margin-top: 8px; font-size: 12px; color: var(--fg-dim); word-break: break-all; }
.file .size { grid-column: 2; justify-self: end; font-size: 12px; color: var(--fg-dim); }
.file .btn, .btn-line { grid-row: 1; grid-column: 2; }
.btn-line { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--fg) !important; text-decoration: none !important; font-size: 15px; font-weight: 600; }
.btn-line:hover { border-color: #ffffff40; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 44px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-elev); font-size: 13px; font-weight: 600; color: var(--fg); }
.steps li b { color: var(--fg); }

@media (max-width: 1100px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) {
  .mm { width: 100%; max-width: 360px; }
  .numbers { padding: 40px 16px 0; }
  .numbers b { font-size: 28px; }
  .sec { margin-top: 48px; padding-top: 48px; }
  .nav-lang { display: none; }
  .nav-dl .ic { display: none; }
  .file { grid-template-columns: minmax(0, 1fr); }
  .file .btn, .btn-line, .file .size { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* ───── Hero picture: a Claude Code session with the Maben Awake menu beside it ───── */
.hero-shot { position: relative; z-index: 2; max-width: var(--wrap); margin: 64px auto 0; padding: 0 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.shot-term { margin-top: 40px; margin-right: -60px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-elev); box-shadow: 0 40px 80px -30px #000; overflow: hidden; text-align: left; }
.shot-term .term-bar { height: 38px; }
.shot-term pre { margin: 0; padding: 22px 84px 28px 24px; min-height: 470px; font: 13.5px/1.8 var(--mono); color: #d4d4d4; white-space: pre-wrap; overflow-wrap: anywhere; }
.shot-term .p { color: #4c9dff; } .shot-term .dim { color: var(--fg-dim); } .shot-term .ok { color: var(--ok); } .shot-term .ai { color: #d97757; }
.hero-shot .mm { position: relative; z-index: 3; }
img.mm-ic, img.app-ic { background: none; border: 0; border-radius: 0; filter: none; object-fit: contain; }
.mm-app.fz img.mm-ic, .app.fz img.app-ic { filter: grayscale(1) brightness(.7); opacity: .8; }

/* GitHub link under the download button */
.gh-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color .18s; }
.gh-link:hover { color: var(--fg); }
.gh-link .gh { width: 16px; height: 16px; }
.gh-link .arr { opacity: .6; transition: transform .18s, opacity .18s; }
.gh-link:hover .arr { opacity: 1; transform: translate(2px, -2px); }

@media (max-width: 1100px) {
  .hero-shot { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .shot-term { order: 2; margin: -40px 0 0; width: 100%; }
  .shot-term pre { padding-right: 24px; min-height: 0; }
}
@media (max-width: 640px) {
  .shot-term { margin-top: 24px; }
  .shot-term pre { font-size: 12px; padding: 16px; }
  .hero-shot .mm { width: 100%; max-width: 360px; }
}

/* Header: plain text links like t3.codes, GitHub with its mark */
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }
.nav-gh .gh { width: 15px; height: 15px; }
@media (max-width: 640px) { .nav-links a[href="/changelog/"] { display: none; } }

/* Works-with cells never spill into their neighbour: long commands are cut off with an ellipsis */
.cell > div { min-width: 0; }
.cell code { overflow: hidden; text-overflow: ellipsis; }
/* Freeze demo: the snowflake sits right after the app name, the mode stays on the right */
.app .app-nm { flex: 0 1 auto; }
.app .mode { margin-left: auto; }

/* ───── Review pass ───── */
/* Wordmark as outlines (no font download) */
.lockup .wm { height: .98em; width: auto; aspect-ratio: auto; display: block; }
.lockup .wm .wm-p { fill: var(--fg-dim); }
.lockup { align-items: center; gap: .3em; font-size: 19px; }
.lockup > svg:first-child { height: .74em; }
/* Hero marks: real logos and app icons fill their tile */
.mark-card .logo.appicon { width: 64%; }
/* 12 · Download in the header: one quiet outline instead of colour */
.nav-links .nav-dl { color: var(--fg-muted); background: none; border: 0; padding: 0; border-radius: 0; }
.nav-links .nav-dl:hover { color: var(--fg); background: none; }
/* Card next to the terminal: plain bold, not code */
.ticks b.plain { font-family: var(--font); font-size: inherit; }
.card-meta code { font-size: 12px; }
/* 8 · phones: the menu alone tells the story; the terminal is for bigger screens */
@media (max-width: 640px) { .hero-shot .shot-term { display: none; } }
/* 4 · install steps after a download starts */
.dl-steps { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: 340px; padding: 18px 20px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: color-mix(in srgb, #0d0d0d 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px #000; animation: rise .45s var(--ease) both; }
.dl-steps[hidden] { display: none; }
.dl-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dl-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff26; border-top-color: var(--go); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-x { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--fg-dim); font-size: 20px; line-height: 1; cursor: pointer; }
.dl-x:hover { background: #ffffff10; color: var(--fg); }
.dl-steps ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.dl-steps li { position: relative; padding: 0 0 10px 32px; counter-increment: s; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.dl-steps li b { color: var(--fg); font-weight: 600; }
.dl-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; color: var(--fg); }
.dl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; }
.dl-foot a { color: var(--fg-dim); }
.dl-ok { height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); background: var(--fg); color: #000; font: 600 13px var(--font); cursor: pointer; }
@media (max-width: 640px) { .dl-steps { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .dl-steps, .dl-spin { animation: none; } }


/* ───── Maben Sweep: the app, built in HTML ───── */
:root { --warn: #ff9e33; }
.nav-links a[href="/#safe"] { white-space: nowrap; }
@media (max-width: 640px) { .nav-links a[href="/#safe"] { display: none; } }
.sw-warn { color: var(--warn); font-weight: 500; }
.panel-head .ok { color: var(--ok); font-weight: 500; }

/* Hero: the window, with the menu bar dropdown over its right edge */
.sw-shot { position: relative; z-index: 2; max-width: 1060px; margin: 64px auto 0; padding: 0 0 40px; }
.sw-win { display: grid; grid-template-columns: 190px minmax(0, 1fr); width: calc(100% - 170px); border: 1px solid var(--border-strong); border-radius: 14px; background: #09090a; box-shadow: 0 30px 60px -30px #000; overflow: hidden; font-size: 13px; line-height: 1.35; text-align: left; }
.sw-win svg, .sw-menu svg, .sw-folders svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 18px; background: #0e0e0f; border-right: 1px solid var(--border); }
.sw-lights { display: flex; gap: 7px; padding: 0 4px 22px; }
.sw-lights span { width: 11px; height: 11px; border-radius: 50%; background: #ffffff1f; }
.sw-lock { display: flex; align-items: baseline; gap: 5px; padding: 0 8px 22px; font: 600 15px/1 "Outfit", var(--font); }
.sw-lock svg { height: 11px; width: auto; aspect-ratio: 68 / 58; fill: currentColor; stroke: none; }
.sw-lock span { font-weight: 400; color: var(--fg-dim); }
.sw-nav { display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: var(--fg-muted); }
.sw-nav svg { width: 14px; height: 14px; }
.sw-nav.on { color: var(--fg); font-weight: 600; background: #3cd3f021; border-color: #3cd3f047; }
.sw-nav.on svg { color: var(--go); }
.sw-status { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 18px 8px 0; font-size: 11px; color: var(--fg-muted); }
.sw-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.sw-main { min-width: 0; padding: 26px 26px 22px; }
.sw-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sw-sub { margin-top: 3px; color: var(--fg-muted); }
.sw-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid #3cd3f04d; border-radius: 12px; background: #3cd3f014; }
.sw-card > div { flex: 1; min-width: 0; }
.sw-card b { display: block; font-size: 14.5px; font-weight: 600; }
.sw-card div span { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-orb { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--go); color: #000; }
.sw-orb svg { width: 17px; height: 17px; stroke-width: 2; }
.sw-btn { flex: none; display: inline-flex; align-items: center; height: 25px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: #ffffff14; font-size: 12px; font-weight: 600; }
.sw-btn.primary { background: var(--fg); border-color: transparent; color: #000; }
.sw-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: #131315; }
.sw-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px 9px 13px; }
.sw-row + .sw-row { border-top: 1px solid var(--border); }
.sw-chev { flex: none; width: 10px; height: 10px; color: var(--fg-dim); stroke-width: 2.6; }
.sw-name { flex: 1; min-width: 0; }
.sw-name b { display: flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.sw-name i { padding: 1px 6px; border-radius: 8px; background: #ffffff12; font: 600 10px/1.4 var(--font); color: var(--fg-muted); }
.sw-name span { display: block; margin-top: 1px; font-size: 12px; color: var(--fg-dim); white-space: nowrap; }
.sw-size { font-weight: 500; white-space: nowrap; transition: color .4s var(--ease); }
.sw-pill { flex: none; width: 76px; padding: 3px 0; border-radius: 10px; background: #ffffff12; text-align: center; font-size: 11px; font-weight: 600; color: var(--fg-muted); transition: color .4s var(--ease), background-color .4s var(--ease); }
.sw-row.idle .sw-pill { background: #ff9e331f; color: var(--warn); }
.sw-row.done .sw-pill { background: #3cd3f01f; color: var(--go); }
.sw-row.done .sw-size { color: var(--fg-dim); text-decoration: line-through; }
.sw-row.done .sw-btn { background: #ffffff14; border-color: var(--border); color: var(--fg-dim); }
.sw-more { flex: none; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: #ffffff0f; color: var(--fg-muted); }
.sw-more svg { width: 14px; height: 14px; stroke-width: 3; }

.sw-menu { position: absolute; z-index: 3; right: 0; top: 96px; width: 330px; border: 1px solid #ffffff2e; border-radius: 14px; background: #111113; box-shadow: 0 30px 60px -30px #000; font-size: 12.5px; line-height: 1.35; text-align: left; overflow: hidden; }
.sw-mhead { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; border-bottom: 1px solid var(--border); }
.sw-mhead .sw-orb { width: 34px; height: 34px; }
.sw-mhead div { flex: 1; min-width: 0; }
.sw-mhead b { display: block; font-size: 13px; font-weight: 600; }
.sw-mhead div span { font-size: 11px; color: var(--fg-muted); }
.sw-mscan { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #ffffff0f; color: var(--fg-muted); }
.sw-mscan svg { width: 12px; height: 12px; stroke-width: 2.2; }
.sw-msec { padding: 12px 20px 4px; font-size: 11px; font-weight: 600; color: var(--fg-muted); }
.sw-menu ul { list-style: none; margin: 0; padding: 0 14px; }
.sw-menu li { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 6px; }
.sw-ri { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffffff14; }
.sw-ri svg { width: 11px; height: 11px; stroke-width: 2.2; }
.sw-mn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-ago { font-size: 11px; color: var(--fg-dim); white-space: nowrap; }
.sw-ms { width: 52px; text-align: right; font-size: 11.5px; font-weight: 500; color: var(--fg-muted); white-space: nowrap; }
.sw-mbtn { display: block; margin: 10px 14px 12px; padding: 6px 0; border-radius: 7px; background: var(--fg); color: #000; text-align: center; font-size: 12px; font-weight: 600; }
.sw-mfoot { display: flex; justify-content: space-between; padding: 9px 16px 10px; border-top: 1px solid var(--border); font-size: 12px; }
.sw-mfoot span { display: inline-flex; align-items: center; gap: 7px; }
.sw-mfoot svg { width: 13px; height: 13px; }

/* Lists inside the section panels: folders in a project, shared caches */
.sw-folders { list-style: none; margin: 0; padding: 6px 0; }
.sw-f { display: flex; align-items: center; gap: 12px; padding: 9px 18px; }
.sw-f > svg { flex: none; width: 15px; height: 15px; color: var(--ok); stroke-width: 2.2; }
.sw-fn { flex: 1; min-width: 0; }
.sw-fn b { display: block; font-size: 15px; font-weight: 500; }
.sw-fn span { display: block; font-size: 13px; color: var(--fg-dim); }
.sw-fn code { font-size: 12px; color: var(--fg-muted); }
.sw-fs { font-size: 14px; font-weight: 500; white-space: nowrap; }
.sw-f.no > svg, .sw-f.no .sw-fn b, .sw-f.no .sw-fs { color: var(--fg-dim); }
.sw-f.no .sw-fs { font-weight: 400; }
.sw-folders .sw-f > svg[viewBox] { stroke-width: 2; }
.sw-folders .sw-btn { font-size: 12px; }
.panel .sw-f:has(.sw-btn) > svg { color: var(--fg-muted); stroke-width: 1.7; }

@media (max-width: 1100px) {
  .sw-win { width: calc(100% - 110px); }
  .sw-menu { width: 300px; }
}
@media (max-width: 900px) {
  .sw-win { width: 100%; }
  .sw-menu { display: none; }
}
@media (max-width: 640px) {
  .sw-shot { margin-top: 48px; }
  .sw-win { grid-template-columns: minmax(0, 1fr); }
  .sw-side, .sw-more, .sw-chev, .sw-card .sw-btn:not(.primary), .sw-row .sw-btn { display: none; }
  .sw-main { padding: 18px 14px 14px; }
  .sw-pill { width: 68px; }
}
@media (prefers-reduced-motion: reduce) { .sw-size, .sw-pill { transition: none; } }

/* ───── Home page. Its own layout, not the Awake one: a left-aligned hero with a disk that gets its space
   back, then numbered sections (a folder tree, the five checks, a timeline, the app, toolchains and caches). ───── */
.sx { --w: calc(var(--wrap) + 48px); }
.sx code { font-size: .88em; }
.sx-hero { max-width: var(--w); margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.sx-hero h1 { margin: 0 0 24px; font-size: clamp(44px, 6.1vw, 82px); line-height: .98; font-weight: 700; letter-spacing: -.048em; }
.sx-sub { max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--fg-muted); }
.sx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.sx-link { font-size: 15px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color .18s; }
.sx-link:hover { color: var(--fg); }
.sx-hcopy .hero-meta { margin-top: 14px; }

.sx-disk { position: relative; padding: 22px 22px 18px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg-elev); font-size: 14px; }
.sx-disk svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx-dhead { display: flex; justify-content: space-between; align-items: baseline; color: var(--fg-muted); }
.sx-dhead span:first-child { font-weight: 600; color: var(--fg); }
.sx-dhead b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--fg); }
.sx-bar { display: flex; gap: 3px; height: 26px; margin-top: 14px; }
.sx-bar i { min-width: 0; border-radius: 5px; transition: flex 1s var(--ease); }
.sx-bar i:first-child { border-radius: 8px 5px 5px 8px; }
.sx-bar i:last-child { border-radius: 5px 8px 8px 5px; }
.sx-used { background: #ffffff2e; }
.sx-idle { background: repeating-linear-gradient(135deg, var(--warn) 0 5px, #ff9e33b0 5px 10px); min-width: 0; }
.sx-space { background: var(--go); }
.sx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--fg-dim); }
.sx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sx-legend i { width: 9px; height: 9px; border-radius: 3px; }
.k-used { background: #ffffff2e; } .k-idle { background: var(--warn); } .k-space { background: var(--go); }
.sx-projs { list-style: none; margin: 20px 0 0; padding: 6px 0 0; border-top: 1px solid var(--border); }
.sx-proj { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 58px; align-items: center; gap: 16px; padding: 10px 0; }
.sx-proj + .sx-proj { border-top: 1px solid var(--border); }
.sx-pn b { display: block; font-weight: 500; transition: color .5s var(--ease); }
.sx-pn span { display: block; font-size: 12px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pbar { height: 8px; border-radius: 4px; background: #ffffff0f; overflow: hidden; }
.sx-pbar i { display: block; height: 100%; border-radius: 4px; background: var(--warn); transition: width .8s var(--ease), background-color .4s; }
.sx-pg { text-align: right; font-weight: 500; white-space: nowrap; transition: color .4s; }
.sx-proj.gone .sx-pbar i { width: 0 !important; }
.sx-proj.gone .sx-pn b { color: var(--fg-dim); }
.sx-proj.gone .sx-pg { color: var(--go); }
.sx-dfoot { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }
.sx-dfoot svg { flex: none; width: 16px; height: 16px; color: var(--go); }
.sx-state { flex: 1; min-width: 0; }
.sx-count { font-weight: 600; color: var(--fg); white-space: nowrap; }
.sx-disk.done .sx-count { color: var(--go); }

/* Numbered sections */
.sx-sec { position: relative; max-width: var(--w); margin: 0 auto; padding: 96px 24px; }
.sx-sec::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; translate: -50% 0; background: var(--border); }
.sx-sec h2 { margin-top: 18px; max-width: 18ch; font-size: clamp(30px, 3.7vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.032em; text-wrap: balance; }
.sx-intro > p, .sx-p { margin-top: 18px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--fg-muted); }
.sx-intro.wide h2 { max-width: 22ch; }

.sx-what { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.sx-tree { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); font: 13.5px/1.4 var(--mono); overflow: hidden; }
.sx-thead, .sx-tfoot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; color: var(--fg-muted); }
.sx-thead { border-bottom: 1px solid var(--border); }
.sx-thead span:first-child { color: var(--fg); font-weight: 600; }
.sx-thead span:last-child { color: var(--warn); }
.sx-tfoot { border-top: 1px solid var(--border); font-family: var(--font); font-size: 13px; }
.sx-tfoot b { color: var(--go); font-weight: 600; }
.sx-tree ul { list-style: none; margin: 0; padding: 10px 0; }
.sx-tree li { display: grid; grid-template-columns: 26px minmax(0, 1.1fr) 64px 46px minmax(0, 1.4fr); align-items: center; gap: 8px; padding: 6px 20px; color: var(--fg-dim); }
.sx-br { color: var(--fg-faint); }
.sx-tn { color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tsz { text-align: right; }
.sx-tst { font: 600 11px/1 var(--font); letter-spacing: .02em; }
.sx-tw { font-family: var(--font); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tree li.goes { background: #3cd3f012; box-shadow: inset 2px 0 0 var(--go); }
.sx-tree li.goes .sx-tn { color: var(--fg); text-decoration: line-through; text-decoration-color: #3cd3f0b0; }
.sx-tree li.goes .sx-tsz { color: var(--fg); }
.sx-tree li.goes .sx-tst { color: var(--go); }
.sx-tree li.goes .sx-tw { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); }

.sx-checks { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.sx-checks li { padding: 18px 24px 0 0; border-top: 1px solid var(--border-strong); }
.sx-checks h3 { margin-top: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.sx-checks p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
.sx-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.sx-out > div { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.sx-out b { font-size: 15px; font-weight: 600; }
.sx-out span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--fg-muted); }
.sx-out .safe b { color: var(--go); }
.sx-out .asks b { color: var(--warn); }
.sx-out .never b { color: var(--fg-muted); }

.sx-line { list-style: none; margin: 48px 0 0; padding: 0; max-width: 820px; }
.sx-line li { display: grid; grid-template-columns: 110px 140px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border); }
.sx-line li:last-child { border-bottom: 1px solid var(--border); }
.sx-when { font-size: 14.5px; color: var(--fg-dim); }
.sx-line h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.sx-line p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }

.sx-app .sw-shot { margin-top: 56px; padding-bottom: 0; max-width: none; }

.sx-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; }
.sx-two h2 { font-size: clamp(26px, 3vw, 36px); }
.sx-tools { margin-top: 30px; border-top: 1px solid var(--border); }
.sx-tool { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sx-tool b { font-size: 14.5px; font-weight: 500; }
.sx-tool span { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-tool code { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); font-size: 12px; color: var(--fg-muted); }
.sx-tool code.ask { border-color: #ff9e3340; color: var(--warn); }
.sx-caches { list-style: none; margin: 30px 0 0; padding: 0; }
.sx-caches li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 62px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.sx-caches li:first-child { border-top: 1px solid var(--border); }
.sx-cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-cbar { height: 8px; border-radius: 4px; background: #ffffff0f; }
.sx-cbar i { display: block; height: 100%; border-radius: 4px; background: var(--fg-muted); }
.sx-cg { text-align: right; font-weight: 500; white-space: nowrap; }
.sx-note { margin-top: 12px; font-size: 13px; color: var(--fg-dim); }

.sx-cta { max-width: var(--w); margin: 0 auto 96px; padding: 0 24px; }
.sx-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; }
.sx-cta > * { position: relative; }
.sx-cta::before { content: ""; grid-area: 1 / 1 / 2 / 3; align-self: stretch; margin: -44px -1px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elev); }
.sx-cta > div:first-child { grid-area: 1 / 1; padding: 0 0 0 44px; }
.sx-ctab { grid-area: 1 / 2; display: flex; flex-wrap: wrap; gap: 12px; padding-right: 44px; }
.sx-cta { margin-top: 44px; margin-bottom: 140px; }
.sx-cta h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.sx-cta p { margin-top: 14px; max-width: 30em; font-size: 17px; color: var(--fg-muted); }

@media (max-width: 1000px) {
  .sx-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; }
  .sx-what, .sx-two { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sx-checks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sx-line li { grid-template-columns: minmax(0, 1fr); }
  .sx-checks li { padding: 16px 0 0; }
  .sx-out { grid-template-columns: minmax(0, 1fr); }
  .sx-cta { grid-template-columns: minmax(0, 1fr); }
  .sx-cta::before { grid-area: 1 / 1 / 3 / 2; margin: -32px -1px; }
  .sx-cta > div:first-child { padding: 0 28px; }
  .sx-ctab { grid-area: 2 / 1; padding: 0 28px; }
}
@media (max-width: 640px) {
  .sx-hero { padding: 44px 16px 64px; }
  .sx-sec { padding: 64px 16px; }
  .sx-disk { padding: 16px 16px 14px; }
  .sx-proj { grid-template-columns: minmax(0, 1fr) 70px 54px; gap: 10px; }
  .sx-tree li { grid-template-columns: 22px minmax(0, 1fr) 58px 40px; padding: 6px 14px; }
  .sx-tw { display: none; }
  .sx-thead, .sx-tfoot { padding: 12px 14px; }
  .sx-tool { grid-template-columns: 78px minmax(0, 1fr); }
  .sx-caches li { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 58px; }
  .sx-cta { margin-bottom: 96px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .sx-bar i, .sx-pbar i, .sx-pn b, .sx-pg { transition: none; } }

/* Closing: the icon, the line, both buttons, and three steps under a rule. No card. */
.sx-end { position: relative; max-width: var(--w); margin: 0 auto; padding: 112px 24px 120px; text-align: center; }
.sx-end::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; translate: -50% 0; background: var(--border); }
.sx-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 16px; box-shadow: 0 18px 40px -18px #000; }
.sx-end h2 { margin-top: 28px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.sx-end > p { margin: 18px auto 0; max-width: 32em; font-size: 19px; color: var(--fg-muted); }
.sx-endb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 34px; }
.sx-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 72px auto 0; padding: 0; text-align: left; border-top: 1px solid var(--border); }
.sx-steps li { counter-increment: s; padding: 20px 28px 0 0; }
.sx-steps li + li { padding-left: 28px; border-left: 1px solid var(--border); }
.sx-steps b { display: block; font-size: 15.5px; font-weight: 600; }
.sx-steps b::before { content: counter(s) ".  "; color: var(--fg-dim); font-weight: 500; }
.sx-steps span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }

/* Changelog */
.cl-entry { max-width: 680px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.cl-entry h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.cl-entry .meta { margin-top: 4px; }
.cl-entry ul { margin-top: 16px; }

/* Soft motion as sections scroll in: a short stagger inside the ones with rows. */
.js .sx-checks li, .js .sx-line li, .js .sx-tree li, .js .sx-caches li, .js .sx-steps li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .in .sx-checks li, .js .in .sx-line li, .js .in .sx-tree li, .js .in .sx-caches li, .js .in .sx-steps li { opacity: 1; transform: none; }
.js .in li:nth-child(2) { transition-delay: .06s; } .js .in li:nth-child(3) { transition-delay: .12s; }
.js .in li:nth-child(4) { transition-delay: .18s; } .js .in li:nth-child(5) { transition-delay: .24s; }
.js .in li:nth-child(6) { transition-delay: .3s; } .js .in li:nth-child(7) { transition-delay: .36s; }
.js .in li:nth-child(8) { transition-delay: .42s; }
.js .sx-caches .sx-cbar i { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .25s; }
.js .in .sx-caches .sx-cbar i { transform: none; }
.js .sx-tree li.goes { background-color: transparent; transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .8s var(--ease) .7s; }
.js .in .sx-tree li.goes { background-color: #3cd3f012; }

@media (max-width: 900px) {
  .sx-steps { grid-template-columns: minmax(0, 1fr); }
  .sx-steps li, .sx-steps li + li { padding: 18px 0; border-left: 0; }
  .sx-steps li + li { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) { .sx-end { padding: 80px 16px 88px; } }
@media (prefers-reduced-motion: reduce) {
  .js .sx-checks li, .js .sx-line li, .js .sx-tree li, .js .sx-caches li, .js .sx-steps li, .js .sx-caches .sx-cbar i { opacity: 1; transform: none; transition: none; }
  .js .sx-tree li.goes { background-color: #3cd3f012; transition: none; }
}
