.how-it-works-page {
  display: block;
  width: 100%;
  min-height: calc(100svh - 68px);
}

.how-it-works-sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  display: grid;
  gap: 18px;
  min-height: calc(100svh - 68px);
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(11, 17, 18, 0.34), rgba(3, 5, 6, 0.08) 72%),
    rgba(5, 8, 9, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sidebar-eyebrow {
  margin: 0;
  color: #7f8a96;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-kicker {
  margin: 0;
  color: #35d99b;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.how-it-works-nav {
  display: grid;
  gap: 8px;
}

.how-it-works-nav a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #b8c1cb;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.how-it-works-nav a span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #87f2c8;
  background: rgba(53, 217, 155, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
}

.how-it-works-nav a:hover,
.how-it-works-nav a:focus-visible {
  color: #f1f3f5;
  border-color: rgba(53, 217, 155, 0.2);
  background: rgba(53, 217, 155, 0.08);
  transform: translateX(2px);
}

.how-it-works-nav a[aria-current="page"] {
  color: #f1f3f5;
  border-color: rgba(53, 217, 155, 0.24);
  background: rgba(53, 217, 155, 0.1);
}

.how-it-works-nav a[aria-current="page"] span:first-child {
  background: rgba(53, 217, 155, 0.14);
}

.page-header {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.page-header h1 {
  margin: 0;
  color: #f3f6f8;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.how-it-works-content {
  display: grid;
  --block-row-gap: clamp(168px, 21vh, 270px);
  row-gap: var(--block-row-gap);
  min-height: calc(100svh - 68px);
  padding: clamp(24px, 4vh, 40px) clamp(20px, 5vw, 72px) clamp(32px, 6vh, 56px);
}

.page-header + .block-step {
  margin-top: calc(64px - var(--block-row-gap));
}

.block-step {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  scroll-margin-top: 92px;
}

#shutdown {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  width: min(100%, 1240px);
  margin-inline: auto;
}

.shutdown-content {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-width: 0;
}

.shutdown-content .step-media--notification {
  width: 100%;
}

.blocking-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 20px;
  width: min(100% - 40px, 980px);
  margin: clamp(48px, 8vh, 96px) auto clamp(56px, 8vh, 96px);
  padding: 22px 26px 22px 30px;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 181, 0.24);
  border-radius: 18px;
  background: rgba(7, 11, 12, 0.94);
  box-shadow:
    0 0 0 1px rgba(63, 211, 144, 0.05) inset,
    0 20px 55px rgba(0, 0, 0, 0.28);
}

.blocking-note-label,
.blocking-note-copy {
  position: relative;
  z-index: 1;
  margin: 0;
}

.blocking-note-label {
  color: #87f2c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blocking-note-copy {
  color: #d2dbe2;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.5;
}

.block-step:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.block-step:nth-of-type(even) .step-copy {
  order: 2;
}

.block-step:nth-of-type(even) .step-media {
  order: 1;
}

.step-copy {
  display: grid;
  gap: 10px;
}

.step-copy h2 {
  margin: 0;
  color: #f3f6f8;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.step-copy p {
  max-width: 28ch;
  margin: 0;
  color: #aeb8c3;
  font-size: 1rem;
  line-height: 1.55;
}

.step-copy code {
  padding: 0.12em 0.35em;
  border: 1px solid rgba(53, 217, 155, 0.18);
  border-radius: 999px;
  background: rgba(53, 217, 155, 0.08);
  color: #dffbef;
  font: inherit;
}

.step-media {
  position: relative;
  width: 85%;
  justify-self: center;
  aspect-ratio: 2398 / 1618;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 181, 0.32);
  border-radius: 16px;
  background: rgba(7, 10, 11, 0.72);
  box-shadow:
    0 0 0 1px rgba(63, 211, 144, 0.08),
    0 0 26px rgba(48, 220, 143, 0.16),
    0 26px 80px rgba(0, 0, 0, 0.36);
}

.step-media--wide {
  aspect-ratio: 1881 / 1080;
}

.step-media--compact {
  aspect-ratio: 904 / 508;
}

.step-media--notification {
  width: 35%;
}

.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #091013;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 920px) {
  .how-it-works-content {
    padding-inline: 18px;
  }

  #shutdown {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .shutdown-content {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .how-it-works-sidebar {
    padding: 16px 12px 14px;
    gap: 14px;
  }

  .how-it-works-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .how-it-works-nav a {
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .how-it-works-content {
    --block-row-gap: 151px;
    padding: 18px 12px 40px;
  }

  .page-header + .block-step {
    margin-top: calc(72px - var(--block-row-gap));
  }

  .page-header h1 {
    font-size: 1.9rem;
  }

  .page-header,
  .step-copy {
    justify-items: center;
    text-align: center;
  }

  .block-step,
  .block-step:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .block-step:nth-of-type(even) .step-copy,
  .block-step:nth-of-type(even) .step-media {
    order: initial;
  }

  #shutdown {
    width: 100%;
  }

  .shutdown-content {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shutdown-content .step-copy,
  .shutdown-content .step-media {
    order: initial;
  }

  #shutdown .shutdown-content .step-copy {
    order: 1;
  }

  #shutdown .shutdown-content .step-media {
    order: 2;
  }

  .shutdown-content .step-media--notification {
    width: 50%;
  }

  .blocking-note {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 980px);
    gap: 8px;
    margin-bottom: 56px;
    padding: 20px 20px 20px 24px;
  }

  .step-copy h2 {
    font-size: 1.8rem;
  }

  .step-copy p,
  .page-summary {
    font-size: 0.95rem;
  }

  .step-media {
    aspect-ratio: 3 / 2;
  }
}
