/* ==========================================================================
   D03 Product Tour — page styles (demo/product-tour.html)
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.tour-hero__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  font-variation-settings: 'wdth' var(--hero-wdth);
}

.tour-hero__lead {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
}

/* Button row (hero + CTA band) */
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tour-actions--flush {
  margin-top: 0;
}

.tour-actions .btn {
  line-height: 1.55;
}

/* Filled primary has no border in the original */
.tour-actions .btn--primary {
  border: 0;
}

/* Secondary buttons use slightly narrower padding */
.tour-actions__alt {
  padding-left: 22px;
  padding-right: 22px;
}

/* Sticky tour ------------------------------------------------------------ */
.tour {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
}

.tour__steps {
  display: flex;
  flex-direction: column;
}

/* One step per ~viewport; inactive steps are dimmed */
.tour-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 70vh;
  opacity: .35;
  transition: opacity .36s;
}

.tour-step.is-active {
  opacity: 1;
}

.tour-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
}

.tour-step__body {
  max-width: 46ch;
  margin: 0;
  font-size: 18px;
  color: var(--ink-2);
}

.tour-step__ship {
  align-self: flex-start;
  line-height: inherit;
}

.tour__stage {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step progress buttons */
.tour-dots {
  display: flex;
  gap: 6px;
}

.tour-dots__btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 32px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tour-dots__btn[aria-current="step"] {
  color: var(--ink);
}

.tour-dots__bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--surface-3);
}

/* Bars up to and including the current step are filled */
.tour-dots__btn.is-done .tour-dots__bar {
  background: var(--ink);
}

/* Live UI frame */
.tour-frame {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.tour-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.tour-frame__lights {
  display: flex;
  gap: 5px;
}

.tour-frame__lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}

.tour-frame__path {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.tour-frame__demo {
  line-height: inherit;
}

.tour-frame__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.tour-frame__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Cards inside the frame; --indent nests merge suggestions */
.tour-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: var(--indent, 0px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  animation: pop .36s cubic-bezier(.2, .8, .2, 1);
}

.tour-card--hi {
  border-color: var(--ink);
}

.tour-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.tour-card__title {
  font-size: 14px;
}

.tour-card__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.tour-card__tag--pos {
  background: var(--pos-bg);
  color: var(--pos);
}

.tour-card__tag--ink {
  background: var(--inverse);
  color: var(--on-inverse);
}

.tour-card__meta {
  font-size: 13px;
  color: var(--ink-2);
}

/* Roles ------------------------------------------------------------------ */
.tour-h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.role-tabs__tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  cursor: pointer;
}

.role-tabs__tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.role-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.role-point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.role-point__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.role-point__text {
  font-size: 15px;
  color: var(--ink-2);
}

.role-quote {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

.role-quote b {
  color: var(--ink);
}

.role-quote__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Multiplayer + keyboard ------------------------------------------------- */
.tour-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.tour-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.tour-panel--multiplayer {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.tour-panel--keys {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-panel__title {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.03em;
}

.tour-panel--keys .tour-panel__title {
  margin: 0 0 6px;
}

.tour-panel__text {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-2);
}

/* Comment thread mock */
.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.thread__msg {
  font-size: 14px;
}

.thread__reactions {
  display: flex;
  gap: 6px;
}

.thread__reaction {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.thread__reaction--mine {
  border-color: var(--action);
  background: var(--action-tint);
}

/* Live cursors — fixed demo colors (Maya = c1 blue, Jonas = c3 teal) */
.cursor {
  position: absolute;
  pointer-events: none;
}

.cursor--maya {
  --cursor: #3E6FB0;
  top: 60px;
  right: 80px;
  animation: curB 16s ease-in-out infinite;
}

.cursor--jonas {
  --cursor: #2F8F7A;
  bottom: 40px;
  right: 40px;
  animation: curB 19s ease-in-out infinite reverse;
}

.cursor__arrow {
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid var(--cursor);
  border-left: 7px solid var(--cursor);
  border-right: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.cursor__name {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cursor);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

/* Shortcut list */
.keys {
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.keys__row:last-child {
  margin-bottom: 0;
}

.keys__combo {
  display: flex;
  gap: 4px;
}

.keys__key {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Security summary ------------------------------------------------------- */
.security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: start;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.security__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.security__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.security__status {
  font-weight: 600;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--r-lg);
  background: var(--inverse);
  color: var(--on-inverse);
}

.cta-band__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: .94;
  letter-spacing: -.045em;
}

.cta-band__note {
  font-size: 14px;
  opacity: .85;
}

/* Band buttons may wrap on narrow screens (as in the original) */
.cta-band .btn {
  white-space: normal;
}
