/* ECO-1474: Arial sized to Space Grotesk's measured widths, per weight, so
   text doesn't rewrap when the web font swaps in (font-display: swap). */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 500; size-adjust: 108.6%; ascent-override: 90.61%; descent-override: 26.89%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 501 900; size-adjust: 101.5%; ascent-override: 96.95%; descent-override: 28.77%; line-gap-override: 0%; }

:root {
  --ink: #12110f;
  --muted: #5d594e;
  --quiet: #6e6a5f;
  --purple: #6d3fd3;
  --purple-ink: #4c2b96;
  --lavender: #f0eafa;
  --teal-ink: #176d66;
  --teal-soft: #e5f5f2;
  --paper: #faf9f6;
  --surface: #ffffff;
  --line: #e7e3da;
  --sans: "Space Grotesk", "Space Grotesk Fallback", Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lede: 18px;
  --heading-sm: 24px;
  --heading-md: 32px;
  --heading-lg: 44px;
  --heading-xl: 60px;
  /* Spacing scale, shared by the homepage and interior pages (ECO-1469). */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: var(--text-base); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1,h2,h3,p,ul,ol,dl,dd { margin: 0; }
ul,ol { padding: 0; list-style: none; }
a,button { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
::selection { background: var(--lavender); }
[hidden] { display: none !important; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 14px 18px; border-radius: 8px; background: var(--surface); font-size: var(--text-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.beta-banner { padding: 8px 16px; background: var(--purple); color: var(--surface); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; text-align: center; }
.beta-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.beta-banner a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.nav { position: sticky; top: 0; z-index: 20; width: 100%; height: 86px; padding: 0 max(42px,calc((100vw - 1276px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .25s ease,background .25s ease,box-shadow .25s ease; }
.nav.is-scrolled { height: 72px; background: #faf9f6eb; box-shadow: 0 8px 24px #2921340b; backdrop-filter: blur(12px); }
.brand { min-height: 44px; display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 116px; height: auto; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: var(--text-sm); font-weight: 600; }
.nav-link { position: relative; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: 6px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-sign-in,.menu-toggle,.mobile-menu { display: none; }
.menu-toggle { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 16px; height: 1px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: absolute; top: calc(100% - 2px); right: 16px; width: min(230px,calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px #2921341a; }
.mobile-menu a { min-height: 44px; padding: 0 12px; border-radius: 7px; display: flex; align-items: center; font-size: var(--text-sm); font-weight: 600; }
.mobile-menu a:hover { background: var(--lavender); }

.button { min-height: 44px; padding: 12px 22px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: var(--text-sm); font-weight: 600; line-height: 1.4; transition: transform .2s ease,background .2s ease,box-shadow .2s ease; }
.button span { transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.primary { color: #fff; background: var(--purple); box-shadow: 0 3px 6px #4f2f9115; }
.primary:hover { background: #6042c0; box-shadow: 0 6px 16px #4f2f9122; }
.secondary { background: #eeebf1; }
.secondary:hover { background: #e6e1eb; }
.nav-button { padding: 10px 17px; background: #2c2b2f; color: #fff; white-space: nowrap; }

.hero { padding: 70px 24px 0; overflow: hidden; text-align: center; }
.hero-copy { max-width: 1000px; margin: 0 auto; animation: enter .7s ease both; }
h1 { font-size: var(--heading-xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.keep-together { white-space: nowrap; }
.highlight { padding: 0 .03em .08em; background-image: linear-gradient(transparent 78%,#b4a0f4 78%,#b4a0f4 88%,transparent 88%); background-repeat: no-repeat; background-position: 0 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-description { max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: var(--text-lede); line-height: 1.5; }
.hero-actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: var(--text-xs); }

.agent-launch { max-width: 1080px; margin: 108px auto 0; padding: 42px; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; background: var(--surface); box-shadow: 0 18px 44px #2921340b; }
.agent-launch-kicker,.agents-kicker { color: var(--purple); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.agent-launch h2 { margin-top: 10px; font-size: var(--heading-md); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
.agent-launch-copy > p:not(.agent-launch-kicker) { margin-top: 16px; color: var(--muted); }
.agent-launch-copy .button { margin-top: 24px; }
.agent-launch-terminal { min-width: 0; overflow: hidden; border: 1px solid #d9d4df; border-radius: 12px; background: #18171b; color: #f7f5fa; box-shadow: 0 14px 28px #29213422; }
.agent-launch-terminal > div { min-height: 40px; padding: 0 14px; border-bottom: 1px solid #343139; display: flex; align-items: center; gap: 6px; color: #bdb7c5; font-size: var(--text-xs); }
.agent-launch-terminal > div span { width: 8px; height: 8px; border-radius: 50%; background: #6e6973; }
.agent-launch-terminal > div b { margin-left: 7px; font-weight: 400; }
.agent-launch-terminal pre { margin: 0; padding: 24px 20px 18px; overflow-x: auto; color: inherit; font: 13px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.agents-copy { min-height: 44px; margin: 0 20px 16px; padding: 9px 14px; border: 1px solid #4a4650; border-radius: 8px; background: #29262e; color: #f7f5fa; font-size: var(--text-xs); font-weight: 600; }
.agents-copy:hover { background: #393540; }
.agents-copy-status { min-height: 1.5em; margin: -10px 20px 12px; color: #c9c2d0; font-size: var(--text-xs); }

.demo-scene { position: relative; max-width: 890px; margin: 66px auto 0; scroll-margin-top: 88px; }
.board-preview { position: relative; z-index: 2; overflow: hidden; border: 1px solid #ddd9e2; border-radius: 13px; background: var(--surface); box-shadow: 0 8px 34px #2921340b,0 0 0 5px #faf9fc; text-align: left; }
.preview-bar { height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: var(--text-xs); }
.preview-bar > span { margin-left: -18px; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8d3dc; }
.board-content { padding: 32px 34px 0; }
.demo-head { margin-bottom: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.demo-head h2 { max-width: 560px; font-size: var(--heading-sm); font-weight: 800; line-height: 1.25; }
.demo-head > span { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.task-list { border-top: 1px solid var(--line); }
.task-list li { border-bottom: 1px solid var(--line); }
.task-row { width: 100%; min-height: 76px; padding: 14px 0; border: 0; background: transparent; display: flex; align-items: center; gap: 14px; text-align: left; transition: padding .2s ease,background .2s ease; }
.task-row:hover { padding-right: 10px; padding-left: 10px; background: #faf9fc; }
.task-icon { width: 24px; flex: none; color: var(--quiet); font-size: var(--text-lede); }
.task-icon.purple { color: var(--purple); }
.task-icon.working { color: var(--teal-ink); }
.task-title { min-width: 0; flex: 1; font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
.task-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.owner { width: 98px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--text-xs); }
.avatar { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #e8e1ff; color: #42327c; font-size: var(--text-xs); font-weight: 600; }
.avatar.claude { background: #fee6d6; color: #8e4c28; }
.avatar.none { background: #efede8; color: var(--muted); }
.avatar.glm { background: var(--teal-soft); color: var(--teal-ink); }
.status { width: auto; min-width: 104px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: var(--text-xs); font-weight: 600; text-align: center; white-space: nowrap; }
.status.needs-you { background: var(--lavender); color: var(--purple-ink); }
.status.working { background: var(--teal-soft); color: var(--teal-ink); }
.status.queued { border: 1px solid var(--line); background: var(--surface); }
.status.approved { background: var(--teal-soft); color: var(--teal-ink); }
.status.review { border: 1px solid var(--teal-ink); background: var(--surface); color: var(--teal-ink); }
.task-icon.review { color: var(--teal-ink); }
/* ECO-1466: the example board groups tasks by project. */
.task-list li.task-group { padding: 14px 0 6px; border-bottom: 0; color: var(--quiet); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.task-list li.task-group:first-child { padding-top: 10px; }
.board-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--text-xs); }
.board-bottom > span { display: inline-flex; align-items: center; gap: 8px; }
.tiny-face { color: var(--purple); font-size: var(--heading-sm); }
.reset { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--purple); font-size: var(--text-xs); font-weight: 600; }
.example-label { padding-top: 20px; color: var(--muted); font-size: var(--text-xs); text-align: center; }
.doodle { position: absolute; z-index: 1; }
.doodle-left { top: -82px; left: -165px; width: 135px; transform: rotate(-4deg); }
.doodle-right { top: 88px; right: -150px; width: 115px; transform: rotate(6deg); }
.hand-note { position: absolute; z-index: 1; color: var(--muted); font-size: var(--text-sm); font-weight: 600; line-height: 1.3; transform: rotate(-5deg); }
.note-left { top: 112px; left: -164px; }
.note-right { top: 252px; right: -170px; transform: rotate(4deg); }

.steps,.situations,.under-the-hood { max-width: 1080px; padding-right: 42px; padding-left: 42px; }
.steps { margin: 108px auto 0; scroll-margin-top: 88px; }
.steps > h2,.situations h2 { font-size: var(--heading-md); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.step-grid { margin-top: 46px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
.step { min-height: 260px; padding: 30px 24px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-link { margin-top: auto; padding-top: 16px; color: var(--purple-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) and (min-width: 761px) {
  .step-grid { grid-template-columns: repeat(2,1fr); }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.step-number { color: var(--purple); font-size: var(--text-xs); font-weight: 600; letter-spacing: 1px; }
.step h3 { margin-top: 28px; font-size: var(--text-lede); font-weight: 600; line-height: 1.4; }
.step p { margin-top: 14px; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }

.situations { margin: 104px auto 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: 88px; scroll-margin-top: 88px; }
.situations-intro p { max-width: 360px; margin-top: 16px; color: var(--muted); font-size: var(--text-base); }
.situations-list { border-top: 1px solid var(--line); }
.situations-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.situations-list dt { font-size: var(--text-lede); font-weight: 600; line-height: 1.4; }
.situations-list dd { margin-top: 8px; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }

.founder-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.founder-note span { margin-right: 8px; color: var(--purple); font-size: var(--text-xs); font-weight: 600; }
.founder-note p { display: inline; font-size: inherit; }

.under-the-hood { margin: 0 auto; padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.under-the-hood-intro { display: block; }
.under-the-hood h2 { font-size: var(--heading-sm); font-weight: 600; line-height: 1.25; }
.terms { margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); column-gap: 32px; }
.terms > div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms dt { font-size: var(--text-sm); font-weight: 600; }
.terms dd { margin-top: 6px; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

.comparison-scroll { max-width: 100%; margin-top: 46px; overflow-x: auto; }
.comparison-scroll:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.comparison-table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--line); font-size: var(--text-sm); line-height: 1.5; text-align: left; }
.comparison-table th,.comparison-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; background: var(--paper); }
.comparison-table tr > * + * { border-left: 1px solid var(--line); }
.comparison-table th { color: var(--ink); font-weight: 600; }
.comparison-table td { color: var(--muted); }
.comparison-table tr > :nth-child(2) { background: var(--lavender); color: var(--ink); }
.comparison-table thead tr > :nth-child(2) { color: var(--purple-ink); }
.comparison-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 18%; }
.comparison-note { margin-top: 14px; color: var(--muted); font-size: var(--text-xs); }
.comparison-note a { text-decoration: underline; text-underline-offset: 2px; }
.steps + .under-the-hood { margin-top: 56px; }

.closing { margin: 0 auto; padding: 72px 24px 78px; background: #f7f4fc; text-align: center; }
.closing-face { position: relative; width: 47px; height: 45px; margin: 0 auto 24px; border-radius: 15px; background: #e8e1ff; transform: rotate(-9deg); transition: transform .25s ease; }
.closing-face:hover { transform: rotate(9deg); }
.closing-face span { position: absolute; top: -19px; left: 12px; font-size: var(--heading-lg); letter-spacing: 0; }
.closing-face i { position: absolute; top: 29px; left: 17px; width: 14px; height: 7px; border-bottom: 2px solid var(--ink); border-radius: 50%; }
.closing h2 { font-size: var(--heading-lg); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.closing-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing > p { margin-top: 16px; color: var(--muted); font-size: var(--text-sm); }

/* Shared footer (ECO-1469): the same markup on the homepage and every
   interior page, from shell.ts footerHtml(). Links grouped by aria-label. */
.site-footer { max-width: 1120px; margin: 0 auto; padding: var(--s-6) var(--s-5); border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr repeat(4, 1fr); align-items: start; gap: var(--s-5); font-size: var(--text-sm); }
.site-footer .brand img { width: 90px; }
.site-footer-brand p { margin-top: var(--s-2); color: var(--muted); max-width: 260px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-1); }
.site-footer li a { min-height: 32px; display: inline-flex; align-items: center; }
.site-footer li a:hover { color: var(--purple-ink); }
.site-footer-legal { grid-column: 1 / -1; color: var(--quiet); font-size: var(--text-sm); }

dialog { width: min(580px,calc(100% - 36px)); max-height: calc(100vh - 36px); padding: 36px; overflow-y: auto; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 80px #29213422; }
dialog::backdrop { background: #24202b50; backdrop-filter: blur(4px); }
.close-dialog { position: absolute; top: 10px; right: 13px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--quiet); font-size: var(--heading-sm); }
.task-owner { padding-right: 48px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
dialog h3 { margin-top: 18px; padding-right: 32px; font-size: var(--heading-sm); font-weight: 800; line-height: 1.25; }
.task-record { margin-top: 24px; border-top: 1px solid var(--line); }
.task-record dt { padding-top: 18px; color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
.task-record dd { padding: 6px 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.choices { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.choices button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: var(--text-sm); font-weight: 600; text-align: left; }
.choices button:hover,.choices button.active { border-color: #b7a1ea; background: var(--lavender); color: var(--purple-ink); }
.dialog-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dialog-note { margin-top: 18px; color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease,transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js .reveal.is-visible.is-immediate { transition: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1200px) {
  .demo-scene { max-width: 820px; }
  .doodle-left { left: -118px; width: 105px; }
  .doodle-right { right: -108px; width: 95px; }
  .hand-note { display: none; }
}

@media (max-width: 900px) {
  .desktop-nav { gap: 18px; }
  .situations { gap: 48px; }
}

/* ECO-1469: five header links fit on one row from 1041px; below that the
   same links move into the menu. */
@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .mobile-sign-in { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 800px) {
  .terms { grid-template-columns: 1fr; }
  .agent-launch { margin-right: 24px; margin-left: 24px; grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .keep-together { white-space: normal; }
  html { scroll-padding-top: 73px; }
  .nav { height: 73px; padding: 0 16px; gap: 10px; }
  .nav.is-scrolled { height: 64px; }
  .brand img { width: 82px; }
  .desktop-nav { display: none; }
  .mobile-sign-in { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .nav-button { min-height: 44px; padding: 9px 12px; font-size: var(--text-xs); }
  .hero { padding: 52px 18px 0; }
  h1 { font-size: var(--heading-lg); line-height: 1.1; }
  .hero-description { margin-top: 24px; font-size: var(--text-base); line-height: 1.6; }
  .hero-actions { margin-top: 24px; }
  .demo-scene { margin-top: 52px; scroll-margin-top: 73px; }
  .doodle { display: none; }
  .board-content { padding: 26px 20px 0; }
  .demo-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .task-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px 10px; }
  .task-icon { grid-row: 1 / 3; }
  .task-title { grid-column: 2 / 4; }
  .owner { grid-column: 2; width: auto; }
  .status { min-width: 0; width: auto; }
  .steps,.situations,.under-the-hood { padding-right: 24px; padding-left: 24px; }
  .agent-launch { margin-top: 72px; padding: 26px 22px; }
  .steps { margin-top: 96px; scroll-margin-top: 73px; }
  .step-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .step { min-height: 0; padding: 26px 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step h3 { margin-top: 16px; }
  .situations { margin-top: 96px; grid-template-columns: 1fr; gap: 32px; scroll-margin-top: 73px; }
  .situations-intro p { max-width: 520px; }
  .situations-list > div { padding: 22px 0; }
  .closing h2 { font-size: var(--heading-md); letter-spacing: -.03em; }
  .under-the-hood { padding-top: 48px; padding-bottom: 48px; }
  .terms { grid-template-columns: 1fr; margin-top: 24px; }
  .comparison-table th,.comparison-table td { padding: 14px; }
  .comparison-table tr > :first-child { width: 132px; }
  .closing { margin-top: 0; padding: 58px 22px 62px; }
  .choices { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav { gap: 6px; }
  .brand img { width: 72px; }
  .nav-actions { gap: 5px; }
  .menu-toggle { width: 44px; height: 44px; }
  .nav-button { padding-right: 9px; padding-left: 9px; gap: 8px; }
  .hero-actions { max-width: 310px; margin-right: auto; margin-left: auto; flex-direction: column; align-items: stretch; }
  .preview-bar > span { margin-left: 0; }
  .board-content { padding: 23px 16px 0; }
  .demo-head h2 { font-size: var(--heading-sm); }
  .task-row { gap: 7px 8px; }
  .task-subtitle { display: none; }
  .board-bottom { padding: 10px 0; align-items: flex-start; line-height: 1.5; }
  .example-label { padding-top: 16px; }
  .site-footer { grid-template-columns: repeat(2, 1fr); padding: var(--s-5) var(--s-4); }
  .site-footer-brand { grid-column: 1 / -1; }
  dialog { padding: 29px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

/* "As listed on": directory links in a band above the footer, scrolling
   left like the cosmic-labs logo ticker. The track holds the list twice, so
   sliding it left by half loops seamlessly. Hover pauses it; reduced motion
   gets a static, wrapping row. */
.listed-on { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 28px 0; }
.listed-on-label { max-width: 1250px; margin: 0 auto; padding: 0 35px; color: var(--muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.listed-on-ticker { margin-top: 18px; overflow: hidden; }
.listed-on-track { display: flex; align-items: center; width: max-content; animation: listed-on 60s linear infinite; }
.listed-on-track li { flex: none; padding: 0 32px; }
.listed-on-track a { display: inline-flex; min-height: 44px; align-items: center; color: var(--quiet); font-size: var(--text-lede); font-weight: 600; white-space: nowrap; }
.listed-on-track a:hover { color: var(--ink); }
.listed-on-ticker:hover .listed-on-track, .listed-on-ticker:focus-within .listed-on-track { animation-play-state: paused; }
@keyframes listed-on { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 720px) { .listed-on-label { padding: 0 22px; } .listed-on-track li { padding: 0 22px; } }
@media (prefers-reduced-motion: reduce) {
  .listed-on-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .listed-on-track li[aria-hidden="true"] { display: none; }
}

/* Signup-free agent guide. Shared tokens and shell keep it visibly part of the
   public site; the denser code surfaces are reserved for commands and config. */
.agents-page { max-width: 1180px; }
.agents-hero { max-width: 1000px; padding: 54px 0 30px; }
.agents-hero h1 { max-width: 850px; margin-top: 12px; font-size: clamp(44px,7vw,78px); line-height: 1.02; }
.agents-lede { max-width: 730px; margin-top: 26px; color: var(--muted); font-size: var(--text-lede); line-height: 1.65; }
.agents-command-card,.agents-code-card { position: relative; margin-top: 34px; overflow: hidden; border: 1px solid #35313a; border-radius: 14px; background: #18171b; color: #f7f5fa; box-shadow: 0 18px 44px #29213420; }
.agents-command-head { min-height: 46px; padding: 0 18px; border-bottom: 1px solid #35313a; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #c9c2d0; font-size: var(--text-xs); }
.agents-command-head > span:first-child { color: #fff; font-weight: 600; }
.agents-command-card pre,.agents-code-card pre { margin: 0; padding: 24px 20px; overflow-x: auto; color: inherit; font: 13px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.agents-command-card .agents-copy,.agents-code-card .agents-copy { margin-top: 0; }
.agents-hero-note,.agents-fine-print { max-width: 760px; margin-top: 16px; color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }
.agents-limits { margin: 46px 0 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.agents-limits > div { min-height: 150px; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.agents-limits > div + div { border-left: 1px solid var(--line); }
.agents-limits strong { font-size: var(--heading-md); line-height: 1.2; }
.agents-limits span { margin-top: 7px; color: var(--muted); font-size: var(--text-sm); }
.agents-section { margin-top: 112px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.agents-section-intro { position: sticky; top: 110px; }
.agents-section-intro h2,.agents-closing h2 { margin-top: 10px; font-size: var(--heading-lg); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.agents-section-intro > p:last-child,.agents-closing p { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.agents-flow { border-top: 1px solid var(--line); }
.agents-flow li { min-height: 135px; padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.agents-flow li > span { color: var(--purple); font-size: var(--text-xs); font-weight: 600; }
.agents-flow h3 { font-size: var(--text-lede); font-weight: 600; }
.agents-flow p { margin-top: 7px; color: var(--muted); }
.agents-flow code,.agents-section-intro code,.agents-fine-print code,.agents-details code { padding: 2px 5px; border-radius: 4px; background: var(--lavender); color: var(--purple-ink); font: .86em ui-monospace,SFMono-Regular,Menlo,monospace; }
.agents-config-grid { display: grid; gap: 18px; }
.agents-code-card { margin-top: 0; }
.agents-code-card .agents-command-head code { color: inherit; background: none; }
.agents-prompt .agents-command-card { margin-top: 0; }
.agents-details { border-top: 1px solid var(--line); }
.agents-details dl > div { padding: 21px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 24px; }
.agents-details dt { font-size: var(--text-sm); font-weight: 600; }
.agents-details dd { color: var(--muted); }
.agents-details a { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 3px; }
.agents-closing { margin-top: 120px; padding: 72px; border-radius: 18px; background: var(--lavender); text-align: center; }
.agents-closing h2 { max-width: 760px; margin-right: auto; margin-left: auto; }
.agents-closing p { max-width: 650px; margin-right: auto; margin-left: auto; }
/* ECO-1467: two doors on the first screen, one per reader. */
.agents-roles { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.agents-role { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 4px; }
.agents-role:hover { border-color: var(--purple); }
.agents-role strong { font-size: var(--text-base); }
.agents-role span { color: var(--muted); font-size: var(--text-sm); }
.agents-person-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.agents-closing-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#agent-start, #person { scroll-margin-top: 96px; }
@media (max-width: 420px) { .agents-roles { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .agents-hero { padding-top: 32px; }
  .agents-hero h1 { font-size: var(--heading-lg); }
  .agents-limits { margin-bottom: 72px; grid-template-columns: 1fr; }
  .agents-limits > div { min-height: 100px; padding: 20px 0; }
  .agents-limits > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .agents-section { margin-top: 78px; grid-template-columns: 1fr; gap: 30px; }
  .agents-section-intro { position: static; }
  .agents-section-intro h2,.agents-closing h2 { font-size: var(--heading-md); }
  .agents-details dl > div { grid-template-columns: 1fr; gap: 6px; }
  .agents-closing { margin-top: 80px; padding: 46px 22px; }
}
