/* "Belülről / Inside": three screens (dashboard, calls, a live call with what the assistant opens) that fan through a pinned scroll.
   Flat, in the dashboard's own language: warm panels, one hairline, the yellow only for what is happening right now. No glow, no shadow, no gradient.
   The base rules are the static layout (no script, narrow screens, reduced motion): the screens are stacked and everything is shown.
   The script adds .is-live on wide screens; only then is the section pinned and the screens move. */
html body .inside {
  --in-panel: #121110;
  --in-raise: #1A1815;
  --in-line: rgba(245, 242, 236, 0.10);
  --in-ink: #F5F2EC;
  --in-ink-2: #B8B2A7;
  --in-ink-3: #8E887D;
  --in-y: #D4A017;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid rgba(245, 242, 236, 0.06);
}
html body .inside-grid { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
html body .inside-lead { margin: 0 0 28px; color: var(--in-ink-2); font-size: 1.0625rem; line-height: 1.55; max-width: 46ch; }
html body .inside-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
html body .inside-step { border-top: 1px solid var(--in-line); position: relative; }
html body .inside-step:last-child { border-bottom: 1px solid var(--in-line); }
html body .inside-step button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 16px 0 18px; cursor: pointer; }
html body .inside-step button:focus-visible { outline: 2px solid var(--in-y); outline-offset: 4px; border-radius: 6px; }
html body .inside-step-title { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--in-ink); margin-bottom: 4px; }
html body .inside-step-text { display: block; font-size: 0.9375rem; line-height: 1.5; color: var(--in-ink-2); max-width: 46ch; }
html body .inside-step-bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--in-y); }
html body .inside-note { margin: 0; text-align: left; font-size: 0.8125rem; color: var(--in-ink-3); }

/* the stage: stacked in the static layout */
html body .inside-stage { display: grid; gap: 24px; }
html body .inside-screen { background: #0A0A0A; border: 1px solid var(--in-line); border-radius: 22px; overflow: hidden; color: var(--in-ink); }

/* the screens are the product's own pages, drawn with the app's own panels, words and colours (example data) */
.app { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 0; font-size: 0.75rem; line-height: 1.4; }
.app-side { border-right: 1px solid var(--in-line); padding: 14px 8px 12px; display: flex; flex-direction: column; gap: 2px; background: #0A0A0A; }
.app-brand { font-weight: 700; letter-spacing: -0.02em; color: var(--in-y); font-size: 0.9375rem; padding: 0 8px 10px; }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.app-nav li { padding: 6px 8px; border-radius: 9px; color: var(--in-ink-3); font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav li.is-on { background: rgba(245, 242, 236, 0.07); color: var(--in-ink); }
.app-side .app-face { margin-top: auto; padding: 10px 8px 0; }
.app-main { padding: 16px 16px 16px; min-width: 0; }
.app-eyebrow { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--in-y); }
.app-h1 { margin: 6px 0 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; color: var(--in-ink); }
.app-sub { margin: 3px 0 0; color: var(--in-ink-2); font-size: 0.6875rem; }
.app-sub b { color: var(--in-ink); font-weight: 600; }
.app-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* the overview */
.ov-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ov-ok { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(79, 209, 139, 0.55); border-radius: 16px; background: #131210; margin-bottom: 10px; }
.ov-ok svg { color: #4FD18B; flex: none; }
.ov-ok strong { font-size: 0.6875rem; font-weight: 600; color: var(--in-ink); }
.ov-ok span { font-size: 0.6875rem; color: var(--in-ink-2); }
.ov-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ov-tile { border-radius: 16px; padding: 10px 11px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: var(--tone); color: #fff; }
.ov-tile[data-tone="gold"] { --tone: #E6AE0F; }
.ov-tile[data-tone="lilac"] { --tone: #8B7BFF; }
.ov-tile[data-tone="green"] { --tone: #3FDD8E; }
.ov-tile[data-tone="orange"] { --tone: #FF6A2A; }
.ov-tile[data-tone="violet"] { --tone: #7A45FF; }
.ov-tile[data-tone="sky"] { --tone: #3D9DF5; }
.ov-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 0.625rem; line-height: 1.25; }
.ov-tile-top i { width: 20px; height: 20px; border-radius: 7px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; }
.ov-tile-top svg { width: 11px; height: 11px; }
.ov-tile b { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.ov-tile small { display: block; font-size: 0.5625rem; margin-top: 3px; }
.ov-tile em { font-style: normal; display: inline-block; margin-top: 4px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.5rem; background: rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 1px 6px; }
.ov-card { background: #131210; border: 1px solid rgba(245, 242, 236, 0.09); border-radius: 22px; padding: 12px 14px; }
.ov-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ov-card h4 { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--in-ink); }
.ov-card-head span { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.5rem; text-transform: uppercase; color: var(--in-y); }
.ov-appt { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border: 1px solid rgba(245, 242, 236, 0.09); background: #0A0A0A; border-radius: 12px; padding: 8px 10px; }
.ov-appt + .ov-appt { margin-top: 6px; }
.ov-appt strong { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--in-ink); }
.ov-appt small { display: block; font-size: 0.625rem; color: var(--in-ink-3); margin-top: 1px; }
.app-badge { font-size: 0.5625rem; color: var(--in-y); border: 1px solid rgba(212, 160, 23, 0.3); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* the calls page */
.cl-link { margin: 6px 0 0; font-size: 0.6875rem; color: var(--in-y); }
.cl-card { background: #1A1815; border: 1px solid rgba(245, 242, 236, 0.10); border-radius: 18px; padding: 12px 14px; margin: 12px 0 12px; }
.cl-card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cl-card h4 { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 500; color: var(--in-ink); }
.cl-card p { margin: 0; font-size: 0.6875rem; color: var(--in-ink-2); }
.cl-card p b { color: var(--in-ink); font-weight: 500; }
.app-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(245, 242, 236, 0.16); border-radius: 8px; padding: 4px 9px; font-size: 0.625rem; color: var(--in-ink); white-space: nowrap; }
.app-btn svg { width: 11px; height: 11px; }
.cl-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(245, 242, 236, 0.09); }
.cl-toggle-row span { font-size: 0.6875rem; font-weight: 500; color: var(--in-ink); }
.app-switch { width: 28px; height: 16px; border-radius: 999px; background: var(--in-y); position: relative; flex: none; }
.app-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #0A0A0A; }
.cl-h2 { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 500; color: var(--in-ink); }
.cl-search { display: flex; align-items: center; gap: 6px; border: 1px solid rgba(245, 242, 236, 0.10); background: #121110; border-radius: 14px; padding: 7px 10px; font-size: 0.6875rem; color: var(--in-ink-3); margin-bottom: 8px; }
.cl-search svg { width: 12px; height: 12px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.cl-row { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(245, 242, 236, 0.08); background: #121110; border-radius: 14px; padding: 8px 10px; }
.cl-ico { width: 28px; height: 28px; border-radius: 28%; background: #26211A; border: 1px solid rgba(245, 242, 236, 0.12); display: grid; place-items: center; flex: none; color: var(--in-y); }
.cl-ico svg { width: 12px; height: 12px; }
.cl-who { flex: 1; min-width: 0; }
.cl-who strong { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--in-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-who span { display: block; font-size: 0.625rem; color: var(--in-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cl-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.cl-meta time { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.5rem; color: var(--in-ink-3); }
.cl-pills { display: flex; gap: 5px; }
.cl-pill { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.5rem; border: 1px solid rgba(245, 242, 236, 0.16); border-radius: 999px; padding: 1px 7px; color: var(--in-ink-2); }
.cl-pill.is-y { text-transform: uppercase; border-color: rgba(212, 160, 23, 0.3); color: var(--in-y); }

/* the call from the browser (with what the assistant opens written beside it) */
.bc-back { display: inline-flex; align-items: center; gap: 5px; font-size: 0.625rem; color: var(--in-ink-3); margin-bottom: 8px; }
.bc-back svg { width: 11px; height: 11px; }
.bc-card { display: flex; align-items: center; gap: 14px; border: 1px solid rgba(245, 242, 236, 0.10); background: #131210; border-radius: 18px; padding: 12px 14px; margin: 12px 0 10px; }
.bc-who { flex: 1; min-width: 0; }
.bc-who strong { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--in-ink); }
.bc-who span { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.75rem; color: var(--in-ink-3); margin-top: 2px; }
.bc-call { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.bc-col-label { font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--in-ink-3); margin: 0 0 6px; }
.scr-talk { display: grid; gap: 6px; align-content: start; }
.scr-line { background: #1A1815; border-radius: 12px; padding: 6px 9px; color: var(--in-ink); font-size: 0.6875rem; line-height: 1.35; }
.scr-line small { display: block; font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--in-ink-3); margin-bottom: 2px; }
.scr-line.is-assistant { background: transparent; border: 1px solid var(--in-line); }
.scr-log { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.scr-log li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--in-line); color: var(--in-ink); font-size: 0.6875rem; }
.scr-log li:first-child { border-top: 0; padding-top: 0; }
.scr-log li b { margin-left: auto; font-size: 0.5625rem; font-weight: 500; color: var(--in-ink-3); }
.scr-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #3A352B; flex: none; position: relative; box-sizing: border-box; }
.scr-log li.is-doing .scr-dot { border-color: var(--in-y); }
.scr-log li.is-done .scr-dot { background: var(--in-y); border-color: var(--in-y); }
.scr-log li.is-done .scr-dot::after { content: ""; position: absolute; left: 3.5px; top: 3px; width: 5px; height: 3px; border-left: 1.8px solid #0A0A0A; border-bottom: 1.8px solid #0A0A0A; transform: rotate(-45deg); }

/* ---------- live: pinned, three screens fan through ---------- */
html body .inside.is-live { padding: 0; }
html body .inside.is-live .inside-track { height: 360vh; position: relative; }
html body .inside.is-live .inside-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 56px; }
html body .inside.is-live .inside-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); width: 100%; }
html body .inside.is-live .inside-note { max-width: 1180px; margin: 20px auto 0; padding: 0 clamp(20px, 5vw, 40px); width: 100%; box-sizing: border-box; }
html body .inside.is-live .inside-stage { display: block; position: relative; height: min(64vh, 520px); perspective: 1600px; }
html body .inside.is-live .inside-screen { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--screen-h, 380px) / -2); transform-origin: 50% 50%; will-change: transform, opacity; }
html body .inside.is-live .inside-step { opacity: 0.45; transition: opacity 240ms ease; }
html body .inside.is-live .inside-step.is-active { opacity: 1; }
html body .inside.is-live .scr-log li, html body .inside.is-live .scr-line { opacity: 0.22; transition: opacity 260ms ease; }
html body .inside.is-live .scr-log li.is-doing, html body .inside.is-live .scr-log li.is-done, html body .inside.is-live .scr-line.is-on { opacity: 1; }

@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .ov-tiles { grid-template-columns: 1fr 1fr; }
  .bc-call { grid-template-columns: 1fr; }
  .cl-card-row { flex-wrap: wrap; }
  .cl-pills .cl-pill:first-child { display: none; }
  .cl-who strong, .cl-who span { max-width: 100%; }
  .bc-card { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html body .inside * { transition: none !important; }
}
