/* The demo dashboard: the leadership half of RideAlong, on the site's tokens. */

.demo-body { background: var(--stone); }

.demo-shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100svh; }
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-side { position: static !important; height: auto !important; flex-direction: row !important; align-items: center; }
  .demo-side-foot { display: none !important; }
}

.demo-side {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; gap: 26px;
  padding: 22px 16px; background: var(--paper); border-right: 1px solid var(--line);
}
.demo-nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .demo-nav { flex-direction: row; margin-left: auto; } }
.dn {
  font-family: inherit; text-align: left; border: 0; cursor: pointer;
  background: none; color: var(--soft); font-size: 14.5px; font-weight: 550;
  padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s;
}
.dn:hover { background: var(--stone); color: var(--ink); }
.dn.on { background: var(--brand); color: #fff; }
.demo-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.demo-side-foot a { font-size: 13px; color: var(--faint); text-decoration: none; }
.demo-side-foot a:hover { color: var(--ink); }

.demo-main { padding: 26px clamp(18px, 3vw, 40px) 30px; max-width: 1180px; }
.demo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.demo-top h1 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.ws-tag {
  font-family: var(--font-mono-face); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-wash); border: 1px solid rgba(42,120,214,.25);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}

.tab { display: flex; flex-direction: column; gap: 18px; }
.tab[hidden] { display: none; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; }
.tile .tl { font-family: var(--font-mono-face); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tile .tv { font-size: 30px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .td { font-size: 12.5px; margin-top: 5px; color: var(--soft); }
.tile .td.good { color: var(--good); font-weight: 600; }

/* automation gap */
.gap-body { padding: 18px; }
.gap-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gap-nums b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gap-nums b.blue { color: var(--brand); }
.gap-nums b.amber { color: #b97900; }
.gap-nums span { display: block; font-size: 12.5px; color: var(--soft); margin-top: 3px; }
.gap-bar { height: 12px; border-radius: 7px; background: #f2d9a4; margin-top: 16px; overflow: hidden; }
.gap-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 7px; transition: width 1s cubic-bezier(.22,1,.36,1); }
.gap-body .small { margin-top: 12px; color: var(--faint); }

.ov-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
@media (max-width: 980px) { .ov-row { grid-template-columns: 1fr; } }

.skills { padding: 8px 18px 14px; }
.skrow2 { padding: 9px 0; border-bottom: 1px solid var(--line); }
.skrow2:last-child { border-bottom: 0; }
.skrow2 .nm { display: flex; justify-content: space-between; font-size: 13.5px; }
.skrow2 .nm b { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.skrow2 .bar { height: 7px; border-radius: 5px; background: var(--stone); margin-top: 6px; overflow: hidden; }
.skrow2 .bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }

/* workflows */
.wf-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .wf-layout { grid-template-columns: 1fr; } }
.wf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wf-table th {
  text-align: left; font-family: var(--font-mono-face); font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.wf-table th.num { text-align: right; }
.wf-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wf-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.wf-table tbody tr { cursor: pointer; transition: background .12s; }
.wf-table tbody tr:hover { background: var(--stone); }
.wf-table tbody tr.sel { background: var(--brand-wash); }
.wf-table tbody tr:last-child td { border-bottom: 0; }
.wf-name { font-weight: 550; letter-spacing: -.01em; }
.wf-team { color: var(--soft); font-size: 12.5px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono-face); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.badge.automated { background: color-mix(in srgb, var(--good) 13%, transparent); color: #067506; }
.badge.coaching { background: var(--brand-wash); color: var(--brand-deep); }
.badge.detected { background: color-mix(in srgb, #eda100 16%, transparent); color: #8a5d00; }

.wf-detail { position: sticky; top: 20px; }
.wd-body { padding: 16px 18px; }
.wd-body .sect { font-family: var(--font-mono-face); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 14px 0 7px; }
.wd-body .sect:first-child { margin-top: 0; }
.trace { border-left: 2px solid var(--line-strong); padding-left: 12px; display: flex; flex-direction: column; gap: 7px; }
.trace span { font-size: 13px; color: #33404f; line-height: 1.45; }
.wd-body p { font-size: 13px; line-height: 1.5; color: var(--soft); }
.wd-saved {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--good) 12%, transparent); color: #067506;
  font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 6px 13px;
}
.wd-opp {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, #eda100 14%, transparent); color: #8a5d00;
  font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 6px 13px;
}

/* coaching */
.feed { padding: 6px 18px 12px; }
.fitem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fitem:last-child { border-bottom: 0; }
.fitem .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.fitem .dot.done { background: var(--good); }
.fitem .dot.progress { background: var(--brand); }
.fitem .dot.flag { background: #eda100; }
.fitem .who { font-size: 13.5px; font-weight: 650; }
.fitem .who span { color: var(--faint); font-weight: 500; font-size: 12px; margin-left: 6px; }
.fitem .what { font-size: 13px; color: var(--soft); margin-top: 2px; line-height: 1.45; }
.fitem .when { margin-left: auto; font-family: var(--font-mono-face); font-size: 11px; color: var(--faint); white-space: nowrap; }

.demo-foot { margin-top: 22px; }
.demo-foot a { color: var(--soft); }

/* a link that sits with the tab buttons */
.dn-link { display: block; text-decoration: none; color: var(--brand) !important; }
.dn-link:hover { background: var(--brand-wash) !important; }

/* what you just did, reflected up here */
.just-did {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--good) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 32%, transparent);
  border-radius: 12px; padding: 11px 15px; font-size: 13.5px; color: #23303f;
}
.just-did b { color: #067506; font-weight: 750; }
.just-did a { color: var(--brand); }
