/* ---------- Demo: two Codex-style chat windows in staggered rows ----------
   Dark, like the Codex desktop app: a grey window on the black page, the user's message in a
   bubble on the right, each step a quiet one-line row that opens on click, and a composer at the
   bottom. OpenCrawl's cards carry the logo's static coral and cobalt edges. */
.a-section{display:grid;gap:clamp(48px,7vw,88px);padding:clamp(48px,7vw,88px) 0 clamp(64px,8vw,104px)}
.a-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,5vw,72px);align-items:center}

.a-row-on{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.a-copy h2{margin:0;font-size:clamp(40px,5vw,64px);line-height:1.02;letter-spacing:-.045em;font-weight:600;color:#8f8a8e}
.a-row-on .a-copy h2{color:#f4f1f3}
.a-row-on .a-copy h2 span{color:var(--p-face)}
.a-copy p{margin:20px 0 0;max-width:440px;font-size:17px;line-height:1.5;color:#a8a3a8;text-wrap:pretty}

.a-window{display:flex;flex-direction:column;min-width:0;background:#181818;border:1px solid #2b2b2b;border-radius:14px;box-shadow:0 30px 90px #000c;font-family:var(--font-sans,Geist),system-ui,-apple-system,sans-serif;color:#e7e7e7;text-align:left;overflow:hidden}
.a-on{border-color:#34355a;box-shadow:0 30px 90px #000c,0 0 90px #7d82ff1a}
.a-bar{position:relative;display:flex;align-items:center;gap:14px;height:46px;padding:0 16px}
.a-lights{display:flex;gap:8px;margin-right:4px}
.a-lights i{width:12px;height:12px;border-radius:50%;background:#ff5f57}
.a-lights i:nth-child(2){background:#febc2e}.a-lights i:nth-child(3){background:#28c840}
.a-tool{width:18px;height:18px;color:#8b8b8b}
.a-title{position:absolute;left:50%;transform:translateX(-50%);font-size:14px;font-weight:600;color:#ececec}
.a-more{margin-left:auto;color:#8b8b8b;letter-spacing:1px;font-weight:700}

.a-thread{display:flex;flex-direction:column;gap:2px;padding:10px 24px 8px}
/* agent-demo.js locks each thread to its collapsed height, so opening a step scrolls inside the window
   instead of making it taller. */
.a-thread>*{flex-shrink:0}
.a-thread.is-locked{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a3a3c transparent}
.a-user{align-self:flex-end;max-width:82%;margin:4px 0 14px;padding:11px 18px;border-radius:20px;background:#2c2c2e;color:#f2f2f2;font-size:15px;line-height:1.45}
.a-step summary{display:flex;align-items:center;gap:6px;padding:7px 0;list-style:none;cursor:pointer;color:#8e8e93;font-size:15px;line-height:1.45}
.a-step summary::-webkit-details-marker{display:none}
.a-step summary:hover{color:#c7c7cc}
.a-step summary:focus-visible{outline:2px solid var(--p-face);outline-offset:2px;border-radius:4px}
.a-chev{flex:none;width:14px;height:14px;transition:transform .15s}
.a-step[open] .a-chev{transform:rotate(90deg)}
.a-bad summary{color:#e2867f}
.a-bad summary:hover{color:#ffa8a1}
.a-detail{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;padding:10px 12px;border-left:2px solid #2f2f2f;color:#a1a1a6;font-size:13.5px;line-height:1.55}
.a-on .a-detail{border-left-color:#3d3f73}
.a-ic{flex:none;width:16px;height:16px;margin-top:2px;border-radius:3px}
.a-ic-invert{filter:invert(1)}

.a-card{margin:6px 0 10px;border:1px solid #34355a;border-radius:12px;background:#1f1f24;overflow:hidden;box-shadow:-2px 0 0 var(--p-coral),2px 0 0 var(--p-cobalt)}
.a-card-head{display:flex;align-items:center;gap:8px;padding:11px 16px;border-bottom:1px solid #2c2d45;font-size:14.5px;color:#f2f2f2}
.a-card-head b{font-weight:600}
.a-mark{width:26px;height:auto}
.a-card ul{list-style:none;margin:0;padding:6px 16px 8px}
.a-card li{display:flex;gap:10px;padding:7px 0;font-size:14.5px;line-height:1.5;color:#d9d9de}
.a-card li b{color:#fff;font-weight:600}
.a-card .a-ic{margin-top:3px}
.a-say{margin:6px 0 8px;font-size:15px;line-height:1.6;color:#ececec}
.a-thread .a-user+.a-say,.a-thread .a-say+.a-user{margin-top:10px}
.a-thread .a-user:not(:first-child){margin:6px 0 10px}
.a-add{color:#5fd38d}.a-del{color:#ff7b72}
.a-worked{display:flex;align-items:center;gap:12px;margin:12px 0 4px;color:#6e6e73;font-size:13px}
.a-worked::before,.a-worked::after{content:"";flex:1;height:1px;background:#2c2c2e}

.a-compose{display:flex;align-items:center;gap:12px;margin:8px 16px 16px;padding:8px 8px 8px 18px;border:1px solid #303030;border-radius:999px;background:#212121;color:#8e8e93;font-size:15px}
.a-plus{font-size:22px;line-height:1;color:#c7c7cc}
.a-ph{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-mic{width:18px;height:18px;color:#c7c7cc}
.a-send{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ececec;color:#111}
.a-send svg{width:18px;height:18px}

/* Steps slide in one after another when the window scrolls into view (agent-demo.js adds .is-live). */
[data-agent-demo].is-live [data-reveal]{opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .35s ease}
[data-agent-demo].is-live [data-reveal].is-in{opacity:1;transform:none}

@media(max-width:1023px){
  .a-row,.a-row-on{grid-template-columns:minmax(0,1fr);gap:28px}
  .a-row-on .a-copy{order:-1}
  .a-copy{text-align:center}
  .a-copy p{margin-left:auto;margin-right:auto}
}
@media(max-width:600px){
  .a-thread{padding:6px 14px 6px}
  .a-user{font-size:14px;max-width:92%}
  .a-step summary,.a-say,.a-card li{font-size:14px}
  .a-bar{padding:0 12px;gap:10px}
  .a-tool{display:none}
  .a-compose{margin:6px 10px 12px}
  .a-copy p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.a-chev{transition:none}}

