.product-page { --acid: var(--panel); color: var(--paper); background: #000; color-scheme: dark; }
html:has(> .product-page) { background: #000; }
.product-page .site-header { --nav-surface: #000; --nav-text: var(--paper); --nav-muted: var(--muted); --nav-rule: var(--rule); color: var(--paper); background: #000; border-color: var(--rule); }
.product-page .primary-nav > a, .product-page .products-menu > summary { color: var(--muted); }
.product-page .primary-nav > a:hover, .product-page .products-menu > summary:hover, .product-page .products-menu:has(a[aria-current="page"]) > summary { color: var(--paper); }
.product-page .skip-link { color: #000; background: var(--paper); }
.product-main { width: min(80rem, calc(100% - clamp(2.5rem, 10vw, 10rem))); padding-top: clamp(9rem, 12vw, 12rem); padding-bottom: 4rem; }
.product-kicker { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 0; color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.product-kicker > span:last-child { color: var(--panel); }
.product-heading h1 { margin: 2.5rem 0 3.5rem; font-size: clamp(4.5rem, 13.5vw, 12.5rem); font-weight: 540; letter-spacing: -.075em; line-height: .85; }
.product-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding: 2.5rem 0 4rem; border-top: 1px solid var(--rule); }
.product-intro h2 { max-width: 15ch; margin: 0; font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.product-intro > p { max-width: 37rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; }
.product-figure { margin: 0 0 clamp(5rem, 9vw, 9rem); }
.product-figure figcaption { max-width: 43rem; margin-top: 1rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.turnscope-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: center; gap: clamp(2.5rem, 4vw, 4.5rem); padding: 1rem 0; }
.agent-cli { --agent-dim: color-mix(in srgb, var(--muted) 72%, #000); min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent); border-radius: 3px; font-family: Consolas, "Liberation Mono", monospace; }
.agent-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.2rem; padding: 0 1.2rem; border-bottom: 1px solid var(--rule); color: var(--paper); font-size: .8rem; }
.agent-session-name, .agent-branch { display: flex; align-items: center; gap: .6rem; }
.agent-heading svg { width: 1.1rem; height: 1.1rem; }
.agent-session-name > span, .agent-branch { color: var(--muted); }
.agent-branch { gap: .4rem; font-size: .7rem; }
.agent-transcript { padding: 1.25rem 1.2rem 1rem; }
.agent-status { display: flex; align-items: center; gap: .5rem; }
.agent-status i { width: .35rem; height: .35rem; border: 1px solid var(--panel); border-radius: 50%; }
.agent-prompt { display: flex; align-items: start; gap: .8rem; min-height: 4rem; padding: 0 0 1rem; border-bottom: 1px solid var(--rule); font-size: .95rem; line-height: 1.5; }
.agent-prompt > span { color: var(--panel); }
.agent-prompt > div { min-width: 0; }
.agent-cursor { display: inline-block; width: .6em; height: 1.08em; margin-left: .1em; background: var(--panel); vertical-align: -.15em; }
.turnscope-demo:not(.is-typing) .agent-cursor { opacity: 0; }
.agent-response { margin-top: 1.1rem; }
.agent-role { color: var(--paper); font-size: .72rem; }
.agent-response p { min-height: 3.6em; margin: .45rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.agent-log { display: grid; grid-template-rows: repeat(7, 2.7rem); gap: .35rem; margin: 1.1rem 0 0; }
.agent-event { display: grid; grid-template-columns: .65rem minmax(0,1fr); align-items: start; gap: .75rem; color: var(--muted); font-size: .86rem; line-height: 1.4; opacity: 0; transition: opacity .12s ease; }
.agent-event.is-visible { opacity: 1; }
.agent-event-icon { color: var(--agent-dim); font-size: .75rem; line-height: 1.65; }
.agent-event-content { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .7rem; min-width: 0; }
.agent-event b { color: var(--paper); font-weight: 400; }
.agent-event-content > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-event small { grid-column: 1 / -1; margin-top: .15rem; padding-left: .75rem; border-left: 1px solid var(--rule); color: var(--agent-dim); font-size: .72rem; white-space: nowrap; }
.agent-event.is-active .agent-event-icon, .agent-event.is-active b, .agent-compact b, .agent-compact small { color: var(--panel); }
.agent-answer { display: flex; gap: .75rem; min-height: 2.7rem; margin: 1rem 0 0; color: var(--paper); font-size: .82rem; line-height: 1.6; opacity: 0; }
.agent-answer > span { color: var(--panel); }.agent-answer p { margin: 0; }
.is-complete .agent-answer { opacity: 1; }
.agent-composer { display: flex; align-items: center; gap: .75rem; margin: 0 1rem; padding: .8rem .75rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--agent-dim); font-size: .8rem; }
.agent-composer > span:first-child { color: var(--panel); }.agent-composer > i { width: .45rem; height: .9rem; margin-left: auto; border: 1px solid var(--agent-dim); }
.agent-footer { display: flex; justify-content: space-between; gap: .75rem; padding: .8rem 1.2rem; color: var(--muted); font-size: .64rem; }
.token-profile { min-width: 0; }
.profile-focus, .profile-breakdown { display: none; }
.profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-heading > span:last-child { font-family: Consolas, "Liberation Mono", monospace; letter-spacing: 0; text-transform: none; }
.profile-turns { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 0 0 2.7rem; }
.profile-turn { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .6rem 0 .8rem; border-bottom: 1px solid var(--rule); color: #585955; font-size: .75rem; transition: color .18s ease, border-color .18s ease; }
.profile-turn small { font-family: Consolas, "Liberation Mono", monospace; font-size: .72rem; }
.profile-turn.is-reached { color: var(--muted); }.profile-turn.is-current { color: var(--paper); border-color: var(--panel); }.profile-turn.is-current small { color: var(--panel); }
.profile-compact-marker { position: absolute; top: calc(100% + .6rem); left: calc(50% + .6rem); display: flex; align-items: center; gap: .45rem; color: var(--panel); font-size: .62rem; opacity: 0; transition: opacity .2s ease; }
.profile-compact-marker::before { width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 0 1px 1px; content: ""; }.has-compacted .profile-compact-marker { opacity: 1; }
.context-monitor { padding: .4rem 0 0; }
.context-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; color: var(--muted); font-size: .85rem; }
.context-heading b { color: var(--paper); font-family: Consolas, "Liberation Mono", monospace; font-weight: 400; font-variant-numeric: tabular-nums; }
.context-heading > span:last-child > span { color: #666; }
.context-track { position: relative; height: .35rem; overflow: hidden; background: #1b1b1b; }
.context-track > i { position: absolute; inset: 0; transform-origin: left; background: var(--muted); transition: background .2s ease; }
.is-compacting .context-track > [data-context-fill] { background: var(--panel); }
.context-track > .context-before { width: 76.875%; opacity: 0; background: repeating-linear-gradient(120deg, transparent 0 3px, #8b4535 3px 4px); }
.is-compacting .context-before { opacity: 1; }
.is-compacting .context-heading > span:first-child { color: var(--panel); }
.flame-stage { display: flex; align-items: end; height: 17.5rem; padding-top: 2rem; }
.flame-chart { --flame-step: 2.7rem; position: relative; width: 100%; height: calc(var(--flame-step) * 5); }
.flame-graph { position: relative; width: 100%; height: 100%; }
.flame-block { --flame-stroke: color-mix(in srgb, var(--paper) 27%, transparent); position: absolute; bottom: calc(var(--depth) * var(--flame-step)); display: flex; justify-content: space-between; align-items: center; gap: .6rem; height: calc(var(--flame-step) - 5px); padding: 0 .8rem; overflow: hidden; background: #000; color: var(--muted); opacity: 0; transition: opacity .16s ease, color .2s ease, left .32s cubic-bezier(.22,1,.36,1), width .32s cubic-bezier(.22,1,.36,1), bottom .32s cubic-bezier(.22,1,.36,1); font-family: Consolas, "Liberation Mono", monospace; font-size: .8rem; container: flame / inline-size; }
.flame-block::before { position: absolute; inset: 0 5px 0 0; border: 1px solid var(--flame-stroke); pointer-events: none; transition: border-color .2s ease; content: ""; }
.flame-block::after { position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--panel); opacity: 0; pointer-events: none; transition: opacity .2s ease; content: ""; }
.flame-block > span { display: block; min-width: 0; white-space: nowrap; }
.flame-block > small { margin-right: .25rem; color: var(--muted); font-size: .65rem; font-variant-numeric: tabular-nums; }
.flame-block.is-visible { opacity: 1; }
.flame-block:hover { filter: brightness(1.3); }
@container flame (width < 12rem) { .flame-block > small { display: none; } }
@container flame (width < 7rem) { .flame-block > span { visibility: hidden; } }
.flame-block.is-ancestor { --flame-stroke: color-mix(in srgb, var(--panel) 55%, transparent); color: var(--paper); }
.flame-root, .flame-root.is-ancestor { --flame-stroke: var(--rule); color: var(--muted); }
.flame-input, .flame-input.is-ancestor { --flame-stroke: color-mix(in srgb, var(--paper) 35%, transparent); }
.flame-block.is-focus { --flame-stroke: var(--panel); color: var(--paper); }
.flame-block.is-focus::after { opacity: 1; }
.flame-block.is-focus > small { color: var(--paper); }
.profile-legend { display: flex; gap: 1.25rem; margin-top: 1.3rem; color: var(--muted); font-size: .7rem; }
.profile-legend > span { display: flex; align-items: center; gap: .45rem; }.profile-legend i { width: .45rem; height: .45rem; border: 1px solid var(--muted); }.profile-legend > span:nth-child(2) i { border-color: var(--panel); }.profile-legend > span:last-child { margin-left: auto; color: #767674; }
@media (prefers-reduced-motion: reduce) { .flame-block, .profile-turn, .profile-compact-marker, .agent-event { transition: none; } }
.search-demo { --search-row-height: 2.15rem; display: grid; grid-template-columns: minmax(15rem, .85fr) minmax(0, 1.9fr); align-items: center; gap: 1rem clamp(2.5rem, 5vw, 5.5rem); padding: 1rem 0; }
.search-description { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-console { min-width: 0; font-family: Consolas, "Liberation Mono", monospace; }
.search-command { display: flex; align-items: center; gap: 1rem; height: 4.75rem; padding: 0 1.375rem; border: 1px solid rgba(233,236,228,.32); border-radius: 4px; font-size: clamp(1.4rem, 1.9vw, 1.75rem); line-height: 1; }
.search-icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; color: var(--muted); }
.search-entry { display: inline-flex; align-items: center; min-width: 0; }
.search-entry > code { color: var(--paper); font: inherit; }
.search-entry > i { flex: 0 0 .62em; width: .62em; height: 1.08em; margin-left: .06em; background: var(--panel); }
.search-demo[data-running="true"][data-phase="hold"] .search-entry > i { animation: search-caret .8s steps(1) infinite; }
@keyframes search-caret { 50% { opacity: 0; } }
.search-output { min-width: 0; }
.search-output-heading { display: flex; align-items: center; min-height: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.search-results { min-width: 0; height: calc(var(--search-row-height) * 12); overflow: hidden; contain: layout paint; mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.search-track { margin: 0; padding: 0; list-style: none; }
.search-result { display: grid; grid-template-columns: 2.8rem minmax(0, 1.2fr) minmax(7rem, .8fr); align-items: center; gap: 1rem; height: var(--search-row-height); opacity: 0; font-family: Consolas, "Liberation Mono", monospace; font-size: 1.04rem; }
.search-result.is-visible { opacity: 1; }
.search-kind { color: #aab2a4; font-size: .7rem; }
.search-result code { overflow: hidden; color: var(--paper); text-overflow: ellipsis; white-space: nowrap; }
.search-result mark { padding: 0; color: var(--panel); background: none; }
.search-path { overflow: hidden; color: #aab2a4; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.search-result:nth-child(4n + 1) .search-kind { color: var(--panel); }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding: 3rem 0 clamp(5rem, 9vw, 9rem); border-top: 1px solid var(--rule); }
.product-details h2 { max-width: 14ch; margin: 2rem 0 0; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.product-features { margin: 0; }
.product-features > div { padding: 0 0 2rem; }.product-features > div + div { padding-top: 2rem; border-top: 1px solid var(--rule); }.product-features > div:last-child { padding-bottom: 0; }
.product-features dt { display: flex; align-items: baseline; gap: 1.25rem; font-size: 1.25rem; letter-spacing: -.025em; }.product-features dt span { color: var(--panel); font-size: .58rem; letter-spacing: .05em; }
.product-features dd { margin: 1rem 0 0 2rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.product-statement { padding: clamp(3rem, 5vw, 5rem) 0; border-top: 1px solid var(--rule); }
.product-statement h2 { margin: 2.5rem 0 2rem; color: var(--panel); font-size: clamp(2.75rem, 6.5vw, 6rem); font-weight: 500; letter-spacing: -.065em; line-height: .95; white-space: pre-line; }
.product-statement-copy { max-width: 36rem; margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.product-licensing { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.product-licensing h2 { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; }.product-licensing p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.product-next { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; }
.product-next small { display: block; margin-bottom: .65rem; color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.product-next strong { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.055em; }.product-next > span:last-child { color: var(--panel); font-size: 2rem; }.product-next:hover strong { color: var(--panel); }
@media (max-width: 700px) {
    .product-main { padding-top: 8rem; }
    .product-kicker { font-size: .55rem; }
    .product-heading h1 { margin: 2rem 0 2.5rem; font-size: clamp(3.6rem, 14vw, 6rem); }
    .product-intro, .product-details, .product-licensing { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .product-intro { padding-top: 2rem; padding-bottom: 3rem; }.product-intro h2 { max-width: 18ch; }
    .turnscope-demo { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .turnscope-demo .agent-heading { min-height: 2.6rem; padding-inline: 1rem; }
    .turnscope-demo .agent-transcript { padding: 1rem 1rem .5rem; }
    .turnscope-demo .agent-response, .turnscope-demo .agent-answer, .turnscope-demo .agent-composer { display: none; }
    .turnscope-demo .agent-log { grid-template-rows: repeat(2, 2.7rem); margin-top: .9rem; }
    .turnscope-demo .agent-event:not(.is-recent) { display: none; }
    .turnscope-demo .agent-footer { padding: .7rem 1rem; }
    .profile-heading { min-height: 2rem; margin-bottom: .5rem; }
    .profile-turns { gap: .75rem; margin-bottom: 2rem; }
    .profile-turn { flex-direction: column; gap: .3rem; padding-bottom: .6rem; }
    .profile-turn > span { white-space: nowrap; }
    .profile-compact-marker { left: calc(50% + .375rem); }
    .context-heading { gap: .5rem; font-size: .78rem; }
    .profile-focus { display: flex; justify-content: space-between; gap: .75rem; min-height: 1rem; margin-top: 1.25rem; color: var(--muted); font-family: Consolas, "Liberation Mono", monospace; font-size: .72rem; }
    .profile-focus > span:first-child { display: flex; align-items: center; gap: .5rem; min-width: 0; }
    .profile-focus [data-focus-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .profile-focus > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
    .profile-focus i { flex-shrink: 0; width: .4rem; height: .4rem; border: 1px solid var(--rule); }
    .has-focus .profile-focus i { border-color: var(--panel); }
    .has-focus .profile-focus > span:first-child { color: var(--paper); }
    .flame-stage { height: 11.5rem; padding-top: 1rem; }
    .flame-chart { --flame-step: 2.1rem; }
    .flame-block { padding-inline: .5rem; font-size: .7rem; }
    @container flame (width >= 3rem) { .flame-block > span { visibility: visible; overflow: hidden; text-overflow: ellipsis; } }
    .profile-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0 0; }
    .profile-breakdown dt { color: var(--muted); font-size: .65rem; }
    .profile-breakdown dd { margin: .4rem 0 0; color: var(--paper); font-family: Consolas, "Liberation Mono", monospace; font-size: .8rem; font-variant-numeric: tabular-nums; }
    .profile-legend { gap: .75rem; margin-top: 1rem; font-size: .6rem; }
    .search-demo { --search-row-height: 3rem; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .search-result { grid-template-columns: 2.25rem minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 0 .75rem; }
    .search-kind { grid-column: 1; grid-row: 1 / 3; }
    .search-result code { grid-column: 2; grid-row: 1; align-self: end; }
    .search-path { grid-column: 2; grid-row: 2; align-self: start; }
    .product-details { padding-top: 2rem; }.product-details h2 { max-width: 18ch; margin-top: 1.5rem; }
    .product-features dt { font-size: 1.15rem; }.product-features dd { margin-left: 0; }
}
