/*
 * RankPulse's own walkthrough surface with channel and message cues.
 */
.demo-main {
  --demo-panel: #1c1e23;
  --demo-raised: #25272e;
  --demo-line: #393b45;
  padding-block: 49px 72px;
}
.demo-top-links,
.demo-language,
.demo-nav-heading,
.demo-controls,
.demo-workspace-header {
  display: flex;
  align-items: center;
}
.demo-top-links {
  gap: 19px;
  font-size: 0.82rem;
  color: var(--muted);
}
.demo-top-links > a:hover {
  color: var(--text);
}
.demo-language {
  gap: 2px;
  padding: 3px;
  background: #202127;
  border: 1px solid #343640;
  border-radius: 7px;
}
.demo-language a {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 750;
}
.demo-language a[aria-current='true'] {
  background: #4a2a32;
  color: #ffb4bf;
}
.demo-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 31px;
}
.demo-intro .eyebrow {
  margin-bottom: 13px;
}
.demo-intro h1 {
  font-size: clamp(2.65rem, 6.1vw, 4.8rem);
  letter-spacing: -0.072em;
  font-weight: 880;
  line-height: 0.98;
}
.demo-intro .intro {
  margin-top: 13px;
  max-width: 40rem;
}
.demo-data-note {
  max-width: 233px;
  flex: 0 0 auto;
  padding: 11px 13px;
  border: 1px solid #5e3944;
  border-radius: 8px;
  background: #2d2026;
  color: #f5d3d9;
  font-size: 0.72rem;
  line-height: 1.45;
}
.demo-data-note strong,
.demo-data-note span {
  display: block;
}
.demo-data-note strong {
  color: #ffacb6;
  font-size: 0.81rem;
  margin-bottom: 4px;
}
.demo-layout {
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.demo-nav-heading {
  justify-content: space-between;
  gap: 10px;
  margin: 0 4px 12px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 750;
}
.demo-nav-heading button {
  background: transparent;
  border: 0;
  color: #ff9aa6;
  font-size: 0.74rem;
  padding: 5px 0 5px 5px;
}
.demo-nav-heading button:hover {
  color: #ffccd2;
}
.demo-steps {
  display: grid;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.demo-steps button {
  min-height: 47px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 7px 9px;
  text-align: left;
  background: transparent;
  color: #d1d1d9;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 650;
}
.demo-steps button:hover {
  background: #23242a;
}
.demo-steps button[aria-current='step'] {
  background: #302329;
  border-color: #60404a;
  color: #fff2f4;
}
.demo-step-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 1px solid #484953;
  border-radius: 50%;
  color: #b8b9c3;
  font-size: 0.7rem;
}
[aria-current='step'] .demo-step-number {
  color: #1c1317;
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 850;
}
.demo-workspace {
  border: 1px solid #42434d;
  border-radius: 13px;
  background: var(--demo-panel);
  overflow: hidden;
  box-shadow: 0 23px 55px #09090c65;
}
.demo-workspace-header {
  gap: 11px;
  padding: 13px 18px;
  background: linear-gradient(120deg, #28242a, #23252b 65%);
  border-bottom: 1px solid var(--demo-line);
}
.demo-logo img {
  border-radius: 7px;
}
.demo-workspace-header p:first-child {
  font-size: 0.88rem;
  font-weight: 800;
}
.demo-channel {
  margin-top: 3px;
  color: #cacbd4;
  font-size: 0.72rem;
}
.demo-stage-count {
  margin-left: auto;
  color: #b9bac5;
  font-size: 0.73rem;
  white-space: nowrap;
}
.demo-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr);
}
.demo-context {
  padding: 16px 12px;
  background: #191b20;
  border-right: 1px solid var(--demo-line);
  color: #c7c8d3;
  font-size: 0.76rem;
}
.demo-context-title {
  margin: 2px 5px 12px;
  color: #a8a9b5;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}
.demo-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.demo-channel-list li {
  padding: 7px 5px;
  overflow-wrap: anywhere;
  border-radius: 5px;
}
.demo-channel-list [aria-current='true'] {
  background: #332834;
  color: #ffdbe1;
}
.demo-transcript {
  min-width: 0;
  min-height: 369px;
  padding: 23px 24px 25px;
}
.demo-transcript h2 {
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.demo-description {
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
  max-width: 58ch;
}
.demo-message {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  margin-top: 13px;
}
.demo-message > img,
.demo-avatar {
  display: grid;
  place-items: center;
  border-radius: 10px;
  width: 31px;
  height: 31px;
}
.demo-avatar {
  background: #472f3b;
  color: #ffd0d8;
  font-size: 0.72rem;
  font-weight: 800;
}
.demo-message h3 {
  margin: 3px 0 5px;
  font-size: 0.81rem;
  font-weight: 800;
}
.demo-message > div > p,
.demo-panel p {
  margin: 5px 0;
  font-size: 0.83rem;
  color: #dddde5;
  line-height: 1.52;
}
.demo-private {
  margin-left: 6px;
  font-size: 0.61rem;
  color: #dfbbc4;
  font-weight: 650;
}
.demo-command {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #54404b;
  border-radius: 5px;
  background: #2e252e;
  color: #ffe0e7;
  padding: 4px 7px;
  margin: 2px 0;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.demo-panel {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #41434f;
  border-radius: 7px;
  background: var(--demo-raised);
}
.demo-panel h3 {
  margin: 0 0 7px;
  font-size: 0.98rem;
}
.demo-panel ul {
  margin: 9px 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #dddde5;
}
.demo-actions,
.demo-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.demo-action {
  min-height: 37px;
  border-radius: 6px;
  padding: 5px 10px;
  color: #f2edf2;
  background: #353640;
  border: 1px solid #525460;
  font-size: 0.77rem;
  font-weight: 700;
}
.demo-action:hover,
.demo-action[aria-pressed='true'] {
  border-color: #ee8290;
  color: #ffe8ec;
  background: #462d37;
}
.demo-action.emphasis {
  color: #211418;
  background: var(--accent);
  border-color: var(--accent);
}
.demo-action.danger {
  color: #ffd1d7;
  background: #3e242f;
  border-color: #a85f71;
}
.demo-action:disabled {
  opacity: 0.5;
  cursor: default;
}
.demo-select {
  display: block;
  width: min(100%, 320px);
  min-height: 36px;
  margin: 5px 0 4px;
  padding: 4px 7px;
  background: #191b21;
  color: #f3eef1;
  border: 1px solid #585964;
  border-radius: 5px;
  font: inherit;
  font-size: 0.81rem;
}
.demo-select:focus-visible {
  outline: 2px solid #ffc0c5;
  outline-offset: 2px;
}
.demo-label {
  display: inline-block;
  color: #d6d5de;
  font-size: 0.76rem;
  font-weight: 700;
}
.demo-transcript .recap {
  max-width: 480px;
}
.demo-controls {
  border-top: 1px solid var(--demo-line);
  background: #202127;
  justify-content: space-between;
  padding: 11px 15px;
  gap: 11px;
}
.demo-controls .button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.74rem;
}
.demo-controls .button:disabled {
  opacity: 0.48;
  cursor: default;
}
.demo-progress {
  display: flex;
  gap: 4px;
}
.demo-progress i {
  display: block;
  width: 12px;
  height: 3px;
  background: #464752;
  border-radius: 3px;
}
.demo-progress .current {
  background: var(--accent);
}
.demo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.demo-noscript {
  color: #ffb6bf;
  margin-bottom: 12px;
}
.demo-context-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 17px 4px 0;
  line-height: 1.4;
  color: #b7b8c4;
  font-size: 0.69rem;
}
.demo-context-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #85858d;
  flex: 0 0 auto;
}
.demo-context-status[data-active='true']::before {
  background: #60dfac;
}
@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: minmax(153px, 176px) minmax(0, 1fr);
    gap: 12px;
  }
  .demo-workspace-grid {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  }
  .demo-transcript {
    padding-inline: 16px;
  }
}
@media (max-width: 720px) {
  .demo-layout,
  .demo-workspace-grid {
    grid-template-columns: 1fr;
  }
  .demo-context {
    display: none;
  }
  .demo-nav-heading {
    margin-bottom: 6px;
  }
  .demo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .demo-steps button {
    padding: 5px 7px;
    min-height: 37px;
    font-size: 0.75rem;
    gap: 6px;
    line-height: 1.2;
  }
  .demo-step-number {
    width: 20px;
    height: 20px;
    font-size: 0.64rem;
  }
  .demo-main {
    padding-top: 30px;
  }
  .demo-intro {
    align-items: start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
  }
  .demo-data-note {
    max-width: 100%;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 9px;
  }
  .demo-data-note strong {
    margin: 0;
  }
  .demo-transcript {
    min-height: 0;
    padding: 16px 13px;
  }
}
@media (max-width: 470px) {
  .demo-top .navigation,
  .demo-top-links {
    flex-wrap: wrap;
    gap: 8px;
  }
  .demo-top .navigation {
    padding-block: 10px;
  }
  .demo-top-links {
    font-size: 0.7rem;
  }
  .demo-language a {
    padding: 4px 5px;
  }
  .demo-workspace-header {
    padding: 10px 12px;
  }
  .demo-controls {
    padding: 9px 10px;
  }
  .demo-progress i {
    width: 7px;
  }
  .demo-message {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
  }
  .demo-message > img,
  .demo-avatar {
    width: 24px;
    height: 24px;
  }
}
