/* Maben Study website. The same system as awake.maben.gg (pure black, hairline white borders, the system font with
   self-hosted Inter, large tight headings); only the action colour differs: Study's yellow, as in the app.
   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 yellow of the app's Study now button */
  --go: #ffd23f;
  --go-hover: #ffdc66;
  --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-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; }
.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 */
.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); }
.ok { color: var(--ok); font-weight: 500; }
.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 */
/* 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; }
/* ───── 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; }
  .mark:nth-child(5), .mark:nth-child(6) { display: none; }
}
@media (max-width: 900px) {
  .split { 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; }
  .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; }
  .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; }
}
/* ───── Logos of the tools it works with ───── */
.logo { display: block; width: 46%; height: auto; }
.cell-ic .logo { width: 20px; }
.cell-ic { color: var(--fg-muted); }
/* ───── The menu, rebuilt in HTML ───── */
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; }
/* ───── 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 */
/* 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; }
@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) {
  .numbers { padding: 40px 16px 0; }
  .numbers b { font-size: 28px; }
  .sec { margin-top: 48px; padding-top: 48px; }
  .nav-dl .ic { display: none; }
}
/* ───── Hero picture: a Claude Code session with the Maben Awake menu beside it ───── */
img.app-ic { background: none; border: 0; border-radius: 0; filter: none; object-fit: contain; }
/* GitHub link under the download button */
/* Header: plain text links like t3.codes, GitHub with its mark */
/* 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 */
/* ───── 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 */
/* 8 · phones: the menu alone tells the story; the terminal is for bigger screens */
/* 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 Study ───── */
/* Hero: the plan for exam week, as a real window */
.hero-pic { position: relative; z-index: 2; max-width: var(--wrap); margin: 88px auto 0; padding-bottom: 8px; }
.win { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-elev); box-shadow: 0 40px 80px -30px #000, 0 0 0 6px #ffffff06; overflow: hidden; }
.win img { width: 100%; }
.hero-pic::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: 0; height: 18%; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.hero-meta { margin-top: -4px; }

/* Screenshots beside or under the words */
.shot { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 24px 64px -32px #000; overflow: hidden; }
.shot img { width: 100%; }
.wide { margin-top: 48px; }
.split .shot { width: 100%; }

/* Exam panel: the days up to a test */
.panel-head b { color: var(--fg); font-weight: 600; }
.go { color: var(--go); font-weight: 500; }
.subj { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--go); }
.stats .bar i { background: var(--go); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; margin: 4px 18px 0; padding-top: 14px; border-top: 1px solid var(--border); }
.week > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 11px; color: var(--fg-dim); }
.week i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 4px; background: #ffffff1f; }
.week .today i { background: var(--fg-muted); }
.week .today { color: var(--fg); }
.week .exam i { background: var(--go); }
.week .exam { color: var(--go); font-weight: 600; }
.panel .tl-labels { padding-top: 12px; }
.js [data-reveal] .week i { transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.js [data-reveal].in .week i { transform: none; }
.js [data-reveal].in .week > div:nth-child(2) i { transition-delay: .05s; } .js [data-reveal].in .week > div:nth-child(3) i { transition-delay: .1s; }
.js [data-reveal].in .week > div:nth-child(4) i { transition-delay: .15s; } .js [data-reveal].in .week > div:nth-child(5) i { transition-delay: .2s; }
.js [data-reveal].in .week > div:nth-child(6) i { transition-delay: .25s; } .js [data-reveal].in .week > div:nth-child(7) i { transition-delay: .3s; }

/* AI providers strip: plain text under the name, not code */
.cell small { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-ic .logo.appicon { width: 26px; }
.ai .req-list { margin-top: 20px; }
.ai .rows-t { margin-top: 48px; font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.req-list dt { color: var(--fg); }

@media (max-width: 900px) {
  .hero-pic { margin-top: 48px; }
  .wide { margin-top: 32px; }
  .panel { max-width: none; }
}
@media (max-width: 640px) {
  .hero-pic { margin-left: -4px; margin-right: -4px; }
  .win { border-radius: 10px; }
  .cell small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .js [data-reveal] .week i { transform: none; transition: none; } }
