/* The employee half, playable. A person's screen, a coach on top of it. */

.coach-body { background: #0f1216; min-height: 100svh; display: flex; flex-direction: column; }

.coach-top {
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08);
}
.coach-top .wordmark { color: #f2f4f8; }
.coach-top .wordmark .mark rect:first-child { fill: #f2f4f8; }
.coach-top .wordmark span span { color: #4d93ec !important; }
.ct-mid { margin-left: auto; }
.ct-mid .mono-label { color: rgba(255,255,255,.45); }
.ct-right .pill.ghost { color: #f2f4f8; border-color: rgba(255,255,255,.22); }
.ct-right .pill.ghost:hover { background: rgba(255,255,255,.08); }

.coach-foot { padding: 14px clamp(16px, 3vw, 32px) 22px; }
.coach-foot .mono-label { color: rgba(255,255,255,.35); }
.coach-foot a { color: rgba(255,255,255,.6); }

/* ── the stage: a desktop, and the coach layer over it ──────────────── */

.stage {
  position: relative; flex: 1;
  margin: clamp(14px, 2.4vw, 30px) auto; width: min(1240px, calc(100vw - 32px));
}
.screen {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #2b3242 0%, #1d2230 55%, #171b26 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  min-height: 640px; padding-bottom: 26px;
}

.menubar {
  display: flex; align-items: center; gap: 20px; height: 32px; padding: 0 16px;
  background: rgba(12,14,18,.72); color: #d6d8dd; font-size: 13px;
}
.menubar .app { font-weight: 700; }
.mb-claude {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 6px; cursor: default; transition: background .15s;
}
.mb-claude svg { width: 15px; height: 15px; }
.menubar .clock { color: #a7abb4; }

.win {
  position: absolute; border-radius: 12px; overflow: hidden; background: #fbfbfd;
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
}
.win-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px;
  background: #eceef2; border-bottom: 1px solid #dcdee3;
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9ccd3; }
.win-bar i:first-child { background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: auto; margin-right: auto; font-size: 13px; font-weight: 600; color: #5c5e64; }

/* the queue */
.win.queue { left: 22px; top: 58px; width: min(690px, 58%); }
.q-head, .qrow {
  display: grid; grid-template-columns: 1fr 96px 84px 104px; gap: 10px;
  padding: 9px 14px; align-items: center;
}
.q-head {
  font-family: var(--font-mono-face); font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; color: #9aa0ab; border-bottom: 1px solid #e7e9ef; background: #f5f6f9;
}
.qrow { border-bottom: 1px solid #eef0f4; font-size: 12.5px; transition: background .35s ease; }
.qrow .subj { font-weight: 550; color: #23303f; letter-spacing: -.01em; }
.qrow .meta { font-size: 11px; color: #99a0ab; margin-top: 2px; }
.qrow .cell { color: #4b5566; font-size: 11.5px; }
.qrow .cell.empty { color: #c2c8d2; }
.qrow.proposed { background: rgba(42,120,214,.055); }
.qrow.proposed .cell { color: var(--brand); font-weight: 600; }
.qrow.proposed .cell.pri-urgent { color: #c0392b; }
.qrow.approved { background: rgba(12,163,12,.06); }
.qrow.approved .cell { color: #0a7d0a; font-weight: 600; }
.q-foot {
  display: flex; justify-content: space-between; padding: 11px 14px;
  background: #f5f6f9; border-top: 1px solid #e7e9ef;
}

/* claude */
.win.claude {
  right: 22px; top: 96px; width: min(430px, 36%);
  opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none;
  transition: opacity .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1);
}
.win.claude.on { opacity: 1; transform: none; pointer-events: auto; }
.cl-tabs { display: flex; justify-content: center; gap: 7px; padding: 9px; background: #FAF9F5; border-bottom: 1px solid #EBE8DE; }
.cl-tabs span { font-size: 12.5px; color: #6e6b60; padding: 5px 15px; border-radius: 999px; }
.cl-tabs span.on { background: #fff; border: 1px solid #E3E0D5; color: #141413; font-weight: 600; }
.cl-body { padding: 15px 16px 17px; background: #FAF9F5; }
.cl-greet { display: flex; align-items: center; gap: 11px; }
.cl-greet svg { width: 26px; height: 26px; flex: none; }
.cl-greet b { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 400; color: #141413; }
.cl-greet span { display: block; font-size: 11.5px; color: #7c7a70; margin-top: 2px; }

.cl-ask {
  margin-top: 14px; background: #fff; border: 1px solid #E8E6DD; border-radius: 12px; padding: 12px 13px;
  opacity: 0; transition: opacity .35s ease;
}
.cl-ask.on { opacity: 1; }
.cl-ask .mono-label { color: var(--brand); font-size: 9.5px; }
.cl-ask p { font-size: 13px; line-height: 1.45; color: #33333a; margin-top: 7px; }
.cl-send {
  display: inline-block; margin-top: 11px; background: #D97757; color: #fff;
  font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 7px 15px;
}

.cl-run { margin-top: 14px; display: none; }
.cl-run.on { display: block; }
.cl-step { display: flex; align-items: center; gap: 9px; margin-top: 9px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.cl-step.on { opacity: 1; transform: none; }
.cl-step i { width: 16px; height: 16px; border-radius: 50%; background: #0ca30c; flex: none; position: relative; }
.cl-step i::after {
  content: ""; position: absolute; left: 4.5px; top: 4.5px; width: 5px; height: 2.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.cl-step span { font-size: 12.5px; color: #3d3b33; }
.cl-note { margin-top: 11px; font-size: 11.5px; color: #8f8d83; }

.cl-repeat { margin-top: 15px; padding-top: 13px; border-top: 1px solid #EFEDE4; display: none; }
.cl-repeat.on { display: block; }
.cl-repeat .mono-label { font-size: 9.5px; }
.cl-rep-btn {
  margin-top: 8px; display: inline-block; border: 1.5px solid #D97757; color: #D97757;
  font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 7px 15px;
}
.cl-rep-btn.done { background: #0ca30c; border-color: #0ca30c; color: #fff; }
.cl-scheduled { margin-top: 9px; font-size: 12px; color: #0a7d0a; font-weight: 600; display: none; }
.cl-scheduled.on { display: block; }

/* approve bar */
.approve {
  position: absolute; left: 22px; bottom: 16px; width: min(690px, 58%);
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 12px; padding: 11px 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  font-size: 13px; color: #33404f;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.approve.on { opacity: 1; transform: none; pointer-events: auto; }
.approve b { font-weight: 750; }
.ap-btn {
  margin-left: auto; background: var(--brand); color: #fff;
  font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 8px 17px;
}

/* ── coach layer ────────────────────────────────────────────────────── */

.nudge-card {
  position: absolute; right: 26px; bottom: 26px; width: min(400px, 46%); z-index: 40;
  background: #15171d; color: #eef0f4; border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 17px 15px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
.nudge-card.on { opacity: 1; transform: none; pointer-events: auto; }
.nc-head { display: flex; align-items: center; gap: 8px; }
.nc-head svg { width: 15px; height: 15px; }
.nc-head svg rect:first-child { fill: #f2f4f8; }
.nc-head strong { font-size: 13px; font-weight: 700; }
.nc-head span { font-size: 11px; color: #8b8f98; }
.nudge-card p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #d9dce2; }
.nudge-card p b { color: #fff; }
.nc-btns { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.nc-yes { background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 650; border-radius: 999px; padding: 9px 19px; cursor: pointer; }
.nc-yes:hover { background: var(--brand-deep); }
.nc-no { color: #9ca0a9; font-size: 13.5px; cursor: pointer; }

/* the spotlight the coach draws, and the thing it says */
.ring {
  position: absolute; z-index: 44; border: 2.5px solid var(--brand-bright); border-radius: 10px;
  box-shadow: 0 0 0 5px rgba(77,147,236,.20), 0 0 0 9999px rgba(6,8,12,.42);
  opacity: 0; transform: scale(1.04); pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1),
              left .45s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1),
              width .45s cubic-bezier(.22,1,.36,1), height .45s cubic-bezier(.22,1,.36,1);
}
.ring.on { opacity: 1; transform: none; }

.callout {
  position: absolute; z-index: 46; width: 290px;
  background: #fff; border-radius: 13px; padding: 13px 15px;
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1),
              left .45s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1);
}
.callout.on { opacity: 1; transform: none; }
.callout b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-family: var(--font-mono-face); }
.callout span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: #22303f; }

.stepchip {
  position: absolute; left: 50%; top: 46px; transform: translateX(-50%); z-index: 45;
  background: #15171d; color: #eef0f4; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 650;
  opacity: 0; transition: opacity .3s ease;
}
.stepchip.on { opacity: 1; }
.stepchip em { font-style: normal; color: var(--brand-bright); }

/* the thing you are meant to click */
.hot { position: relative; z-index: 45; cursor: pointer; }
.hot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 12px;
  animation: hotpulse 1.6s ease-in-out infinite; pointer-events: none;
}
@keyframes hotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77,147,236,.45); }
  50% { box-shadow: 0 0 0 8px rgba(77,147,236,0); }
}

/* end states */
.finish, .declined {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.96);
  z-index: 60; width: min(470px, 82%); text-align: center;
  background: #15171d; color: #eef0f4; border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.4,.64,1);
}
.finish.on, .declined.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.fin-check {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto;
  background: radial-gradient(circle at 32% 30%, #17c964, #0ca30c 75%);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
}
.fin-row { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-top: 18px; }
.fin-row s { font-size: 26px; color: #767c88; }
.fin-row i { font-style: normal; font-size: 20px; color: #8b8f98; }
.fin-row b { font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.finish p, .declined p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: #aab0ba; }
.fin-btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.fin-btns .pill.ghost, .declined .pill.ghost { color: #eef0f4; border-color: rgba(255,255,255,.2); cursor: pointer; }
.declined { padding: 26px 30px 24px; }

@media (max-width: 900px) {
  .win.queue, .approve { width: calc(100% - 44px); }
  .win.claude { position: static; width: auto; margin: 12px 22px 0; }
  .screen { min-height: 0; padding-bottom: 90px; }
  .nudge-card { width: calc(100% - 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .callout, .nudge-card, .finish, .declined, .win.claude { transition: none; }
  .hot::after { animation: none; }
}
