
:root {
  color-scheme: light;
  --navy: #223F83; --navy-deep: #16295A; --ink: #0B0E14; --ink-hi: #262C3A;
  --paper: #FFFFFF; --cloud: #EEF3FA; --off: #F7F9FC;
  --yellow: #FFD23F; --yellow-hi: #FFDD66; --sky: #49B8F7;
  --slate: #5B6478; --line: #D7DFEC; --dash: #9AA5BC; --mist: #C9D4EE;
  /* Borders that mark a control people can use, such as a text field. At least 3:1 against white. */
  --edge: #7C869B;
  --ok: #1E5B2E; --err: #B3261E;
  /* The three calls, always shown with their word: green Build, amber Pivot, red Park. */
  --build: #1E5B2E; --build-bg: #E3F1E6;
  --pivot: #8A4B00; --pivot-bg: #FFF0D1;
  --park: #B3261E; --park-bg: #FBE4E2;
  --f-head: Unbounded, "Arial Black", sans-serif;
  --f-label: "Big Shoulders", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
}
/* Increase Contrast: darker text, rules and field borders for people who ask their device for more contrast */
@media (prefers-contrast: more) {
  :root { --slate: #3D4556; --line: #8A94AA; --dash: #5B6478; --edge: #3D4556; }
}
/* CEO Signal site styles. The build puts the club's tokens from src/brand.ts in front of this file.
   The base, type, buttons, header and footer follow the club site's design A ("Campus Lab") rule for
   rule, so the two sites read as one. Then the home page's prompt box and agent panel, the report
   cards, and the chat.
   Order: base, type, shared pieces, header and footer, home, chat, motion. */

:root {
  scroll-padding-top: 92px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 7vw, 96px);
  --sec-end: clamp(64px, 8vw, 112px);
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
.site { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
:where(.site) a { color: inherit; }
:where(.site) :is(h1, h2, h3, h4, p, figure, blockquote, dl, dd) { margin: 0; }
:where(.site) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.site) :is(b, strong) { font-weight: 650; }
.site :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
:is(.util, .foot) :focus-visible { outline-color: var(--yellow); }
::selection { background: color-mix(in srgb, var(--yellow) 60%, transparent); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-top: var(--sec); }
.sec.last { padding-bottom: var(--sec-end); }

/* Type */
.h1 { font-family: var(--f-head); font-weight: 600; font-size: clamp(2.375rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.statement { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 1.9375rem); line-height: 1.28; letter-spacing: -0.015em; text-wrap: balance; }
.meta { font-family: var(--f-label); font-weight: 700; font-size: .875rem; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.lead { max-width: 38rem; font-size: 1.1875rem; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.muted { color: var(--slate); }
.small { font-size: .9375rem; line-height: 1.55; }
.eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--navy); }
.label-h { margin-bottom: 12px; font-family: var(--f-label); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }

/* Buttons, links, tags and chips. Square, like the rest of the page. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; background: none; font-family: var(--f-body); font-weight: 650; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: var(--ink-hi); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover { background: var(--yellow-hi); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn[aria-disabled="true"], .btn:disabled { border-color: transparent; background: var(--cloud); color: var(--slate); cursor: not-allowed; }
.arr { display: inline-block; transition: transform .2s ease-out; }
:is(.btn, .link):hover .arr { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; }
.link:hover { color: var(--navy); text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 3px; background: var(--cloud); color: var(--navy); font-family: var(--f-label); font-weight: 700; font-size: .75rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tag.t-build { background: var(--build-bg); color: var(--build); }
.tag.t-pivot { background: var(--pivot-bg); color: var(--pivot); }
.tag.t-park { background: var(--park-bg); color: var(--park); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); font-family: var(--f-body); font-weight: 650; font-size: .9375rem; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.pick { border-color: var(--ink); }

/* Section heads, as on the club site: a label over a rule */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 28px; padding-top: 12px; border-top: 1px solid var(--ink); }
.sec-head h2 { margin-right: auto; font-family: var(--f-label); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.sec-intro { max-width: 40rem; margin: -8px 0 28px; }

/* Club hours bar and site header */
.util { background: var(--navy-deep); color: #FFFFFF; }
.util-in { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; justify-content: space-between; font-family: var(--f-label); font-weight: 700; font-size: .875rem; letter-spacing: .07em; text-transform: uppercase; }
.util-in > p:first-child { padding-block: 10px; }
.util-links { display: flex; gap: 20px; }
.util-links a { padding-block: 10px; color: #FFFFFF; text-decoration: none; }
.util-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .util-links { display: none; } }
/* The header and menu below are the club site's, from its app/globals.css. Keep them in step. */
.hdr { position: sticky; top: 0; z-index: 30; background: #FFFFFF; border-bottom: 1px solid var(--ink); }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--navy); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none; }
.hdr-in { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand-badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; background: var(--navy); color: #FFFFFF; font-family: var(--f-head); font-weight: 700; font-size: .75rem; letter-spacing: .02em; }
.brand-text { display: grid; gap: 3px; min-width: 0; line-height: 1.1; }
.brand-name { font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { overflow: hidden; color: var(--slate); font-family: var(--f-label); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 26px; margin-right: 6px; font-weight: 600; font-size: .9375rem; }
.nav a { padding-block: 12px; color: var(--ink); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-line: underline; }
.hdr-cta { flex: none; min-height: 44px; padding: 0 18px; }
.menu-btn { display: none; flex: none; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: #FFFFFF; color: var(--ink); font-family: var(--f-body); font-weight: 650; font-size: .9375rem; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: #FFFFFF; }
.mpanel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 76px); overflow-y: auto; background: #FFFFFF; border-bottom: 1px solid var(--ink); }
.mpanel-in { display: grid; padding-block: 6px 28px; }
.m-link { padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; text-decoration: none; }
.m-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.m-foot { display: grid; gap: 8px; margin-top: 20px; }
.m-social { display: flex; flex-wrap: wrap; gap: 0 20px; }
.m-social a { padding-block: 8px; font-weight: 600; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1081px) { .mpanel { display: none !important; } }
.m-join { justify-self: start; }
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .hdr-cta { padding: 0 14px; }
  .hdr-cta .arr { display: none; }
}
/* On narrow phones the header keeps the name and the menu, and Join CEO moves into the menu. */
@media (max-width: 420px) { .hdr-cta { display: none; } }

/* CEO Signal's own bar under the club's header: its name, and its section links or the chat's New idea */
.bar-sig { border-bottom: 1px solid var(--line); background: var(--off); }
.bar-sig-in { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; min-height: 56px; padding-block: 6px; }
.bar-sig-name { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; }
.bar-sig-links { display: flex; gap: 22px; font-weight: 600; font-size: .9375rem; }
.bar-sig-links a { padding-block: 12px; color: var(--ink); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.bar-sig-links a:hover { text-decoration-line: underline; }
@media (max-width: 720px) { .bar-sig-links { display: none; } }

/* Footer, as on the club site */
.foot { background: var(--navy-deep); color: #FFFFFF; }
.foot-in { display: grid; gap: 48px; padding-block: 64px 28px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-brand { flex: 1 1 280px; max-width: 340px; display: grid; gap: 16px; align-content: start; }
.foot .brand { margin-right: 0; color: #FFFFFF; }
.foot .brand-badge { background: #FFFFFF; color: var(--navy); }
.foot-brand p { color: var(--mist); font-size: .9375rem; line-height: 1.55; }
.foot-col { flex: 0 1 9rem; min-width: 8rem; display: grid; gap: 10px; align-content: start; font-size: .9375rem; line-height: 1.6; }
.foot-col.visit { flex-basis: 14rem; }
.foot-col.listen { flex-basis: 12rem; }
.foot-col h2 { color: var(--mist); font-family: var(--f-label); font-weight: 800; font-size: .9375rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.foot-col .dim { color: var(--mist); }
.foot-col ul { display: grid; gap: 2px; }
.foot-col a { display: inline-block; padding-block: 3px; color: #FFFFFF; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid rgba(201, 212, 238, .3); color: var(--mist); font-size: .875rem; }

/* Agent avatars: a colored circle with an icon. The Judge is yellow because the call is the one thing
   a founder must not miss. */
.av { flex: none; display: grid; place-items: center; width: var(--av, 44px); height: var(--av, 44px); border-radius: 50%; }
.av svg { width: 52%; height: 52%; }
.av-coach { background: var(--navy); color: #FFFFFF; }
.av-researcher { background: var(--sky); color: var(--ink); }
.av-analyst { background: var(--cloud); color: var(--navy); box-shadow: inset 0 0 0 1px var(--mist); }
.av-skeptic { background: var(--ink); color: #FFFFFF; }
.av-judge { background: var(--yellow); color: var(--ink); }

/* Home: the hero is a prompt, like the AI builders people already know */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; justify-items: center; text-align: center; }
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
.hero-lead { margin: 22px auto 0; max-width: 40rem; }
.hero-lead b { color: var(--ink); }
.prompt {
  position: relative; width: 100%; max-width: 48rem; margin-top: 36px; border: 1px solid var(--ink); background: #FFFFFF;
  box-shadow: 6px 6px 0 var(--navy); text-align: left; view-transition-name: prompt;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.prompt:focus-within { box-shadow: 8px 8px 0 var(--navy); transform: translate(-2px, -2px); }
.prompt-field { position: relative; }
.prompt textarea {
  display: block; width: 100%; min-height: 120px; max-height: 40vh; padding: 20px 22px 8px; border: 0; border-radius: 0; background: transparent;
  color: var(--ink); font: 400 1.125rem/1.5 var(--f-body); resize: none; outline: none;
}
.prompt textarea::placeholder { color: var(--slate); opacity: 1; }
/* The whole box shows focus, so the text area inside it doesn't draw a second ring. */
.site .prompt textarea:focus-visible { outline: none; }
.js .prompt.typing textarea::placeholder { color: transparent; }
/* Example ideas type themselves into the empty box, to show what to write. */
.typer { position: absolute; inset: 20px 22px auto; color: var(--slate); font: 400 1.125rem/1.5 var(--f-body); pointer-events: none; }
.typer::after { content: ""; display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--navy); animation: blink 1s steps(1) infinite; }
.prompt:not(.typing) .typer { display: none; }
.prompt-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: flex-end; padding: 10px 10px 10px 22px; }
.prompt-hint { margin-right: auto; }
.prompt-go { min-height: 48px; }
.prompt-msg { min-height: 1.5em; margin-top: 12px; color: var(--err); font-size: .9375rem; }
@media (pointer: coarse) { .prompt-hint { display: none; } }
.tries { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; max-width: 48rem; margin-top: 8px; }
.tries .meta { margin-right: 4px; }

/* The five agents pop in once and then hold still, so the prompt keeps the attention. The row links
   down to what each one does. */
.crew { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; min-height: 44px; margin-top: 36px; color: var(--ink); font-weight: 650; font-size: .9375rem; text-decoration: none; }
.crew-avs { display: flex; padding-left: 10px; }
.crew-av { margin-left: -10px; border-radius: 50%; box-shadow: 0 0 0 3px #FFFFFF; }
.js .crew-av { animation: pop .45s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 90ms + 300ms); }
.crew-cap { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.crew:hover .crew-cap { color: var(--navy); text-decoration-thickness: 2px; }
.crew:hover .arr { transform: translateY(3px); }
.note-line { display: flex; gap: 10px; align-items: baseline; justify-content: center; max-width: 40rem; margin-top: 28px; color: var(--slate); font-size: .875rem; line-height: 1.5; }
.note-line::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); transform: translateY(-1px); }

/* How it works: one ruled row per agent */
.steps { border-top: 1px solid var(--line); counter-reset: step; }
.step { display: grid; grid-template-columns: 3.5rem 15rem minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); color: var(--navy); font-family: var(--f-label); font-weight: 800; font-size: 1.25rem; }
.step-who { display: flex; gap: 14px; align-items: center; }
.step-does { color: var(--ink); }
@media (max-width: 860px) {
  .step { grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: start; }
  .step-who { grid-column: 2; }
  .step .tag { grid-column: 3; grid-row: 1; align-self: center; }
  .step-does { grid-column: 2 / -1; }
}

/* Sample reports: each card is a small picture of the report, gauges drawn from its real scores */
.reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
@media (max-width: 1000px) { .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reports { grid-template-columns: minmax(0, 1fr); } }
.rc { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rc-doc { display: grid; gap: 10px; align-content: start; aspect-ratio: 4 / 3; padding: 18px 20px; overflow: hidden; border: 1px solid var(--line); background: var(--off); transition: border-color .2s; }
.rc:hover .rc-doc { border-color: var(--ink); }
.rc-top { display: flex; justify-content: space-between; align-items: center; }
.rc-badge { display: grid; place-items: center; width: 26px; height: 26px; background: var(--navy); color: #FFFFFF; font: 700 .5rem/1 var(--f-head); }
.rc-call { padding: 1px 8px; font: 800 .8125rem/1.5 var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.rc-call.t-build { background: var(--build-bg); color: var(--build); box-shadow: inset 0 0 0 1px var(--build); }
.rc-call.t-pivot { background: var(--pivot-bg); color: var(--pivot); box-shadow: inset 0 0 0 1px var(--pivot); }
.rc-call.t-park { background: var(--park-bg); color: var(--park); box-shadow: inset 0 0 0 1px var(--park); }
.rc-title { font: 600 1.0625rem/1.25 var(--f-head); letter-spacing: -0.01em; }
.rc-g { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 1.6rem; gap: 10px; align-items: center; font: 700 .75rem/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.rc-g b { color: var(--ink); text-align: right; font-weight: 800; }
.rc-line { height: 6px; background: var(--line); }
.rc-line.short { width: 62%; }
.rc-quote { display: grid; gap: 8px; margin-block: 4px; padding: 10px 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.bar { position: relative; display: block; height: 8px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 10%); background: var(--navy); }
.bar.gate::after { content: ""; position: absolute; left: 70%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.rc .h3 a { text-decoration: none; }
.rc .h3 a::after { content: ""; position: absolute; inset: 0; }
.rc:hover .h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rc-vp { color: var(--slate); font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-foot { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9375rem; }
.team-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cloud); color: var(--navy); font: 700 .6875rem/1 var(--f-head); }
.rc-foot .tag { margin-left: auto; }

/* How it decides */
.decide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: start; }
@media (max-width: 900px) { .decide { grid-template-columns: minmax(0, 1fr); } }
.decide-intro { display: grid; gap: 20px; position: sticky; top: 112px; }
@media (max-width: 900px) { .decide-intro { position: static; } }
.rules { display: grid; gap: 36px; }
.rows { border-top: 1px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 6px 20px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.rows dd { display: grid; gap: 8px; }
.rows .bar { max-width: 16rem; }
@media (max-width: 520px) { .rows > div { grid-template-columns: minmax(0, 1fr); } }

/* Call-to-action band */
.band { background: var(--cloud); }
.band-in { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; justify-content: space-between; padding-block: clamp(48px, 6vw, 88px); }
.band-copy { flex: 1 1 520px; min-width: 0; display: grid; gap: 14px; }
.band .lead { max-width: 36rem; font-size: 1.125rem; }

/* Chat: the thread on the left, the idea card on the right */
.chat-main { padding-block: 28px 0; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 32px 48px; align-items: start; }
@media (max-width: 960px) { .chat-grid { grid-template-columns: minmax(0, 1fr); } }
.thread-col { display: grid; min-width: 0; max-width: 46rem; margin-inline: auto; width: 100%; }
.thread { display: grid; gap: 22px; padding-bottom: 28px; }
.msg { display: grid; gap: 8px; scroll-margin-bottom: 200px; animation: rise .3s ease-out both; }
.msg.me { justify-items: end; }
.msg.me p { max-width: 85%; padding: 12px 16px; background: var(--ink); color: #FFFFFF; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.msg.bot > .av { grid-row: span 2; }
.msg-who { display: flex; gap: 10px; align-items: baseline; padding-top: 2px; }
.msg-who b { font-weight: 650; }
.msg-body { display: grid; gap: 12px; min-width: 0; }
.msg-body p { overflow-wrap: anywhere; }
.msg-body > .btn { justify-self: start; }
.typing-dots { display: inline-flex; gap: 5px; padding: 12px 0 4px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: dot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.status-line { color: var(--slate); font-size: .9375rem; }
.vp-box { padding: 14px 16px; background: var(--cloud); }
.vp-box p:last-child { font: 500 1.0625rem/1.45 var(--f-head); letter-spacing: -0.01em; }
.quote-box { display: grid; gap: 6px; padding: 12px 16px; border: 1px solid var(--line); }
.quote-box blockquote { margin: 0; }
.quote-box a { color: var(--slate); font-size: .875rem; text-underline-offset: 3px; }
.points { display: grid; gap: 8px; }
.points li { position: relative; padding-left: 20px; overflow-wrap: anywhere; }
.points li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--navy); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.delta { color: var(--navy); font-family: var(--f-label); font-weight: 800; letter-spacing: .04em; }
.verdict-line { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.big-call { padding: 4px 14px 6px; font: 600 1.75rem/1.1 var(--f-head); letter-spacing: -0.02em; }
.big-call.t-build { background: var(--build-bg); color: var(--build); box-shadow: inset 0 0 0 1px var(--build); }
.big-call.t-pivot { background: var(--pivot-bg); color: var(--pivot); box-shadow: inset 0 0 0 1px var(--pivot); }
.big-call.t-park { background: var(--park-bg); color: var(--park); box-shadow: inset 0 0 0 1px var(--park); }
.report-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; padding: 16px; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--navy); }
.report-card .rc-doc { width: 84px; aspect-ratio: 3 / 4; padding: 10px; gap: 6px; }
.report-card .rc-line { height: 4px; }
.report-card .actions { gap: 8px 18px; }
.err-text { color: var(--err); }

/* The composer stays at the bottom of the screen while the thread scrolls. */
.composer { position: sticky; bottom: 0; z-index: 5; margin-top: 0; max-width: none; box-shadow: none; background: #FFFFFF; }
.composer::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 28px; background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF); pointer-events: none; }
.composer:focus-within { box-shadow: none; transform: none; outline: 3px solid var(--navy); outline-offset: 2px; }
.composer textarea { min-height: 56px; padding: 16px 18px 6px; font-size: 1.0625rem; }
.composer .prompt-bar { padding: 6px 8px 8px 18px; }
.composer.locked textarea { background: var(--off); }
.chat-foot { padding-block: 10px 18px; color: var(--slate); font-size: .8125rem; text-align: center; }

/* The idea card: the value proposition, the three gauges and the four stages, kept in view */
.card-col { position: sticky; top: 104px; }
@media (max-width: 960px) { .card-col { position: static; order: -1; } }
.idea-card { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--ink); }
.idea-card .label-h { margin-bottom: 0; }
.idea-vp { font: 500 1rem/1.45 var(--f-head); letter-spacing: -0.01em; }
.gauges { display: grid; gap: 12px; }
.gauge-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2.2rem; gap: 12px; align-items: center; }
.gauge-row dt { font-weight: 650; font-size: .9375rem; }
.gauge-row dd { margin: 0; }
.gauge-row .bar i { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.gauge-n { font: 800 1.25rem/1 var(--f-label); text-align: right; font-variant-numeric: tabular-nums; }
.stages { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stages li { display: flex; gap: 10px; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--line); color: var(--slate); font-size: .9375rem; }
.stages li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--dash); }
.stages li.now { color: var(--ink); font-weight: 650; }
.stages li.now::before { background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); animation: beat 1.4s ease-in-out infinite; }
.stages li.done { color: var(--ink); }
.stages li.done::before { background: var(--navy); box-shadow: none; }
.stages .meta { margin-left: auto; }
@media (max-width: 960px) {
  .idea-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; gap: 14px 24px; }
  .idea-card > :is(.label-h, .idea-vp, .card-note) { grid-column: 1 / -1; }
}
/* On phones the card keeps the idea and the gauges; the thread already shows who is working. */
@media (max-width: 560px) {
  .idea-card { grid-template-columns: minmax(0, 1fr); }
  .idea-card :is(.stages, .card-note) { display: none; }
}

/* Accessibility helpers */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -120px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Touch screens: every link gets a target at least 44 points tall, Apple's minimum for a fingertip. */
@media (pointer: coarse) {
  .foot-col ul { gap: 0; }
  .foot-col a, .util-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
}

/* Motion. Each move has a job: pop shows the panel arriving, rise shows a new message, dot shows an
   agent at work, beat marks the stage running now, and the page change keeps the prompt in place. */
@keyframes pop { from { opacity: 0; transform: scale(.55); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes beat { 50% { transform: scale(1.25); } }
@keyframes blink { 50% { opacity: 0; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both vt-out; }
::view-transition-new(root) { animation: 240ms ease-out 60ms both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Reduced motion: every move becomes an instant change */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
