.tutorial-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: var(--line-thin) solid var(--color-border);
  background: var(--color-bg);
}

.tutorial-hero::before,
.tutorial-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.tutorial-hero::before {
  top: 0;
  bottom: 0;
  left: 58%;
  width: var(--line-thin);
  background: var(--color-border);
}

.tutorial-hero::after {
  right: 0;
  bottom: 42px;
  left: 0;
  height: var(--line-thin);
  background: var(--color-border);
  opacity: .45;
}

.tutorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .62fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 610px;
  padding-top: clamp(64px, 8vw, 106px);
  padding-bottom: clamp(70px, 9vw, 118px);
}

.tutorial-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tutorial-hero-summary {
  max-width: 700px;
  margin-top: 26px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.85;
}

.tutorial-hero-summary strong {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: var(--line-strong);
  text-underline-offset: 6px;
}

.tutorial-hero .button-row {
  margin-top: 30px;
}

.tutorial-hero .chip-row {
  margin-top: 24px;
}

.tutorial-proof {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: var(--line-strong) solid var(--color-border);
  background: var(--color-panel);
}

.tutorial-proof::before {
  position: absolute;
  top: -2px;
  left: 32px;
  width: 76px;
  height: var(--line-strong);
  background: var(--color-accent);
  content: "";
}

.proof-sequence {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.proof-sequence li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 17px 0;
  border-bottom: var(--line-thin) solid var(--color-border);
}

.proof-sequence li:first-child {
  border-top: var(--line-thin) solid var(--color-border);
}

.proof-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-panel-strong);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.proof-sequence strong,
.proof-sequence small {
  display: block;
}

.proof-sequence strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 20px;
}

.proof-sequence small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 13px;
}

.proof-note {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.tutorial-reading {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: var(--section-space);
}

.guide-step {
  position: relative;
  padding-top: clamp(64px, 9vw, 108px);
  scroll-margin-top: 64px;
}

.guide-step + .guide-step {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: var(--line-strong) solid var(--color-border);
}

.guide-step-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 32px;
}

.guide-step-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.guide-step-index {
  display: grid;
  width: 72px;
  min-height: 72px;
  place-items: center;
  border: var(--line-strong) solid var(--color-border);
  background: var(--color-panel-strong);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
}

.prep-register {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-border);
  gap: var(--line-thin);
}

.prep-register > div {
  min-width: 0;
  padding: 20px;
  background: var(--color-panel);
}

.prep-register strong,
.prep-register span {
  display: block;
}

.prep-register strong {
  margin-bottom: 7px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 18px;
}

.prep-register span {
  color: var(--color-muted);
  font-size: 14px;
}

.verification-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-border);
  gap: var(--line-thin);
}

.verification-sheet > div {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--color-panel);
}

.verification-sheet > div::before {
  position: absolute;
  top: -1px;
  left: 24px;
  width: 32px;
  height: var(--line-strong);
  background: var(--color-success);
  content: "";
}

.verification-sheet span,
.verification-sheet strong {
  display: block;
}

.verification-sheet span {
  margin-bottom: 13px;
  color: var(--color-success);
  font-size: 10px;
  letter-spacing: .08em;
}

.verification-sheet strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 21px;
}

.verification-sheet p {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 15px;
}

.guide-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 64px;
  padding: clamp(26px, 5vw, 46px);
  border: var(--line-strong) solid var(--color-border);
  background: var(--color-panel-strong);
}

.guide-next h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(29px, 4vw, 42px);
}

.guide-next p:not(.section-kicker) {
  max-width: 560px;
  margin-top: 12px;
  margin-bottom: 0;
}

.guide-next .button-row {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .tutorial-hero::before {
    display: none;
  }

  .tutorial-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tutorial-proof {
    max-width: 680px;
  }

  .prep-register {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .tutorial-hero-grid {
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .tutorial-proof {
    width: 100%;
  }

  .guide-next {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-next .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .tutorial-hero .button-row .btn {
    flex-basis: 100%;
  }

  .guide-step-heading {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 15px;
  }

  .guide-step-index {
    width: 54px;
    min-height: 54px;
    font-size: 12px;
  }

  .verification-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-sequence li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .proof-number {
    width: 42px;
    height: 42px;
  }
}