/* The connection film: a 1200×750 stage scaled to fit, a camera that zooms to what matters, a cursor that clicks it.
   Operon's own screens are real (copy, layout, demo data); host windows are clean recreations without logos. */
.film { --ink: #101210; --glow: #2f7a16; display: grid; gap: 12px; }
.film__hosts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.film__hosts button { flex: none; }
.film__hosts button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--sheet);
  font: 620 14.5px/1 var(--sc-font-text); color: var(--sc-ink); cursor: pointer; }
.film__hosts button i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.film__hosts button[aria-selected="true"] { background: #15161a; color: #fff; border-color: #15161a; }
.film__stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 0%, #213b1a 0%, #121611 46%, #0b0d0b 100%); box-shadow: 0 30px 60px -30px rgba(10, 20, 8, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.film__stage::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.film__frame { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform-origin: 0 0; }
.film__cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.film.is-instant .film__cam, .film.is-instant .film__cam * { transition: none !important; animation: none !important; }
.film__cap { position: absolute; left: 22px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px;
  background: rgba(14, 16, 14, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; color: #fff;
  font: 650 15px/1 var(--sc-font-text); transition: opacity .3s, transform .4s cubic-bezier(.22, .8, .2, 1); }
.film__cap i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font: 760 13px/1 var(--sc-font-display); font-style: normal; }
.film__cap.is-swap { opacity: 0; transform: translateY(8px); }
.film__tag { position: absolute; right: 18px; top: 16px; z-index: 30; font: 600 11.5px/1 var(--sc-font-text); letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.film__ctrl { display: flex; align-items: center; gap: 10px; }
.film__play { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--sheet); display: grid; place-items: center; cursor: pointer; color: var(--sc-ink); }
.film__steps { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.film__steps button { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 0 0 2px; border: 0; background: none; text-align: left; cursor: pointer;
  font: 600 13px/1.2 var(--sc-font-text); color: var(--sc-ink-soft); }
.film__steps button::before { content: ''; height: 3px; border-radius: 3px; background: var(--rule-2); }
.film__steps button em { position: absolute; left: 0; top: 0; height: 3px; width: 100%; border-radius: 3px; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); font-style: normal; }
.film__steps button[aria-current="true"] { color: var(--sc-ink); }

/* cursor */
.fc { position: absolute; left: 0; top: 0; z-index: 50; width: 26px; height: 26px; pointer-events: none; transition: transform .75s cubic-bezier(.3, .7, .2, 1), opacity .3s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.fc::after { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(226, 162, 27, .55); transform: scale(0); opacity: 0; }
.fc.is-click::after { animation: fc-ring .5s ease-out; }
@keyframes fc-ring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* windows */
.fw { position: absolute; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .08);
  font: 500 15px/1.45 'Geist', system-ui, sans-serif; color: #1a1b1f; transition: opacity .45s, transform .6s cubic-bezier(.22, .8, .2, 1); }
.fw.is-off { opacity: 0; transform: translateY(26px) scale(.97); pointer-events: none; }
.fw__top { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f1efe9; border-bottom: 1px solid #e3e0d8; font-size: 12.5px; color: #6b6e76; }
.fw__top b { width: 11px; height: 11px; border-radius: 50%; background: #dcd9d0; }
.fw__top span { margin-left: 10px; font-weight: 600; }
.fw__url { margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid #e3e0d8; font-size: 12.5px; color: #3b3d43; }
.fw--term { background: #121412; color: #e7e9e4; font: 500 15px/1.6 ui-monospace, 'Cascadia Code', Menlo, monospace; }
.fw--term .fw__top { background: #1b1e1a; border-color: #2a2e28; color: #8d948a; }
.fw--term .fw__top b { background: #3a3f37; }
.term { padding: 18px 22px 64px; white-space: pre-wrap; overflow: hidden; height: calc(100% - 36px); display: flex; flex-direction: column; justify-content: flex-end; }
.term p { margin: 0; min-height: 1.6em; }
.term .pr { color: #8be38b; } .term .dim { color: #8d948a; } .term .ok { color: #8be38b; } .term .warn { color: #e2b54a; } .term .hl { color: #fff; font-weight: 700; }
.term .box { border: 1px solid #3a3f37; border-radius: 8px; padding: 8px 14px; margin: 6px 0; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* host app chrome (no logos) */
.film .app { display: grid; grid-template-columns: 210px minmax(0, 1fr); height: calc(100% - 36px); }
.app__side { padding: 14px 10px; background: #f6f4ef; border-right: 1px solid #e9e6de; display: grid; align-content: start; gap: 2px; }
.app__side b { padding: 4px 10px 12px; font: 700 15px/1 'Geist', system-ui; }
.app__side span { padding: 8px 10px; border-radius: 8px; color: #44464d; font-size: 14px; }
.app__side span.on { background: #e9e6de; color: #1a1b1f; font-weight: 600; }
.app__main { position: relative; padding: 26px 34px; min-width: 0; overflow: hidden; }
.app--gpt .app__side { background: #f9f9f9; border-color: #ececec; }
.app--gpt .app__side span.on { background: #ececec; }
.h1 { margin: 0 0 14px; font: 650 24px/1.2 'Geist', system-ui; letter-spacing: -.02em; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tabs span { padding: 7px 12px; border-radius: 8px; color: #5d6068; font-size: 14px; }
.tabs span.on { background: #ecebe6; color: #1a1b1f; font-weight: 600; }
.btn-x { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; background: #1a1b1f; color: #fff; font: 600 13.5px/1 'Geist', system-ui; white-space: nowrap; }
.btn-x--ghost { background: #fff; color: #1a1b1f; border: 1px solid #dad7cf; }
.btn-x--go { background: #24561a; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e9e6de; border-radius: 12px; margin-bottom: 8px; }
.row .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef3ea; color: #2f7a16; font-weight: 800; }
.row small { display: block; color: #6b6e76; font-size: 12.5px; }
.pill { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: #f0eee8; color: #5d6068; }
.pill--ok { background: #e6f2df; color: #2f7a16; }
.menu { position: absolute; z-index: 5; min-width: 230px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #e6e3db; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); }
.menu span { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.menu span.on { background: #f1efe9; }
.dlg { position: absolute; z-index: 6; left: 50%; top: 50%; width: 460px; transform: translate(-50%, -50%); padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); display: grid; gap: 12px; }
.dlg__h { margin: 0; font: 650 18px/1.2 'Geist', system-ui; }
.fld { display: grid; gap: 5px; }
.fld span { font-size: 12.5px; font-weight: 600; color: #4b4e56; }
.fld b { min-height: 38px; display: flex; align-items: center; padding: 0 12px; border: 1px solid #dad7cf; border-radius: 9px; font-weight: 500; background: #fbfbf9; overflow: hidden; white-space: nowrap; }
.fld.is-focus b { border-color: #1a1b1f; box-shadow: 0 0 0 3px rgba(26, 27, 31, .08); }
.acts { display: flex; justify-content: flex-end; gap: 8px; }
.tgl { width: 36px; height: 21px; border-radius: 999px; background: #d6d3cb; position: relative; flex: none; transition: background-color .25s; }
.tgl::after { content: ''; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.tgl.on { background: #2f7a16; } .tgl.on::after { transform: translateX(15px); }
.chat { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 20px 60px 22px; }
.chat__feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; }
.chat__me { align-self: flex-end; max-width: 70%; padding: 10px 14px; border-radius: 16px; background: #f0eee8; }
.chat__tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; border: 1px solid #e6e3db; font-size: 13px; color: #4b4e56; }
.chat__tool i { width: 8px; height: 8px; border-radius: 50%; background: #2f7a16; }
.chat__say { margin: 0; max-width: 92%; font-size: 15.5px; line-height: 1.55; }
.chat__compose { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; border: 1px solid #dad7cf; color: #8b8e95; background: #fff; min-height: 52px; }
.chat__compose .ink { color: #1a1b1f; flex: 1; }
.chat__plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #dad7cf; display: grid; place-items: center; color: #44464d; font-size: 18px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #eef3ea; color: #2f7a16; font-size: 12.5px; font-weight: 650; }

/* Operon's own screens: the real consent window, and the real analytics card */
.oc { height: calc(100% - 36px); background: #f5f4ef; padding: 26px; overflow: hidden; font-family: 'Geist', system-ui, sans-serif; }
.oc__card { max-width: 440px; margin: 0 auto; padding: 22px 24px; border-radius: 14px; background: #fdfcf8; border: 1px solid #e7e4dc; display: grid; gap: 12px; transition: transform .5s cubic-bezier(.22, .8, .2, 1); }
.oc__k { margin: 0; font-size: 12px; font-weight: 600; }
.oc__h { margin: 0; font: 680 22px/1.15 'Geist', system-ui; letter-spacing: -.02em; }
.oc__c b { display: block; font-size: 15px; } .oc__c p { margin: 3px 0 0; font-size: 13px; color: #6b6e76; line-height: 1.4; }
.oc__perm { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; padding: 9px 12px; border: 1px solid #e7e4dc; border-radius: 9px; font-size: 13px; }
.oc__perm i { grid-row: span 2; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; border: 1.5px solid #9a9da3; transition: background-color .2s, border-color .2s; }
.oc__perm i.on { background: #2b6fd6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #2b6fd6; }
.oc__perm b { font-weight: 620; } .oc__perm span { color: #6b6e76; font-size: 12px; }
.oc__go { justify-self: start; height: 36px; padding: 0 14px; border-radius: 8px; background: #24561a; color: #fff; display: inline-flex; align-items: center; font: 600 13.5px/1 'Geist', system-ui; }
.oc__sec { justify-self: start; height: 32px; padding: 0 12px; border-radius: 8px; background: #efeee9; border: 1px solid #e0ddd5; display: inline-flex; align-items: center; font: 600 13px/1 'Geist', system-ui; }
.oc__note { margin: 0; font-size: 12.5px; color: #6b6e76; line-height: 1.45; }
.oc__done { text-align: center; padding: 60px 20px; font-size: 15px; }
.oc__done i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #e6f2df; color: #2f7a16; font-size: 26px; font-style: normal; }
.ow { align-self: flex-start; width: 470px; padding: 16px; border-radius: 12px; border: 1px solid #e3e0d8; background: #fff; font-family: system-ui, sans-serif; font-size: 13px; }
.ow header { display: flex; justify-content: space-between; align-items: center; }
.ow h4 { margin: 0; font-size: 16px; }
.ow button { font: inherit; padding: 5px 10px; border: 1px solid #cbd5cf; border-radius: 6px; background: transparent; }
.ow__s { margin: 6px 0 10px; font-size: 11.5px; color: #6b6e76; }
.ow__t { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ow__t div { padding: 10px; border: 1px solid #cbd5cf; border-radius: 8px; }
.ow__t strong { display: block; font-size: 21px; } .ow__t span { font-size: 11.5px; color: #4b4e56; }




.fin { opacity: 0; translate: 0 8px; animation: f-in .45s cubic-bezier(.22, .8, .2, 1) forwards; }
@keyframes f-in { to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) { .film__steps button { font-size: 11.5px; } .film__cap { left: 10px; bottom: 10px; font-size: 13px; } .film__hosts button { height: 34px; padding: 0 11px; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .film__cam, .fc, .fw { transition: none; } }

/* window geometry: wide stage (1200×750) and the phone stage (640×800) */
.fw[data-app] { z-index: 1; left: 40px; top: 34px; width: 1120px; height: 682px; }
.fw--term[data-app] { left: 60px; top: 40px; width: 1080px; height: 670px; }
.fw[data-consent] { z-index: 20; left: 322px; top: 46px; width: 576px; height: 660px; }
.app__me { margin-top: auto; }
.app__side { grid-auto-rows: min-content; align-content: stretch; }
.film.is-tall .film__stage { aspect-ratio: 4 / 5; }
.film.is-tall .film__frame { width: 520px; height: 650px; }
.film.is-tall .fw[data-app] { left: 10px; top: 10px; width: 500px; height: 630px; }
.film.is-tall .fw[data-consent] { left: 14px; top: 40px; width: 492px; height: 590px; }
.film.is-tall .fw__top span { display: none; }
.film.is-tall .oc { padding: 14px; }
.film.is-tall .app { grid-template-columns: 112px minmax(0, 1fr); }
.film.is-tall .app__side { padding: 10px 6px; }
.film.is-tall .app__side b { font-size: 13px; padding: 4px 8px 10px; }
.film.is-tall .app__side span { font-size: 12.5px; padding: 6px 8px; }
.film.is-tall .app__main { padding: 16px 14px; }
.film.is-tall .h1 { font-size: 20px; }
.film.is-tall .chat { padding: 10px 10px 12px; }
.film.is-tall .chat__me { max-width: 92%; }
.film.is-tall .dlg { width: 350px; padding: 16px; }
.film.is-tall .dlg[data-set] { width: 360px !important; grid-template-columns: 1fr !important; min-height: 0 !important; }
.film.is-tall .dlg[data-set] .tabs { display: none !important; }
.film.is-tall .menu { min-width: 200px; }
.film.is-tall .row { padding: 10px; gap: 8px; }
.film.is-tall .row small { overflow-wrap: anywhere; }
.film.is-tall .ow { width: 100%; padding: 12px; }
.film.is-tall .ow__t { grid-template-columns: repeat(2, 1fr); }
.film.is-tall .term { font-size: 16px; padding: 12px 14px; }
.film.is-tall .term .box { padding: 6px 10px; }
.film.is-tall .film__tag { top: 10px; right: 12px; }
.ow__d { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.ow__d p { margin: 0; padding: 6px 4px; border-bottom: 1px solid #cbd5cf; display: grid; gap: 2px; text-align: center; }
.ow__d span { font-size: 10.5px; color: #6b6e76; } .ow__d b { font-size: 14px; }
.film.is-tall .film__cap { top: 12px; bottom: auto; left: 12px; }
.film.is-tall .film__steps button { padding: 10px 0; }
.film.is-tall .film__steps button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.film.is-tall .film__steps button em { top: 10px; }
.film__now { display: none; margin: -2px 0 0; align-items: center; gap: 10px; font: 650 15px/1.2 var(--sc-font-text); color: var(--sc-ink); }
.film__now i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 760 12px/1 var(--sc-font-display); font-style: normal; }
.film.is-tall .film__now { display: flex; }
.film.is-tall .film__cap { display: none; }

/* real recordings (Claude Code, Codex): the video carries its own step label, cursor and camera */
.film__video { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: cover; background: #e8e9eb; }
.film.is-video .film__stage, .film.is-tall.is-video .film__stage { aspect-ratio: 16 / 9; background: #e8e9eb; }
.film.is-video .film__frame, .film.is-video .film__cap { display: none; }
.film.is-video .film__tag { color: rgba(16, 18, 16, .45); }
