/* Option C, "Your morning as CEO". On a phone the app fills the screen; on a laptop it sits in a phone
   frame next to a short guide. The app itself looks like the GCSS Connect demo: dark bar, paper, hairlines. */
html, body { height: 100%; }
.desk-body { background: var(--paper); color: var(--text); }
.guide { display: none; }
.device { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }

/* ---------------------------------------------------------------- intro (covers the app until Start) */
.intro {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 24px calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: var(--ink); color: var(--on-dark);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.desk:not([data-at="intro"]) .intro { opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none; }
.intro__logo { width: 92px; height: auto; }
.intro__body { margin-top: auto; }
.intro__k { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.intro__h { margin-top: 8px; font-size: clamp(38px, 11vw, 50px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.intro__p { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--on-dark-2); max-width: 26em; }
.intro__list { margin-top: 22px; border-top: 1px solid var(--line-dark); }
.intro__list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15.5px; font-weight: 600; }
.intro__list .num { color: var(--on-dark-muted); font-weight: 600; width: 14px; }
.intro__go { margin-top: 26px; width: 100%; }
.intro__fine { margin-top: 12px; font-size: 12px; color: var(--on-dark-muted); text-align: center; }

/* ---------------------------------------------------------------- app shell */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.app__bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px 16px; background: var(--ink); color: var(--on-dark);
}
.app__bar img { width: 22px; height: auto; }
.app__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.app__prog { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--on-dark-muted); border: 1px solid var(--line-dark); border-radius: 2px; padding: 4px 7px; }
.app__bar .m-avatar { width: 32px; height: 32px; font-size: 10px; }
.app__main { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.scr { display: none; padding: 12px 16px 0; min-height: 100%; }
.scr.is-current { display: block; animation: scr-in 0.4s var(--ease) both; }
@keyframes scr-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.back { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-left: -4px; padding-right: 8px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color 0.2s; }
.back:hover { color: var(--text); }
.scr__h { margin-top: 4px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.scr__sub { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.scr__k { margin: 20px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.fine { margin: 18px 0 24px; font-size: 12px; color: var(--faint); }

/* ---------------------------------------------------------------- home */
.scr--home { padding-top: 18px; }
.home__date { font-size: 13px; font-weight: 600; color: var(--muted); }
.home__h { margin-top: 2px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.home__sub { margin-top: 2px; font-size: 15px; color: var(--muted); }
.home__sub b { color: var(--text); }
.tasks { margin-top: 16px; display: grid; gap: 8px; }
.task {
  position: relative; width: 100%; display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px;
  padding: 13px 12px 13px 13px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.task:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.35); }
.task:active { transform: scale(0.99); }
.task__ic { width: 40px; height: 40px; border-radius: 6px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.task__txt b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.task__txt > span:last-child { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.task__m { display: inline-block; margin-bottom: 5px; font-size: 10.5px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 2px; padding: 2px 5px; white-space: nowrap; }
.task--urgent .task__m { color: var(--danger); border-color: rgba(180, 35, 24, 0.45); }
.task__go { color: var(--faint); display: grid; }
.task__go .i { width: 16px; height: 16px; }
.task__done { position: absolute; left: 13px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 6px; background: var(--ok); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: opacity 0.25s, transform 0.35s var(--ease); }
.task__done .i { stroke-width: 2.4; }
.task.is-done .task__done { opacity: 1; transform: none; }
.task.is-done .task__m { color: var(--ok); border-color: rgba(29, 111, 71, 0.4); }
.coach {
  position: absolute; right: 34px; top: -14px; padding: 5px 9px; border-radius: 2px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 800; pointer-events: none; animation: coach 1.4s ease-in-out infinite alternate;
}
.coach::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--accent); }
@keyframes coach { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.desk.has-started-task .coach { display: none; }

.home__k { margin: 24px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px 13px; }
.tile--wide { grid-column: 1 / -1; }
.tile__k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tile__k span { font-weight: 500; color: var(--faint); }
.tile__big { margin-top: 4px; font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.tile__big small { margin-left: 5px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile__s { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bar { position: relative; display: block; height: 6px; margin-top: 10px; background: rgba(13, 13, 13, 0.08); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.sbars { margin-top: 8px; }
.sbars li { display: grid; grid-template-columns: 108px 1fr 36px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.sbars__t { position: relative; height: 6px; background: rgba(13, 13, 13, 0.08); overflow: hidden; }
.sbars__t i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.sbars b { text-align: right; font-weight: 700; }
.sbars .is-low span:first-child, .sbars .is-low b { color: var(--accent-ink); font-weight: 800; }
.sbars .is-low .sbars__t i { background: var(--accent); }

/* ---------------------------------------------------------------- raises */
.big { margin-top: 14px; }
.big__n { font-size: 14px; color: var(--muted); }
.big__n b { margin-right: 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.big__s { margin-top: 2px; font-size: 13px; color: var(--muted); }
.rows { padding: 2px 14px; }
.rows li { display: grid; grid-template-columns: 1fr 26px 56px 62px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rows li > span:nth-child(2) { color: var(--muted); text-align: right; }
.rows__bar { position: relative; height: 5px; background: rgba(13, 13, 13, 0.08); overflow: hidden; }
.rows__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.rows b { text-align: right; font-weight: 700; }
.rows .rows__total { border-bottom: 0; font-weight: 800; }
.rows .rows__total > span:nth-child(2) { color: var(--text); }
.person__top { display: flex; align-items: center; gap: 10px; }
.person__top b { display: block; font-size: 15px; }
.person__top small { display: block; font-size: 12.5px; color: var(--muted); }
.person__score { margin-left: auto; text-align: right; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.person__score small { font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.person__pay { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; }
.person__pay span { display: inline-grid; color: var(--muted); }
.person__why { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.person__why .m-tag { display: flex; width: max-content; margin-bottom: 6px; }

/* the sticky action at the bottom of a screen */
.act {
  position: sticky; bottom: 0; z-index: 5; display: grid; margin: 18px -16px 0;
  padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(to bottom, rgba(243, 241, 236, 0), var(--paper) 34%);
}
.abtn {
  grid-area: 1 / 1; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 2px; background: var(--accent); color: var(--on-accent); font-size: 15.5px; font-weight: 800;
  transition: transform 0.2s var(--ease), opacity 0.3s;
}
.abtn:hover { transform: translateY(-1px); }
.abtn:active { transform: scale(0.98); }
.abtn--done { background: var(--ink); color: var(--on-dark); opacity: 0; pointer-events: none; }
.abtn--done .i { stroke-width: 2.4; }
.is-acted .abtn:not(.abtn--done) { opacity: 0; pointer-events: none; }
.is-acted .abtn--done { opacity: 1; }

/* ---------------------------------------------------------------- the concern */
.scr .m-case__tags { margin-top: 6px; }
.quote { margin-top: 14px; }
.quote__k { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.quote p:not(.quote__k) { margin: 3px 0 0; font-size: 14px; line-height: 1.5; }
.quote .quote__hi { margin-bottom: 12px; font-size: 15px; line-height: 1.7; }
.quote p.quote__hi:last-child { margin-bottom: 0; }
.aisum { margin-top: 14px; font-size: 15.5px; line-height: 1.45; font-weight: 700; }
.aisum .m-tag { margin-right: 6px; vertical-align: 2px; }
.tl { padding: 8px 14px; }
.tl li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 6px 0; font-size: 13.5px; line-height: 1.4; }
.tl small { color: var(--faint); font-weight: 800; font-size: 12px; padding-top: 1px; }

/* ---------------------------------------------------------------- the client report */
.sheetwrap { margin-top: 16px; }
.sheetwrap .m-sheet { width: 100%; }

/* ---------------------------------------------------------------- the end */
.scr--end { padding: 28px 22px calc(env(safe-area-inset-bottom, 0px) + 28px); background: var(--ink); color: var(--on-dark); }
.end__k { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.end__h { margin-top: 8px; font-size: 32px; line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; }
.end__lead { margin-top: 12px; font-size: 15.5px; line-height: 1.45; color: var(--on-dark-2); }
.end__value { width: 100%; margin-top: 16px; }
.end__note { margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }
.end__note .link { color: var(--on-dark); }
.end__cta { display: grid; gap: 8px; margin-top: 20px; }
.end__cta .btn { width: 100%; }
.end__again { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--on-dark); text-decoration: none; }
.end__fine { margin-top: 18px; font-size: 11.5px; line-height: 1.5; color: var(--on-dark-muted); }
.end__fine .link { color: var(--on-dark-2); }

/* ---------------------------------------------------------------- "why it matters" sheet */
.device::after { content: ""; position: absolute; inset: 0; z-index: 18; background: rgba(13, 13, 13, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.desk.why-open .device::after { opacity: 1; pointer-events: auto; }
.why {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateY(105%); transition: transform 0.5s var(--ease);
}
.desk.why-open .why { transform: none; }
.why__in { padding: 18px 18px 16px; border-radius: 10px; background: var(--ink); color: var(--on-dark); box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.5); }
.why__k { font-size: 12px; font-weight: 800; color: var(--accent); }
.why__t { margin-top: 6px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.why__p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--on-dark-2); }
.why__go { width: 100%; margin-top: 16px; }

/* ---------------------------------------------------------------- a laptop: phone frame + guide */
@media (min-width: 900px) and (min-height: 620px) {
  .desk-body { background: #0b0b0b; }
  .desk { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 380px) 400px; align-items: center; justify-content: center; gap: 72px; padding: 32px; }
  .guide { display: block; color: var(--on-dark); }
  .guide__logo { width: 110px; height: auto; }
  .guide__k { margin-top: 40px; font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
  .guide__h { margin-top: 8px; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
  .guide__p { margin-top: 14px; font-size: 16.5px; line-height: 1.5; color: var(--on-dark-2); }
  .guide__steps { margin-top: 26px; border-top: 1px solid var(--line-dark); }
  .guide__steps li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15.5px; font-weight: 600; color: var(--on-dark-muted); transition: color 0.3s; }
  .guide__steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; border: 1px solid var(--line-dark); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
  .guide__steps li.is-now { color: var(--on-dark); }
  .guide__steps li.is-now .num { border-color: var(--accent); color: var(--accent); }
  .guide__steps li.is-done { color: var(--on-dark-2); }
  .guide__steps li.is-done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
  .guide__fine { margin-top: 26px; font-size: 12.5px; line-height: 1.6; color: var(--on-dark-muted); }
  .guide__fine .link { color: var(--on-dark-2); }
  .device {
    position: relative; inset: auto; width: 400px; height: min(820px, calc(100dvh - 64px)); border-radius: 38px;
    box-shadow: 0 0 0 9px #1d1c1a, 0 0 0 10px rgba(255, 255, 255, 0.09), 0 60px 120px -50px rgba(0, 0, 0, 0.95);
  }
  .app__bar { padding-top: 16px; }
}

/* review fixes: demo label on each task screen; budget "on track" line */
.scr__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scr__top .demo-tag { --cv-line: var(--line-strong); --cv-muted: var(--muted); }
.big__track { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
