/* Home page middle: the live call demo (#how) and "more than a transcript" (#features).
   The stage is a picture of a screen, so it keeps its own dark call and panel colours in both site themes;
   the panel colours are the app's own (renderer/session.css). At every size the AlphaView panel floats over
   the call, as it does on a real screen: phones stack the two people and fold the transcript into one line
   (the app's strip), tablets put the panel on the right, computers add the full transcript panel. */

:root { --d-ring: rgb(15 22 25 / 0.14); --d-drop: rgb(15 22 25 / 0.45); }
:root[data-theme="dark"] { --d-ring: rgb(255 255 255 / 0.09); --d-drop: rgb(0 0 0 / 0.7); }

/* phones and tablets cannot run the app: they get the "use it on your computer" version (data-device is set in <head>) */
html[data-device="phone"] .for-computer, html:not([data-device="phone"]) .for-phone { display: none !important; }

/* ── section head and pickers ── */
.d-head { display: grid; gap: 12px; margin-bottom: 22px; }
.d-head p { margin: 0; color: var(--cream-soft); font-size: 17px; max-width: 44ch; }
.d-pickers { display: grid; gap: 14px; margin-bottom: 14px; }
.d-works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; color: var(--cream-soft); font-size: 15px; }
.d-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 600; font-size: 16px; white-space: nowrap; }
.d-logo img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.d-moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); }
.d-moments button { height: 38px; padding: 0 6px; border: 0; border-radius: 9px; background: none; color: var(--cream-soft); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.d-moments button:hover { color: var(--cream); }
.d-moments button[aria-pressed="true"] { background: var(--cream); color: var(--ground); }

/* ── the stage ── */
.d-stage {
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --c-bg: #1A1A1A; --c-top: #242424; --c-tile: #2A2A2A; --c-speak: #3BD16F; --c-text: #E8EAED; --c-dim: #A9ADB2;
  --top-h: 30px; --bar-h: 44px; --t-r: 4px; --av-top: 196px;
  position: relative; height: 620px;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  background: #0E0E10; color: var(--c-text); font-family: var(--ui);
  box-shadow: 0 0 0 1px var(--d-ring), 0 40px 80px -44px var(--d-drop);
}
.d-stage[data-app="meet"] { --c-bg: #202124; --c-top: #35363A; --c-tile: #3C4043; --c-speak: #8AB4F8; --top-h: 32px; --bar-h: 48px; --t-r: 10px; }
.d-stage[data-app="teams"] { --c-bg: #1F1F1F; --c-top: #292929; --c-tile: #2D2D2D; --c-speak: #7F85F5; --top-h: 40px; --bar-h: 0px; --t-r: 6px; }
.d-stage[data-app="webex"] { --c-bg: #121212; --c-top: #121212; --c-tile: #262626; --c-speak: #4CC37A; --top-h: 34px; --bar-h: 46px; --t-r: 10px; }
.d-stage[data-scene="code"] { --av-top: 204px; }
.d-stage button { font-family: var(--ui); }
.d-stage :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the call app around the panel */
.c { position: absolute; inset: 0; display: grid; grid-template-rows: var(--top-h) minmax(0, 1fr) var(--bar-h); background: var(--c-bg); font-size: 12px; color: var(--c-dim); user-select: none; transition: filter 0.3s ease; }
.c svg { width: 18px; height: 18px; flex: none; display: block; }
.ch { display: none; height: 100%; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.d-stage[data-app="zoom"] .ch-zoom, .d-stage[data-app="meet"] .ch-meet, .d-stage[data-app="teams"] .ch-teams, .d-stage[data-app="webex"] .ch-webex { display: flex; }
.c-top { background: var(--c-top); overflow: hidden; }
.c-bar { overflow: hidden; }
.c-fill { flex: 1; }
.c-mid { flex: 1; text-align: center; color: var(--c-text); font-weight: 500; }
.c-shield { width: 16px !important; height: 16px !important; }
.c-view { display: flex; align-items: center; gap: 6px; color: var(--c-text); }
.c-view svg { width: 13px; height: 13px; }
.c-dots { display: flex; gap: 6px; }
.c-dots i { width: 10px; height: 10px; border-radius: 50%; background: #5F6368; }
.c-url { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 12px; background: #202124; color: #E8EAED; white-space: nowrap; overflow: hidden; }
.c-url span { color: #9AA0A6; }
.c-url svg { width: 11px; height: 11px; color: #9AA0A6; }
.c-title { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-clock { font-variant-numeric: tabular-nums; }
.c-icons, .c-dev { display: none; gap: 14px; color: #D6D6D6; }
.c-dev { padding-left: 14px; border-left: 1px solid #444; }
.c-leave { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 4px; background: #C4314B; color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.c-leave svg { width: 16px; height: 16px; }
.c-live { width: 8px; height: 8px; border-radius: 50%; background: #4CC37A; flex: none; }

.c-main { position: relative; display: grid; padding: 6px; min-height: 0; }
/* phones: the two people stacked, as a phone-width call shows them */
.c-tiles { position: relative; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 0; }
.tile { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: var(--t-r); background: var(--c-tile); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.tile figcaption { position: absolute; left: 8px; bottom: 7px; padding: 2px 7px; border-radius: 3px; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.35; }
.d-stage[data-app="meet"] .tile figcaption { background: none; padding: 0; text-shadow: 0 1px 3px rgb(0 0 0 / 0.7); font-size: 13px; }
.d-stage[data-app="teams"] .tile figcaption { border-radius: 4px; background: rgb(0 0 0 / 0.62); }
.d-stage[data-app="webex"] .tile figcaption { border-radius: 999px; padding: 2px 9px; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c-speak); opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.d-stage.talking .t-them::after { opacity: 1; }
.t-talk { display: none; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #1A73E8; align-items: center; justify-content: center; gap: 2.5px; }
.t-talk i { width: 3px; height: 10px; border-radius: 2px; background: #fff; transform: scaleY(calc(0.35 + var(--lvl, 0) * 0.65)); transition: transform 0.08s linear; }
.t-talk i:nth-child(2) { transform: scaleY(calc(0.45 + var(--lvl, 0) * 0.55)); height: 13px; }
.d-stage[data-app="meet"] .t-talk { display: flex; }
.d-stage[data-app="meet"] .t-them::after { box-shadow: none; }
.t-mute { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgb(32 33 36 / 0.75); color: #fff; display: grid; place-items: center; }
.t-mute svg { width: 13px !important; height: 13px !important; }

/* someone shares code: the code fills the call, the speaker becomes a small picture */
.c-share { display: none; position: relative; min-height: 0; overflow: hidden; border-radius: 6px; background: #1E1E1E; }
.d-stage[data-scene="code"] .c-share { display: block; }
.d-stage[data-scene="code"] .c-main { grid-template-columns: minmax(0, 1fr); }
.d-stage[data-scene="code"] .c-tiles { position: absolute; top: 12px; right: 12px; width: 30%; aspect-ratio: 16 / 10; grid-template-rows: 1fr; }
.d-stage[data-scene="code"] .c-tiles .t-you { display: none; }
.d-stage[data-scene="code"] .c-tiles figcaption { font-size: 10px; }
.c-ed { height: 100%; display: flex; flex-direction: column; }
.c-tabs { display: flex; height: 28px; background: #252526; font-size: 11.5px; color: #9D9D9D; flex: none; }
.c-tabs span { display: flex; align-items: center; padding: 0 12px; }
.c-tabs .on { background: #1E1E1E; color: #fff; }
.c-code { margin: 0; padding: 10px 8px; font: 9.5px/1.7 Menlo, Consolas, "SF Mono", monospace; color: #D4D4D4; white-space: pre; overflow: hidden; }
.c-code .ln { display: inline-block; width: 1.6em; margin-right: 1.2em; text-align: right; color: #6E7681; }
.k { color: #C586C0; } .f { color: #DCDCAA; } .n { color: #B5CEA8; } .m { color: #6A9955; } .s { color: #CE9178; }
.c-code .bug { border-radius: 3px; transition: background 0.4s ease, box-shadow 0.4s ease; }
.d-stage[data-found] .c-code .bug { background: rgb(225 29 72 / 0.24); box-shadow: 0 0 0 2px rgb(225 29 72 / 0.24); }
.c-sharing { display: none; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 6px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; white-space: nowrap; }
.d-stage[data-app="zoom"] .c-sharing { top: 34px; bottom: auto; background: #23A55A; }
.c-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 2px #FB7185; }
.c-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgb(251 113 133 / 0.28) 85%, rgb(251 113 133 / 0.9)); transform: translateY(-100%); }
.d-stage.scanning .c-scan { opacity: 1; }
.d-stage.scanning .c-scan::after { animation: d-scan 0.85s cubic-bezier(.5, 0, .5, 1) forwards; }
@keyframes d-scan { to { transform: translateY(340%); } }

/* bottom bars */
.zb { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #D6D6D6; padding: 0 6px; }
.zb b, .wb b { display: none; font-weight: 500; font-size: 10.5px; white-space: nowrap; }
.zb-end { height: 26px; padding: 0 12px; display: grid; place-items: center; border-radius: 7px; background: #D92D20; color: #fff; font-weight: 600; font-size: 12px; flex: none; }
.mb-time { display: none; align-items: center; gap: 10px; color: #E8EAED; font-size: 13px; white-space: nowrap; }
.mb-time i { width: 1px; height: 14px; background: #5F6368; }
.mb-mid { flex: 1; display: flex; justify-content: center; gap: 8px; }
.mb { width: 32px; height: 32px; border-radius: 50%; background: #3C4043; color: #E8EAED; display: grid; place-items: center; flex: none; }
.mb svg { width: 16px; height: 16px; }
.mb-red { background: #EA4335; color: #fff; }
.mb-end { width: 44px; border-radius: 16px; background: #EA4335; color: #fff; }
.mb-right { display: none; gap: 18px; color: #E8EAED; }
.wb { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 16px; background: #2A2A2A; color: #E8EAED; }
.wb svg { width: 16px; height: 16px; }
.wb-end { width: 34px; height: 34px; border-radius: 50%; background: #D4371C; color: #fff; display: grid; place-items: center; flex: none; }
.wb-end svg { width: 15px; height: 15px; }
.d-stage[data-app="zoom"] .c-bar { background: #1A1A1A; }
@media (max-width: 759.98px) { .mb:nth-child(3), .mb:nth-child(4), .mb:nth-child(5), .zb:nth-of-type(n+5):not(.zb-share), .wb-icon { display: none; } }

/* ── the AlphaView panel (the app's own colours), floating over the call ── */
.av {
  --av-win: rgb(22 22 26 / 0.96); --av-line: #2A2A30; --av-line2: #232328;
  --av-text: #F4F4F5; --av-soft: #D4D4D8; --av-muted: #A1A1AA; --av-subtle: #8B8B95; --av-faint: #5F5F69;
  --av-btn: #222228; --av-btn-hover: #2C2C33; --av-off: #4A4A52;
  --av-accent: #E11D48; --av-accent-hover: #F43F5E; --av-active-bg: rgb(225 29 72 / 0.18); --av-active-fg: #FB7185;
  --av-them: #222228; --av-you: rgb(225 29 72 / 0.16); --av-code: #0F0F12;
  position: absolute; z-index: 2; left: 8px; right: 8px; top: var(--av-top); bottom: calc(var(--bar-h) + 8px);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  color: var(--av-text); font-size: 13px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.d-stage[data-view="theirs"] .av { opacity: 0; transform: translateY(8px); pointer-events: none; }
.av-bar, .av-t, .av-a, .av-strip { background: var(--av-win); border: 1px solid var(--av-line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.6); }
.av-top { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--av-line2); }
.av-grip { display: none; width: 18px; height: 30px; color: var(--av-faint); place-items: center; }
.av-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--av-accent); flex: none; box-shadow: 0 0 0 calc(3px + var(--lvl, 0) * 4px) rgb(225 29 72 / calc(0.22 - var(--lvl, 0) * 0.08)); transition: box-shadow 0.08s linear; }
.av-timer { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.av-left { font-size: 12px; color: var(--av-subtle); white-space: nowrap; }
.av-fill { flex: 1; }
.av-tbtn { display: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--av-btn); font-size: 12.5px; font-weight: 600; }
.av-ibtn { display: none; width: 30px; height: 30px; border-radius: 8px; color: var(--av-muted); place-items: center; }
.av-end { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 8px; background: rgb(225 29 72 / 0.14); color: var(--av-active-fg); font-size: 12.5px; font-weight: 600; }
.av-main { display: flex; align-items: center; gap: 6px; padding: 7px 8px; }
.av-group { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: var(--av-btn); }
.av-c { position: relative; height: 32px; padding: 0 9px; border: 0; border-radius: 9px; background: none; color: var(--av-soft); display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.av-c svg { flex: none; }
.av-mic > span, .av-type > span, .av-c.on > span { display: none; }
button.av-c { cursor: pointer; }
button.av-c:hover { background: var(--av-btn-hover); color: var(--av-text); }
.av-c.on { background: var(--av-active-bg); color: var(--av-active-fg); }
.av-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--av-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.av-switch { display: none; align-items: center; gap: 6px; height: 32px; padding: 0 6px; color: var(--av-muted); font-size: 12.5px; font-weight: 600; }
.av-track { width: 26px; height: 16px; border-radius: 999px; background: var(--av-off); padding: 2px; display: flex; }
.av-knob { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.av-ask { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 16px; border: 0; border-radius: 999px; background: var(--av-accent); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.av-ask:hover { background: var(--av-accent-hover); }
.av-ask:active, .av-ask.press, button.av-c.press { transform: scale(0.94); }
.av-ask-c { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--av-accent); display: grid; place-items: center; }
.av-spin { display: none; }
.av-ask.loading .av-arrow { display: none; }
.av-ask.loading .av-spin { display: block; animation: d-spin 0.8s linear infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }
.av-ask.attn, button.av-c.attn { animation: d-attn 1.6s ease-out infinite; }
button.av-c.attn { background: var(--av-btn-hover); color: var(--av-text); }
@keyframes d-attn { 0% { box-shadow: 0 0 0 0 rgb(251 113 133 / 0.6); } 70%, 100% { box-shadow: 0 0 0 12px rgb(251 113 133 / 0); } }

.d-hint { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: #fff; color: #18181B; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); }
.d-hint::before { content: ""; position: absolute; top: -5px; left: calc(var(--ax, 50%) - 5px); width: 10px; height: 10px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.d-hint kbd, .d-flow kbd { font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 1px 5px; border-radius: 5px; border: 1px solid #D4D4D8; background: #F4F4F5; color: #18181B; }

.av-panels { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.av-t { display: none; flex-direction: column; min-height: 0; }
.av-a { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.av-head { padding: 9px 12px; border-bottom: 1px solid var(--av-line2); font-size: 12.5px; font-weight: 600; flex: none; }
.av-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; scrollbar-width: thin; scrollbar-color: var(--av-line) transparent; overscroll-behavior: contain; }
.av-msg { max-width: 88%; display: flex; flex-direction: column; gap: 2px; }
.av-msg.them { align-self: flex-start; }
.av-msg.you { align-self: flex-end; align-items: flex-end; }
.av-msg.fresh { animation: d-in 0.2s ease-out; }
@keyframes d-in { from { opacity: 0; transform: translateY(4px); } }
.av-who { font-size: 10px; font-weight: 600; color: var(--av-subtle); }
.av-say { padding: 7px 9px; font-size: 12px; line-height: 1.4; }
.them .av-say { border-radius: 4px 11px 11px 11px; background: var(--av-them); }
.you .av-say { border-radius: 11px 4px 11px 11px; background: var(--av-you); }
.av-msg.typing .av-say { opacity: 0.88; }
.av-cur { color: var(--av-accent); animation: d-blink 1s step-end infinite; }
@keyframes d-blink { 50% { opacity: 0; } }
/* the transcript folded into one line under the bar (the app's strip), on phones and tablets */
.av-strip { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 8px; border-radius: 10px; flex: none; }
.av-chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--av-btn); font-size: 11px; font-weight: 600; color: var(--av-soft); flex: none; }
.av-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--av-accent); }
.av-strip.you .av-chip i { background: var(--av-subtle); }
.av-strip-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--av-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.av-strip-text bdi { direction: ltr; unicode-bidi: isolate; }
.av-qline { display: flex; gap: 8px; align-items: flex-start; padding: 11px 12px 10px 14px; border-bottom: 1px solid var(--av-line2); flex: none; }
.av-qtag { flex: none; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--av-btn); font-size: 10.5px; font-weight: 700; line-height: 18px; color: var(--av-muted); }
.av-qline p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--av-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.av-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: var(--av-soft); scrollbar-width: thin; scrollbar-color: var(--av-line) transparent; overscroll-behavior: contain; }
.av-body p { margin: 0 0 8px; }
.av-body ol, .av-body ul { margin: 8px 0; padding-left: 20px; }
.av-body li { margin-bottom: 4px; }
.av-body strong { color: #fff; font-weight: 600; }
.av-body code { font-family: Menlo, Consolas, "SF Mono", monospace; font-size: 12px; padding: 1px 5px; border-radius: 4px; background: rgb(255 255 255 / 0.08); color: #E4E4E7; }
.av-body pre { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--av-line); border-radius: 8px; background: var(--av-code); overflow-x: auto; }
.av-body pre code { padding: 0; background: none; font-size: 11.5px; line-height: 1.55; }
.av-note { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 9px; border-radius: 999px; background: var(--av-btn); color: var(--av-muted); font-size: 11.5px; font-weight: 600; }
.av-note svg { width: 12px; height: 12px; }
.av-empty { height: 100%; margin: auto; max-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--av-subtle); font-size: 12.5px; line-height: 1.5; }
.av-empty b { color: var(--av-muted); font-size: 13.5px; font-weight: 600; }
.av-body .pending { display: none !important; }

/* ── after an answer: try it on your own calls (site colours, so it reads as the website, not the app) ── */
.d-stage.popped .c { filter: brightness(0.45) saturate(0.8); }
.d-pop { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 12px; padding: 20px 18px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); color: var(--cream); font-family: var(--body); box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.65); animation: d-pop-in 0.35s cubic-bezier(.2, .8, .2, 1); }
@keyframes d-pop-in { from { opacity: 0; transform: translateY(14px); } }
.d-pop h3 { margin: 0; padding-right: 30px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; text-wrap: balance; }
.d-pop p { margin: 0; color: var(--cream-soft); font-size: 15px; line-height: 1.45; }
.d-pop .d-pop-small { color: var(--cream-muted); font-size: 13px; }
.d-pop-row { display: flex; flex-wrap: wrap; gap: 8px; }
.d-pop button { font-family: var(--body); }
.d-pop .btn-primary { flex: 1 1 100%; width: auto; height: 46px; padding: 0 18px; border-radius: 11px; font-family: var(--display); font-size: 16px; }
.d-pop-next { flex: 1 1 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--cream); font-weight: 600; font-size: 15px; cursor: pointer; }
.d-pop-next:hover { border-color: var(--cream-muted); }
.d-pop-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--cream-muted); display: grid; place-items: center; cursor: pointer; }
.d-pop-x:hover { background: var(--raised-2); color: var(--cream); }
.d-pop-x svg { width: 16px; height: 16px; }
.d-pop :focus-visible { outline-color: var(--emerald); }
.d-link { padding: 0; border: 0; background: none; color: var(--emerald); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ── under the stage ── */
.d-foot { display: grid; gap: 10px; margin-top: 14px; }
.d-view { justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); }
.d-view button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--cream-soft); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.d-view button[aria-pressed="true"] { background: var(--cream); color: var(--ground); }
.d-note { margin: 0; color: var(--cream-soft); font-size: 15px; }

/* how it works, lit by the demo as it runs */
.d-flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d-flow li { display: grid; grid-template-rows: 22px auto auto; row-gap: 6px; padding-right: 10px; min-width: 0; }
.d-flow li > b { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: -0.01em; color: var(--cream-muted); transition: color 0.25s ease; }
.d-flow li > span:last-child { display: none; color: var(--cream-soft); font-size: 15px; }
.d-node { position: relative; margin-right: -10px; }
.d-node::before { content: ""; position: absolute; z-index: 1; top: 4px; left: 0; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--raised); transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; }
.d-node::after { content: ""; position: absolute; top: 10px; left: 14px; right: 0; height: 2px; background: var(--line); transition: background 0.4s ease; }
.d-flow li:last-child .d-node::after { display: none; }
.d-pulse { position: absolute; z-index: 1; top: 7px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); opacity: 0; }
.d-flow li.on > b { color: var(--cream); }
.d-flow li.on .d-node::before { border-color: var(--emerald); background: var(--emerald); box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 20%, transparent); }
.d-flow li.on:has(+ li.on) .d-node::after { background: var(--emerald); }
.d-flow li.flowing .d-pulse { opacity: 1; animation: d-along 1s linear infinite; }
@keyframes d-along { from { left: 14px; } to { left: calc(100% - 8px); } }
.d-flow li.ready .d-node::before { border-color: var(--emerald); animation: d-ring 1.6s ease-out infinite; }
@keyframes d-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--emerald) 0%, transparent); } }
.d-flow kbd { border-color: var(--line); background: var(--ground); color: var(--cream); }
.d-small { margin: 20px 0 0; color: var(--cream-muted); font-size: 13px; }
.d-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── more than a transcript ── */
.d-more { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.d-more li { display: grid; gap: 8px; align-content: start; padding-block: 20px; border-bottom: 1px solid var(--line); }
.d-more h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; }
.d-more p { margin: 0; color: var(--cream-soft); max-width: 40ch; }
.d-more .d-scripts { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--cream); font-size: 17px; font-weight: 600; }
.d-get { margin-top: 26px; }
.d-get-row { display: grid; gap: 10px; }
.d-get-row p { margin: 0; color: var(--cream-soft); }
.d-get-row b { color: var(--cream); }

/* ── phones only: they cannot run the app, so every call to action points to the computer ── */
.hero-phone { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--cream-soft); font-size: 15px; line-height: 1.4; }
.hero-phone svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--emerald); }
.closing-phone { margin: 0; color: var(--cream-soft); font-size: 15px; text-align: center; }
.d-handoff { display: grid; gap: 12px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); }
.d-handoff h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; }
.d-handoff p { margin: 0; color: var(--cream-soft); }
.d-handoff-sign { height: 50px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--cream); font-weight: 600; font-size: 16px; cursor: pointer; }
.d-handoff-sign:hover { border-color: var(--cream-muted); }
/* phones: the desktop app on a laptop, how it works, and the call apps; nothing to play */
.m-shot { display: grid; gap: 12px; max-width: 640px; margin: 4px 0 0; }
.m-laptop { padding: 0 10px; }
.m-laptop-screen { overflow: hidden; border: 7px solid #263035; border-bottom-width: 9px; border-radius: 14px 14px 4px 4px; background: #000; box-shadow: 0 26px 50px -26px var(--d-drop); }
.m-laptop-screen img { display: block; width: 100%; height: auto; }
.m-laptop-base { position: relative; height: 11px; margin: 0 -10px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#CFD8D6, #94A19E); }
.m-laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; width: 22%; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #A9B4B1; }
.m-shot figcaption { color: var(--cream-soft); font-size: 15px; text-align: center; }
.m-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.m-steps li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 32px; }
.m-steps li::before { content: ""; position: absolute; top: 4px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 18%, transparent); }
.m-steps li::after { content: ""; position: absolute; top: 22px; bottom: 2px; left: 8px; width: 2px; background: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.m-steps li:last-child { padding-bottom: 0; }
.m-steps li:last-child::after { display: none; }
.m-steps b { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.m-steps span { color: var(--cream-soft); font-size: 15px; }
.m-works { margin-top: 26px; }
/* the phone companion: another way, after the computer */
.m-companion { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.m-companion-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--emerald-deep); color: var(--emerald); }
.m-companion-ico svg { width: 22px; height: 22px; }
.m-companion h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; }
.m-companion p { margin: 0 0 10px; color: var(--cream-soft); font-size: 15px; }
.m-companion .d-link { font-size: 16px; }
@media (max-width: 759.98px) {
  /* logos only, so "works with" fits on one line; the names stay for screen readers */
  .d-logo > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .d-logo img { width: 28px; height: 28px; }
  .d-works { gap: 10px 14px; }
  .av-ask { height: 40px; }
  .av-ask-c { width: 32px; height: 32px; }
}

/* ── tablet: the panel moves to the right of the call ── */
@media (min-width: 760px) {
  .d-head { margin-bottom: 28px; }
  .d-pickers { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
  .d-moments button { padding: 0 14px; }
  .d-stage { height: auto; aspect-ratio: 16 / 11; --top-h: 36px; --bar-h: 56px; }
  .d-stage[data-app="meet"] { --top-h: 38px; --bar-h: 60px; }
  .d-stage[data-app="teams"] { --top-h: 46px; --bar-h: 0px; }
  .d-stage[data-app="webex"] { --top-h: 40px; --bar-h: 58px; }
  .c { font-size: 12.5px; }
  .zb b, .wb b { display: block; }
  .wb b { font-size: 12.5px; }
  .c-icons, .c-dev { display: flex; }
  .mb { width: 38px; height: 38px; }
  .mb-end { width: 52px; border-radius: 19px; }
  .mb-time, .mb-right { display: flex; }
  .zb-end { height: 30px; padding: 0 16px; font-size: 13px; }
  .wb-end { width: 38px; height: 38px; }
  .c-main { padding: 10px; }
  .c-tiles { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
  .tile { aspect-ratio: 16 / 9; }
  .tile img { object-position: center; }
  .c-code { font-size: 13px; padding: 14px 12px; }
  .c-sharing { display: block; }
  .d-stage[data-scene="code"] .c-main { grid-template-columns: minmax(0, 1fr) 20%; gap: 8px; }
  .d-stage[data-scene="code"] .c-tiles { position: relative; top: auto; right: auto; width: auto; aspect-ratio: auto; grid-template-columns: 1fr; grid-template-rows: none; align-content: start; }
  .d-stage[data-scene="code"] .c-tiles .t-you { display: block; }
  .av { left: auto; right: 14px; top: calc(var(--top-h) + 12px); bottom: calc(var(--bar-h) + 12px); width: min(460px, 58%); gap: 8px; }
  .av-body { font-size: 14px; padding: 14px 16px; }
  .d-pop { left: 20px; right: auto; bottom: auto; top: calc(var(--top-h) + 20px); width: min(400px, calc(42% - 40px)); padding: 24px 22px 22px; }
  .d-pop h3 { font-size: 28px; }
  .d-foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
  .d-flow { margin-top: 40px; }
  .d-flow li { padding-right: 24px; }
  .d-node { margin-right: -24px; }
  .d-flow li > b { font-size: 19px; line-height: 1.2; }
  .d-flow li > span:last-child { display: block; }
  .d-more { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
  .d-more li { padding: 26px 24px 28px; border-bottom: 0; }
  .d-more li:first-child { padding-left: 0; }
  .d-more li + li { border-left: 1px solid var(--line); }
  .d-get-row { display: flex; align-items: center; gap: 20px; }
  .d-get .btn-primary { width: auto; padding: 0 26px; flex: none; }
}

/* ── computer: the full panel, with the transcript beside the answer ── */
@media (min-width: 1040px) {
  .d-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; margin-bottom: 36px; }
  .d-head h2 { grid-column: 1 / span 7; }
  .d-head p { grid-column: 8 / span 5; font-size: 19px; }
  .d-stage { aspect-ratio: 2 / 1; border-radius: 16px; --top-h: 36px; --bar-h: 60px; }
  .d-stage[data-app="meet"] { --top-h: 40px; --bar-h: 66px; }
  .d-stage[data-app="teams"] { --top-h: 48px; --bar-h: 0px; }
  .d-stage[data-app="webex"] { --top-h: 42px; --bar-h: 62px; }
  .c-main { padding: 12px; }
  .c-code { font-size: 14px; padding: 16px 14px; }
  .av { right: 16px; top: calc(var(--top-h) + 14px); bottom: calc(var(--bar-h) + 14px); width: min(640px, 56%); }
  .av-grip { display: grid; }
  .av-top { padding-left: 4px; }
  .av-tbtn { display: flex; }
  .av-ibtn { display: grid; }
  .av-mic > span, .av-type > span, .av-c.on > span { display: inline; }
  .av-switch { display: flex; }
  .av-panels { display: grid; grid-template-columns: 37fr 63fr; gap: 8px; }
  .av-t { display: flex; }
  .av-strip { display: none; }
  .av-qline p { -webkit-line-clamp: 3; }
  .d-pop { left: 28px; top: calc(var(--top-h) + 28px); width: min(420px, calc(44% - 56px)); }
  .d-pop h3 { font-size: 30px; }
}
