.guide-page {
  --guide-accent: 22 134 85;
  --guide-accent-2: 245 197 24;
  max-width: 68rem;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  padding: clamp(0.25rem, 1vw, 0.5rem);
}

.guide-page--ipl {
  --guide-accent: 22 134 85;
  --guide-accent-2: 245 197 24;
}

.guide-page--psl {
  --guide-accent: 22 134 85;
  --guide-accent-2: 245 197 24;
}

.guide-page--withdraw {
  --guide-accent: 22 134 85;
  --guide-accent-2: 245 197 24;
}

.guide-page--bpexch {
  --guide-accent: 22 134 85;
  --guide-accent-2: 245 197 24;
}

.guide-page__intro,
.guide-page__section {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border, 214.3 31.8% 91.4%) / 0.78);
  background:
    radial-gradient(circle at 90% 8%, hsl(var(--guide-accent-2) / 0.12), transparent 28%),
    radial-gradient(circle at 4% 0%, hsl(var(--guide-accent) / 0.08), transparent 34%),
    linear-gradient(180deg, hsl(var(--card, 0 0% 100%) / 0.98), hsl(var(--card, 0 0% 100%) / 0.92));
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.guide-page__intro {
  border-radius: 1.9rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.guide-page__intro::after,
.guide-page__section::after {
  content: '';
  position: absolute;
  inset: auto -5rem -5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--guide-accent) / 0.16), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.guide-page__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--guide-accent) / 0.16);
  background: hsl(var(--guide-accent) / 0.08);
  padding: 0.42rem 0.78rem;
  color: hsl(var(--guide-accent));
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-page__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground, 222.2 84% 4.9%));
  text-wrap: balance;
}

.guide-page__lead {
  max-width: 56rem;
  margin-top: 0.95rem;
  color: hsl(var(--muted-foreground, 215.4 16.3% 46.9%));
  font-size: 1.04rem;
  line-height: 1.8;
}

.guide-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.guide-page__chips li {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border, 214.3 31.8% 91.4%) / 0.8);
  background: hsl(var(--background, 0 0% 100%) / 0.78);
  color: hsl(var(--foreground, 222.2 84% 4.9%));
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.guide-page__sections {
  display: grid;
  gap: 1rem;
}

.guide-page__section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2rem);
  border-radius: 1.8rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.guide-page__section--reverse .guide-page__content {
  order: 2;
}

.guide-page__section--reverse .guide-page__media {
  order: 1;
}

.guide-page__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
}

.guide-page__step {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--guide-accent) / 0.18);
  background: hsl(var(--guide-accent) / 0.09);
  color: hsl(var(--guide-accent));
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-page__content h3 {
  margin: 0;
  color: hsl(var(--foreground, 222.2 84% 4.9%));
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}

.guide-page__content p {
  margin: 0;
  color: hsl(var(--muted-foreground, 215.4 16.3% 46.9%));
  font-size: 1rem;
  line-height: 1.8;
}

.guide-page__bullets {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.guide-page__bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border, 214.3 31.8% 91.4%) / 0.7);
  background: hsl(var(--background, 0 0% 100%) / 0.72);
  padding: 0.8rem 0.9rem;
  color: hsl(var(--foreground, 222.2 84% 4.9%));
  line-height: 1.55;
}

.guide-page__bullet-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: hsl(var(--guide-accent) / 0.12);
  color: hsl(var(--guide-accent));
  font-size: 0.75rem;
}

.guide-page__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  margin: 0;
  border-radius: 1.4rem;
  aspect-ratio: 4 / 3;
  border: 1px solid hsl(var(--border, 214.3 31.8% 91.4%) / 0.7);
  background:
    linear-gradient(145deg, hsl(var(--guide-accent) / 0.18), hsl(var(--guide-accent-2) / 0.18)),
    hsl(var(--muted, 210 40% 96.1%));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.guide-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-page__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.4)),
    linear-gradient(135deg, hsl(var(--guide-accent) / 0.16), transparent 48%);
  pointer-events: none;
}

.guide-page__media figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .guide-page__section {
    grid-template-columns: 1fr;
  }

  .guide-page__section--reverse .guide-page__content,
  .guide-page__section--reverse .guide-page__media {
    order: initial;
  }
}

@media (max-width: 640px) {
  .guide-page__intro {
    padding: 1.15rem;
  }

  .guide-page__section {
    padding: 1rem;
  }

  .guide-page__media figcaption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
}
