.stg-how__grid {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.stg-how .stg-lede {
  margin: 16px 0 0;
}

.stg-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.stg-steps__item {
  margin: 0 !important;
  list-style: none !important;
}

.stg-step--t0 {
  --soft: #fff4f6;
  --on: #fde4e7;
  --c: #ee4f66;
  --c2: #f57e8d;
  --ink: #b8324a;
  --rgb: 238, 79, 102;
  --track: #f8cbd2;
}

.stg-step--t1 {
  --soft: #fff7ec;
  --on: #fcebd5;
  --c: #e58a1f;
  --c2: #f0a84a;
  --ink: #8a4e06;
  --rgb: 229, 138, 31;
  --track: #f6d9b2;
}

.stg-step--t2 {
  --soft: #f0faf6;
  --on: #dcf3ec;
  --c: #1f7a66;
  --c2: #2fa383;
  --ink: #155c4b;
  --rgb: 31, 122, 102;
  --track: #bfe6d8;
}

body.theme-dark .stg-step--t0,
body.theme-dark .stg-step--t1,
body.theme-dark .stg-step--t2 {
  --soft: rgba(var(--rgb), 0.06);
  --on: rgba(var(--rgb), 0.16);
  --track: rgba(var(--rgb), 0.28);
}

body.theme-dark .stg-step--t0 {
  --ink: #ff9aa9;
}

body.theme-dark .stg-step--t1 {
  --ink: #fbc97a;
}

body.theme-dark .stg-step--t2 {
  --ink: #6fe0c8;
}

.stg-how .stg-step {
  position: relative;
  z-index: 5;
  display: flex !important;
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--soft) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb), 0.12) !important;
  color: var(--stg-ink) !important;
  font-family: 'Be Vietnam Pro', sans-serif;
  text-align: start !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: normal !important;
  white-space: normal !important;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.stg-how .stg-step:hover {
  transform: translateX(4px);
}

.stg-how .stg-step:focus-visible {
  outline: 3px solid rgba(var(--rgb), 0.45) !important;
  outline-offset: 2px;
}

.stg-how .stg-step.is-active {
  background: var(--on) !important;
  box-shadow:
    0 24px 46px -30px rgba(var(--rgb), 0.75),
    inset 0 0 0 1.5px rgba(var(--rgb), 0.35) !important;
}

.stg-step__dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--on);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: box-shadow 0.3s ease;
}

.stg-step.is-active .stg-step__dot {
  background: linear-gradient(135deg, var(--c), var(--c2));
  color: #ffffff !important;
  box-shadow: 0 10px 18px -8px rgba(var(--rgb), 0.8);
}

.stg-step__copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.stg-step__title {
  display: block;
  margin-top: 8px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--stg-ink);
}

.stg-step.is-active .stg-step__title {
  color: var(--ink);
}

.stg-step__text {
  display: block;
  max-height: 0;
  margin-top: 6px;
  overflow: hidden;
  opacity: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--stg-muted);
  transition: none;
}

.stg-step.is-active .stg-step__text {
  max-height: 240px;
  opacity: 1;
  transition:
    max-height 0.4s ease,
    opacity 0.25s ease 0.1s;
}

.stg-step__bar {
  display: none;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}

.stg-step.is-active .stg-step__bar {
  display: block;
}

.stg-step__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c), var(--c2));
}

.stg-step.is-active .stg-step__bar i.is-run {
  animation: stg-prog 4.5s linear both;
}

.stg-how.is-paused .stg-step__bar i {
  animation-play-state: paused !important;
}

@keyframes stg-prog {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.stg-stage {
  --s: 1;
  position: relative;
  width: calc(670px * var(--s));
  height: calc(690px * var(--s));
}

.stg-stage__canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 670px;
  height: 690px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.stg-stage__glow {
  position: absolute;
  inset: 30px 0 40px 20px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(238, 79, 102, 0.16),
    rgba(238, 79, 102, 0.05) 60%,
    transparent
  );
}

.stg-mac {
  position: absolute;
  left: 120px;
  top: 60px;
  width: 520px;
  transform: perspective(2200px) rotateY(-14deg) rotateX(3deg);
}

.stg-mac__lid {
  position: relative;
  padding: 14px 14px 22px;
  border-radius: 20px 20px 6px 6px;
  background: #0e0e10;
  box-shadow:
    inset 0 0 0 1.5px #55585e,
    inset 0 0 0 3px #1a1b1e,
    6px 0 0 -1px #9a9da4,
    0 30px 50px -30px rgba(27, 23, 24, 0.45);
}

.stg-mac__cam {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #2a2c31;
}

.stg-mac__scr {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.stg-mac__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 14px;
  background: #f7f3f2;
}

.stg-mac__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f2b8c0;
}

.stg-mac__bar i:nth-child(2) {
  background: #f5d9a8;
}

.stg-mac__bar i:nth-child(3) {
  background: #bfe6d8;
}

.stg-mac__bar span {
  flex: 1;
  max-width: 260px;
  height: 18px;
  margin-left: 12px;
  padding-left: 10px;
  border-radius: 7px;
  background: #ffffff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 18px;
  color: #a39a9c;
  white-space: nowrap;
  overflow: hidden;
}

.stg-mac__shots {
  position: relative;
  height: 302px;
}

.stg-mac__shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stg-mac__shot.is-active {
  opacity: 1;
}

.stg-mac__shot img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top left;
}

.stg-mac__shot .stg-shot--dark {
  display: none !important;
}

body.theme-dark .stg-mac__shot .stg-shot--light {
  display: none !important;
}

body.theme-dark .stg-mac__shot .stg-shot--dark {
  display: block !important;
}

body.theme-dark .stg-mac__scr,
body.theme-dark .stg-mac__bar {
  background: #1e1d1b;
}

body.theme-dark .stg-mac__bar span {
  background: #2d2c29;
  color: #8f877c;
}

.stg-mac__brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: #55575d;
}

.stg-mac__base {
  position: relative;
  height: 18px;
  margin: 0 -44px;
  border-radius: 2px 2px 22px 22px / 2px 2px 14px 14px;
  background: linear-gradient(180deg, #f1f2f4 0%, #d7d9dd 45%, #a9acb2 100%);
  box-shadow: 0 26px 30px -18px rgba(27, 23, 24, 0.45);
}

.stg-mac__base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 96px;
  height: 7px;
  margin-left: -48px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #b9bcc2, #cfd1d5);
}

.stg-mac__base::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -6px;
  height: 6px;
  border-radius: 0 0 50% 50%;
  background: rgba(27, 23, 24, 0.12);
  filter: blur(2px);
}

.stg-stage__phone {
  position: absolute;
  right: 14px;
  top: 246px;
  z-index: 5;
}

.stg-phone {
  --phone-3d-w: 190px;
  --phone-3d-r: 35px;
}

.stg-call {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--stg-card);
  box-shadow: 0 20px 40px -20px var(--stg-shadow);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--stg-ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stg-call.is-on {
  opacity: 1;
  transform: scale(1.04);
}

.stg-call.is-done {
  opacity: 1;
  transform: scale(0.94);
}

.stg-call--0 {
  left: -24px;
  top: 34px;
}

.stg-call--1 {
  right: 150px;
  top: 170px;
}

.stg-call--2 {
  right: 150px;
  bottom: 70px;
}

.stg-call__ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.stg-call__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.stg-call__copy small {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--stg-muted);
}

@media (max-width: 1240px) {
  .stg-how__grid {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 40px;
  }
  .stg-stage {
    --s: 0.76;
    justify-self: center;
  }
}

@media (max-width: 1023px) {
  .stg-how__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .stg-how .stg-lede {
    max-width: 560px;
  }
  .stg-stage {
    --s: 1;
  }
}

@media (max-width: 759px) {
  .stg-stage {
    --s: 0.8;
  }
}

@media (max-width: 600px) {
  .stg-stage {
    --s: 0.6;
  }
  .stg-call {
    display: none;
  }
}

@media (max-width: 460px) {
  .stg-stage {
    --s: 0.52;
  }
  .stg-how .stg-step {
    padding: 14px !important;
    gap: 12px;
  }
  .stg-step__dot {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .stg-step__title {
    margin-top: 6px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .stg-stage {
    --s: 0.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stg-step__bar {
    display: none !important;
  }
}

.stg-mac__shot--flip,
.stg-phone .base-phone-3d__glass {
  perspective: 1400px;
}

.stg-mac__shot .stg-face {
  position: absolute;
  inset: 0;
  display: block;
}

.stg-how .stg-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.stg-how .stg-face--front,
.stg-how .base-phone-3d__screen.stg-face--front.is-active {
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.32s ease-out 0.32s;
}

.stg-how .stg-face--back,
.stg-how .base-phone-3d__screen.stg-face--back.is-active {
  transform: rotateY(-90deg);
  transition:
    opacity 0.5s ease,
    transform 0.32s ease-in;
}

.stg-how.is-flipped .stg-mac__shot.is-active .stg-face--front,
.stg-how.is-flipped .base-phone-3d__screen.stg-face--front.is-active {
  transform: rotateY(90deg);
  transition: transform 0.32s ease-in;
}

.stg-how.is-flipped .stg-mac__shot.is-active .stg-face--back,
.stg-how.is-flipped .base-phone-3d__screen.stg-face--back.is-active {
  transform: none;
  transition: transform 0.32s ease-out 0.32s;
}

.stg-how .stg-mac__shot {
  transition: opacity 0.16s ease;
}

.stg-how .stg-mac__shot.is-active {
  transition: opacity 0.22s ease 0.16s;
}

.stg-how .base-phone-3d__screen {
  transform: none;
  transition: opacity 0.16s ease;
}

.stg-how .base-phone-3d__screen.is-active {
  transition: opacity 0.22s ease 0.16s;
}

.stg-how .stg-face--front,
.stg-how .base-phone-3d__screen.stg-face--front.is-active {
  transition:
    opacity 0.22s ease 0.16s,
    transform 0.32s ease-out 0.32s;
}

.stg-how .stg-face--back,
.stg-how .base-phone-3d__screen.stg-face--back.is-active {
  transition:
    opacity 0.22s ease 0.16s,
    transform 0.32s ease-in;
}

.stg-how .stg-mac__shot--press .stg-face--back,
.stg-how .base-phone-3d__screen.stg-face--press.stg-face--back.is-active {
  transform: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.stg-how.is-flipped .stg-mac__shot--press.is-active .stg-face--front,
.stg-how.is-flipped
  .base-phone-3d__screen.stg-face--press.stg-face--front.is-active {
  transform: none;
  transition: none;
}

.stg-how.is-flipped .stg-mac__shot--press.is-active .stg-face--back,
.stg-how.is-flipped
  .base-phone-3d__screen.stg-face--press.stg-face--back.is-active {
  transform: none;
  opacity: 1;
  transition: opacity 0.24s ease;
}

.stg-tap {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(238, 79, 102, 0.28);
  box-shadow: 0 0 0 2px rgba(238, 79, 102, 0.75);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.stg-tap--phone {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}

.stg-how.is-pressing .stg-mac__shot.is-active .stg-tap,
.stg-how.is-pressing .stg-tap--phone.is-set {
  animation: stg-tap-press 0.6s ease-out forwards;
}

@keyframes stg-tap-press {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stg-tap {
    display: none;
  }
}

/* The device mock and hero blob bleed past the content column on purpose; clip
   the bleed at the page edge so it never adds a sideways scroll. */
html body:not([data-mobile]) main:has(> .stg-sec) {
  overflow-x: clip;
}

/* The tool card sits in an extra 16px container; on phones it lines up with the
   sections around it instead of starting 48px in. */
@media (max-width: 600px) {
  html
    body:not([data-mobile])
    main:has(> .stg-sec)
    > .st-container.st-fs-container {
    padding-inline: 0 !important;
  }
}
