.purchase-guide-page {
  background: #fbfaff;
}

.purchase-guide-hero {
  padding-bottom: 64px;
}

.purchase-guide-summary strong {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
}

.purchase-guide-section {
  padding-top: 64px;
  background:
    radial-gradient(circle at 8% 4%, rgba(220, 211, 255, 0.38), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 32%);
}

.purchase-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 28px;
  align-items: start;
}

.purchase-guide-content,
.purchase-guide-side {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.purchase-guide-intro,
.purchase-guide-step,
.purchase-guide-faq,
.purchase-guide-nav,
.purchase-guide-side-note {
  border: 1px solid rgba(216, 208, 255, 0.92);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(51, 43, 85, 0.055);
}

.purchase-guide-intro,
.purchase-guide-step,
.purchase-guide-faq {
  padding: 30px;
}

.purchase-guide-intro {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 92% 8%, rgba(174, 157, 244, 0.28), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f8f5ff 100%);
}

.purchase-guide-intro::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: -70px;
  bottom: -86px;
  border-radius: 50%;
  background: rgba(111, 99, 196, 0.1);
  pointer-events: none;
}

.purchase-guide-intro h2,
.purchase-guide-step h2,
.purchase-guide-faq h2,
.purchase-guide-nav h2 {
  width: auto;
  margin-inline: 0;
  text-align: left;
}

.purchase-guide-intro h2 {
  margin-bottom: 12px;
  color: var(--blue-ink);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 900;
}

.purchase-guide-intro > p:not(.eyebrow) {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.purchase-guide-intro > h2,
.purchase-guide-intro > p {
  position: relative;
  z-index: 1;
}

.purchase-guide-intro > .purchase-guide-example {
  margin-top: 16px;
  border: 1px solid rgba(111, 99, 196, 0.24);
  border-left: 4px solid #6f60cc;
  border-radius: 12px;
  background: rgba(245, 242, 255, 0.94);
  color: #554a78;
  font-weight: 700;
  padding: 12px 14px;
}

.purchase-guide-example strong {
  color: var(--blue-ink);
  font-weight: 900;
}

.purchase-guide-step {
  scroll-margin-top: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.purchase-guide-step:target,
.purchase-guide-faq:target {
  border-color: rgba(111, 99, 196, 0.7);
  box-shadow: 0 18px 44px rgba(81, 67, 154, 0.12);
}

.purchase-guide-step-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.purchase-guide-step-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.5) 0 7px, transparent 8px),
    linear-gradient(135deg, #6f60cc 0%, #9d8ce8 100%);
  box-shadow: 0 10px 24px rgba(111, 96, 204, 0.22);
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 950;
}

.purchase-guide-step-head p {
  margin: 0 0 4px;
  color: #76699a;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.purchase-guide-step h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(1.28rem, 3vw, 1.62rem);
  line-height: 1.2;
}

.purchase-guide-step > p,
.purchase-guide-side-note p {
  color: var(--muted);
  line-height: 1.68;
}

.purchase-guide-step > p {
  max-width: 74ch;
}

.purchase-guide-step > p:last-child {
  margin-bottom: 0;
}

.purchase-guide-step a,
.purchase-guide-faq a {
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.purchase-guide-step code {
  border: 1px solid rgba(111, 99, 196, 0.16);
  border-radius: 6px;
  background: #f6f3ff;
  color: #3f356f;
  font-size: 0.9em;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

.purchase-guide-figure {
  --guide-image-max: 620px;
  display: grid;
  max-width: var(--guide-image-max);
  gap: 10px;
  margin: 24px auto 0;
}

.purchase-guide-figure.is-wide {
  --guide-image-max: 805px;
}

.purchase-guide-figure.is-compact {
  --guide-image-max: 430px;
}

.purchase-guide-figure.is-phone {
  --guide-image-max: 349px;
}

.purchase-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 208, 255, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(42, 58, 80, 0.09);
}

.purchase-guide-figure figcaption {
  color: #74698d;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.purchase-guide-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

.purchase-guide-media-grid .purchase-guide-figure {
  width: 100%;
  margin-top: 0;
}

.purchase-guide-note {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  border: 1px solid rgba(111, 99, 196, 0.2);
  border-radius: 14px;
  background: #f8f6ff;
  color: #554a78;
  padding: 16px 18px;
}

.purchase-guide-note strong {
  color: var(--blue-ink);
}

.purchase-guide-note span {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.purchase-guide-note.is-success {
  border-color: rgba(24, 183, 133, 0.28);
  background: #eefff8;
  color: #246b58;
}

.purchase-guide-note.is-success strong {
  color: #0c5c45;
}

.purchase-guide-note.is-warning {
  border-color: rgba(223, 159, 45, 0.34);
  background: #fff9eb;
  color: #74561f;
}

.purchase-guide-note.is-warning strong {
  color: #60420e;
}

.purchase-guide-step.is-complete {
  border-color: rgba(24, 183, 133, 0.3);
  background:
    radial-gradient(circle at 90% 5%, rgba(24, 183, 133, 0.11), transparent 28%),
    #ffffff;
}

.purchase-guide-step.is-complete .purchase-guide-step-number {
  background: linear-gradient(135deg, #12a778 0%, #20c995 100%);
  box-shadow: 0 10px 24px rgba(18, 167, 120, 0.2);
}

.purchase-guide-faq {
  scroll-margin-top: 24px;
}

.purchase-guide-faq > h2 {
  margin-bottom: 18px;
  color: var(--blue-ink);
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.purchase-guide-faq .faq-list {
  border-top-color: rgba(216, 208, 255, 0.95);
}

.purchase-guide-faq .faq-list details {
  border-bottom-color: rgba(216, 208, 255, 0.95);
}

.purchase-guide-faq .faq-list summary {
  color: var(--blue-ink);
  line-height: 1.45;
}

.purchase-guide-faq .faq-list p {
  margin: 0;
  line-height: 1.65;
}

.purchase-guide-side {
  position: sticky;
  top: 18px;
}

.purchase-guide-nav,
.purchase-guide-side-note {
  padding: 20px;
}

.purchase-guide-nav {
  display: grid;
  gap: 7px;
}

.purchase-guide-nav h2 {
  margin-bottom: 8px;
  color: var(--blue-ink);
  font-size: 1.12rem;
}

.purchase-guide-nav a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  color: #405a70;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 7px 9px;
  text-decoration: none;
}

.purchase-guide-nav a:hover,
.purchase-guide-nav a:focus-visible {
  background: #f5f2ff;
  color: var(--blue-dark);
}

.purchase-guide-nav a span {
  color: #796bb1;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.purchase-guide-side-note {
  display: grid;
  gap: 10px;
  border-color: rgba(24, 183, 133, 0.24);
  background: #f0fff9;
}

.purchase-guide-side-note strong {
  color: #0d5d46;
  font-size: 1rem;
}

.purchase-guide-side-note p {
  margin: 0;
  color: #3f6d61;
  font-size: 0.88rem;
}

.purchase-guide-side-note a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #18b785;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
}

@media (max-width: 980px) {
  .purchase-guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-guide-side {
    position: static;
    order: -1;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  }

  .purchase-guide-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .purchase-guide-nav h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .purchase-guide-hero {
    padding-bottom: 48px;
  }

  .purchase-guide-section {
    padding-top: 44px;
  }

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

  .purchase-guide-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .purchase-guide-nav a {
    grid-template-columns: 32px minmax(0, 1fr);
    font-size: 0.82rem;
    padding-inline: 7px;
  }

  .purchase-guide-intro,
  .purchase-guide-step,
  .purchase-guide-faq {
    border-radius: 16px;
    padding: 22px 18px;
  }

  .purchase-guide-intro h2,
  .purchase-guide-step h2,
  .purchase-guide-faq h2,
  .purchase-guide-nav h2 {
    width: auto;
    margin-inline: 0;
    text-align: left;
  }

  .purchase-guide-intro > .purchase-guide-example {
    border-radius: 10px;
    padding: 11px 12px;
  }

  .purchase-guide-step-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .purchase-guide-step-number {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1rem;
  }

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

  .purchase-guide-figure img {
    border-radius: 12px;
  }

}

@media (max-width: 420px) {
  .purchase-guide-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-guide-step-head {
    align-items: start;
  }
}
