/* Hero: a Mac desktop with Arc and the ChatGPT app. The stage is drawn at
   1200 × 700 and scaled to the hero. Favicons are the sites' real icons; the
   tab badges and the on-page cursor follow the ChatGPT extension's own
   codex.js (dimmed favicon under its cursor path, green dot for a kept tab). */

#hero { background: #0a6cff; }
.stage { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.wall { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 100% 100%, #ffc21a 0%, rgba(255, 194, 26, 0) 38%),
  radial-gradient(90% 80% at 78% 92%, #ff7a3d 0%, rgba(255, 122, 61, 0) 45%),
  radial-gradient(85% 90% at 72% 55%, #e14fc1 0%, rgba(225, 79, 193, 0) 60%),
  linear-gradient(118deg, #0062ff 0%, #2d6bff 30%, #6a5cf6 52%, #c84fd4 72%, #ff7a3d 92%); }
:root[data-theme="dark"] .wall { filter: brightness(0.62) saturate(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wall { filter: brightness(0.62) saturate(1.05); } }

.win-lights { display: flex; gap: 8px; }
.win-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.win-lights i:nth-child(1) { background: #ff5f57; }
.win-lights i:nth-child(2) { background: #febc2e; }
.win-lights i:nth-child(3) { background: #28c840; }

/* ---------- Arc ---------- */
.arcwin { position: absolute; left: 40px; top: 40px; width: 900px; height: 720px; border-radius: 12px; overflow: hidden;
  --space: linear-gradient(162deg, #b9c2ff 0%, #cdb6ff 38%, #efb5e3 72%, #ffc3c8 100%);
  --s-ink: #1d1b2c; --s-dim: rgba(29, 27, 44, 0.56); --s-row: rgba(255, 255, 255, 0.38); --s-on: rgba(255, 255, 255, 0.94); --s-line: rgba(29, 27, 44, 0.1);
  background: var(--space); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(18, 10, 60, 0.38), 0 8px 24px rgba(18, 10, 60, 0.2); }
:root[data-theme="dark"] .arcwin { --space: linear-gradient(162deg, #2c2f72 0%, #43307a 40%, #6a2f69 75%, #7a3245 100%); --s-ink: #f2f0ff; --s-dim: rgba(242, 240, 255, 0.58); --s-row: rgba(255, 255, 255, 0.07); --s-on: rgba(255, 255, 255, 0.17); --s-line: rgba(255, 255, 255, 0.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arcwin { --space: linear-gradient(162deg, #2c2f72 0%, #43307a 40%, #6a2f69 75%, #7a3245 100%); --s-ink: #f2f0ff; --s-dim: rgba(242, 240, 255, 0.58); --s-row: rgba(255, 255, 255, 0.07); --s-on: rgba(255, 255, 255, 0.17); --s-line: rgba(255, 255, 255, 0.1); } }
.arcwin::before { content: ""; position: absolute; inset: 0; opacity: 0.22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.side { position: absolute; left: 0; top: 0; bottom: 0; width: 246px; padding: 10px 10px 0 12px; color: var(--s-ink); font-size: 13px; line-height: 18px; }
.side-top { display: flex; align-items: center; height: 26px; margin: 2px 0 10px 4px; }
.side-top .tools { margin-left: auto; display: flex; gap: 10px; color: var(--s-dim); }
.side-top svg { width: 16px; height: 16px; display: block; }
.url { height: 34px; border-radius: 10px; background: var(--s-row); display: flex; align-items: center; padding: 0 11px; color: var(--s-dim); font-size: 13px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; }
.favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.favs i { height: 44px; border-radius: 11px; background: var(--s-row); display: grid; place-items: center; }
.favs img, .favs svg { width: 20px; height: 20px; }
.side .g-linear { color: #5e6ad2; }
:root[data-theme="dark"] .side .g-linear { color: #9aa2f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side .g-linear { color: #9aa2f4; } }
.rows { position: relative; }
.row { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; color: var(--s-ink); font-weight: 500; transform-origin: top; }
.row.on { background: var(--s-on); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.row.dim { color: var(--s-dim); font-weight: 400; }
.row .ico { flex: none; width: 16px; height: 16px; display: block; position: relative; }
.row .ico img, .row .ico svg { position: absolute; inset: 0; width: 16px; height: 16px; }
.row .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sep { height: 1px; background: var(--s-line); margin: 8px 6px 8px; }
.rows .slot { overflow: hidden; }

.page { position: absolute; left: 246px; top: 8px; right: 8px; bottom: -8px; border-radius: 8px; overflow: hidden; background: #f8f9fa; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08); color: #1f1f1f; }
.gdoc-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #f9fbfd; }
.gdoc-bar img { width: 24px; height: 30px; object-fit: contain; }
.gdoc-bar b { font: 400 17px/22px var(--sans); color: #1f1f1f; }
.gdoc-bar small { display: block; font: 400 12.5px/16px var(--sans); color: #444746; letter-spacing: 0.1px; }
.gdoc-bar .share { margin-left: auto; height: 34px; padding: 0 18px; border-radius: 17px; background: #c2e7ff; color: #001d35; font: 500 13.5px/34px var(--sans); }
.gdoc-tools { height: 36px; margin: 0 12px; border-radius: 18px; background: #edf2fa; }
.gdoc-sheet { position: absolute; left: 50%; top: 104px; width: 470px; transform: translateX(-50%); background: #fff; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18), 0 1px 1px rgba(60, 64, 67, 0.1); padding: 46px 52px 80px; min-height: 640px; }
.gdoc-sheet h1 { margin: 0 0 6px; font: 400 26px/32px Georgia, "Times New Roman", serif; color: #1f1f1f; }
.gdoc-sheet h2 { margin: 18px 0 6px; font: 600 15px/20px var(--sans); color: #1f1f1f; }
.gdoc-sheet p, .gdoc-sheet li { margin: 0 0 6px; font: 400 13px/20px var(--sans); color: #3c4043; }
.gdoc-sheet ul { margin: 0; padding-left: 18px; }

/* ---------- ChatGPT app ---------- */
.gptwin { position: absolute; left: 768px; top: 78px; width: 400px; height: 540px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  --g-bg: #ffffff; --g-ink: #0d0d0d; --g-dim: #6b6b6b; --g-bub: #f2f2f2; --g-line: rgba(0, 0, 0, 0.08); --g-card: #ffffff;
  background: var(--g-bg); color: var(--g-ink); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 70px rgba(18, 10, 60, 0.42), 0 8px 20px rgba(18, 10, 60, 0.2); }
:root[data-theme="dark"] .gptwin { --g-bg: #212121; --g-ink: #ececec; --g-dim: #a0a0a0; --g-bub: #303030; --g-line: rgba(255, 255, 255, 0.1); --g-card: #2a2a2a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gptwin { --g-bg: #212121; --g-ink: #ececec; --g-dim: #a0a0a0; --g-bub: #303030; --g-line: rgba(255, 255, 255, 0.1); --g-card: #2a2a2a; } }
.gpt-top { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; }
.gpt-top .ttl { display: flex; align-items: center; gap: 7px; margin: 0 auto; transform: translateX(-26px); font: 600 13.5px/18px var(--sans); }
.gpt-top .ttl img { width: 18px; height: 18px; border-radius: 5px; }
.thread { position: relative; flex: 1; overflow: hidden; padding: 6px 18px 0; }
.thread-in { display: flex; flex-direction: column; gap: 12px; }
.msg-me { align-self: flex-end; max-width: 82%; background: var(--g-bub); border-radius: 18px; padding: 9px 14px; font: 400 14px/20px var(--sans); }
.msg-ai { font: 400 14px/21px var(--sans); }
.step { display: flex; align-items: center; gap: 8px; font: 400 13px/18px var(--sans); color: var(--g-dim); }
.step .st { width: 14px; height: 14px; flex: none; position: relative; }
.step .st::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 1.6px solid currentColor; border-top-color: transparent; animation: gspin 0.8s linear infinite; opacity: 0.7; }
.step.done .st::before { animation: none; border: 0; inset: 0; border-radius: 0; opacity: 1; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2322a35a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.step img { width: 14px; height: 14px; }
@keyframes gspin { to { transform: rotate(360deg); } }
.snap { border-radius: 12px; overflow: hidden; background: var(--g-card); box-shadow: 0 0 0 1px var(--g-line); }
.snap-h { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; font: 500 12px/16px var(--sans); color: var(--g-dim); border-bottom: 1px solid var(--g-line); }
.snap-h img, .snap-h svg { width: 14px; height: 14px; }
.snap-b { position: relative; height: 150px; background: #fff; color: #1f1f1f; overflow: hidden; }
.ex { padding: 22px 26px; }
.ex h4 { margin: 0 0 8px; font: 600 19px/24px var(--sans); display: inline-block; border-radius: 4px; transition: background 0.3s, box-shadow 0.3s; }
.ex h4.on { background: rgba(37, 99, 235, 0.12); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.ex p { margin: 0 0 6px; font: 400 12px/17px var(--sans); color: #444; }
.ex a { color: #3b5bdb; font-size: 12px; }
.sheet { font: 400 11.5px/24px var(--sans); }
.sheet table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.sheet td, .sheet th { border: 1px solid #e1e3e6; height: 24px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.sheet th { background: #f8f9fa; color: #5f6368; font-weight: 500; text-align: center; }
.sheet th:first-child { width: 26px; }
.sheet td.hd { font-weight: 600; color: #1f1f1f; }
.sheet td.on { box-shadow: inset 0 0 0 2px #1a73e8; }
.ccur { position: absolute; left: 0; top: 0; width: 23px; height: 24px; pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 6px rgba(80, 120, 255, 0.35)); }
.composer { flex: none; margin: 10px 14px 14px; border-radius: 24px; box-shadow: 0 0 0 1px var(--g-line), 0 2px 8px rgba(0, 0, 0, 0.04); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; min-height: 48px; font: 400 14px/20px var(--sans); }
.composer .ph { color: var(--g-dim); flex: 1; }
.composer .ph.typing { color: var(--g-ink); }
.composer .send { width: 32px; height: 32px; border-radius: 50%; background: var(--g-ink); display: grid; place-items: center; flex: none; opacity: 0.3; transition: opacity 0.2s; }
.composer .send.on { opacity: 1; }
.composer .send svg { width: 16px; height: 16px; }
.composer .send path { stroke: var(--g-bg); }

/* The composer sits low in the hero, so this page fades only the last strip. */
.cs-hero .cs-hero-fade { height: 10%; }
