/* Styling follows the Quantavist site: #252525 ground, hairline frames, Geist with tight tracking, mono bracket labels. */
:root {
  --bg: #252525;
  --card: rgba(0, 0, 0, 0.2);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --subtle: rgba(255, 255, 255, 0.42);
  --faint: rgba(255, 255, 255, 0.28);
  --critical: oklch(70% 0.24 27);
  --success: oklch(74% 0.15 160);
  --qi: oklch(70.2% 0.183 293.5);
  --qi-deep: oklch(54.1% 0.281 293);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #161616; overflow: hidden; }
body { font-family: Geist, system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; cursor: none; }
body.show-cursor { cursor: default; }

#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 0 0; background: var(--bg); }

/* frame chrome shared by every slide */
.chrome { position: absolute; inset: 0; pointer-events: none; }
.chrome .hl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chrome .vl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.chrome .logo { position: absolute; left: 128px; top: 29px; display: flex; align-items: center; }
.chrome .logo img.word { height: 38px; }
.chrome .tag { position: absolute; right: 128px; top: 38px; font: 15px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); }
.chrome .count { position: absolute; right: 128px; bottom: 30px; font: 15px/1 var(--mono); letter-spacing: 0.04em; color: var(--subtle); }
.chrome .foot { position: absolute; left: 128px; bottom: 30px; font: 15px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }

/* slides */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.slide.active { visibility: visible; }
.slide.shown { opacity: 1; }
.slide.enter-fwd { animation: enterFwd 0.7s var(--ease) both; }
.slide.enter-back { animation: enterBack 0.7s var(--ease) both; }
.slide.leave-fwd { animation: leaveFwd 0.5s var(--ease) both; visibility: visible; }
.slide.leave-back { animation: leaveBack 0.5s var(--ease) both; visibility: visible; }
@keyframes enterFwd { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes leaveFwd { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-48px); } }
@keyframes leaveBack { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(48px); } }

/* type */
.eyebrow { font: 17px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.title { margin: 26px 0 0; font-size: 72px; font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.title .tag { color: var(--subtle); }
.lede { margin: 28px 0 0; max-width: 820px; font-size: 26px; line-height: 1.45; color: var(--muted); }
.left { position: absolute; left: 128px; top: 176px; width: 900px; }

/* step list */
.steps { list-style: none; margin: 56px 0 0; padding: 0; width: 820px; border-top: 1px solid var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 27px; line-height: 1.36; color: var(--muted); transition: color 0.45s var(--ease); }
.steps li::before { content: ""; position: absolute; left: -32px; top: 18px; bottom: 18px; width: 3px; background: var(--text); transform: scaleY(0); transition: transform 0.45s var(--ease); }
.steps li .n { font: 16px/1 var(--mono); letter-spacing: 0.04em; color: var(--subtle); transition: color 0.45s var(--ease); }
.steps li small { display: block; margin-top: 8px; font-size: 21px; color: var(--subtle); transition: color 0.45s var(--ease); }
.steps.live li { color: var(--faint); }
.steps.live li .n { color: var(--faint); }
.steps.live li.done { color: var(--subtle); }
.steps.live li.now { color: var(--text); }
.steps.live li.now .n { color: var(--text); }
.steps.live li.now small { color: var(--muted); }
.steps.live li.now::before { transform: none; }
.note { margin-top: 30px; max-width: 820px; font-size: 21px; line-height: 1.5; color: var(--subtle); }
.note b { font: 14px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-right: 12px; }

/* bullet rows (PDF slides) */
.rows { list-style: none; margin: 56px 0 0; padding: 0; width: 820px; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 30px; line-height: 1.35; }
.rows li .n { font: 16px/1 var(--mono); color: var(--subtle); }
.rows li small { display: block; margin-top: 10px; font-size: 22px; color: var(--muted); }

/* card */
.card { position: absolute; background: var(--card); border: 1px solid var(--line-2); }
.card .label { font: 14px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }

/* phone: one on the stage, shown on app slides */
.phone { position: absolute; z-index: 3; padding: 13px; border-radius: 72px; opacity: 0; visibility: hidden;
  background: linear-gradient(150deg, #6a6a6f 0%, #3a3a3e 9%, #1f1f22 40%, #19191b 70%, #3b3b3f 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 4px #0b0b0c,
    0 60px 120px -30px rgba(0, 0, 0, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.phone.on { opacity: 1; visibility: visible; }
.phone.enter-fwd { animation: enterFwd 0.7s var(--ease) both; }
.phone.enter-back { animation: enterBack 0.7s var(--ease) both; }
.phone.leave-fwd { animation: leaveFwd 0.5s var(--ease) both; visibility: visible; }
.phone.leave-back { animation: leaveBack 0.5s var(--ease) both; visibility: visible; }
.phone .btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2d, #5b5b60 60%, #2a2a2d); }
.phone .glass { position: relative; overflow: hidden; border-radius: 59px; background: #000; }
.phone .screen { position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden; transform-origin: 0 0; background: #fafafa; }
.phone .layer { position: absolute; inset: 0; }
.phone .layer > img, .phone .layer video { display: block; width: 390px; height: 844px; object-fit: cover; }
.phone .layer.html { overflow: hidden; }
.phone video.clip { position: absolute; inset: 0; width: 390px; height: 844px; opacity: 0; pointer-events: none; }
.phone video.clip.on { opacity: 1; }
.phone .status { position: absolute; left: 0; right: 0; top: 0; height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 46px; z-index: 5; pointer-events: none; color: #111; transition: color 0.2s; }
.phone .status.light { color: #fff; }
.phone .status.lock .time { visibility: hidden; }
.phone .status .icons { display: flex; gap: 6px; align-items: center; }

/* highlight: a soft frame on the part of the screen being explained; the rest dims */
.phone .spot { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 8px rgba(255, 255, 255, 0.16), 0 0 26px 8px rgba(255, 255, 255, 0.22), 0 0 0 1600px rgba(14, 14, 16, 0.5);
  transition: left 0.6s var(--ease), top 0.6s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease), opacity 0.35s ease; }
.phone .spot.on { opacity: 1; }

/* a tap the deck draws itself (same look as the recorded touches) */
.phone .touch { position: absolute; z-index: 8; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; pointer-events: none;
  background: rgba(70, 70, 70, 0.3); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28); opacity: 0; transform: scale(0.7); }
.phone .touch.down { opacity: 1; transform: none; transition: opacity 0.12s ease, transform 0.12s ease; }
.phone .touch.up { opacity: 0; transform: scale(1.25); transition: opacity 0.26s ease, transform 0.26s ease; }

/* overlays: iOS banner and permission prompt */
.phone .over { z-index: 7; pointer-events: none; }
.phone .ov { position: absolute; inset: 0; }
.phone .ov.gone { opacity: 0; transition: opacity 0.22s ease; }
.phone .banner { position: absolute; left: 10px; right: 10px; top: 52px; transform: translateY(-140%); }
.phone .banner .notif { animation: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); background: rgba(246, 246, 246, 0.94); }
.phone .banner.in { animation: bannerIn 0.65s cubic-bezier(0.2, 0.9, 0.25, 1.08) forwards; }
.phone .banner.in.out { animation: bannerOut 0.45s ease-in forwards; }
@keyframes bannerIn { from { transform: translateY(-140%); } to { transform: none; } }
@keyframes bannerOut { from { transform: none; } to { transform: translateY(-140%); } }
.phone .prompt { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.32); }
.phone .prompt .alert { width: 300px; padding: 22px 18px 16px; border-radius: 34px; background: rgba(242, 242, 244, 0.97); color: #111; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.phone .prompt .t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.phone .prompt .m { margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: #3a3a3c; }
.phone .prompt .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.phone .prompt .btns span { padding: 12px 0; border-radius: 22px; background: rgba(120, 120, 128, 0.16); font-size: 16px; font-weight: 500; }
.phone .prompt .btns .ok { color: #0a84ff; font-weight: 600; }
.phone .prompt .alert.in { animation: promptIn 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
.phone .prompt:has(.alert.in) { animation: fadeIn 0.3s ease both; }
@keyframes promptIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Safari before the link is opened (the install page's own toolbar) */
.safari { position: absolute; inset: 0; }
.safari > img { position: absolute; inset: 0; width: 390px; height: 844px; }
.safari .blank { position: absolute; left: 0; right: 0; top: 0; height: 746px; background: #1f1f1f; }
.safari .url { position: absolute; left: 112px; width: 170px; top: 774px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #1c1c1e; white-space: nowrap; overflow: hidden; }
.safari .url .ph { color: #3d3d40; font-size: 14px; }
.safari .url.focus .ph { display: none; }
.safari .url .typed { letter-spacing: -0.01em; }
.safari .url.focus:not(.go) .typed::after { content: ""; display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #0a84ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.safari .load { position: absolute; left: 96px; top: 810px; height: 2px; width: 0; background: #0a84ff; border-radius: 1px; }
.safari .load.run { width: 196px; transition: width 0.7s ease-out; }
.phone .status .time { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.phone .status svg { display: block; }
.phone .island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; z-index: 6; }

/* lock screen (HTML, not an app capture) */
.lock { position: absolute; inset: 0; background: #1c1c1c url(assets/img/lock-bg.jpg) center / cover; color: #fff; }
.lock .date { margin-top: 70px; text-align: center; font-size: 19px; font-weight: 500; opacity: 0.9; }
.lock .clock { margin-top: 0; text-align: center; font-size: 92px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.lock .stack { position: absolute; left: 12px; right: 12px; top: 300px; display: flex; flex-direction: column; gap: 10px; }
.notif { display: grid; grid-template-columns: 38px 1fr auto; gap: 3px 12px; padding: 14px 14px 15px; border-radius: 22px; background: rgba(250, 250, 250, 0.8);
  color: #111; backdrop-filter: blur(24px); font-size: 15px; line-height: 1.3; }
.notif.in { animation: notifIn 0.6s var(--ease) both; }
.notif .icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 9px; background: #1a1a1a url(assets/brand/mark-dark.svg) center / 21px no-repeat; }
.notif .t { font-weight: 600; }
.notif .when { color: #6b6b6b; font-size: 13px; }
.notif .b { grid-column: 2 / 4; color: #222; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-26px) scale(0.97); margin-bottom: -90px; } to { opacity: 1; transform: none; margin-bottom: 0; } }

/* lifecycle */
.lane { position: absolute; left: 97px; right: 97px; border-top: 1px solid var(--line); }
.lane .name { position: absolute; left: 31px; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--muted); }
.lane-base { position: absolute; background: var(--line); }
.node { position: absolute; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); font-size: 24px; color: var(--muted);
  transition: color 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease); }
.node.done { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.node.now { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 40px rgba(255, 255, 255, 0.12); transform: scale(1.04); }
.node.qi { flex-direction: row; flex-wrap: wrap; align-content: center; row-gap: 8px; color: var(--qi); border-color: color-mix(in oklch, var(--qi) 55%, transparent); background: color-mix(in oklch, var(--qi-deep) 14%, transparent); }
.node.qi .qi-mark svg { width: 22px; height: 22px; display: block; }
.node.qi small { flex-basis: 100%; text-align: center; font: 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in oklch, var(--qi) 80%, transparent); }
.node.qi.now { color: #fff; border-color: var(--qi); background: color-mix(in oklch, var(--qi-deep) 32%, transparent); box-shadow: 0 0 0 6px color-mix(in oklch, var(--qi) 18%, transparent), 0 0 48px color-mix(in oklch, var(--qi) 38%, transparent); }
.node.qi.now small { color: var(--qi); }
svg.arrows { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
svg.arrows path { fill: none; stroke-width: 1.5; }
svg.arrows path.rest { stroke: rgba(255, 255, 255, 0.22); }
svg.arrows path.live { stroke: #fff; stroke-width: 2.5; opacity: 0; }
svg.arrows path.live.on { opacity: 1; }
svg.arrows path.live.qi { stroke: var(--qi); }
.card.expiry { padding: 26px 28px; }
.say { display: flex; align-items: baseline; gap: 22px; font-size: 30px; letter-spacing: -0.01em; animation: sayIn 0.5s var(--ease) both; }
.say .k { font: 15px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.say.qi .k { color: var(--qi); }
@keyframes sayIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card .x { margin-top: 14px; font-size: 24px; line-height: 1.38; }

/* hero */
.hero { overflow: hidden; }
.qi-chip { display: flex; gap: 12px; align-items: center; padding: 14px 22px; font-size: 21px; background: rgba(37, 37, 37, 0.72); border: 1px solid color-mix(in oklch, var(--qi) 50%, transparent); backdrop-filter: blur(8px); }
.qi-chip svg { width: 22px; height: 22px; color: var(--qi); }
.det { border: 2px solid var(--critical); background: color-mix(in oklch, var(--critical) 10%, transparent); transform: scale(0.5); opacity: 0; transition: all 0.6s var(--ease); }
.det.on { transform: none; opacity: 1; }
.alert-card { padding: 28px 28px 30px; background: rgba(30, 30, 30, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); opacity: 0; transform: translateY(24px); transition: all 0.7s var(--ease); }
.alert-card.on { opacity: 1; transform: none; }
.alert-card .lvl { display: inline-block; padding: 7px 12px; font: 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--critical); border: 1px solid color-mix(in oklch, var(--critical) 60%, transparent); }
.alert-card .t { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 22px 0 14px; }
.alert-card .d { font-size: 17px; line-height: 1.5; color: var(--muted); }
.alert-card .k { font: 13px/1 var(--mono); letter-spacing: 0.05em; color: var(--subtle); margin: 22px 0 10px; }
.alert-card .v { font-size: 17px; padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.2); }
.lead { background: var(--critical); opacity: 0; transition: opacity 0.4s ease 0.35s; }
.lead.on { opacity: 1; }

/* duty states */
.states { display: flex; flex-direction: column; gap: 20px; }
.state { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center; padding: 24px 28px; border: 1px solid var(--line-2); background: var(--card); transition: border-color 0.45s var(--ease), background 0.45s var(--ease), opacity 0.45s var(--ease); }
.state .ic { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: all 0.45s var(--ease); }
.state .ic svg { width: 34px; height: 34px; }
.state .k { font: 15px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.state .v { margin-top: 12px; font-size: 34px; letter-spacing: -0.02em; }
.state .s { margin-top: 8px; font-size: 20px; color: var(--subtle); }
.states.live .state { opacity: 0.38; }
.states.live .state.now { opacity: 1; border-color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.05); }
.state.on.now .ic { color: #fff; background: var(--success); border-color: var(--success); }
.state.off.now .ic { color: #fff; background: var(--critical); border-color: var(--critical); }
.card.shifts { padding: 24px 28px; }
.card.shifts .x { font-size: 22px; line-height: 1.45; color: var(--muted); margin-top: 12px; }

/* end */
.card.qr { display: flex; flex-direction: column; align-items: center; }
.card.qr .label { align-self: flex-start; margin: 28px 0 0 28px; }
.card.qr .code { margin-top: 44px; padding: 28px; background: #fff; }
.card.qr .code svg { display: block; }
.card.qr .host { margin-top: 44px; font-size: 40px; letter-spacing: -0.02em; }

/* escalation chart */
.esc-row { position: absolute; left: 128px; width: 1664px; height: 56px; display: flex; align-items: center; }
.esc-row .who { width: 320px; font-size: 28px; line-height: 1; }
.esc-row .who small { display: block; margin-top: 9px; font: 14px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); }
.esc-row .bar { position: relative; flex: 1; height: 56px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 70%, rgba(255, 255, 255, 0)); }
.bell { position: absolute; top: 8px; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; background: var(--critical); opacity: 0; transform: scale(0.6); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.bell svg { width: 20px; height: 20px; }
.bell.faded { background: color-mix(in oklch, var(--critical) 30%, transparent); }
.bell.on { opacity: 1; transform: none; }
.esc-axis span { position: absolute; transform: translateX(-50%); font: 17px/1 var(--mono); color: var(--subtle); }
.esc-tick { position: absolute; width: 1px; background: var(--line); }

/* progress */
#progress { position: absolute; left: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.5); transition: width 0.5s var(--ease), opacity 0.3s; z-index: 10; }
#progress.off { opacity: 0; }
