.device-hero { align-content:start; grid-template-areas:"intro recording" "devices recording"; }
@media(min-width:761px) {
  .device-hero { padding-top:clamp(110px,15svh,160px); }
}
.demo-intro { grid-area:intro; }
.claude-mark { display:block; width:clamp(58px,7vw,110px); aspect-ratio:1; height:auto; object-fit:contain; margin-bottom:18px; filter:brightness(1.35); }
.demo-intro h1 { color:white; font:750 clamp(2.5rem,3.7vw,4.6rem)/1.02 var(--sans); letter-spacing:-.055em; margin:0 0 22px; }
.demo-intro p { max-width:33ch; margin:0 0 24px; font-size:clamp(16px,1.42vw,23px); line-height:1.45; }
.demo-intro .btn { border-radius:5px; }
.guide-link { display:inline-block; color:white; font-size:.87rem; margin:8px; }
.recording { grid-area:recording; min-width:0; }
.demo-window { position:relative; overflow:hidden; border:1px solid #ffffff70; border-radius:8px; box-shadow:0 24px 50px #16142030; background:#faf9f6; }
.demo-chapters { display:flex; align-items:end; gap:2px; padding:6px 8px 0; background:linear-gradient(#e9e5e4,#d8d4d1); border-bottom:1px solid #cbc7c1; }
.window-lights { align-self:center; flex:none; width:8px; height:8px; border-radius:50%; margin:0 33px 5px 4px; background:#f26b63; box-shadow:12px 0 #eebc50,24px 0 #69bc68; }
.demo-chapters button { border:0; background:transparent; color:#555054; font:12px/1.15 var(--sans); border-radius:5px 5px 0 0; padding:7px 10px; cursor:pointer; }
.demo-chapters button::before { content:""; display:inline-block; width:13px; height:13px; vertical-align:-2px; margin-right:5px; background:url(/logos/claude.svg) center / contain no-repeat; }
.demo-chapters button[aria-current=true] { background:#faf9f6; color:#201d1d; }
.recording video { display:block; width:100%; aspect-ratio:2218/1392; cursor:pointer; }
#demo-play { position:absolute; bottom:9px; right:9px; color:white; background:#222c; border:0; border-radius:50%; width:34px; height:34px; cursor:pointer; }
@media(hover:hover) {
  .demo-window:not(:hover):not(:focus-within) #demo-play[aria-label^="Pause"] { opacity:0; }
}
.gear-stage small { display:block; font:12px/1.4 var(--sans); }
.gear-stage { grid-area:devices; align-self:start; display:grid; grid-template-columns:46% 1fr; align-items:center; gap:clamp(8px,1vw,18px); }
.gear-stage img { width:100%; height:clamp(165px,17vw,250px); object-fit:contain; filter:drop-shadow(0 8px 9px #05121355); }
.gear-stage strong { display:block; margin:5px 0; font:600 clamp(19px,1.7vw,28px)/1.15 var(--sans); }
#gear-detail { display:block; font-size:13px; }
@media(max-width:760px) {
  .device-hero { grid-template-areas:"intro" "recording" "devices"; }
  .claude-mark { width:50px; margin-bottom:10px; }
  .demo-intro h1 { font-size:clamp(2.15rem,8vw,3.3rem); margin-bottom:10px; }
  .demo-intro h1 br { display:none; }
  .demo-intro p { font-size:15px; margin-bottom:12px; }
  .demo-intro .btn { font-size:14px; padding:10px 15px; }
  .demo-chapters button { font-size:10px; padding:7px 4px; }
  .gear-stage { width:100%; }
}
.setup-landscape {
  padding:clamp(36px,6vw,90px) 5%;
  background:var(--paper);
  color:var(--text);
}
.setup-layout { display:grid; grid-template-columns:minmax(185px,250px) minmax(0,740px); gap:clamp(30px,5vw,76px); justify-content:center; max-width:1160px; margin:auto; }
.setup-index { position:sticky; top:32px; align-self:start; display:grid; border-left:1px solid var(--line); padding-left:17px; }
.setup-index a { text-decoration:none; font-size:14px; line-height:1.45; padding:7px 0; color:var(--soft); }
.setup-index a:hover { color:var(--marker); text-decoration:underline; }
.setup-index .setup-index-title { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:650; margin-bottom:7px; }
.setup-content { min-width:0; }
.setup-content section { border-top:1px solid var(--line); padding:32px 0; scroll-margin-top:18px; }
.setup-content section:first-child { border:0; padding-top:0; }
.setup-content :is(h2,h3) { font-family:var(--sans); font-weight:650; line-height:1.09; letter-spacing:-.04em; margin:0 0 18px; }
.setup-content h2 { font-size:clamp(34px,4.2vw,62px); }
.setup-content h3 { font-size:clamp(24px,2.3vw,34px); }
.setup-content section > :last-child { margin-bottom:0; }
.setup-content section > p { margin:0 0 16px; }
.setup-content p,.setup-content li { line-height:1.6; }
.setup-content ol { margin:0 0 18px; padding-inline-start:1.6em; }
.setup-content li { padding-inline-start:.3em; }
.setup-content pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:14px 18px; }
.setup-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin-top:22px; }
.setup-content .section-cta { margin-top:22px; }
.setup-content .setup-actions > a:last-child { text-underline-offset:.2em; }
.setup-content li+li { margin-top:10px; }
.setup-content .callout,.setup-content blockquote,.setup-content pre { background:var(--card); border:1px solid var(--line); border-radius:8px; }
.setup-content blockquote { margin:18px 0; padding:18px 21px; border-left:3px solid var(--marker); }
.setup-content pre { background:#e9eee9; color:#19382f; }
.setup-content a:not(.btn) { color:var(--marker-ink); text-decoration-color:currentColor; }
.setup-content .btn.primary { background:#efb294; border-color:transparent; color:#18291f; border-radius:6px; }
.setup-content .btn.primary:hover { background:#ffc7aa; }
.setup-content .cta-box { display:grid; justify-items:start; gap:18px; text-align:left; border:0; padding:0; margin-top:32px; }
.setup-content .cta-box :is(h2,p) { margin:0; max-width:none; }
.setup-content .cta-box p { margin-top:8px; }
.setup-content .cta-box h2 { font-size:clamp(26px,3vw,42px); }
@media(max-width:760px) {
  .setup-layout { display:flex; flex-direction:column; gap:24px; }
  .setup-index { display:none; }
  .setup-content section { padding:28px 0; }
  .setup-content summary { padding:16px 0; }
}

@media(max-width:440px) { .window-lights { width:6px; height:6px; margin:0 22px 5px 0; box-shadow:9px 0 #eebc50,18px 0 #69bc68; } }

@media(max-width:540px) {
  .setup-actions { flex-direction:column; align-items:flex-start; }
  .setup-actions > a:last-child { padding-block:5px; }
}

/* Provider training examples */
[data-provider] .demo-chapters button::before { background-image:var(--demo-mark); }
[data-provider=chatgpt] { --demo-mark:url(/logos/openai.svg); }
[data-provider=gemini] { --demo-mark:url(/logos/gemini.svg); }
[data-provider=grok] { --demo-mark:url(/logos/grok.svg); }
.provider-preview .claude-mark[src$="openai.svg"],.provider-preview .claude-mark[src$="grok.svg"] { filter:brightness(0) invert(1); }
.example-app { background:#faf9f6; color:#282b28; min-height:clamp(390px,37vw,595px); padding-bottom:34px; }
.example-title { display:flex; align-items:center; gap:9px; padding:10px 16px; font-size:13px; border-bottom:1px solid #dddcd5; }
.example-title img { width:18px; height:18px; }
.example-scene { width:min(82%,590px); margin:clamp(18px,3vw,48px) auto 0; font-size:clamp(14px,1.15vw,18px); }
.example-prompt { margin:0 0 16px auto; width:fit-content; border-radius:14px; padding:8px 14px; background:#ebeae5; }
.example-response { font:1.12em/1.45 Georgia,serif; }
.example-scene table { display:table; color:#28362f; }
.example-scene :is(th,td) { padding:5px 8px; color:inherit; border-color:#d5dcd6; font-size:.86em; }
.example-scene h3 { color:#214539; margin:12px 0; }
.lap-bars div { display:flex; align-items:center; gap:12px; font-size:.85em; }
.lap-bars i { display:block; background:#5d8670; height:8px; transform-origin:left; }
.report-scene article { background:white; border:1px solid #d6dcd5; padding:16px 20px; font-size:.88em; }
.report-scene article p { margin:7px 0; }
.report-scene small { color:#40634f; font-family:var(--mono); }
@media(prefers-reduced-motion:no-preference) {
  .example-scene:not([hidden]) { animation:example-arrive .28s ease-out; }
  .example-scene:not([hidden]) :is(tr,.lap-bars div,article p) { animation:example-arrive .42s ease-out backwards; }
  .example-scene tr:nth-child(2),.lap-bars div:nth-child(2) { animation-delay:.12s; }
  .example-scene tr:nth-child(3),.lap-bars div:nth-child(3) { animation-delay:.24s; }
  .example-scene tr:nth-child(4),.lap-bars div:nth-child(4) { animation-delay:.36s; }
  @keyframes example-arrive { from { opacity:0; transform:translateY(5px); } }
}
@media(max-width:760px) {
  .example-scene { width:91%; }
  .example-app { min-height:370px; }
}
.activity-trace { margin:12px 0; }
.activity-trace figcaption,.activity-trace div { font:11px var(--mono); color:#415747; }
.activity-trace div { display:flex; justify-content:space-between; }
.activity-trace svg { width:100%; height:55px; display:block; }
@media(prefers-reduced-motion:no-preference) {
  .activity-trace polyline { stroke-dasharray:1; animation:draw-run .9s ease-out both; }
  @keyframes draw-run { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
}
@media(min-width:761px) {
  .report-scene:not([hidden]) { display:grid; grid-template-columns:1fr 1.7fr; width:93%; max-width:870px; gap:18px; align-items:start; }
}
.setup-content table { max-width:100%; }
.setup-content td code { overflow-wrap:anywhere; }

.example-response { min-height:3lh; }
.example-window.is-paused * { animation-play-state:paused; }

/* Provider workspaces retain their own navigation, type and message composer. */
.example-app { display:grid; grid-template-columns:19% minmax(0,1fr); padding-bottom:0; background:#fff; }
.app-main { min-width:0; display:flex; flex-direction:column; padding-bottom:12px; }
.app-rail { display:flex; flex-direction:column; align-items:stretch; gap:9px; padding:14px 9px; overflow:hidden; background:#f7f7f7; color:#454545; font:clamp(9px,.82vw,13px)/1.35 Arial,sans-serif; }
.app-rail img { width:18px; height:18px; margin-bottom:12px; }
.app-rail small { color:#747474; margin-top:12px; }
.app-rail b { padding:5px; background:#eaeaea; border-radius:6px; font-weight:500; }
.app-main .example-title { border:0; font-size:15px; }
.example-response { font-family:Arial,sans-serif; }
.app-composer { display:flex; align-items:center; gap:8px; border:1px solid #ddd; border-radius:28px; margin:auto auto 0; width:82%; padding:8px 12px; color:#676767; font:12px/1.25 Arial,sans-serif; background:#fff; }
.app-composer strong { margin-left:auto; color:#242424; }
.app-main .example-scene { margin-bottom:16px; }
.chat-composer { display:grid; gap:18px; padding:12px; border-radius:18px; color:#777; }
.chat-tools,.chat-tools > span { display:flex; align-items:center; gap:5px; }
.chat-tools { flex-wrap:wrap; gap:8px; }
.chat-tools svg { width:1.25em; height:1.25em; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.chat-tools .chat-model { margin-left:auto; color:#282828; }
.chat-model span { color:#737373; }
.chat-voice { width:2.25em; height:2.25em; border-radius:50%; flex:none; justify-content:center; background:#171717; color:white; }
@media(max-width:480px) {
  .chat-composer { padding:9px; gap:12px; }
  .chat-tools,.chat-tools > span { gap:3px; }
}
.ui-gemini { grid-template-columns:7% minmax(0,1fr); }
.ui-gemini .app-rail { align-items:center; background:#eff3f9; font-size:16px; color:#4e5660; }
.ui-gemini .app-rail b { background:none; }
.ui-gemini .app-rail b:nth-child(2) { background:#d7dfeb; border-radius:50%; width:28px; height:28px; flex:none; padding:0; line-height:28px; text-align:center; }
.rail-bottom { margin-top:auto; }
.ui-gemini .example-title::after { content:"A"; margin-left:auto; display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:50%; background:#716696; color:white; font-size:10px; }
.ui-gemini .example-response::before { content:""; display:block; width:20px; height:20px; margin-bottom:6px; background:url(/logos/gemini.svg) center/contain no-repeat; }
.ui-gemini :is(.app-composer,.example-prompt) { background:#eff3f9; border:0; }
.ui-grok,.ui-grok .app-rail { background:#faf9f8; }
.ui-grok .app-rail { border-right:1px solid #dfdedb; }
.ui-grok .example-title { align-self:center; background:white; border:1px solid #e5e4e1; border-radius:24px; padding:5px 14px; margin-top:8px; box-shadow:0 2px 5px #0001; }
.ui-grok .app-composer { border-color:#e2e1de; box-shadow:0 2px 6px #0001; }
.ui-developers { background:#22221f; color:#f1efe8; font-family:var(--mono); }
.ui-developers .app-rail { background:#171815; color:#c0b9ae; font-family:inherit; }
.ui-developers .app-rail b,.ui-developers .example-prompt { background:#34332e; color:#f2ceae; }
.ui-developers :is(.example-title,.example-response,.app-composer) { font-family:inherit; }
.ui-developers .app-composer { background:#272823; border-radius:3px; border-color:#676258; color:#ccc7bb; }
.ui-developers .app-composer :is(b,strong) { color:#efb294; }
.ui-developers .example-scene:not(.report-scene) :is(table,h3,figcaption,.activity-trace div) { color:#c7d9c6; }
.ui-developers .report-scene article { color:#26352b; }
@media(max-width:760px) {
  .example-app { grid-template-columns:32px minmax(0,1fr); }
  .app-rail { padding:12px 4px; align-items:center; }
  .app-rail > * { display:none; }
  .app-rail::before { content:"☰"; }
  .ui-chatgpt .app-rail img { display:block; order:-1; }
  .app-composer { width:90%; font-size:10px; }
  .app-main { padding-bottom:35px; }
}

@media(max-width:420px) {
  .example-scene :is(th,td) { padding-inline:3px; }
}

.example-scene [data-at] { transition:opacity .16s ease,translate .2s ease; }
.example-scene .pending { visibility:hidden; opacity:0; translate:0 3px; }
.tool-read,.pdf-status { display:block; font:12px/1.45 var(--sans); color:#506258; }
.pdf-file { border:1px solid #bccdc1; border-radius:8px; padding:10px; margin-block:12px; font-weight:600; }
.pdf-status { margin-top:4px; }
.ui-developers :is(.tool-read,.pdf-status) { color:#bed0be; }
.demo-pointer { position:absolute; top:0; left:0; pointer-events:none; z-index:2; transition:transform .22s cubic-bezier(.18,.72,.29,1); filter:drop-shadow(0 1px 1px #0004); }
.report-scene article .activity-trace svg { height:34px; }
.report-scene article { min-width:0; }
@media(prefers-reduced-motion:reduce) {
  .demo-pointer { display:none; }
  .example-scene [data-at] { transition:none; }
}
.dynamics-traces { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:8px 0; }
.dynamics-traces span { font:11px/1.3 var(--sans); }
.dynamics-traces svg { width:100%; height:24px; display:block; color:#548179; }
.dynamics-traces > :last-child svg { color:#8c7197; }
.provider-bar svg { flex:none; width:1.3em; height:1.3em; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.bar-placeholder { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bar-mode,.bar-disc { display:inline-flex; align-items:center; flex:none; }
.bar-mode { gap:2px; color:#303030; }
.bar-mode svg { width:.85em; }
.bar-disc { width:2.25em; height:2.25em; justify-content:center; background:#efeeeb; border-radius:50%; color:#292929; }
.grok-wave { color:#2383ed; }
.ui-grok .provider-bar { padding:5px 7px; }

/* Reserve the same canvas as the Claude recording throughout each chapter. */
.example-app { width:100%; aspect-ratio:2218/1392; min-height:0; grid-template-rows:minmax(0,1fr); }
.app-main { min-height:0; }
.app-main .example-scene { min-height:0; overflow:auto; scrollbar-width:thin; }
.app-main .app-composer,.app-main .example-title { flex:none; }
.demo-chapters { height:36px; overflow:hidden; }
.demo-chapters button { white-space:nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:760px) {
  .demo-chapters { height:32px; }
  .app-main { padding-bottom:4px; }
  .app-main .example-scene { margin-block:4px; }
  .app-main .chat-composer { gap:3px; padding:4px 7px; }
}
