/* /works-with/openbot/ hero: OpenBot's own two windows, drawn from its source
   (CopilotKit/OpenBot at edcce7eb: app/src/theme.css, frame.css, desktop/src/styles.css).
   Markup comes from openbotWin() in scripts/build-works-with.mjs.
   Everything is sized in em off .ob-stage, so the scene scales with the hero column. */
.ob{
  --ob-bg:#fdfdfe;--ob-fg:#010507;--ob-card:#fff;--ob-muted:#f0f0f4;--ob-mfg:#64646c;--ob-line:#dbdbe5;
  --ob-ring:#7480f1;--ob-frame:#ededf5;--ob-sel:rgba(190,194,255,.3);--h-accent:#010507;
  container-type:inline-size;color:var(--ob-fg);text-align:left;
  font-family:"Inter Variable",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.ob *{box-sizing:border-box}
.ob p{margin:0;color:inherit;font:inherit}
.ob b{font-weight:500}
.ob em,.ob i{font-style:normal}
.ob u{text-decoration:none}
.ob small{font-size:inherit}
.ob svg{flex:0 0 auto;width:1.15em;height:1.15em}
.ob img{flex:0 0 auto;max-width:none}

/* 52em wide. 1em is 1/52 of the column, capped so the windows never draw larger than life. */
.ob-stage{position:relative;width:52em;max-width:100%;height:48.5em;margin:0 auto;font-size:clamp(8px,.95vw,14px);font-size:min(1.923cqw,14px)}

/* ── a macOS window ── */
.ob-win{position:absolute;display:flex;flex-direction:column;overflow:hidden;border-radius:.85em;background:var(--ob-frame);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px rgba(1,5,7,.16),0 .15em .4em rgba(24,20,60,.10),0 1.1em 2.4em -.4em rgba(24,20,60,.22),0 2.8em 5.5em -1.4em rgba(24,20,60,.34)}
.ob-bar{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:2.3em}
.ob-lights{position:absolute;left:1em;top:50%;display:flex;gap:.62em;transform:translateY(-50%)}
.ob-lights i{width:.92em;height:.92em;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.ob-lights i:nth-child(1){background:#ff5f57}
.ob-lights i:nth-child(2){background:#febc2e}
.ob-lights i:nth-child(3){background:#28c840}
.ob-wtitle{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;font-size:1em;font-weight:600;letter-spacing:-.005em;color:rgba(1,5,7,.82)}

/* ── back window: the Connect your AI screen ── */
.ob-win--setup{left:0;top:0;width:34em;height:29em;background:#f9f9fb;
  box-shadow:0 0 0 1px rgba(1,5,7,.13),0 .15em .4em rgba(24,20,60,.07),0 1.4em 3.2em -1em rgba(24,20,60,.22)}
.ob-win--setup .ob-lights i{background:#d4d4da}
.ob-win--setup .ob-wtitle{color:rgba(1,5,7,.36)}
.ob-ground{flex:1;min-height:0;padding:1.5em 2.6em 0;font-size:.76em}
.ob-card{max-width:38.4em;margin:0 auto;padding:2.13em;border:1px solid var(--ob-line);border-radius:.93em;background:var(--ob-card);box-shadow:0 1px 2px rgba(0,0,0,.05)}
.ob-h1{display:block;font-size:1.5em;font-weight:600;line-height:1.25;letter-spacing:-.025em}
.ob .ob-lede{margin-top:.5em;color:var(--ob-mfg);line-height:1.47}
.ob-tile{display:grid;grid-template-columns:2.4em minmax(0,1fr) auto;column-gap:.8em;align-items:center;margin-top:1.6em;padding:.8em 1.07em;border:1px solid #a3a9ed;border-radius:.67em;background:#f7f7fe}
.ob-mark{grid-row:1/3;display:grid;place-items:center;width:2.4em;height:2.4em;border:1px solid var(--ob-line);border-radius:.53em;background:var(--ob-card)}
.ob-mark img{width:1.2em;height:1.33em}
.ob-tile b{grid-column:2;line-height:1.35}
.ob-tile small{grid-column:2;font-size:.875em;line-height:1.4;color:var(--ob-mfg)}
.ob-tile u{grid-column:3;grid-row:1/3;font-size:.875em;font-weight:500;text-decoration:underline;text-underline-offset:.2em}
.ob-chosen{margin-top:.8em;padding:1.07em;border:1px solid var(--ob-line);border-radius:.67em;background:#f8f8fa}
.ob-seg{display:inline-flex;gap:2px;padding:2px;border-radius:.6em;background:var(--ob-muted)}
.ob-seg span{display:flex;align-items:center;height:2em;padding:0 .8em;border-radius:.47em;font-size:.867em;font-weight:500;color:var(--ob-mfg)}
.ob-seg .on{background:var(--ob-card);color:var(--ob-fg);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ob-chosen p{margin:.9em 0;font-size:.875em;line-height:1.5;color:var(--ob-mfg)}
.ob-btn{display:inline-flex;align-items:center;gap:.55em;min-height:2.67em;padding:0 .93em;border:1px solid var(--ob-line);border-radius:.67em;background:var(--ob-bg);font-size:.875em;font-weight:500}
.ob-btn img{width:1em;height:1.1em}
.ob-field{margin-top:1em}
.ob-field b,.ob-field span{display:block;font-size:.875em}
.ob-field span{margin-top:.4em;padding:.55em .8em;border:1px solid var(--ob-line);border-radius:.57em;background:var(--ob-card)}
.ob-actions{display:flex;justify-content:flex-end;margin-top:1.6em}
.ob-btn--go{border-color:var(--ob-fg);background:var(--ob-fg);color:#fff}

/* ── front window: the app ── */
.ob-win--app{left:7.5em;top:15.4em;width:44.5em;height:32em;
  background:
    radial-gradient(48em 30em at -15% -20%,rgba(121,228,240,.8),transparent 62%),
    radial-gradient(36em 30em at 0% 115%,rgba(254,194,239,.65),transparent 60%),
    radial-gradient(46em 36em at 115% -10%,rgba(212,199,255,.75),transparent 60%),
    var(--ob-frame)}
.ob-frame{flex:1;min-height:0;display:grid;grid-template-columns:15em minmax(0,1fr);gap:.55em;padding:0 .55em .55em}

.ob-nav{display:flex;flex-direction:column;min-height:0;padding:0 .55em .45em;border:1px solid rgba(255,255,255,.75);border-radius:1.07em;background:rgba(255,255,255,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 .7em 2em -.8em rgba(52,44,104,.18);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%)}
.ob-brand{display:flex;align-items:center;gap:.45em;height:3.1em;padding:0 .3em;font-size:.93em;font-weight:600;letter-spacing:-.03em}
.ob-brand img{width:1.43em;height:1.43em;border-radius:.3em}
.ob-brand svg{margin-left:auto;color:var(--ob-mfg)}
.ob-search{display:flex;align-items:center;gap:.5em;height:2.6em;margin-bottom:.55em;padding:0 .75em;border:1px solid var(--ob-line);border-radius:.76em;background:var(--ob-bg);font-size:.875em;color:var(--ob-mfg)}
.ob-search svg{width:1.05em;height:1.05em}
.ob-chat{display:grid;grid-template-columns:2.13em minmax(0,1fr);gap:.6em;align-items:center;padding:.5em .5em;border-radius:.67em}
.ob-chat.on{background:var(--ob-sel)}
.ob-chat>span{display:block;min-width:0}
.ob-chat b{display:flex;align-items:baseline;gap:.4em;font-size:.875em;line-height:1.35;letter-spacing:-.01em}
.ob-chat b span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ob-chat b em{flex:0 0 auto;font-size:.86em;font-weight:400;letter-spacing:0;color:rgba(100,100,108,.7)}
.ob-chat small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.8em;line-height:1.4;color:var(--ob-mfg)}
.ob-orb{flex:0 0 auto;display:block;width:2.13em;height:2.13em;border-radius:50%;box-shadow:0 0 0 1px rgba(1,5,7,.1);
  background:radial-gradient(circle at 30% 24%,hsla(0,0%,100%,.28),transparent 34%),conic-gradient(from 200deg at 70% 30%,var(--c1),transparent 30% 65%,var(--c1)),radial-gradient(circle at 38% 34%,var(--c4) 0%,var(--c2) 42%,var(--c3) 100%)}
.ob-links{display:flex;flex-direction:column;margin-top:auto;padding-top:.4em}
.ob-links span{display:flex;align-items:center;gap:.6em;height:2.5em;padding:0 .55em;font-size:.875em;font-weight:500}
.ob-links svg{color:var(--ob-mfg)}

.ob-sheet{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border-radius:1.07em;background:var(--ob-bg);
  box-shadow:0 1px 2px rgba(38,32,84,.06),0 .8em 2.6em -1.2em rgba(38,32,94,.22)}
.ob-head{flex:0 0 auto;display:flex;align-items:center;gap:.6em;min-height:3.2em;padding:0 .9em;border-bottom:1px solid var(--ob-line)}
.ob-head svg{color:var(--ob-mfg)}
.ob-head .ob-orb{width:1.47em;height:1.47em}
.ob-head>span{font-size:.875em;font-weight:500;letter-spacing:-.025em}
.ob-head>span:last-child{display:flex;gap:.9em;margin-left:auto;font-size:1em}
.ob-body{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:0;padding:1em 1.2em .9em;overflow:hidden}
.ob .demo-flow{display:flex;flex-direction:column;justify-content:flex-end;gap:.8em;min-height:0;overflow:hidden}
.ob .ob-out,.ob .ob-in,.ob .ob-tool{font-size:.875em;line-height:1.625}
.ob-out{align-self:flex-end;max-width:80%;padding:.57em .86em;border-radius:1em;background:var(--ob-muted)}
.ob-in{align-self:stretch;white-space:pre-line}
.ob-tool{display:flex;align-items:center;gap:.5em;color:var(--ob-mfg)}
.ob-tool::before{content:"";flex:0 0 auto;width:1.1em;height:1.1em;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2zM9 9h1M9 13h6M9 17h6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2zM9 9h1M9 13h6M9 17h6'/%3E%3C/svg%3E") center/contain no-repeat}
.ob-tool span{color:rgba(100,100,108,.75)}
.ob .caret{width:1.5px;height:1.15em;margin-left:1px;vertical-align:-.18em}

.ob-composer{flex:0 0 auto;margin:0 .9em .9em;padding:.8em;border:1px solid var(--ob-line);border-radius:1.2em;background:var(--ob-card);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ob-composer p{padding:0 .2em;font-size:.875em;line-height:1.5;color:rgba(100,100,108,.8)}
.ob-composer div{display:flex;align-items:center;gap:.75em;margin-top:.85em;color:var(--ob-mfg)}
.ob-cpu{display:flex;align-items:center;gap:.15em;margin-left:auto}
.ob-cpu svg:last-child{width:.9em;height:.9em}
.ob-send{display:grid;place-items:center;width:1.87em;height:1.87em;border-radius:50%;background:var(--ob-fg);color:#fff}
.ob-send svg{width:1.05em;height:1.05em}

/* The pause control, on its own when the mock has no caption. */
.demo-ctl{display:flex;justify-content:flex-end;margin:18px 0 0}
/* This page has no settings table under the quick answer, so the answer gets its own room between the rules. */
.quick{padding:48px 0}

/* Phones: the app window alone, at a readable size. */
@media(max-width:760px){
  .ob-stage{width:auto;height:auto;font-size:14px}
  .ob-win--setup,.ob-nav{display:none}
  .ob-win--app{position:relative;left:auto;top:auto;width:100%;height:470px}
  .ob-frame{grid-template-columns:minmax(0,1fr)}
  .demo-ctl{margin-top:14px}
  .quick{padding:34px 0}
}
