/* 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: #4cd964;
  /* The one action colour: the same green as the "awake / on" dots */
  --go: #30d158;
  --go-hover: #4cdd70;
  --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 #4cd96426; }
.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 #4cd96426; }
.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; } }
