/* Corporate Services scenario — step-by-step operational event story */

.page-scenario--corporate {
  background: var(--color-bg);
}

/* ----- Hero ----- */
.sc-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.sc-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(31, 77, 58, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    var(--color-bg);
  pointer-events: none;
}

.sc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.sc-hero__eyebrow {
  margin-bottom: var(--space-4);
  max-width: none;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.sc-hero__title {
  margin-bottom: var(--space-6);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.sc-hero__lead {
  margin-bottom: var(--space-5);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-soft);
  line-height: var(--line-height-relaxed);
  max-width: 40rem;
}

.sc-hero__lead strong {
  color: var(--color-gold-soft);
  font-weight: var(--font-weight-semibold);
}

.sc-hero__note {
  max-width: 36rem;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(212, 175, 55, 0.45);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ----- Steps layout ----- */
.sc-steps {
  padding: var(--space-12) 0 var(--space-8);
}

.sc-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8) var(--space-10);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
  /* Default visible — JS only adds a soft enter animation when ready */
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: hide only when JS marks the page as animated */
.js-sc-animate .sc-step:not(.is-visible) {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.js-sc-animate .sc-step.is-visible {
  opacity: 1;
  transform: none;
}

.sc-step:nth-child(even) .sc-step__copy {
  order: 2;
}

.sc-step:nth-child(even) .sc-step__stage {
  order: 1;
}

.sc-step__num {
  margin-bottom: var(--space-3);
  max-width: none;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  color: var(--color-gold);
}

.sc-step__title {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  max-width: 18ch;
}

.sc-step__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: var(--space-4);
  background: linear-gradient(90deg, var(--color-gold), transparent);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.sc-step__text {
  margin-bottom: var(--space-4);
  max-width: 36rem;
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.sc-step__text strong {
  color: var(--color-text-soft);
  font-weight: var(--font-weight-semibold);
}

.sc-step__stage {
  position: relative;
  min-height: 18rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.16);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(31, 77, 58, 0.2) 0%, transparent 60%),
    rgba(10, 12, 11, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.sc-step.is-active .sc-step__stage {
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 40px rgba(212, 175, 55, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.35);
}

/* ========== Visual 1: Three-screen phone deck ========== */
.sc-step__stage--phone-deck {
  padding: var(--space-5) var(--space-4);
  align-items: flex-start;
}

.sc-phone-deck {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.sc-phone-deck__frame {
  position: relative;
  width: min(100%, 17.25rem);
}

.sc-phone--pro {
  width: 100%;
  border-radius: 1.85rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(160deg, #1a1c1e 0%, #0a0a0b 40%, #050506 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 175, 55, 0.1);
  padding: 0.45rem;
}

.sc-phone__bezel {
  position: relative;
  border-radius: 1.45rem;
  overflow: hidden;
  background: #0b0d0f;
  min-height: 22.5rem;
}

.sc-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem 0.25rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 2;
}

.sc-phone__island {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  transform: translateX(-50%);
  width: 4.2rem;
  height: 1rem;
  border-radius: 999px;
  background: #050506;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-phone-screen {
  position: absolute;
  inset: 1.55rem 0 0;
  display: flex;
  flex-direction: column;
  padding: 0 0.7rem 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
  pointer-events: none;
}

.sc-phone-screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 20rem;
}

.sc-phone__appbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.7rem;
}

.sc-phone__appbar--event {
  border-bottom-color: rgba(212, 175, 55, 0.18);
}

.sc-phone__back {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1;
}

.sc-phone__appbar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sc-phone__appbar-text strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.sc-phone__appbar-text span {
  font-size: 0.58rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
}

.sc-phone__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

.sc-phone__body--chat {
  gap: 0.5rem;
  justify-content: flex-start;
}

.sc-phone__body--event {
  gap: 0;
}

.sc-phone__caption {
  margin: 0 0 0.25rem;
  max-width: none;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.sc-menu--pro {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.sc-menu--pro .sc-menu__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(16, 18, 20, 0.95);
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sc-menu__item-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.sc-menu__item-sub {
  font-size: 0.62rem;
  color: var(--color-text-subtle);
  line-height: 1.3;
}

.sc-menu--pro .sc-menu__item--active {
  border-color: rgba(212, 175, 55, 0.5);
  background:
    linear-gradient(135deg, rgba(31, 77, 58, 0.5) 0%, rgba(168, 137, 42, 0.18) 100%),
    rgba(14, 16, 14, 0.98);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.14);
}

.sc-menu--pro .sc-menu__item--active .sc-menu__item-title {
  color: var(--color-gold-soft);
}

.sc-bubble--pro {
  max-width: 92%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.95rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-text-soft);
}

.sc-bubble--pro.sc-bubble--in {
  align-self: flex-start;
  background: rgba(24, 32, 28, 0.95);
  border: 1px solid rgba(61, 143, 106, 0.28);
}

.sc-bubble--pro.sc-bubble--out {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(31, 77, 58, 0.55), rgba(120, 95, 35, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 1;
  transform: none;
}

.sc-bubble--system {
  border-color: rgba(212, 175, 55, 0.35) !important;
  background:
    linear-gradient(145deg, rgba(31, 77, 58, 0.35), rgba(20, 24, 22, 0.95)) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.08);
}

/* Event tracking screen */
.sc-event-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(16, 22, 18, 0.98), rgba(8, 10, 9, 0.98));
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.08);
}

.sc-event-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sc-event-card__status {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 143, 106, 0.45);
  background: rgba(31, 77, 58, 0.4);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.sc-event-card__id {
  font-size: 0.62rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.06em;
}

.sc-event-card__title {
  margin: 0;
  max-width: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.sc-event-card__meta {
  margin: 0;
  max-width: none;
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.sc-track {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-track__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--color-text-subtle);
}

.sc-track__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-track__row.is-done {
  color: var(--color-text-muted);
}

.sc-track__row.is-done .sc-track__dot {
  background: rgba(61, 143, 106, 0.7);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 8px rgba(61, 143, 106, 0.35);
}

.sc-track__row.is-current {
  color: var(--color-gold-soft);
  font-weight: 600;
}

.sc-track__row.is-current .sc-track__dot {
  background: var(--color-gold);
  border-color: var(--color-gold-soft);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.sc-event-card__note {
  margin: 0.35rem 0 0;
  max-width: none;
  font-size: 0.6rem;
  line-height: 1.4;
  color: rgba(232, 200, 114, 0.65);
  letter-spacing: 0.02em;
}

.sc-phone__hint {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

.sc-phone-deck__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.sc-phone-deck__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sc-phone-deck__dot.is-active {
  background: var(--color-gold);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.sc-phone-deck__caption {
  margin: 0;
  max-width: none;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ========== Visual 2: Register event ========== */
.sc-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 20rem;
}

.sc-register__msg {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(210, 195, 150, 0.3);
  background: rgba(32, 30, 24, 0.9);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.sc-register__arrow {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), var(--color-gold));
  position: relative;
}

.sc-register__arrow::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  transform: translateX(-50%) rotate(45deg);
}

.sc-register__event {
  width: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent 55%),
    rgba(12, 16, 14, 0.95);
  text-align: center;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.12);
}

.sc-step.is-active .sc-register__event {
  animation: sc-pulse-glow 2.4s ease-in-out infinite;
}

.sc-register__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.sc-register__id {
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.sc-register__core-hint {
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

@keyframes sc-pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.22);
  }
}

/* ========== Visual 3: Distribute ========== */
.sc-dist {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-dist__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sc-dist__core {
  position: relative;
  z-index: 2;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 215, 140, 0.55);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 244, 210, 0.9), rgba(212, 175, 55, 0.8) 30%, rgba(45, 107, 79, 0.95) 65%, #0a1c14 100%);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.35);
}

.sc-step.is-active .sc-dist__core {
  animation: sc-core-breathe 2.8s ease-in-out infinite;
}

.sc-dist__core-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(5, 5, 6, 0.88);
  text-align: center;
  line-height: 1.2;
}

.sc-dist__depts {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}

.sc-dist__dept {
  position: absolute;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 14, 12, 0.92);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-soft);
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.sc-dist__dept.is-lit {
  opacity: 1;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
  color: var(--color-gold-soft);
}

/* positions around core */
.sc-dist__dept[data-dept="0"] { top: 8%; left: 50%; transform: translateX(-50%); }
.sc-dist__dept[data-dept="1"] { top: 28%; right: 6%; }
.sc-dist__dept[data-dept="2"] { bottom: 28%; right: 8%; }
.sc-dist__dept[data-dept="3"] { bottom: 8%; left: 50%; transform: translateX(-50%); }
.sc-dist__dept[data-dept="4"] { bottom: 28%; left: 6%; }
.sc-dist__dept[data-dept="5"] { top: 28%; left: 6%; }

@keyframes sc-core-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========== Visual 4: Roles ========== */
.sc-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.sc-role-card {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(8, 10, 9, 0.9);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.sc-role-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text);
}

.sc-role-card p {
  margin: 0;
  max-width: none;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.sc-role-card.is-lit {
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(18, 28, 22, 0.95);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.1);
}

/* ========== Visual 5: Progress ========== */
.sc-progress {
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sc-progress__track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sc-progress__bar {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-green-mid), var(--color-gold));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transition: width 0.6s ease;
}

.sc-progress__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-progress__item {
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-size: 0.65rem;
  text-align: center;
  color: var(--color-text-subtle);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.sc-progress__item.is-done,
.sc-progress__item.is-current {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--color-gold-soft);
  background: rgba(31, 77, 58, 0.25);
}

.sc-progress__status {
  margin: 0;
  text-align: center;
  max-width: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.sc-progress__status-text {
  color: var(--color-gold-soft);
  font-weight: 600;
}

/* ========== Visual 6: Notify ========== */
.sc-notify {
  position: relative;
  width: 100%;
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-notify__core {
  position: relative;
  z-index: 2;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(20, 36, 28, 0.95);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-soft);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.sc-notify__card {
  position: absolute;
  width: min(42%, 9.5rem);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(10, 12, 11, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transform: scale(0.92);
}

.sc-notify__card--client {
  top: 12%;
  right: 6%;
}

.sc-notify__card--courier {
  bottom: 12%;
  left: 6%;
}

.sc-step.is-active .sc-notify__card--client {
  animation: sc-notify-in 0.55s ease 0.2s forwards;
}

.sc-step.is-active .sc-notify__card--courier {
  animation: sc-notify-in 0.55s ease 0.55s forwards;
}

.sc-notify__who {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.sc-notify__msg {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

@keyframes sc-notify-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Visual 7: History ========== */
.sc-history {
  width: 100%;
  max-width: 22rem;
}

.sc-history__badge {
  display: inline-flex;
  margin-bottom: var(--space-4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 143, 106, 0.45);
  background: rgba(31, 77, 58, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.sc-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sc-history__item {
  padding: 0.55rem 0.75rem;
  border-left: 2px solid rgba(212, 175, 55, 0.15);
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  background: rgba(8, 10, 9, 0.5);
  border-radius: 0 6px 6px 0;
  opacity: 0.45;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.sc-history__item.is-lit {
  opacity: 1;
  transform: none;
  border-left-color: var(--color-gold);
  color: var(--color-text-soft);
}

/* ----- Final ----- */
.sc-final {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(31, 77, 58, 0.2) 0%, transparent 55%),
    var(--color-bg-deep);
}

.sc-final__inner {
  max-width: 40rem;
  text-align: center;
}

.sc-final__title {
  margin-bottom: var(--space-6);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  max-width: none;
}

.sc-final__text {
  margin: 0 auto var(--space-10);
  max-width: 36rem;
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-md);
}

.sc-final__text strong {
  color: var(--color-gold-soft);
}

.sc-final__cta {
  display: inline-flex;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  /* Never hide content on mobile — reliability over animation */
  .js-sc-animate .sc-step:not(.is-visible),
  .sc-step {
    opacity: 1 !important;
    transform: none !important;
  }

  .sc-step {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .sc-step:nth-child(even) .sc-step__copy,
  .sc-step:nth-child(even) .sc-step__stage {
    order: initial;
  }

  .sc-step__stage {
    min-height: 16rem;
  }

  .sc-step__stage--phone-deck {
    min-height: auto;
    padding: var(--space-4);
  }

  .sc-phone--pro {
    width: min(100%, 17rem);
    max-width: 100%;
  }

  .sc-phone__bezel {
    min-height: 20rem;
  }

  .sc-phone-screen {
    /* Avoid absolute stacking bugs on some mobile browsers */
    position: relative;
    inset: auto;
    min-height: 0;
  }

  .sc-phone-screen:not(.is-active) {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .sc-phone-screen.is-active {
    display: flex;
    position: relative;
    flex: 1;
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  .sc-hero {
    padding-top: calc(var(--header-height) + var(--space-10));
  }

  .sc-step {
    padding: var(--space-10) 0;
  }

  .sc-step__title {
    max-width: none;
  }

  .sc-roles {
    grid-template-columns: 1fr;
  }

  .sc-progress__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-dist__dept {
    font-size: 0.58rem;
    padding: 0.28rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-sc-animate .sc-step:not(.is-visible),
  .sc-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .sc-phone-screen {
    transition: none;
  }

  .sc-step.is-active .sc-register__event,
  .sc-step.is-active .sc-dist__core,
  .sc-step.is-active .sc-notify__card--client,
  .sc-step.is-active .sc-notify__card--courier {
    animation: none;
  }

  .sc-notify__card {
    opacity: 1;
    transform: none;
  }

  .sc-history__item {
    opacity: 1;
    transform: none;
  }
}
