/* Fenna Crew site. A monochrome page; colour comes only from the pixel art
   (faces, icons, wallpapers) and the product screenshots. Radius 0, hard
   drop shadows, notched 2px pixel frames, motion in whole pixels. */

:root {
  --bg: #0b0b0b;
  --panel: #111111;
  --raised: #171717;
  --hover: #1e1e1e;
  --line: #222222;
  --line-strong: #323232;
  --text: #ededed;
  --text-2: #a6a6a6;
  --text-3: #808080;
  --pri: #ededed;
  --pri-ink: #141414;
  --pri-hover: #ffffff;
  --sel: #8aa4c4;
  --warn: #d9a441;
  --drop: rgba(0, 0, 0, 0.6);
  --shade: rgba(0, 0, 0, 0.28);
  --lift: rgba(255, 255, 255, 0.06);
  --ink: #161616;
  /* The pixel field: dot colour, its strength, and the lit colour near the pointer. */
  --dot: #ededed;
  --dot-a: 1;
  --dot-hot: #c9d6e6;
  /* The colour pixel icons of a bot's desktop (the app's own palette). */
  --px-ink: #e6e6e4; --px-paper: #e9e9e6; --px-grey: #8b8b88; --px-grey-light: #c9c9c6;
  --px-blue: #5b9bf5; --px-blue-dark: #3a74d4;
  --px-green: #5cc27a; --px-green-dark: #3a9a57;
  --px-amber: #f2b84f; --px-amber-dark: #c98e2a;
  --px-red: #f0705e; --px-red-dark: #c24a3a;
  --px-violet: #ad8cf2; --px-violet-dark: #8258d1;
  --px-teal: #4fc8be; --px-teal-dark: #2d9e97;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pixel: "Silkscreen", "Inter", sans-serif;
  --code: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --gutter: 24px;
  --section: clamp(96px, 12vw, 168px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f3; --panel: #fbfaf8; --raised: #ffffff; --hover: #efede8;
    --line: #e4e2dc; --line-strong: #cfccc4;
    --text: #161616; --text-2: #55534e; --text-3: #6f6c66;
    --pri: #161616; --pri-ink: #ffffff; --pri-hover: #2a2a2a;
    --sel: #4a6688; --warn: #a8741a;
    --drop: rgba(0, 0, 0, 0.16); --shade: rgba(0, 0, 0, 0.12); --lift: rgba(255, 255, 255, 0.7);
    --dot: #161616; --dot-a: 0.85; --dot-hot: #4a6688;
    --px-ink: #2e2e2c; --px-paper: #ffffff; --px-grey: #8a8a86; --px-grey-light: #d4d4d0;
    --px-blue: #3f7fe6; --px-blue-dark: #2a5fbf;
    --px-green: #3fa35c; --px-green-dark: #2a7d43;
    --px-amber: #eaa930; --px-amber-dark: #b97a1c;
    --px-red: #e0543f; --px-red-dark: #a93a2b;
    --px-violet: #8c63e0; --px-violet-dark: #6441b8;
    --px-teal: #34aca3; --px-teal-dark: #1f7f78;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f6f3; --panel: #fbfaf8; --raised: #ffffff; --hover: #efede8;
  --line: #e4e2dc; --line-strong: #cfccc4;
  --text: #161616; --text-2: #55534e; --text-3: #6f6c66;
  --pri: #161616; --pri-ink: #ffffff; --pri-hover: #2a2a2a;
  --sel: #4a6688; --warn: #a8741a;
  --drop: rgba(0, 0, 0, 0.16); --shade: rgba(0, 0, 0, 0.12); --lift: rgba(255, 255, 255, 0.7);
  --dot: #161616; --dot-a: 0.85; --dot-hot: #4a6688;
  --px-ink: #2e2e2c; --px-paper: #ffffff; --px-grey: #8a8a86; --px-grey-light: #d4d4d0;
  --px-blue: #3f7fe6; --px-blue-dark: #2a5fbf;
  --px-green: #3fa35c; --px-green-dark: #2a7d43;
  --px-amber: #eaa930; --px-amber-dark: #b97a1c;
  --px-red: #e0543f; --px-red-dark: #a93a2b;
  --px-violet: #8c63e0; --px-violet-dark: #6441b8;
  --px-teal: #34aca3; --px-teal-dark: #1f7f78;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--sel); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }
code { font-family: var(--code); font-size: 0.86em; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--pri); color: var(--pri-ink); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────────────────────── */
/* Silkscreen is the pixel accent: labels, name tags, eyebrows. Never body text. */
.px-label {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 0.98; max-width: 11.5em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; max-width: 15em; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
p { max-width: 62ch; }
.lede { color: var(--text-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 52ch; margin-top: 28px; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--text); }

/* ── The pixel frame: a notched 2px edge drawn with box-shadow ───────── */
.px, .btn, .chip, .theme, .seg {
  --px-c: var(--line-strong);
  --px-edge: 0 -2px 0 0 var(--px-c), 0 2px 0 0 var(--px-c), -2px 0 0 0 var(--px-c), 2px 0 0 0 var(--px-c);
}
.px { margin: 2px; background: var(--raised); box-shadow: var(--px-edge); }
.px.drop { box-shadow: var(--px-edge), 8px 8px 0 0 var(--drop); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; margin: 2px;
  background: var(--raised); color: var(--text);
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: var(--px-edge), inset 0 2px 0 0 var(--lift), inset 0 -2px 0 0 var(--shade);
}
.btn:hover { --px-c: var(--text-3); }
.btn:active { transform: translateY(1px); box-shadow: var(--px-edge), inset 0 2px 0 0 var(--shade); }
.btn.primary { --px-c: var(--pri); background: var(--pri); color: var(--pri-ink); }
.btn.primary:hover { --px-c: var(--pri-hover); background: var(--pri-hover); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.tiny { min-height: 30px; padding: 0 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.fine { margin-top: 22px; color: var(--text-3); font-size: 14px; max-width: none; }
.ph-badge { display: inline-block; margin-top: 28px; line-height: 0; }
.ph-badge img { display: block; width: 250px; height: 54px; }
.chip { display: inline-block; margin: 2px; padding: 2px 7px; background: var(--panel); color: var(--text-2); box-shadow: var(--px-edge); white-space: nowrap; }

/* ── Nav: a pixel wordmark, a confident Download, a dithered pixel edge; compacts after scrolling ── */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 32px; pointer-events: none; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line-strong); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 4px; pointer-events: none; background: conic-gradient(var(--line-strong) 25%, transparent 0 50%, var(--line-strong) 0 75%, transparent 0) 0 0 / 4px 4px; opacity: 0.7; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-icon { width: 40px; height: 40px; display: block; image-rendering: pixelated; }
.brand-word { font-family: var(--pixel); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.nav a:not(.brand):not(.btn) { color: var(--text-2); font-size: 16px; font-weight: 500; text-decoration: none; }
.nav a:not(.brand):not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-dl { min-height: 44px; padding: 0 24px; font-weight: 600; }
.theme { width: 40px; height: 40px; margin: 2px; display: grid; place-items: center; box-shadow: var(--px-edge); }
.theme:hover { --px-c: var(--text-3); }
.theme i { position: relative; width: 14px; height: 14px; border: 2px solid var(--text); display: block; }
.theme i::after { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 10px; background: var(--text); }
.nav.stuck .nav-in { height: 60px; }
.nav.stuck .brand-icon { width: 32px; height: 32px; }
.nav.stuck .brand-word { font-size: 17px; }
.nav.stuck .nav-dl { min-height: 38px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-in, .brand-icon { transition: height 160ms steps(4, end), width 160ms steps(4, end); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; height: 64px; }
  .brand-word { font-size: 16px; }
  .brand-icon { width: 32px; height: 32px; }
  .nav-dl { padding: 0 16px; min-height: 40px; }
  .nav.stuck .nav-in { height: 56px; }
  .nav.stuck .brand-word { font-size: 15px; }
}
@media (max-width: 420px) { .brand { gap: 10px; } .brand-word, .nav.stuck .brand-word { font-size: 14px; } .nav-dl { padding: 0 14px; } }
@media (max-width: 340px) { .brand-word { display: none; } }

/* ── Faces (SVG from the app's own sprites, js/site.js) ─────────────── */
.face { display: inline-block; flex: none; width: calc(var(--u, 4px) * 16); height: calc(var(--u, 4px) * 16); vertical-align: middle; }
.face svg { display: block; width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; }
.face .b { fill: var(--fb); }
.face .s { fill: var(--fs); }
.face .k, .face .eyes rect { fill: var(--ink); }
.face .dot { fill: var(--warn); }
.face { --fb: var(--fbd); --fs: var(--fsd); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .face { --fb: var(--fbl); --fs: var(--fsl); } }
:root[data-theme="light"] .face { --fb: var(--fbl); --fs: var(--fsl); }

/* Colour pixel icons (js/site.js draws them from the app's grids). */
.pxi { display: inline-block; flex: none; width: calc(var(--u, 2px) * 16); height: calc(var(--u, 2px) * 16); }
.pxi svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.pxi .k { fill: var(--px-ink); } .pxi .w { fill: var(--px-paper); } .pxi .m { fill: var(--px-grey); } .pxi .l { fill: var(--px-grey-light); }
.pxi .b { fill: var(--px-blue); } .pxi .B { fill: var(--px-blue-dark); }
.pxi .n { fill: var(--px-green); } .pxi .N { fill: var(--px-green-dark); }
.pxi .a { fill: var(--px-amber); } .pxi .A { fill: var(--px-amber-dark); }
.pxi .r { fill: var(--px-red); } .pxi .R { fill: var(--px-red-dark); }
.pxi .v { fill: var(--px-violet); } .pxi .V { fill: var(--px-violet-dark); }
.pxi .t { fill: var(--px-teal); } .pxi .T { fill: var(--px-teal-dark); }

/* ── Motion: whole pixels, CSS steps, nothing under reduced motion ──── */
@keyframes look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@keyframes blink { 0%, 93%, 100% { visibility: visible; } 94%, 97% { visibility: hidden; } }
@keyframes beacon { 0%, 100% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes glitch {
  0%, 100% { transform: none; clip-path: none; }
  25% { transform: translateX(-2px); clip-path: inset(0 0 60% 0); }
  50% { transform: translateX(2px); clip-path: inset(40% 0 0 0); }
  75% { transform: translate(-1px, 1px); clip-path: inset(20% 0 30% 0); }
}
@keyframes tear-in {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  25% { opacity: 1; clip-path: inset(0 0 50% 0); transform: translateX(-2px); }
  50% { clip-path: inset(50% 0 0 0); transform: translateX(2px); }
  75% { clip-path: inset(0 0 20% 0); transform: none; }
  100% { opacity: 1; clip-path: none; transform: none; }
}
@keyframes dots { 0%, 100% { opacity: 0.25; } 33% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .face[data-mood="work"] .eyes { animation: look 1.6s steps(1, end) infinite; animation-delay: var(--d, 0s); }
  .face[data-mood="idle"] .eyes { animation: blink 5s steps(1, end) infinite; animation-delay: var(--d, 0s); }
  .face[data-mood="need"] .dot, .need-dot { animation: beacon 1.2s steps(1, end) infinite; }
  .btn:hover, .chip-file:hover .pxi, .dicon:hover .pxi { animation: glitch 200ms steps(1, end) 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:active { transform: none; } }

/* ── Living fields (js/field.js): a canvas behind a section's content ── */
.field-host { position: relative; isolation: isolate; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); }
.hero-in { display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.new { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; color: var(--text-2); font-size: 15px; text-decoration: none; }
.new .chip { color: var(--text); }
.new:hover span:last-child { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.hero-bot { display: grid; justify-items: center; gap: 28px; }
.face-slot { width: clamp(192px, 26vw, 352px); aspect-ratio: 1; display: block; position: relative; }
.face-slot:focus-visible { outline-offset: 12px; }
.hero-bot figcaption { width: min(100%, 340px); min-height: 5.4em; display: grid; gap: 8px; justify-items: center; text-align: center; }
.bot-name { display: flex; align-items: center; gap: 10px; }
.bot-name .px-label { font-size: 16px; color: var(--text); }
.bot-job { color: var(--text-2); font-size: 16px; line-height: 1.5; text-wrap: balance; }
@media (max-width: 999px) { .hero-bot { order: -1; } .hero-bot figcaption { min-height: 0; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { padding: var(--section) 0 0; }
.sec-head { max-width: 820px; }
.sec-head .new { margin-bottom: 24px; }
/* Facts: a strong short line and a quieter half line, in a row. Never cards. */
.facts { display: grid; gap: 32px; margin-top: 64px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.facts > div { padding-top: 18px; border-top: 2px solid var(--line-strong); }
.facts dt { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.facts dd { margin-top: 6px; color: var(--text-2); font-size: 16px; }

/* ── Watch: the bot's computer, take control, approvals ──────────────── */
.watch-stage { margin-top: 64px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .watch-stage { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.screen { position: relative; background: var(--panel); }
.screen.px { box-shadow: var(--px-edge), 8px 8px 0 0 var(--drop); }
.screen.held { --px-c: var(--sel); }
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--line-strong); flex-wrap: wrap; }
.screen-bar .who { display: grid; line-height: 1.3; margin-right: auto; min-width: 0; }
.screen-bar .who b { font-size: 15px; font-weight: 600; }
.screen-bar .who span { color: var(--text-2); font-size: 13px; }
.seg { display: inline-flex; margin: 2px; box-shadow: var(--px-edge); background: var(--panel); }
.seg button { min-height: 32px; padding: 0 12px; font-size: 14px; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--pri); color: var(--pri-ink); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--text); background: var(--hover); }
.screen-view { position: relative; overflow: hidden; aspect-ratio: 1440 / 852; }
.screen-view img { position: absolute; left: 0; top: -5.6%; width: 100%; max-width: none; }
.held-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: none; align-items: center; gap: 12px; padding: 8px 12px; background: var(--sel); color: var(--bg); font-size: 14px; font-weight: 500; }
.held-bar span { flex: 1; min-width: 0; }
.held-bar .btn { --px-c: var(--bg); background: var(--bg); color: var(--text); }
.screen.held .held-bar { display: flex; }
.screen.held .bot-cursor { display: none; }
.screen.held .screen-view { box-shadow: inset 0 0 0 2px var(--sel); }

/* The bot's cursor: an arrow and a name tag; it moves in whole steps. */
.bot-cursor { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; transform: translate(var(--cx, 0px), var(--cy, 0px)); }
@media (prefers-reduced-motion: no-preference) { .bot-cursor { transition: transform 720ms steps(12, end); } }
.bot-cursor svg { width: 18px; height: 26px; shape-rendering: crispEdges; display: block; }
.bot-cursor .arrow { fill: #ededed; }
.bot-cursor .rim { fill: #0b0b0b; }
.bot-cursor .tag { margin-top: 14px; padding: 1px 6px; font-family: var(--pixel); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; background: #ededed; color: #141414; box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.5); white-space: nowrap; }
.bot-cursor.click svg { transform: translate(1px, 1px); }

.approval { padding: 20px; display: grid; gap: 14px; align-content: start; }
.approval .row { display: flex; align-items: center; gap: 12px; }
.approval .row b { font-weight: 600; }
.approval .row span { color: var(--text-2); font-size: 15px; }
.approval .ask { font-size: 16px; }
.need-dot { width: 8px; height: 8px; background: var(--warn); flex: none; }
.approval .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.approval .result { color: var(--text-2); font-size: 15px; }
.approval .result:empty { display: none; }
.approval.done .acts, .approval.done .need-dot, .approval.done .waiting { display: none; }
.approval .again { display: none; justify-self: start; }
.approval.done .again { display: inline-flex; }

/* ── Builder: the hero moment ────────────────────────────────────────── */
.bstage { position: relative; margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--panel); }
.bstage.px { box-shadow: var(--px-edge), 8px 8px 0 0 var(--drop); }
@media (min-width: 1000px) { .bstage { grid-template-columns: 340px minmax(0, 1fr); } }
.bchat { display: flex; flex-direction: column; min-width: 0; border-bottom: 2px solid var(--line-strong); }
@media (min-width: 1000px) { .bchat { border-bottom: 0; border-right: 2px solid var(--line-strong); } }
.bhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.bhead b { font-size: 15px; font-weight: 600; }
.blog { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; font-size: 14px; line-height: 1.45; min-height: 360px; }
.blog li { visibility: hidden; }
.blog li.on { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .blog li.on { animation: tear-in 200ms steps(1, end) both; } }
.blog .you { align-self: flex-end; max-width: 85%; padding: 8px 11px; background: var(--hover); margin: 2px; box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); }
.blog .bot { max-width: 92%; }
.blog .step { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.blog .step::before { content: ""; width: 6px; height: 6px; background: var(--text-3); flex: none; }
.blog .step code { color: var(--text-2); font-size: 12px; }
.blog .typing { display: none; gap: 4px; padding: 4px 0; }
.blog .typing.on { display: flex; }
.blog .typing i { width: 6px; height: 6px; background: var(--text-3); }
@media (prefers-reduced-motion: no-preference) { .blog .typing i { animation: dots 900ms steps(1, end) infinite; } .blog .typing i:nth-child(2) { animation-delay: 300ms; } .blog .typing i:nth-child(3) { animation-delay: 600ms; } }
.bcomposer { margin: 0 14px 14px; padding: 9px 11px; color: var(--text-3); font-size: 14px; background: var(--raised); box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); }

/* The bot's desktop is content, like a screenshot: it keeps its own colours in both themes. */
.bdesk { position: relative; overflow: hidden; min-height: 440px; background: #1b1d3a url("../assets/wallpapers/indigo.png") center / cover no-repeat; image-rendering: pixelated; color: #ededed; font-size: 13px; }
@media (max-width: 999px) { .bdesk { height: 440px; min-height: 0; } }
@media (max-width: 480px) { .bdesk { height: 400px; } }
.bbuild { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.dicons { position: absolute; left: 10px; top: 14px; display: grid; gap: 12px; justify-items: center; }
.dicon { display: grid; justify-items: center; gap: 4px; width: 64px; text-align: center; font-size: 12px; font-weight: 500; text-shadow: 0 1px 0 #000; }
.dicon .pxi { --u: 2px; }
.dicon.later { visibility: hidden; }
.dicon.later.on { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .dicon.later.on .pxi { animation: glitch 200ms steps(1, end) 2; } }
.dtask { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #111111; border-top: 2px solid #2a2a2a; }
.dtask .clock { margin-left: auto; color: #a6a6a6; font-variant-numeric: tabular-nums; }
.dtask .slot { width: 28px; height: 28px; display: grid; place-items: center; }
.dtask .slot.on { background: #262626; }
.dtask .slot[hidden] { display: none; }

/* The habit tracker Builder makes. Its own small look, like any app a bot builds. */
.hwin { position: absolute; left: calc(50% + 36px); top: calc(50% - 20px); z-index: 2; width: min(400px, calc(100% - 120px)); transform: translate(-50%, -50%); background: #f4f1ea; color: #1d1b17; box-shadow: 0 -2px 0 0 #0d0d0d, 0 2px 0 0 #0d0d0d, -2px 0 0 0 #0d0d0d, 2px 0 0 0 #0d0d0d, 8px 8px 0 0 rgba(0, 0, 0, 0.45); visibility: hidden; }
.hwin.on { visibility: visible; }
.hwin-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: #161616; color: #ededed; font-size: 12px; font-weight: 500; }
.hwin-bar .pxi { --u: 1px; }
.hwin-bar i { width: 8px; height: 2px; background: #6f6f6f; margin-left: 6px; }
.hwin-bar i:first-of-type { margin-left: auto; }
.hwin-body { padding: 14px 14px 16px; }
.hwin-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-bottom: 10px; }
.hwin-title b, .hwin-title span { white-space: nowrap; }
.hwin-title b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hwin-title span { color: #5f5a50; font-size: 12px; }
.htable { width: 100%; border-collapse: collapse; min-width: 0; font-size: 12px; }
.htable th { padding: 0 0 6px; color: #5f5a50; font-weight: 500; text-align: center; font-family: var(--font); font-size: 11px; letter-spacing: 0; text-transform: none; }
.htable th:first-child { text-align: left; }
.htable td { padding: 4px 0; border-top: 2px solid #e2ddd1; text-align: center; vertical-align: middle; }
.htable td:first-child { text-align: left; font-weight: 500; padding-right: 6px; }
.htable td.n { color: #5f5a50; font-variant-numeric: tabular-nums; width: 2.4em; text-align: right; }
.htable th.today { color: #1d1b17; }
.sq { display: inline-block; width: 14px; height: 14px; background: #e2ddd1; vertical-align: middle; }
.sq.on { background: #3a9a57; }
.sq.today { box-shadow: 0 0 0 2px #1d1b17; }
@media (max-width: 480px) { .sq { width: 10px; height: 10px; } .hwin-body { padding: 10px; } }

.bfoot { display: flex; justify-content: flex-end; min-height: 18px; margin-top: 18px; }
.bfoot .btn[hidden] { display: none; }

/* ── Files ────────────────────────────────────────────────────────────── */
.files-in { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .files-in { grid-template-columns: 5fr 6fr; gap: 80px; } }
.fchat { padding: 22px; display: grid; gap: 16px; font-size: 15px; line-height: 1.5; }
.fchat.px { box-shadow: var(--px-edge), 8px 8px 0 0 var(--drop); }
.fmsg { display: flex; gap: 12px; align-items: flex-start; }
.fmsg.you { justify-content: flex-end; }
.fmsg .t { max-width: 34em; min-width: 0; }
.fmsg.you .t { display: grid; gap: 10px; justify-items: end; }
.fmsg.you .bubble { padding: 8px 11px; background: var(--hover); margin: 2px; box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); }
.fmsg .who { display: block; font-weight: 600; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; background: var(--panel); font-size: 14px; margin: 2px; box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); }
.chip-file small { color: var(--text-3); font-size: 12px; }
.fnote { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; padding-top: 14px; border-top: 2px solid var(--line); }

/* ── Plan: the three assistants, by their own marks ──────────────────── */
.plans { display: grid; gap: 40px; margin-top: 64px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plans li { display: grid; justify-items: start; gap: 6px; padding-top: 28px; border-top: 2px solid var(--line-strong); }
.agent { width: 56px; height: 56px; margin-bottom: 18px; }
.plans b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.plans span { color: var(--text-2); font-size: 17px; }
/* The Claude and Codex marks are white; on the light theme they are inverted, as in the app. */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .agent.invert { filter: invert(1); } }
:root[data-theme="light"] .agent.invert { filter: invert(1); }
@media (max-width: 600px) {
  .plans { gap: 0; }
  .plans li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: center; padding: 20px 0; }
  .agent { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}
.plan-note { margin-top: 48px; color: var(--text-2); }
.plan-note .link { color: var(--text); }

/* ── Final: the dithered sunset, the crew standing on it ─────────────── */
.final { padding: var(--section) 0 clamp(260px, 28vw, 380px); margin-top: clamp(72px, 8vw, 120px); border-top: 2px solid var(--line); }
.final h2 { max-width: 13em; }
.steps { display: grid; gap: 4px; margin-top: 36px; counter-reset: s; }
.steps li { display: flex; align-items: baseline; gap: 18px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--pixel); font-size: 14px; color: var(--text-3); }
.final .actions { margin-top: 40px; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.ground-in { display: flex; align-items: flex-end; gap: clamp(12px, 3vw, 40px); justify-content: flex-end; }
.ground .face { --u: 5px; }
.face.sit { margin-bottom: calc(var(--u, 4px) * var(--gap, 0) * -1); }
@media (max-width: 720px) { .ground .face { --u: 3px; } .ground-in { justify-content: center; } }
@keyframes hop { 0%, 100% { transform: none; } 30%, 60% { transform: translateY(calc(var(--u) * -2)); } }
@media (prefers-reduced-motion: no-preference) { .ground .face:nth-child(2) { animation: hop 2.4s steps(1, end) infinite; } }

/* ── Footer: an ending ────────────────────────────────────────────────── */
.foot { position: relative; background: var(--panel); border-top: 2px solid var(--line-strong); padding: clamp(56px, 7vw, 96px) 0 32px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 4px; background: conic-gradient(var(--line-strong) 25%, transparent 0 50%, var(--line-strong) 0 75%, transparent 0) 0 0 / 4px 4px; }
.foot-in { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr) auto; } }
.wordmark { font-family: var(--pixel); font-size: clamp(40px, 8.4vw, 120px); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; max-width: none; overflow-wrap: anywhere; }
.foot-by { margin-top: 20px; color: var(--text-2); font-size: 16px; }
.foot-copy a { color: var(--text-2); }
.foot-links { display: flex; gap: clamp(40px, 6vw, 88px); }
.foot-links div { display: grid; gap: 10px; align-content: start; }
.foot-links .px-label { color: var(--text-3); margin-bottom: 4px; }
.foot-links a { color: var(--text-2); font-size: 16px; text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { margin-top: clamp(40px, 6vw, 72px); color: var(--text-3); font-size: 14px; }

/* ── Download page ────────────────────────────────────────────────────── */
.page-head { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); }
.page-head .version { margin-bottom: 24px; }
.installers { margin-top: 56px; display: grid; }
.installers li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 2px solid var(--line); flex-wrap: wrap; }
.installers li:last-child { border-bottom: 2px solid var(--line); }
.installers .os { font-weight: 600; min-width: 220px; }
.installers .file { color: var(--text-3); flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--code); font-size: 13px; }
.os-steps { margin-top: 48px; display: grid; max-width: 820px; }
.os-steps li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-top: 2px solid var(--line); }
.os-steps li:last-child { border-bottom: 2px solid var(--line); }
.os-steps .px-label { color: var(--text-2); padding-top: 4px; }
.os-steps p { max-width: none; }
@media (max-width: 560px) { .os-steps li { grid-template-columns: 1fr; gap: 4px; } }
.tablewrap { margin-top: 48px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 16px; }
th { text-align: left; font-family: var(--pixel); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 0 16px 12px 0; }
td { padding: 16px 16px 16px 0; border-top: 2px solid var(--line); vertical-align: middle; }
td.app { display: flex; align-items: center; gap: 14px; font-weight: 600; white-space: nowrap; }
td.app img { width: 32px; height: 32px; }
td.for { color: var(--text-2); }
td a { font-family: var(--code); font-size: 13px; }
main > .sec:last-child { padding-bottom: var(--section); }

/* ── Changelog ────────────────────────────────────────────────────────── */
.releases { padding-bottom: var(--section); }
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 2px solid var(--line); scroll-margin-top: 80px; }
@media (max-width: 800px) { .release { grid-template-columns: 1fr; gap: 16px; } }
.release-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.release-tag a { text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.release-date { color: var(--text-3); }
.latest { --px-c: var(--pri); background: var(--pri); color: var(--pri-ink); }
.release-body { color: var(--text-2); max-width: 70ch; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.release-body h1, .release-body h2, .release-body h3 { color: var(--text); font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 10px; }
.release-body h1:first-child, .release-body h2:first-child, .release-body h3:first-child { margin-top: 0; }
.release-body p { margin: 0 0 12px; }
.release-body ul, .release-body ol { margin: 0 0 12px 22px; list-style: square; }
.release-body ol { list-style: decimal; }
.release-body li { margin: 4px 0; }
.release-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.release-body code { background: var(--panel); padding: 1px 5px; }
.release-body pre { background: var(--panel); padding: 14px; overflow-x: auto; margin: 0 0 12px; font-size: 14px; }
.release-body pre code { background: none; padding: 0; }
.release-body img { max-width: 100%; height: auto; }
.state { color: var(--text-2); padding-top: 24px; }
