.psd-wrapper {
  position: relative;
  height: 300vh;
  background: #0d0d0d;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
}

.psd-pin {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.psd-stage {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

/* ---------- phone mockup ---------- */
.psd-phone {
  --phone-bezel: 13px;
  --phone-radius: 50px;
  --phone-screen-radius: calc(var(--phone-radius) - var(--phone-bezel));

  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: var(--phone-radius);
  border-top-left-radius: var(--phone-radius);
  border-top-right-radius: var(--phone-radius);
  border-bottom-left-radius: var(--phone-radius);
  border-bottom-right-radius: var(--phone-radius);
  background:
    linear-gradient(
      155deg,
      #6b6459 0%,
      #3a352e 18%,
      #17150f 45%,
      #0a0908 55%,
      #17150f 68%,
      #3a352e 88%,
      #6b6459 100%
    );
  box-shadow:
    0 45px 90px -30px rgba(20, 17, 15, 0.55),
    0 14px 34px -10px rgba(20, 17, 15, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 3px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.psd-phone::before {
  content: "";
  position: absolute;
  top: calc(var(--phone-bezel) + 9px);
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.psd-phone::after {
  content: "";
  position: absolute;
  top: calc(var(--phone-bezel) + 9px + 6px);
  left: calc(50% + 6.5%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14110f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  z-index: 6;
}

.psd-statusbar {
  position: absolute;
  top: calc(var(--phone-bezel) + 8px);
  left: calc(var(--phone-bezel) + 16px);
  right: calc(var(--phone-bezel) + 16px);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, "SF Pro Text", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #14110f;
  z-index: 4;
  pointer-events: none;
}

.psd-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #14110f;
}

.psd-status-icons svg {
  display: block;
}

.psd-home-indicator {
  position: absolute;
  bottom: calc(var(--phone-bezel) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 3px;
  background: rgba(20, 17, 15, 0.35);
  z-index: 4;
  pointer-events: none;
}

.psd-btn {
  position: absolute;
  background: #100e0c;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.psd-btn-action {
  left: -3px;
  top: 22%;
  width: 3px;
  height: 26px;
}

.psd-btn-vol-up {
  left: -3px;
  top: 30%;
  width: 3px;
  height: 46px;
}

.psd-btn-vol-down {
  left: -3px;
  top: 42%;
  width: 3px;
  height: 46px;
}

.psd-btn-power {
  right: -3px;
  top: 32%;
  width: 3px;
  height: 68px;
}

.psd-screen {
  --screen-margin: 6px;

  position: absolute;
  inset: var(--phone-bezel);
  border-radius: var(--phone-screen-radius);
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.25);
}

.psd-screen picture {
  position: absolute;
  inset: 0;
  display: block;
}

.psd-screen img {
  position: absolute;
  inset: var(--screen-margin);
  width: calc(100% - (var(--screen-margin) * 2));
  height: calc(100% - (var(--screen-margin) * 2));
  border-radius: calc(var(--phone-screen-radius) - var(--screen-margin));
  overflow: hidden;
  object-fit: contain;
  object-position: center center;
}

.psd-screen picture:not(:first-child) img {
  opacity: 0;
}

/* Step 1 has a wider source image; crop it to the phone screen so it reaches the edges. */
.psd-screen picture:first-child img {
  object-fit: cover;
  object-position: center 3%;
}

/* ---------- copy block ---------- */
.psd-copy-col {
  display: flex;
  flex-direction: column;
}

.psd-copy {
  position: relative;
  min-height: 120px;
}

.psd-copy-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.psd-copy-step:not(:first-child) {
  opacity: 0;
}

.psd-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
  font-weight: 500;
}

.psd-headline {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.psd-subtext {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 420px;
  margin: 0;
}

.psd-dots {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.psd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}

.psd-dot.is-active {
  background: #14110f;
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .psd-stage {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .psd-phone {
    max-width: 280px;
  }

  .psd-pin {
    align-items: flex-start;
  }

  .psd-statusbar {
    left: calc(var(--phone-bezel) + 10px);
    right: calc(var(--phone-bezel) + 10px);
  }

  .psd-status-icons {
    gap: 3px;
    transform: scale(0.85);
    transform-origin: right center;
  }

  .psd-copy {
    min-height: 90px;
  }

  .psd-copy-step {
    align-items: center;
  }

  .psd-subtext {
    max-width: none;
  }

  .psd-dots {
    justify-content: center;
  }
}
