/* Outer walkthrough chrome — page header, desktop window, step nav */

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

html.is-embed body {
  background: transparent;
  min-height: 0;
}

html.is-embed .page {
  padding: 12px 0 28px;
}

html.is-embed .page-header {
  margin-bottom: 0;
}

html.is-embed .step-hint {
  display: none;
}

.page-header {
  text-align: center;
  max-width: 640px;
}

.page-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
}

.page-title {
  margin: 0;
  font-family: var(--kl-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--kl-ink);
}

.page-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kl-ink-soft);
}

/* Desktop app window */
.desk {
  width: 100%;
  max-width: 1080px;
  border-radius: var(--desk-radius);
  background: #2A2E31;
  box-shadow: var(--desk-shadow);
  overflow: hidden;
}

.desk-titlebar {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  background: linear-gradient(180deg, #3A3F43 0%, #2F3438 100%);
}

.desk-traffic {
  display: flex;
  gap: 7px;
}

.desk-traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.desk-traffic .r { background: #FF5F57; }
.desk-traffic .y { background: #FEBC2E; }
.desk-traffic .g { background: #28C840; }

.desk-url {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: min(420px, 52vw);
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.desk-url strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.desk-screen {
  position: relative;
  height: min(70vh, 720px);
  min-height: 520px;
  background: var(--kl-paper);
  overflow: hidden;
}

.desk-screen > .screen {
  position: absolute;
  inset: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 34, 36, 0.2) transparent;
}

.desk-screen > .screen.screen--flush {
  overflow: hidden;
}

/* Step nav under the window */
.step-nav {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 4px 8px 0;
}

.step-copy {
  text-align: center;
}

.step-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--kl-ink);
}

.step-desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--kl-ink-soft);
}

.step-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(28, 32, 35, 0.14);
  background: rgba(255, 253, 250, 0.82);
  color: var(--kl-ink);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.step-btn:hover:not(:disabled) {
  background: var(--kl-white);
}

.step-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.step-dots {
  display: flex;
  gap: 8px;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(28, 32, 35, 0.18);
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.step-dot.active {
  background: var(--kl-teal-ink);
  transform: scale(1.2);
}

.step-hint {
  margin: 0;
  font-size: 12px;
  color: var(--kl-muted);
}

@media (max-width: 860px) {
  .page {
    width: calc(100vw - 16px);
    padding-top: 20px;
  }

  .desk-screen {
    height: min(78vh, 640px);
  }

  .desk-url {
    min-width: 0;
    font-size: 11px;
  }
}
