/* hewn.tools, on top of Hewn's own ui.css (synced into /_hewn/). Layout only: tokens and ui.css's
   classes, no colours, radii, fonts or icons of its own. The product is drawn with Hewn's own
   components (site.js); text stays short. */

[hidden] { display: none !important; }
body { background: var(--bg); }
.mono { font-family: var(--mono); }

/* ---------- the page column: 1344 wide, 48px sides (16 on a phone) ---------- */
.col, .site-header-in, .site-footer-in { max-width: 1344px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
main.landing { position: relative; overflow-x: clip; }
.landing > section { position: relative; z-index: 1; padding-bottom: 112px; scroll-margin-top: 72px; }
#cloud { scroll-margin-top: 88px; }
.landing .card { margin: 0; }
.landing p { margin: 0; }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); }
.h-xl { margin: 0; font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; }
.h-lg { margin: 0; font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.1; }
.row-x { display: flex; align-items: center; gap: var(--s3); }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.need-row { display: flex; align-items: center; gap: var(--s2); }

/* Hewn's wallpaper (soft pixels) behind the page and inside the windows; positions per place */
.page-wall i:nth-child(1) { --x: -120px; --y: 80px; --w: 520px; --h: 125; }
.page-wall i:nth-child(2) { --x: 62%; --y: -140px; --w: 560px; --h: 245; }
.page-wall i:nth-child(3) { --x: 76%; --y: 1500px; --w: 480px; --h: 300; }
.page-wall i:nth-child(4) { --x: -200px; --y: 2600px; --w: 520px; --h: 30; }
.hero-window .wallpaper i:nth-child(1) { --x: -60px; --y: -40px; --w: 320px; --h: 30; }
.hero-window .wallpaper i:nth-child(2) { --x: 340px; --y: 180px; --w: 360px; --h: 250; }
.pane-home .wallpaper i:nth-child(1) { --x: -40px; --y: 60px; --w: 260px; --h: 30; }
.pane-home .wallpaper i:nth-child(2) { --x: 380px; --y: 160px; --w: 300px; --h: 250; }
.story-stage .wallpaper i:nth-child(1) { --x: -80px; --y: 240px; --w: 340px; --h: 150; }
.story-stage .wallpaper i:nth-child(2) { --x: 420px; --y: -100px; --w: 300px; --h: 30; }

/* service and agent logos: one colour, masked from /logos */
.logo { flex: none; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-claude { --logo: url(/logos/claude.svg); }
.logo-openai { --logo: url(/logos/openai.svg); }
.logo-opencode { --logo: url(/logos/opencode.svg); }
.logo-gemini { --logo: url(/logos/gemini.svg); }
.logo-copilot { --logo: url(/logos/copilot.svg); }
.logo-github { --logo: url(/logos/github.svg); }
.logo-notion { --logo: url(/logos/notion.svg); }
.logo-googlecalendar { --logo: url(/logos/googlecalendar.svg); }
.logo-gmail { --logo: url(/logos/gmail.svg); }
.logo-strava { --logo: url(/logos/strava.svg); }
.logo-homeassistant { --logo: url(/logos/homeassistant.svg); }
.logo-todoist { --logo: url(/logos/todoist.svg); }
.logo-spotify { --logo: url(/logos/spotify.svg); }
.logo-linear { --logo: url(/logos/linear.svg); }
.logo-ynab { --logo: url(/logos/ynab.svg); }
.logo-wordpress { --logo: url(/logos/wordpress.svg); }
.logo-ghost { --logo: url(/logos/ghost.svg); }

/* a 5×5 pixel glyph drawn as cells (pillars, the waitlist tick) */
.glyph5 { display: grid; grid-template-columns: repeat(5, 5px); grid-auto-rows: 5px; gap: 1px; width: max-content; }
.glyph5 i { border-radius: 1px; background: var(--surface-2); }
.glyph5 i.on { background: currentColor; }

/* app icon sizes beyond ui.css's sm/md/lg; the Done Log's hue without JS */
.app-icon.s32 { --size: 32px; } .app-icon.s40 { --size: 40px; }
.tool-run { --hue: 30; }

/* ---------- header (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header-in { display: flex; align-items: center; gap: var(--s5); padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { display: block; border-radius: 28%; box-shadow: var(--glow); }
.brand span { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.02em; }
.site-header .version { margin-left: calc(-1 * var(--s3)); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-header .version:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; font-size: var(--fs-sm); }
.site-nav a, .site-footer a { color: var(--text-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-nav a:hover, .site-footer a:hover { color: var(--text); }
.gh { display: inline-flex; align-items: center; gap: 6px; }
.gh .logo { width: 16px; height: 16px; }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu .menu { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 30; min-width: 200px; background: var(--surface-solid); }
.site-menu .menu a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-sm); text-decoration: none; }
.site-menu .menu a:hover { background: var(--surface-2); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.site-footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s5); padding-top: var(--s6); padding-bottom: var(--s6); }
.site-footer p { margin: 0; }
.foot-brand { display: flex; flex-direction: column; gap: var(--s3); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .brand { color: var(--text); }
.site-footer .status { display: inline-flex; align-items: center; gap: var(--s2); }
.site-footer.compact .site-footer-in { display: flex; flex-wrap: wrap; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }

/* ---------- 2. hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 88px; }
.landing > .hero { padding-bottom: 72px; }
.hero-text { display: flex; flex-direction: column; gap: var(--s5); }
.hero h1 { margin: 0; font-size: 64px; line-height: 1; }
.hero .lead { max-width: 460px; font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); font-size: var(--fs-sm); color: var(--text-3); }
.hero-meta a, .pillars-head a { text-decoration: none; }

/* a command on the log background, with Copy (always the dark log look, both themes) */
.cmd { display: flex; align-items: center; gap: var(--s3); padding: 6px 6px 6px 14px; background: var(--log-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.cmd code { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--log-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-cmd { max-width: 520px; padding-left: var(--s4); border-color: var(--border-strong); box-shadow: var(--hl); }

/* windows: Hewn in a browser, a title bar with the host */
.window { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; justify-content: center; height: 34px; border-bottom: 1px solid var(--border); font: var(--fs-2xs) var(--mono); color: var(--text-3); }
.window-body { position: relative; overflow: hidden; }
.hero-window .window-body { height: calc(548px * var(--scale, .8) + 14px); }
.hero-window .board-host { position: absolute; left: 24px; top: 22px; }

/* Home, as HomeBoard draws it: 6 columns of 124, rows of 116; scaled to fit its window */
.board { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 124px); grid-auto-rows: 116px; grid-auto-flow: row dense; row-gap: 28px; align-items: center; width: 744px; transform: scale(var(--scale, .8)); transform-origin: 0 0; }
.hb-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hb-label { max-width: 112px; font-size: var(--fs-sm); text-align: center; color: var(--text); }
.hb-tile.is-building .hb-label { color: var(--text-2); }
.hb-w { position: relative; display: flex; height: 116px; margin: 0 6px; min-width: 0; }
.hb-w > .jw { flex: 1; }
.hb-w.w-m { grid-column: span 2; }
.hb-w.w-l { grid-column: span 2; grid-row: span 2; height: auto; align-self: stretch; }
.hb-w.is-stale > .jw { opacity: .85; }
/* a widget's mini bars: 8 weeks, this week in --c1, the rest at 45% */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: auto; }
.bars > i, .bars > span > i { flex: 1; height: calc(var(--v, 0) / 30 * 100% * var(--g, 1)); border-radius: 1px 1px 0 0; background: var(--c1); opacity: .45; }
.bars > i:last-child, .bars > span:last-child > i { opacity: 1; }
.chat-widget .bars { gap: 4px; height: 56px; }

/* ---------- 3. works with ---------- */
.landing > .works { padding-bottom: 96px; }
.works-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2.4fr); gap: var(--s5); align-items: center; padding: var(--s4) var(--s7); }
.works-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.works-strip li { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.works-agents li { color: var(--text); }
.works-agents .logo { width: 20px; height: 20px; }
/* services in columns spread across the width, so the lines come out even: 5 + 3 and the pill (4 + 4 and the pill under 1180px; stacked under 1024px) */
.works-strip .works-services { display: grid; grid-template-columns: repeat(5, max-content); justify-content: space-between; }
.works-services .works-any { grid-column: span 2; }
.works-services li { color: var(--text-2); }
.works-services .logo { width: 18px; height: 18px; }
.works-split { padding-left: var(--s5); border-left: 1px solid var(--border); }

/* ---------- 4. how it works: the story ---------- */
.story-steps { list-style: none; margin: 0; padding: 0; }
/* Without JS or with reduced motion: each step beside (or above) its pane, finished. */
.story-step { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding: var(--s5) 0; border-top: 1px solid var(--border); }
.story-text { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-self: center; }
.story-n { padding-top: 4px; font: 500 var(--fs-sm) var(--mono); color: var(--text-3); }
.story-text h3 { margin: 0 0 6px; font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em; }
.story-text p { max-width: 400px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
.story-blocks { display: none; }
.story-pane { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; padding: var(--s6); border-radius: var(--radius-xl); overflow: hidden; }
.story:not(.is-anim) .pane-think { display: none; }

/* With JS on a wide screen: the steps scroll, the pane sticks beside them and swaps at each step. */
.story.is-live { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.is-live .story-step { display: block; min-height: max(200px, 40vh); padding: var(--s3) 0; opacity: .45; cursor: pointer; transition: opacity var(--dur) var(--ease); }
.is-live .story-step:last-child { min-height: max(600px, 50vh); }
.is-live .story-step.is-active { opacity: 1; }
.is-live .story-step.is-active .story-n { color: var(--accent-ink); }
.is-live .story-step.is-active .story-blocks { display: grid; grid-template-columns: repeat(24, 6px); gap: 2px; margin-top: var(--s2); }
.story-blocks i { height: 6px; aspect-ratio: auto; }
/* The pane and its "Scroll to continue" hint stick together beside the steps (.story-side, shown by site.js only in
   the wide story layout). The hint shows while step 01 is the active one (.at-first) and fades out once a later
   step is (and back if the person scrolls up to 01 again). Group: 520 + ~44 px, so it fits a 900 px viewport. */
.story-side { position: sticky; top: max(88px, calc(50vh - 320px)); }
.story-stage { display: grid; place-items: center; min-height: 520px; padding: var(--s6); border-radius: var(--radius-xl); overflow: hidden; }
/* The hint comes in once step 01's pane has played (site.js adds .hint-on after its timeline), and goes when a later step
   is active. The arrow is the big part; it pulses in opacity like a live thing, never moves. */
.story-hint { display: flex; flex-direction: column; align-items: center; gap: var(--s1); margin: 0; padding: var(--s5) 0 var(--s3); text-align: center; font-size: var(--fs-lg); color: var(--text-2); opacity: 0; transform: scale(0.97); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.story-hint .story-arrow { font-size: 44px; line-height: 1; color: var(--accent-ink); animation: story-arrow 1.6s var(--ease) infinite alternate; }
@keyframes story-arrow { from { opacity: 0.45; } to { opacity: 1; } }
.story.hint-on .story-hint { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .story-hint .story-arrow { animation: none; } }
.story-stage > .story-pane { grid-area: 1 / 1; width: 100%; min-height: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
.story-stage > .story-pane.is-shown { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease); }

/* the timelines: things appear (opacity, at most scale .97 → 1), buttons press, the caret blinks */
.story .fade { transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.story .fade.off { opacity: 0; }
.story .pop.off { transform: scale(.97); }
.story .press { transition: transform var(--dur) var(--ease); }
.story .press.pressed { transform: scale(.98); }
.caret.off { opacity: 0; }
.caret.dim { opacity: .15; }
.story input.ring { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pane-actions { display: flex; justify-content: flex-end; gap: var(--s2); }
.svc-ref { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.svc-ref .logo { width: 14px; height: 14px; }

/* 1 · Ask */
.pane-ask { position: relative; display: flex; flex-direction: column; justify-content: center; gap: var(--s4); width: 100%; max-width: 520px; min-height: 420px; }
.pane-ask .bubble.me { max-width: 86%; }
.pane-think { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.pane-spec { display: flex; flex-direction: column; gap: var(--s3); }
/* 2 · Connect */
.pane-connect { position: relative; display: flex; flex-direction: column; gap: var(--s3); width: 100%; max-width: 440px; }
.pane-sheet { display: flex; flex-direction: column; gap: var(--s3); background: var(--surface-overlay); box-shadow: var(--hl), var(--shadow-lg); }
.svc-tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 28%; background: var(--surface-2); border: 1px solid var(--border); }
.svc-tile .logo { width: 18px; height: 18px; }
.sheet-title { font-size: var(--fs-lg); }
.pane-connected { display: flex; align-items: center; justify-content: center; gap: var(--s2); color: var(--text-2); }
/* 3 · Built */
.pane-build { position: relative; display: flex; flex-direction: column; gap: var(--s3); width: 100%; max-width: 520px; }
.build-top { display: flex; justify-content: space-between; gap: var(--s3); }
.build-top .mono { font-variant-numeric: tabular-nums; }
.build-result { display: flex; align-items: center; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.build-result .pill { margin-left: auto; }
/* 4 · Open it: the tool's own page */
.pane-tool { width: 100%; max-width: 620px; }
.pane-tool .window-bar, .pane-home .window-bar { height: 28px; }
.tool-page { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s4) var(--s5); }
.tool-head b { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.tool-head .pill { margin-left: var(--s2); }
.tool-head button { margin-left: auto; }
.tool-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.tool-stats .card { padding: var(--s3); }
.tool-stats .small { margin: 0; }
.tool-stat { font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.run-bars { gap: 6px; height: 96px; }
.run-bars > span { flex: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.run-bars > span > i { flex: none; height: calc(var(--v) / 30 * 78% * var(--g, 1)); border-radius: 2px 2px 0 0; }
.run-bars b { font: var(--fs-2xs) var(--mono); color: var(--text-3); text-align: center; }
.run-bars > span:nth-child(1) { --v: 18; } .run-bars > span:nth-child(2) { --v: 22; } .run-bars > span:nth-child(3) { --v: 15; } .run-bars > span:nth-child(4) { --v: 26; }
.run-bars > span:nth-child(5) { --v: 24; } .run-bars > span:nth-child(6) { --v: 28; } .run-bars > span:nth-child(7) { --v: 21; } .run-bars > span:nth-child(8) { --v: 30; }
.run-rows .logo { width: 14px; height: 14px; color: var(--text-3); }
.run-rows .pace { width: 52px; text-align: right; }
/* 5 · On Home */
.pane-home { width: min(640px, 100%); }
.pane-home .window-body { height: calc(490px * var(--scale, .8)); }
.pane-home .board-host { position: absolute; left: 20px; top: 18px; }
/* 6 · Every agent */
.pane-agents { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s4); align-items: center; width: 100%; }
.agent-term, .agent-chat { align-self: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.agent-term { background: var(--log-bg); }
.agent-chat { background: var(--surface-solid); }
.agent-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-2); }
.agent-bar .logo { width: 14px; height: 14px; }
.agent-log { display: flex; flex-direction: column; min-height: 200px; padding: var(--s3); font: var(--fs-xs)/1.7 var(--mono); color: var(--log-text); white-space: pre-wrap; }
.agent-log .prompt { color: var(--accent); }
.agent-log .tool-call { margin-top: var(--s3); color: var(--text-3); }
.agent-log .tick { color: var(--ok); }
.agents-same { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.agent-chat-body { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: var(--s3); }
.agent-chat-body .bubble { font-size: var(--fs-sm); }
.chat-widget > .jw { height: auto; }

/* ---------- 5. pillars ---------- */
.pillars-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s5); }
.pillars-head a { font-size: var(--fs-sm); }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s4); }
.pillar-grid li { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); }
.pillar-grid .glyph5 { color: var(--accent-ink); }
.pillar-grid b { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.pillar-grid .long { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.pillar-grid .short { display: none; }

/* ---------- 6. run it ---------- */
.run-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: stretch; }
.run-card { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); }
.run-local { border-color: var(--border-strong); }
.run-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.run-card-head h3 { margin: 0; font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.cmd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.cmd-list li { display: flex; flex-direction: column; gap: 6px; }
.cmd-list .label { margin: 0; }
.works-strip .label { margin: 0; }
.run-foot { margin-top: auto; }
.run-foot code { white-space: nowrap; }
.cloud-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.cloud-points li { display: flex; align-items: center; gap: 10px; }
.waitlist-box { margin-top: auto; }
.waitlist { display: flex; flex-direction: column; gap: var(--s3); }
.waitlist-row { display: flex; gap: var(--s2); }
.waitlist-row input { flex: 1; min-width: 0; }
.waitlist-error { display: flex; align-items: center; gap: var(--s2); color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* sent: the form becomes the status, and echoes the address */
.waitlist-sent { display: flex; flex-direction: column; gap: var(--s3); }
.sent-head { display: flex; align-items: center; gap: var(--s3); }
.tick-tile { --size: 36px; --hue: 150; color: var(--ok); }
.tick-tile .glyph5 { grid-template-columns: repeat(5, 4px); grid-auto-rows: 4px; }
.tick-tile .glyph5 i:not(.on) { background: none; }
.sent-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.sent-email { color: var(--text); overflow-wrap: anywhere; }
.sent-to button.link { padding: 0; font-size: inherit; }

/* ---------- 7. FAQ: a square chip, + turns 45° into × on the accent ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 56px; }
.faq-head { display: flex; flex-direction: column; gap: var(--s3); }
.faq details { border-top: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-size: var(--fs-lg); font-weight: 550; }
.faq-chip { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-xs); font: 500 var(--fs-lg)/1 var(--mono); background: var(--surface-2); color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq-chip > span { transition: transform var(--dur) var(--ease); }
.faq details[open] .faq-chip { background: var(--accent); color: var(--accent-text); }
.faq details[open] .faq-chip > span { transform: rotate(45deg); }
.faq summary:hover .faq-chip { color: var(--text); }
.faq details[open] summary:hover .faq-chip { color: var(--accent-text); }
.faq details p { max-width: 620px; margin: 0 0 var(--s4); color: var(--text-2); line-height: 1.6; }

/* ---------- 8. the mark: the turning H at the bottom, as wide as the column ---------- */
.page-mark { display: flex; justify-content: center; overflow: hidden; padding-top: 24px; padding-bottom: 24px; }
.page-mark pre { margin: 0; font: 13px/13px var(--mono); color: var(--accent-ink); white-space: pre; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .works-strip .works-services { grid-template-columns: repeat(4, max-content); }
  .works-services .works-any { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .site-nav { gap: var(--s4); }
}
@media (max-width: 1024px) {
  /* the strip stacks: the agents, then the eight services on one line with the pill under it */
  .works-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4) var(--s5); }
  .works-split { padding: var(--s3) 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .works-strip .works-services { grid-template-columns: repeat(8, max-content); }
}
@media (max-width: 900px) {
  .site-header .site-nav { display: none; }
  .site-header .btn.primary { margin-left: auto; }
  .site-menu { display: block; }
  .site-header.compact .site-nav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: 56px; }
  .story-step { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .faq { gap: var(--s5); }
  .site-footer-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .col, .site-header-in, .site-footer-in { padding-left: var(--s4); padding-right: var(--s4); }
  .wide-only { display: none; }
  .landing > section { padding-bottom: 56px; }
  .landing > .works { padding-bottom: 48px; }
  .site-header-in { gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .site-header .version { display: none; }
  .hero { padding-top: 40px; gap: var(--s5); }
  .landing > .hero { padding-bottom: 24px; }
  .hero-text { gap: var(--s4); }
  .hero h1 { font-size: 40px; line-height: 1.02; }
  .hero .lead { font-size: var(--fs); }
  .page-mark pre { font-size: 9px; line-height: 9px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cmd { padding: 4px 4px 4px 10px; }
  .cmd code { font-size: var(--fs-xs); }
  .hero-window .board-host { left: 12px; top: 14px; }
  .works-strip .works-services { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s2); }
  .works-services li { justify-content: center; }
  .works-services .logo { width: 22px; height: 22px; }
  .works-services .svc-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .works-services .works-any { grid-column: 1 / -1; justify-content: flex-start; }
  .h-xl { font-size: 30px; }
  .h-lg { font-size: var(--fs-xl); letter-spacing: -0.02em; }
  .section-head { margin-bottom: var(--s4); }
  .story-pane { min-height: 0; padding: var(--s4); border-radius: var(--radius-lg); }
  .pane-ask { min-height: 0; }
  .pane-agents { grid-template-columns: minmax(0, 1fr); }
  .agents-same { flex-direction: row; justify-content: center; }
  .agent-log, .agent-chat-body { min-height: 0; }
  .tool-page { padding: var(--s3); }
  .tool-stat { font-size: var(--fs-xl); }
  .tool-head button { display: none; }
  .pillars-head { flex-direction: column; align-items: flex-start; gap: var(--s2); margin-bottom: var(--s4); }
  .pillar-grid { gap: var(--s3); }
  .pillar-grid li { gap: var(--s2); padding: var(--s3); }
  .pillar-grid .glyph5 { grid-template-columns: repeat(5, 4px); grid-auto-rows: 4px; }
  .pillar-grid b { font-size: var(--fs-sm); }
  .pillar-grid .long { display: none; }
  .pillar-grid .short { display: block; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
  .run-card { padding: var(--s4); gap: var(--s3); }
  .run-card-head h3 { font-size: var(--fs-lg); }
  .waitlist-row { flex-direction: column; }
  .faq summary { min-height: 44px; padding: 14px 0; gap: var(--s3); }
  .faq-q { font-size: var(--fs); }
  .faq details p { font-size: var(--fs-sm); }
  .site-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the server's pages (src/app.ts): the compact frame, a 640 column ---------- */
.small-frame { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.small-frame > main, .small-frame > .site-footer { position: relative; z-index: 1; }
.small-frame > main { flex: 1; }
.small-wall i { --x: -120px; --y: 160px; --w: 340px; }
.page-col { width: 100%; max-width: calc(640px + 2 * var(--s5)); margin: 0 auto; padding: var(--s8) var(--s5); }
.app-icon.tile-48 { --size: 48px; }
/* a hue per state: the tile's tint and glyph, and the wallpaper behind it */
.hue-25 { --hue: 25; --h: 25; } .hue-75 { --hue: 75; --h: 75; } .hue-150 { --hue: 150; --h: 150; }
.hue-245 { --hue: 245; --h: 245; } .hue-260 { --hue: 260; --h: 260; }
.lead { margin: 0; font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 0; }
.is-in { animation: fade-in 400ms var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } }

/* small pages: a glyph tile, a title, one paragraph, an optional mono line, the actions */
.small-page { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s4); }
.small-page h1 { margin: 0; font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.small-text { margin: 0; max-width: 500px; color: var(--text-2); line-height: 1.55; }
.small-mono { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* confirmed + survey (/confirm, /survey) */
.survey-page { display: flex; flex-direction: column; gap: var(--s5); }
.survey-top, .survey-thanks { display: flex; flex-direction: column; gap: var(--s5); }
.title-row { display: flex; align-items: center; gap: var(--s4); }
.title-row h1 { margin: 0; font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.title-row h1:focus { outline: none; }
.survey-thanks .page-actions { margin: 0; }
.survey-card { margin: var(--s3) 0 0; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.survey-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.survey-title { display: flex; flex-direction: column; gap: 4px; }
.survey-title h1, .survey-title h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.survey-title h1 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.survey-progress { display: flex; align-items: center; gap: var(--s3); }
.survey-progress .blocks { grid-template-columns: repeat(5, 10px); gap: 3px; }
.survey { display: flex; flex-direction: column; gap: var(--s7); }
.q { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--s3); }
.q legend { padding: 0; margin-bottom: var(--s3); font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em; line-height: var(--lh-tight); }
.q legend:focus { outline: none; }
.q legend .faint { font-size: var(--fs-sm); font-weight: 450; letter-spacing: 0; }
.q-native { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.q-native label.check, .q > label.check { font-size: var(--fs); }
.other-text { display: none; max-width: 360px; }
.q:has(input[value=other]:checked) .other-text { display: block; }
@supports not selector(:has(*)) { .other-text { display: block; } } /* without :has, always there (the no-JS form too) */
.survey-nav { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--border); }
/* stepped (survey.js): one question at a time; chips for pick-any, rows with a square dot for pick-one */
.is-stepped .survey { gap: var(--s5); }
.is-stepped .q { min-height: 300px; }
.q-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.q-chips .chip { min-height: 40px; padding: 3px 14px; white-space: normal; text-align: left; }
.q-chips .chip:not([aria-pressed="true"]) { background: var(--surface-2); }
.q-rows { display: flex; flex-direction: column; gap: var(--s2); }
.opt-row { justify-content: flex-start; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); font-weight: 450; text-align: left; white-space: normal; }
.opt-row[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ink); }
.opt-row .sq { flex: none; width: 10px; height: 10px; border-radius: var(--radius-xs); background: var(--surface-3); transition: background var(--dur) var(--ease); }
.opt-row[aria-pressed="true"] .sq { background: var(--accent); box-shadow: var(--glow); }
.opt-short { display: none; }

/* long reads: Privacy, Terms (a 640 reading column) */
.page.narrow { width: 100%; max-width: calc(640px + 2 * var(--s5)); margin: 0 auto; padding: 72px var(--s5) 96px; }
.prose { display: flex; flex-direction: column; gap: var(--s4); }
.prose > * { margin: 0; }
.prose h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.prose h2 { margin-top: var(--s4); font-size: var(--fs-xl); letter-spacing: -0.02em; }
.prose > p:not(.lead):not(.faint), .prose li { color: var(--text-2); line-height: 1.65; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s2); }
.prose strong { color: var(--text); font-weight: 550; }
.prose > .lead { margin-bottom: var(--s4); }
.privacy-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); padding: var(--s4) var(--s5); margin-bottom: var(--s4); }
.privacy-summary p { margin: 0; }
.privacy-summary .small { margin-top: 4px; }

/* /changelog: a sticky release rail beside the column (src/changelog.ts, changelog.js) */
.changelog-page { display: grid; grid-template-columns: 200px minmax(0, 640px); gap: 64px; justify-content: center; padding: 72px var(--s5) 96px; }
.release-rail { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 120px); overflow-y: auto; }
.release-rail a[href^="#"] { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: var(--radius-sm); font: var(--fs-sm) var(--mono); color: var(--text-2); text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.release-rail a[href^="#"]:hover { color: var(--text); }
.release-rail a[aria-current] { background: var(--surface-2); color: var(--text); }
.rail-date { font-size: var(--fs-2xs); color: var(--text-3); }
.rail-gh { margin-top: var(--s3); font-size: var(--fs-sm); text-decoration: none; }
.changelog { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.changelog > * { margin: 0; }
.changelog h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.changelog > p, .release p { color: var(--text-2); line-height: 1.6; }
.release { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.release > * { margin: 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.release-head h2 { margin: 0; font: 650 var(--fs-xl) var(--mono); letter-spacing: -0.01em; }
.release h3 { font-size: var(--fs); }
.release ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.release li { position: relative; padding-left: var(--s5); color: var(--text-2); line-height: 1.6; }
.release li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 1px; background: var(--text-3); }
.release li strong { color: var(--text); font-weight: 550; }

@media (max-width: 900px) {
  .changelog-page { grid-template-columns: minmax(0, 1fr); padding-top: var(--s7); }
  .release-rail { display: none; }
}
@media (max-width: 560px) {
  .page-col { padding: var(--s6) var(--s4); }
  .page.narrow, .changelog-page { padding: 40px var(--s4) 64px; }
  .title-row { gap: var(--s3); }
  .title-row .app-icon.tile-48 { --size: 36px; }
  .title-row h1, .prose h1, .changelog h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
  .survey-page { gap: var(--s4); }
  .survey-page .lead, .prose > .lead { font-size: var(--fs); }
  .survey-card { margin: 0; padding: var(--s4); gap: var(--s4); }
  .survey-head { flex-wrap: wrap; gap: var(--s3); }
  .is-stepped .survey-title .small { display: none; }
  .survey-progress { display: contents; }
  .survey-progress .blocks { order: 3; flex-basis: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .survey-progress .blocks i { aspect-ratio: auto; height: 6px; }
  .is-stepped .q { min-height: 0; }
  .q legend { font-size: var(--fs-lg); letter-spacing: -0.01em; }
  .q-chips { flex-direction: column; }
  .q-chips .chip { justify-content: flex-start; min-height: 44px; border-radius: var(--radius-sm); }
  .opt:has(.opt-short) .opt-long { display: none; }
  .opt-short { display: inline; }
  .opt-row { min-height: 44px; }
  .privacy-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .is-in { animation: none; }
}

/* A working label in sentence case (an install step): no eyebrows on the public site, no caps or tracking. */
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
