@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Tokens from characterquilt.com */
:root {
  --paper: #f8f7f3;
  --ink: #242825;
  --muted: #5b6157;
  --line: #dedfd6;
  --blue: #4f83e4;
  --blue-ink: #3363c9;
  --light-blue: #eaf1fb;
  --yellow: #f6cf63;
  --green: #dcebcf;
  --green-ink: #2f5a22;
  --card: #fdfcf9;
  --radius: 12px;
  --page: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 82px;
  --text-h1: clamp(3rem, 1.6rem + 5.8vw, 7rem);
  --text-h2: clamp(2.375rem, 1.6rem + 3.4vw, 4.75rem);
  --text-h3: clamp(1.875rem, 1.3rem + 2.5vw, 3.5rem);
  --text-h4: clamp(1.5rem, 1.3rem + .75vw, 1.875rem);
  --text-lead: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem);
  --text-body: 1.125rem;
  --text-ui: 1rem;
  --text-meta: .9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto; font-size: var(--text-body); line-height: 1.6;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 560; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
p, li { text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 7px; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: min(var(--page), calc(100% - 112px)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons and small UI ---------- */
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 49px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 7px;
  background: var(--ink); color: var(--paper); font-size: var(--text-ui); font-weight: 600; letter-spacing: -.005em;
  line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s, transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: #111412; }
.btn-sm { min-height: 41px; padding: 10px 16px; gap: 14px; }
.btn-xs { min-height: 36px; padding: 8px 14px; gap: 8px; font-size: 15px; }
.btn-secondary { background: transparent; color: var(--ink); border-color: #bbbeb5; }
.btn-secondary:hover { background: #efeee8; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.is-done { background: var(--green); color: var(--green-ink); border-color: #b9d4a6; }
.pill-new { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--light-blue); color: var(--blue-ink); font-size: 14px; font-weight: 600; line-height: 1; vertical-align: .15em; white-space: nowrap; }
.replay, .copy {
  flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); cursor: pointer;
}
.replay { margin-left: auto; color: var(--muted); }
.replay:hover, .copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-copied { background: var(--green); border-color: #b9d4a6; color: var(--green-ink); }
html:not(.js) .replay, html:not(.js) .copy { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 243, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 42px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 32px; height: auto; }
.brand-word { height: 23.7px; width: auto; }
.topnav { display: flex; gap: 28px; flex: 1; }
.topnav a { padding: 6px 0; font-size: var(--text-ui); font-weight: 500; text-decoration: none; white-space: nowrap; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.topnav a:hover, .topnav a[aria-current="true"] { text-decoration-line: underline; }
.topnav a[aria-current="true"] { text-decoration-color: var(--ink); }
.site-header .btn-sm { flex: none; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: #f8f8f0; }
.hero-media { position: absolute; inset: 0; z-index: -1; contain: paint; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248, 247, 243, .75) 0%, rgba(248, 247, 243, .3) 38%, rgba(248, 247, 243, 0) 60%, rgba(248, 247, 243, 0) 86%, var(--paper) 100%); }
.hero-inner { padding: 112px 0 300px; text-align: center; }
.hero-title { max-width: 1120px; margin-inline: auto; font-size: var(--text-h1); line-height: .97; letter-spacing: -.04em; font-weight: 620; text-wrap: balance; }
.hero-lead { max-width: 36rem; margin: 30px auto 0; font-size: var(--text-lead); line-height: 1.5; color: #3f453d; }
.hero-date { color: var(--muted); }

/* ---------- Scribble underline (site paths) ---------- */
.mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.scribble { position: absolute; left: -3%; width: 106%; height: .3em; bottom: -.16em; overflow: visible; pointer-events: none; z-index: -1; }
.scribble path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }

/* ---------- At a glance ---------- */
.glance { padding: 24px 0 88px; }
.glance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.glance-grid > li { display: flex; }
.glance-card {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease);
}
.glance-card:hover { border-color: #b9bcb2; transform: translateY(-2px); }
.glance-art { width: 56px; height: 56px; object-fit: contain; flex: none; }
.glance-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.glance-name { font-size: 1.25rem; font-weight: 640; letter-spacing: -.015em; line-height: 1.25; }
.glance-line { font-size: var(--text-ui); line-height: 1.5; color: var(--muted); }
.glance-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--text-meta); font-weight: 600; }
.glance-card:hover .glance-go .icon { transform: translateX(3px); }
.glance-go .icon { transition: transform .2s var(--ease); }

/* ---------- Section heads ---------- */
.section-title { font-size: var(--text-h2); line-height: 1.01; letter-spacing: -.034em; text-wrap: balance; }
.section-lead { margin-top: 19px; font-size: var(--text-lead); line-height: 1.5; color: var(--muted); }

/* ---------- One brain ---------- */
.brain { border-top: 1px solid var(--line); padding: 104px 0 96px; text-align: center; }
.brain-inner { max-width: 820px; }
.brain .section-lead { max-width: 36rem; margin-inline: auto; }
.brain-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.brain-chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-ui); font-weight: 500; color: #3d423c; }
.brain-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 26px; }
.brain-agents img { width: 64px; height: 64px; object-fit: contain; }

/* ---------- Feature sections ---------- */
.feature { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 12px); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 72px; align-items: center; padding: 96px 0; }
.feature-copy { max-width: 31rem; }
.feature-title { font-size: var(--text-h3); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.feature-lead { margin-top: 26px; font-size: var(--text-body); line-height: 1.65; color: var(--muted); }
.feature-lead strong { color: var(--ink); font-weight: 650; }
.bullets { list-style: disc; padding-left: 20px; margin-top: 18px; display: grid; gap: 6px; }
.bullets li { font-size: 17px; line-height: 1.5; color: #3d423c; }
.bullets li::marker { color: #9ca196; }
.email { overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.note { margin-top: 16px; font-size: var(--text-meta); line-height: 1.55; color: var(--muted); }

/* sample prompts */
.prompts { margin-top: 26px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prompts summary { cursor: pointer; padding: 4px 4px; font-size: var(--text-ui); font-weight: 600; border-radius: var(--radius); }
.prompts summary::marker { color: var(--muted); }
.prompts summary:hover { background: #f3f2ec; }
.prompts[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.prompts-body { padding: 10px 4px 2px; }
.prompts-how, .prompts-note { font-size: var(--text-meta); line-height: 1.5; color: var(--muted); }
.prompts-how { padding-bottom: 10px; }
.prompts-note { padding-top: 10px; }
.prompt-list { border-top: 1px solid var(--line); }
.prompt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prompt-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.95; color: var(--ink); }
.mention { color: var(--blue-ink); font-weight: 650; }
.fill { padding: 5px 8px; border-radius: 4px; background: #fbeec2; color: var(--ink); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* stage: flare backdrop + app mock + mascot, like the site */
.stage { position: relative; isolation: isolate; padding: 0 3.5% calc(clamp(5.5rem, 8vw, 8rem) + .5rem); }
.stage-flare { position: absolute; left: 0; right: 0; top: 3.5rem; bottom: 0; width: 100%; height: calc(100% - 3.5rem); object-fit: cover; border-radius: 1.75rem; z-index: -1; }
.stage-stitch { position: absolute; z-index: 3; left: -1.25rem; bottom: .25rem; width: clamp(5.5rem, 8vw, 8rem); height: auto; }
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 22px; font-size: 16px; line-height: 1.45; }
.mock > :not(.mock-bar):not(.mock-sub) { margin-inline: 22px; }
.mock-bar + *, .mock-sub + * { margin-top: 18px; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-logo { width: 20px; height: auto; }
.mock-bar b { font-weight: 650; }
.mock-ctx { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); min-width: 0; }
.mock-sub { padding: 12px 16px 0; }

/* example internals: flat, no boxes inside boxes */
.chat { display: grid; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg p { padding: 10px 14px; border-radius: 14px; max-width: 88%; }
.msg-agent p { background: #f3f2ec; border-bottom-left-radius: 4px; }
.msg-you { justify-content: flex-end; }
.msg-you p { background: var(--light-blue); color: #1d2b44; border-bottom-right-radius: 4px; }
.avatar { width: 26px; height: auto; flex: none; margin-bottom: 4px; }
.result { margin-top: 14px; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pill-yellow { background: #fbe7ae; color: #5c4307; }
.pill-green { background: var(--green); color: var(--green-ink); }
.type-ghost { display: none; }
.js .msg-you p { position: relative; }
.js .type-ghost { display: inline; visibility: hidden; }
.js .type { position: absolute; left: 14px; right: 14px; top: 10px; }
.type.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--blue-ink); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo [data-step] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.demo .is-hidden { opacity: 0; transform: translateY(8px); }

.msg-q { margin-bottom: 8px; }
.msg-q p { font-weight: 560; }
.answer-list li, .answer-miss { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--light-blue); color: var(--blue-ink); font-size: 14px; font-weight: 700; flex: none; }
.answer-miss { color: var(--muted); font-weight: 500; border-bottom-style: dashed; }
.gap { margin-top: 14px; }
.gap.is-pulse { animation: pulse 1s var(--ease) 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 178, 63, .6); } 100% { box-shadow: 0 0 0 10px rgba(226, 178, 63, 0); } }
.fix { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--light-blue); }
.fix p { font-weight: 560; }
.fix-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chart { display: grid; gap: 12px; }
.chart-rows { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) 80px; gap: 12px; align-items: center; }
.bar-label { font-size: 15px; font-weight: 560; line-height: 1.25; }
.bar-track { position: relative; height: 24px; border-left: 2px solid #c9cbc0; }
.bar-ghost, .bar { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 0 6px 6px 0; }
.bar-ghost { border: 1.5px dashed #9ea295; border-left: 0; }
.bar { width: 100%; background: #a9c3f2; transform: scaleX(var(--s, 1)); transform-origin: left center; transition: transform 1s var(--ease); }
.is-up .bar { background: var(--blue); }
.is-down .bar { background: var(--yellow); }
.bar-value { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; }
.delta { font-size: 14px; font-weight: 600; transition: opacity .3s; }
.is-up .delta { color: var(--blue-ink); }
.is-down .delta { color: #7a5a06; }
.delta.is-hidden { opacity: 0; }
.legend { display: flex; gap: 18px; padding-left: 180px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 0 3px 3px 0; }
.sw-before { border: 1.5px dashed #9ea295; }
.sw-after { background: var(--blue); }
.approval { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: 15px; color: var(--muted); }
.approval strong { color: var(--ink); font-weight: 620; }
.approval-title { font-size: 17px; font-weight: 650; color: var(--ink); line-height: 1.35; margin-bottom: 3px; }

.accounts { display: flex; flex-wrap: wrap; gap: 6px; }
.accounts li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 560; line-height: 1.1; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.accounts li.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ad { display: grid; grid-template-columns: 38% 1fr; border-radius: var(--radius); background: #fff8e6; }
.ad-art { display: grid; place-items: center; padding: 14px; border-radius: var(--radius) 0 0 var(--radius); background: #fdebb4; }
.ad-art img { width: 100%; max-width: 150px; height: auto; }
.ad-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 18px 20px; min-width: 0; }
.ad-brand { font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.editable { position: relative; width: 100%; margin: 8px -10px 0; padding: 8px 10px; border: 2px dashed var(--blue); border-radius: 8px; }
.editable-tag { position: absolute; top: -14px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--blue-ink); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ad-headline { font-size: clamp(22px, 1.9vw, 28px); font-weight: 680; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.ad-headline-text { display: inline-block; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ad-headline-text.is-out { opacity: 0; transform: translateY(-8px); }
.ad-headline-text.is-in-start { opacity: 0; transform: translateY(8px); transition: none; }
.ad-line { font-size: 15px; color: #4a4f46; line-height: 1.4; }
.ad-cta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.ad-cta .icon { width: 14px; height: 14px; }
.caption { margin-top: 12px; font-size: 15px; color: var(--muted); }

.voice { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 999px; background: #f3f2ec; margin-bottom: 12px; }
.wave { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 38px; }
.wave i { flex: none; width: 6px; height: 100%; border-radius: 4px; background: var(--blue); transform: scaleY(var(--h)); }
.wave.is-playing i { animation: wave .8s ease-in-out infinite alternate; animation-delay: calc(var(--w) * -60ms); }
@keyframes wave { 0% { transform: scaleY(.18); } 100% { transform: scaleY(var(--h)); } }
.voice-time { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg-voice p { font-size: 17px; font-weight: 560; }

.thread { display: grid; gap: 14px; }
.tmsg { display: flex; gap: 10px; align-items: flex-start; }
.t-initial { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: #e6e2f7; color: var(--ink); font-weight: 700; font-size: 16px; }
.t-avatar { flex: none; width: 34px; height: auto; }
.t-body { min-width: 0; }
.t-name { font-weight: 700; font-size: 15px; }
.t-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-link { padding: 6px 10px; border-radius: 8px; background: var(--light-blue); color: var(--blue-ink); font-size: 14px; font-weight: 650; line-height: 1.2; }

/* ---------- Ready-made agents carousel ---------- */
.ready { border-top: 1px solid var(--line); padding: 96px 0 88px; min-width: 0; }
.ready-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ready-title { font-size: var(--text-h3); line-height: 1.04; letter-spacing: -.03em; }
.car-controls { display: flex; gap: 8px; flex: none; }
.car-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #bbbeb5; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.car-btn:hover { background: #efeee8; }
.car-btn .icon-prev { transform: rotate(180deg); }
html:not(.js) .car-controls, html:not(.js) .car-dots { display: none; }
.car-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-viewport::-webkit-scrollbar { display: none; }
.motion .car-viewport { scroll-behavior: smooth; }
.car-track { display: flex; gap: 16px; padding: 2px; }
.ag-card { --per: 4; flex: 0 0 calc((100% - (var(--per) - 1) * 16px) / var(--per)); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ag-top { display: flex; align-items: center; gap: 12px; }
.ag-art { width: 56px; height: 56px; object-fit: contain; flex: none; }
.ag-art.logo-img { padding: 12px; }
.ag-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.ag-group { margin-top: 3px; font-size: var(--text-meta); color: var(--muted); }
.ag-line { flex: 1; font-size: var(--text-ui); line-height: 1.5; color: #3d423c; }
.ag-prompts { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.ag-prompts summary { cursor: pointer; padding: 8px 0 2px; font-size: 15px; font-weight: 600; }
.ag-prompts summary::marker { color: var(--muted); }
.ag-prompts summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.ag-prompts .prompts-body { padding: 8px 0 0; }
.ag-prompts .prompt-list { border-top: 0; }
.ag-prompts .prompt { flex-direction: column; gap: 8px; border-bottom: 0; padding: 4px 0 0; }
.ag-prompts .prompts-note { padding-top: 6px; }
.car-dots { display: none; }
.car-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-viewport::-webkit-scrollbar { display: none; }
.motion .car-viewport { scroll-behavior: smooth; }
.car-track { display: flex; gap: 16px; padding: 2px; }
.ag-card { --per: 4; flex: 0 0 calc((100% - (var(--per) - 1) * 16px) / var(--per)); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ag-top { display: flex; align-items: center; gap: 12px; }
.ag-art { width: 56px; height: 56px; object-fit: contain; flex: none; }
.ag-art.logo-img { padding: 12px; }
.ag-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.ag-group { margin-top: 3px; font-size: var(--text-meta); color: var(--muted); }
.ag-line { flex: 1; font-size: var(--text-ui); line-height: 1.5; color: #3d423c; }
.ag-card .prompts { margin-top: 6px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.ag-card .prompts summary { padding: 10px 0 2px; border-radius: 0; font-size: 15px; }
.ag-card .prompts summary:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.ag-card .prompts-body { padding: 8px 0 0; }
.ag-card .prompt-list { border-top: 0; }
.ag-card .prompt { flex-direction: column; gap: 8px; border-bottom: 0; padding: 4px 0 0; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: #c9cbc0; transition: background .2s; }
.car-dot[aria-current="true"]::before { width: 22px; background: var(--ink); }

/* ---------- End band ---------- */
.end { background: var(--yellow); padding: 96px 28px 100px; scroll-margin-top: var(--bar-h); }
.end .container { width: min(var(--page), 100%); }
.end-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.end-main { display: flex; flex-direction: column; align-items: flex-start; }
.end .section-title { font-size: var(--text-h2); }
.steps { list-style: decimal; padding-left: 26px; margin: 26px 0 30px; display: grid; gap: 4px; font-size: var(--text-lead); font-weight: 560; }
.steps li::marker { font-weight: 700; }
.end-note { margin-top: 14px; font-size: var(--text-ui); color: #3a3410; max-width: 30rem; }
.end-help { font-size: var(--text-h4); line-height: 1.18; letter-spacing: -.018em; margin-bottom: 14px; }
.book { display: grid; gap: 12px; }
.book-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid rgba(36, 40, 37, .28); border-radius: var(--radius); }
.book-title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.end-small { margin-top: 18px; font-size: var(--text-meta); color: #3a3410; }

/* ---------- Footer ---------- */
.site-footer { padding: 57px 0 29px; }
.footer-brand p { max-width: 19rem; margin-top: 17px; font-size: var(--text-ui); line-height: 1.6; color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 19px; border-top: 1px solid var(--line); font-size: var(--text-meta); color: var(--muted); }

/* ---------- Motion (once per element; no motion = final state) ---------- */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .feature.reveal { opacity: 1; transform: none; }
.motion .feature .feature-title, .motion .feature .feature-lead, .motion .feature .bullets, .motion .feature .prompts, .motion .feature .note, .motion .feature .stage {
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--ease); }
.motion .feature .feature-lead { transition-delay: .08s; }
.motion .feature .stage { transition-delay: .12s; }
.motion .feature .bullets { transition-delay: .16s; }
.motion .feature .prompts { transition-delay: .24s; }
.motion .feature .note { transition-delay: .3s; }
.motion .feature.is-in .feature-title, .motion .feature.is-in .feature-lead, .motion .feature.is-in .bullets, .motion .feature.is-in .prompts, .motion .feature.is-in .note, .motion .feature.is-in .stage { opacity: 1; transform: none; }
.motion .glance .reveal-item { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.motion .glance.is-in .reveal-item { opacity: 1; transform: none; }
.motion .brain .brain-chips li, .motion .brain .brain-agents li { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s var(--ease); }
.motion .brain.is-in .brain-chips li, .motion .brain.is-in .brain-agents li { opacity: 1; transform: none; }
.motion .brain-chips li:nth-child(2), .motion .brain-agents li:nth-child(2) { transition-delay: .07s; }
.motion .brain-chips li:nth-child(3), .motion .brain-agents li:nth-child(3) { transition-delay: .14s; }
.motion .brain-agents li:nth-child(4) { transition-delay: .21s; }
.motion .brain-agents li:nth-child(5) { transition-delay: .28s; }
.motion .brain-agents li:nth-child(6) { transition-delay: .35s; }
.motion .ready .ag-card { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .7s var(--ease); }
.motion .ready.is-in .ag-card { opacity: 1; transform: none; }
.motion .ready .ag-card:nth-child(2) { transition-delay: .07s; }
.motion .ready .ag-card:nth-child(3) { transition-delay: .14s; }
.motion .ready .ag-card:nth-child(n+4) { transition-delay: .21s; }
.motion .end .end-main, .motion .end .end-side { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--ease); }
.motion .end.is-in .end-main, .motion .end.is-in .end-side { opacity: 1; transform: none; }
.motion .end .end-side { transition-delay: .1s; }
.motion .mark .scribble path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.motion .is-in .mark .scribble path { stroke-dashoffset: 0; }
.motion .hero-title, .motion .hero-lead { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); }
.motion .hero-lead { transition-delay: .12s; }
.motion .hero.is-in .hero-title, .motion .hero.is-in .hero-lead { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topnav { gap: 20px; }
  .topnav a { font-size: 15px; }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature-copy { max-width: 40rem; }
  .ag-card { --per: 3; }
  .end-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --bar-h: 104px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0 0; gap: 10px 16px; }
  .topnav { order: 3; flex-basis: 100%; margin: 0 -20px; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 40px); }
  .brand-mark { width: 28px; }
  .brand-word { height: 20px; }
  .site-header .btn-sm { min-height: 38px; padding: 8px 12px; font-size: 15px; }
  .site-header .btn-sm .icon { display: none; }
  .hero-inner { padding: 64px 0 220px; }
  .glance { padding: 8px 0 64px; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .glance-card { padding: 16px 18px; }
  .glance-art { width: 48px; height: 48px; }
  .brain { padding: 72px 0; }
  .brain-agents img { width: 46px; height: 46px; }
  .brain-agents { gap: 10px; }
  .feature-row { padding: 64px 0; }
  .stage { padding: 0 3% 5rem; }
  .stage-stitch { left: -.5rem; width: 4.5rem; }
  .mock > :not(.mock-bar):not(.mock-sub) { margin-inline: 14px; }
  .mock-ctx { display: none; }
  .msg p { font-size: 15px; }
  .bar-row { grid-template-columns: 1fr 70px; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; font-size: 14px; }
  .legend { padding-left: 0; flex-wrap: wrap; }
  .ad { grid-template-columns: minmax(0, 1fr); }
  .ad-art { border-radius: var(--radius) var(--radius) 0 0; }
  .ad-art img { max-width: 120px; }
  .wave { gap: 2px; }
  .wave i { width: 4px; }
  .voice { padding: 10px 12px; gap: 10px; }
  .prompt { flex-direction: column; gap: 8px; }
  .ready { padding: 64px 0; }
  .ag-card { flex-basis: 86%; }
  .end { padding: 72px 20px 76px; }
  .book-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .replay { display: none; }
}
