/* Shared look for the six detour clips. Canvas is 1280x800; everything here is
   in canvas pixels. Palette is the site's: graphite surfaces, #e4e4e4 text,
   no colour except the semantic red squiggle and the green "done" tick. */

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f0f11;
  font-family: Inter, system-ui, sans-serif;
  color: #e4e4e4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11" 1;
}

.cam {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  transform-origin: 0 0;
}

.desk {
  position: relative;
  width: 1280px;
  overflow: hidden;
  background: #19191c;
}

/* ---- windows ---- */
.win {
  position: absolute;
  background: #202023;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
}

.win-bar {
  height: 48px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  background: #1b1b1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.win-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #cfcfd3;
}

.win-title svg {
  width: 20px;
  height: 20px;
}

.win-ctrls {
  display: flex;
  align-self: stretch;
}

.win-ctrls span {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d8d93;
}

.win-ctrls svg {
  width: 17px;
  height: 17px;
}

.win.is-blur .win-title,
.win.is-blur .br-tab {
  color: #8a8a8f;
}

/* ---- mail ---- */
.mail-fields {
  padding: 0 40px;
}

.mail-row {
  display: flex;
  align-items: center;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 19px;
}

.mail-row b {
  width: 96px;
  font-weight: 400;
  color: #8b8b91;
}

.mail-row span {
  color: #cfcfd3;
}

.mail-body {
  position: relative;
  padding: 28px 40px;
  font-size: 29px;
  line-height: 1.62;
  color: #e6e6e8;
}

.mail-body p {
  margin: 0;
}

.mail-body .greet {
  margin-bottom: 14px;
}

.para-wrap {
  position: relative;
}

.para.fixed {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
}

.mail-body .signoff {
  margin-top: 14px;
  min-height: 1.62em;
}

.tk {
  border-radius: 3px;
}

.tk.sel {
  background: rgba(214, 214, 214, 0.3);
  color: #fff;
}

.tk.sel-off {
  background: rgba(214, 214, 214, 0.14);
}

.w.typo {
  text-decoration: underline wavy rgba(239, 68, 68, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-skip-ink: none;
}

.chg {
  border-radius: 4px;
}

/* Zero-width so moving it through the text never re-wraps a line. */
.caret {
  position: relative;
  display: inline-block;
  width: 0;
  height: 1em;
  vertical-align: -0.12em;
}

.caret::after {
  content: "";
  position: absolute;
  left: 0;
  top: -0.06em;
  width: 2.5px;
  height: 1.12em;
  background: #e6e6e8;
}

/* ---- browser ---- */
.br-tabs {
  height: 46px;
  display: flex;
  align-items: flex-end;
  padding-left: 12px;
  background: #151517;
}

.br-tab {
  height: 38px;
  width: 290px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #232326;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  color: #cfcfd3;
}

.br-fav {
  display: flex;
  width: 18px;
  height: 18px;
}

.br-fav svg {
  width: 18px;
  height: 18px;
}

.br-tabs .win-ctrls {
  margin-left: auto;
  align-self: stretch;
}

.br-addr {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: #232326;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8d8d93;
}

.br-addr > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.br-url {
  flex: 1;
  height: 38px;
  border-radius: 99px;
  background: #18181a;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 18px;
  color: #e0e0e4;
  white-space: nowrap;
}

.br-url svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  color: #7d7d84;
  flex-shrink: 0;
}

.br-url.is-focus {
  box-shadow: inset 0 0 0 2px rgba(214, 214, 214, 0.55);
}

.br-ph {
  color: #8a8a8f;
}

.br-prog {
  position: absolute;
  left: 0;
  top: 97px;
  height: 3px;
  width: 0;
  background: #d6d6d6;
}

.br-page {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  bottom: 0;
  background: #1f1f22;
  overflow: hidden;
}

.page-in {
  position: absolute;
  inset: 0;
}

.hello {
  position: absolute;
  left: 0;
  right: 0;
  top: 31%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 30px;
  font-weight: 600;
  color: #ececee;
  letter-spacing: -0.3px;
}

.hello svg {
  width: 34px;
  height: 34px;
  color: #d6d6d6;
}

.chat-col {
  position: absolute;
  left: 50%;
  top: 0;
  width: 780px;
  margin-left: -390px;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
}

.msg-user {
  align-self: flex-end;
  max-width: 600px;
  background: #2c2c30;
  border-radius: 20px;
  padding: 14px 22px 16px;
  font-size: 20px;
  line-height: 1.45;
  color: #ececee;
}

.mu-p {
  margin-top: 6px;
  font-size: 18px;
  color: #b4b4ba;
}

.msg-ai {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.ai-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d6d6d6;
}

.ai-ico svg {
  width: 19px;
  height: 19px;
}

.ai-body {
  position: relative;
  flex: 1;
  font-size: 20px;
  line-height: 1.55;
  color: #c9c9ce;
  padding-top: 3px;
}

.ai-body p {
  margin: 0 0 10px;
}

.ai-body .ai-ans {
  font-size: 22px;
  color: #efeff1;
}

.ai-think {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 20px;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(90deg, #5c5c62 0%, #5c5c62 35%, #f0f0f2 50%, #5c5c62 65%, #5c5c62 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.chat-input {
  position: absolute;
  left: 50%;
  width: 780px;
  margin-left: -390px;
  bottom: 20px;
  min-height: 64px;
  background: #2a2a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 17px 72px 17px 24px;
  font-size: 21px;
  line-height: 1.4;
  color: #ececee;
}

.ci-ph {
  color: #939397;
}

.ci-paste {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  color: #a9a9ae;
}

.ci-send {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #48484d;
  color: #1b1b1d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-send svg {
  width: 20px;
  height: 20px;
}

.ci-send.is-live {
  background: #e4e4e6;
}

.ci-stop {
  display: none;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: #1b1b1d;
}

.ci-send.is-stop svg {
  display: none;
}

.ci-send.is-stop .ci-stop {
  display: block;
}

/* variant b's windows are narrower so a close-up can hold a whole line */
.v-b .chat-col,
.v-b .chat-input {
  width: 720px;
  margin-left: -360px;
}

.v-b .msg-user {
  max-width: 540px;
}

/* ---- taskbar ---- */
.taskbar {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  height: 56px;
  background: #121214;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tb-i {
  position: absolute;
  top: 6px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9c9cd;
}

.tb-i svg {
  width: 23px;
  height: 23px;
}

.tb-i::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.tb-i.open::after {
  background: #808086;
}

.tb-i.on {
  background: rgba(255, 255, 255, 0.08);
}

.tb-i.on::after {
  width: 16px;
  margin-left: -8px;
  background: #d6d6d6;
}

.tb-tray {
  position: absolute;
  right: 22px;
  top: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  color: #b9b9be;
}

.tb-tray img {
  width: 24px;
  height: 24px;
}

/* ---- Rithere's status bubble (the app's, scaled for the canvas) ---- */
.status {
  position: absolute;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 18px;
  background: rgba(30, 30, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 24px;
  color: #e4e4e4;
  white-space: nowrap;
  transform-origin: 0 0;
  opacity: 0;
}

.st-ico {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.st-ico canvas,
.st-ico .st-check {
  position: absolute;
  inset: 0;
}

.st-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-check svg {
  width: 26px;
  height: 26px;
}

/* ---- pointer ---- */
.cursor {
  position: absolute;
  z-index: 13;
  left: 0;
  top: 0;
  width: 31px;
  height: 41px;
  transform-origin: 4px 3px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

.click-ring {
  position: absolute;
  z-index: 12;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
}

/* ---- keystroke chip ---- */
.keys {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  opacity: 0;
}

.kc {
  min-width: 54px;
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2b2b2f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 3px;
  font-size: 23px;
  font-weight: 700;
  color: #e6e6e8;
}

.kc.down {
  background: #e4e4e6;
  color: #1b1b1d;
  border-color: #e4e4e6;
}

.kp {
  font-size: 22px;
  color: #7d7d84;
}

/* ---- timer + caption, shared pieces ---- */
.tm {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  color: #ececee;
}

.tm svg {
  flex-shrink: 0;
  color: #9a9aa0;
}

.tm.is-idle {
  color: #78787e;
}

.tm.is-done-new svg {
  color: #22c55e;
}

.cap {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.cap-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #8a8a90;
}

.cap-n:empty {
  display: none;
}

.cap-t {
  font-weight: 600;
  color: #ececee;
}

.cap.is-aside .cap-t {
  font-style: italic;
  font-weight: 500;
  color: #9a9aa0;
}

/* ---- variant A: a band of HUD over the wallpaper ---- */
.v-a .hud-cap {
  position: absolute;
  left: 64px;
  top: 30px;
  height: 46px;
  font-size: 26px;
}

.v-a .cap-n {
  font-size: 17px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

.v-a .hud-tm {
  position: absolute;
  right: 64px;
  top: 26px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 30px;
}

.v-a .hud-tm svg {
  width: 26px;
  height: 26px;
}

/* ---- variant B: camera, big timer top-left, lower-third caption ---- */
.v-b .hud-tm {
  position: absolute;
  left: 32px;
  top: 28px;
  height: 78px;
  padding: 0 26px 0 20px;
  border-radius: 20px;
  background: rgba(14, 14, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 48px;
}

.v-b .hud-tm svg {
  width: 36px;
  height: 36px;
}

.v-b .hud-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0) 0%, rgba(15, 15, 17, 0.88) 55%, rgba(15, 15, 17, 0.96) 100%);
}

.v-b .hud-cap {
  position: absolute;
  left: 44px;
  bottom: 40px;
  font-size: 42px;
  gap: 18px;
  letter-spacing: -0.6px;
}

.v-b .cap-n {
  font-size: 30px;
}

/* ---- variant C: the time rail under the screen ---- */
.v-c .rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 680px;
  bottom: 0;
  background: #0f0f11;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.v-c .hud-cap {
  position: absolute;
  left: 56px;
  top: 16px;
  height: 40px;
  font-size: 24px;
}

.v-c .cap-n {
  font-size: 17px;
}

.v-c .hud-tm {
  position: absolute;
  right: 56px;
  top: 12px;
  height: 46px;
  font-size: 32px;
}

.v-c .hud-tm svg {
  width: 26px;
  height: 26px;
}

.rail-track {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 70px;
  height: 18px;
  border-radius: 9px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 11px);
}

.rail-seg {
  position: absolute;
  top: 0;
  height: 18px;
  width: 0;
  border-radius: 4px;
  background: #d6d6d6;
}

.rail-seg:nth-child(even) {
  background: #9c9ca2;
}

.rail-ticks {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 94px;
  height: 18px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #8a8a90;
}

.rail-ticks span {
  position: absolute;
  top: 0;
}

.v-c .kc {
  min-width: 44px;
  height: 40px;
  font-size: 19px;
  padding: 0 11px;
  border-radius: 8px;
}

.v-c .kp {
  font-size: 18px;
}

/* ---- closing card ---- */
.endcard {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.ec-scrim {
  position: absolute;
  inset: 0;
  background: #0f0f11;
}

.ec-body {
  position: relative;
  width: 940px;
}

.ec-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.ec-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.ec-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ec-logo.is-rithere img {
  width: 42px;
  height: 42px;
}

.ec-brand {
  margin-left: 8px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #f2f2f4;
}

.ec-time {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ec-time b {
  font-size: 108px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  color: #f2f2f4;
}

.ec-ico-lg {
  display: flex;
  width: 72px;
  height: 72px;
}

.ec-ico-lg svg {
  width: 72px;
  height: 72px;
}

.is-neg .ec-ico-lg {
  color: #9a9aa0;
}

.is-pos .ec-ico-lg {
  color: #22c55e;
}

.ec-sub {
  font-size: 34px;
  font-weight: 500;
  color: #a6a6ac;
}

.ec-rule {
  height: 1px;
  margin: 26px 0 34px;
  background: rgba(255, 255, 255, 0.13);
}

.ec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.ec-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #ececee;
}

.ec-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ec-ico svg {
  width: 24px;
  height: 24px;
}

.is-neg .ec-ico {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.is-pos .ec-ico {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

/* loop seam */
.fade {
  position: absolute;
  inset: 0;
  background: #0f0f11;
  pointer-events: none;
}
