/* demo.avertgrid.com scenario page: hero with progress, the step rail, framed screens, pending frames, what you gain. */

/* ---------- hero ---------- */
.scenario-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--panel-line);
}

.scenario-hero-inner {
  position: relative;
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px);
}

.scenario-hero h1 {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 18ch;
}

:root:lang(ka) .scenario-hero h1 {
  font-size: clamp(2.05rem, 1.1rem + 2.7vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0;
  max-width: 22ch;
}

.scenario-hero .lead {
  margin-top: 22px;
  color: #c4ccd8;
}

.eyebrow-meta {
  margin-inline-start: 4px;
  padding: 2px 8px;
  border: 1px solid #2c3749;
  border-radius: 999px;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.situation {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid #243046;
  border-inline-start: 3px solid var(--panel-accent);
  border-radius: 0 12px 12px 0;
  background: rgb(13 20 31 / 75%);
  color: var(--panel-text);
  font-size: 1.0625rem;
  max-width: 72ch;
}

/* progress through the seven scenarios */
.scenario-dots ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.scenario-dots li {
  display: flex;
  align-items: center;
}

.scenario-dots li + li::before {
  content: '';
  width: clamp(10px, 2.4vw, 28px);
  height: 1px;
  background: #2c3749;
}

.scenario-dots li.is-done + li::before,
.scenario-dots li.is-current::before {
  background: var(--panel-accent);
}

.scenario-dots a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #2c3749;
  border-radius: 999px;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

.scenario-dots a:hover {
  border-color: var(--panel-text);
  color: var(--panel-text);
}

.scenario-dots .is-done a {
  border-color: #3c5590;
  color: var(--panel-accent);
}

.scenario-dots a[aria-current='step'] {
  border-color: var(--panel-accent);
  background: var(--panel-accent);
  color: #0b1320;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgb(142 176 255 / 16%);
}

/* ---------- the tour: a rail of numbered steps beside a sticky screen ---------- */
.tour {
  position: relative;
  display: grid;
  gap: 0;
  padding-block: clamp(24px, 4vw, 48px);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 88px);
}

.step-text,
.step-stage {
  min-width: 0;
}

.step-text {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  padding-inline-start: 56px;
  transition: color 300ms var(--ease);
}

/* the rail */
.step-text::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: -200px;
  left: 17px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
}

.step:last-child .step-text::before {
  display: none;
}

.step-node {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.tour:not(.is-enhanced) .step-node,
.tour.is-enhanced .step.is-active .step-node {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

/* Steps not being read recede through colour that still meets AA (never through opacity). */
.tour.is-enhanced .step:not(.is-active) .step-text h2 {
  color: var(--muted);
}

.tour.is-enhanced .step:not(.is-active) .step-label {
  color: var(--muted);
}

.step-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.step h2 {
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: var(--track-heading);
}

:root:lang(ka) .step h2 {
  font-size: var(--step-2);
  line-height: 1.3;
}

.step-text > p:not(.step-label) {
  color: var(--muted);
}

.callouts {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.callouts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.callout-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1d47c4;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.step-stage {
  position: sticky;
  top: 104px;
}

.step-stage::before {
  content: '';
  position: absolute;
  inset: 10% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(20px);
}

@media (max-width: 960px) {
  .step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-text,
  .step-stage {
    position: relative;
    top: auto;
  }

  .step-text::before {
    display: none;
  }

  .tour.is-enhanced .step:not(.is-active) .step-text h2 {
    color: var(--text);
  }

  .tour.is-enhanced .step:not(.is-active) .step-label {
    color: var(--accent);
  }
}

/* ---------- frames ---------- */
.frame {
  margin: 0;
}

.frame-terminal .terminal {
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 60%);
  border-radius: 12px;
}

/* a screen that is not captured yet: deliberate, labelled, and naming the exact screen to capture */
.frame-pending {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.pending-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 40px 24px;
  background-color: var(--surface-2);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pending-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  opacity: 0.7;
}

.c1 {
  top: 18px;
  left: 18px;
  border-right: 0;
  border-bottom: 0;
}

.c2 {
  top: 18px;
  right: 18px;
  border-left: 0;
  border-bottom: 0;
}

.c3 {
  bottom: 18px;
  left: 18px;
  border-right: 0;
  border-top: 0;
}

.c4 {
  bottom: 18px;
  right: 18px;
  border-left: 0;
  border-top: 0;
}

.pending-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 46ch;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.pending-icon {
  position: relative;
  width: 30px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.pending-icon::after {
  content: '';
  position: absolute;
  inset: 5px 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.pending-title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.pending-inner p:not(.pending-title):not(.pending-spec) {
  color: var(--muted);
  font-size: 0.9375rem;
}

.pending-spec {
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--faint);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
