/* Current app walkthrough: phone screens and their matching explanations. */
.walk.phone-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 670px;
  padding: clamp(28px, 4vw, 56px);
  margin: 40px 0 72px;
  border-radius: 36px;
  background: #f7f0ff;
  overflow: hidden;
}

.walk.phone-feature[data-phone-carousel="analysis"] { background: #f2f8df; }
.phone-feature .walk-media,
.phone-feature .walk-copy { flex: none; width: 100%; min-width: 0; margin: 0; }
.phone-feature .walk-media { min-height: 540px; align-self: center; }
.phone-gallery {
  position: relative;
  width: 100%;
  height: 540px;
  isolation: isolate;
  outline: none;
  touch-action: pan-y;
}
.phone-gallery::before {
  content: "";
  position: absolute;
  left: 50%; top: 48%;
  width: min(500px, 90%); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(200, 145, 255, .24);
}
[data-phone-carousel="analysis"] .phone-gallery::before { background: rgba(203, 237, 125, .38); }
.phone-gallery:focus-visible { outline: 3px solid #6a2393; outline-offset: 8px; border-radius: 18px; }
.phone-slide {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(213px, 22vw, 250px);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(42px) scale(.72);
  transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .4s ease, filter .5s ease;
  will-change: transform;
}
.phone-slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.phone-slide.is-prev {
  z-index: 1;
  opacity: .83;
  filter: saturate(.75);
  transform: translateX(calc(-50% - 138px)) translateY(42px) scale(.78) rotate(-9deg);
}
.phone-slide.is-next {
  z-index: 2;
  opacity: .9;
  filter: saturate(.82);
  transform: translateX(calc(-50% + 138px)) translateY(42px) scale(.78) rotate(9deg);
}
.phone-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  padding: 6px;
  border: 2px solid #29222d;
  border-radius: 36px;
  background: #29222d;
  box-shadow: 0 23px 48px rgba(54, 29, 76, .22), 0 4px 12px rgba(54, 29, 76, .14);
  overflow: hidden;
}
.phone-shell::after {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  width: 26%; height: 13px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #29222d;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.phone-shell img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 28px;
}
.phone-feature .walk-copy { position: relative; z-index: 4; }
.phone-feature-eyebrow {
  margin: 0 0 18px;
  color: #632889;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.phone-feature .walk-copy h2 {
  max-width: 520px;
  margin: 0 0 30px;
  color: #772ba5;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.08;
}
.phone-copy-panel { min-height: 174px; }
.phone-copy-slide[hidden] { display: none; }
.phone-step-count {
  display: inline-block;
  margin-bottom: 14px;
  color: #6e368c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
}
.phone-copy-slide h3 {
  margin: 0 0 12px;
  color: #2f143f;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.16;
  font-weight: 650;
}
.phone-copy-slide p {
  max-width: 43ch;
  margin: 0;
  color: #493c50;
  font-size: 16px;
  line-height: 1.58;
}
.phone-carousel-controls { display: flex; align-items: center; gap: 24px; margin: 25px 0 30px; }
.phone-feature .walk-nav button {
  width: 46px; height: 46px;
  background: #fff;
  color: #48215d;
  border: 1px solid rgba(72, 33, 93, .16);
  font-size: 21px;
  transition: transform .2s ease, background .2s ease;
}
.phone-feature .walk-nav button:hover { background: #e5ff9d; transform: translateY(-2px); }
.phone-dots { display: flex; align-items: center; gap: 9px; }
.phone-dots button {
  width: 11px; height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b5a9bd;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.phone-dots button.is-active { width: 25px; border-radius: 20px; background: #742aa1; }
.phone-feature :is(button, a):focus-visible { outline: 3px solid #6a2393; outline-offset: 4px; }
.phone-feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 51px;
  padding: 12px 21px;
  border-radius: 999px;
  background: #dcfb94;
  color: #2f143f;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.phone-feature-link:hover { background: #c5f06c; color: #2f143f; transform: translateY(-2px); }

@media (max-width: 900px) {
  .walk.phone-feature { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 24px; }
  .phone-feature .walk-media { min-height: 540px; }
  .phone-feature .walk-copy { max-width: 610px; justify-self: center; }
  .phone-copy-panel { min-height: 150px; }
}
@media (max-width: 600px) {
  .walk.phone-feature { padding: 26px 18px 34px; margin: 28px 0 42px; border-radius: 26px; }
  .phone-feature .walk-media { min-height: 440px; }
  .phone-gallery { height: 440px; }
  .phone-gallery::before { width: min(380px, 105%); }
  .phone-slide { width: clamp(181px, 52vw, 220px); }
  .phone-slide.is-prev { transform: translateX(calc(-50% - 111px)) translateY(33px) scale(.76) rotate(-9deg); }
  .phone-slide.is-next { transform: translateX(calc(-50% + 111px)) translateY(33px) scale(.76) rotate(9deg); }
  .phone-feature-eyebrow { margin-bottom: 12px; }
  .phone-feature .walk-copy h2 { margin-bottom: 22px; font-size: 37px; }
  .phone-copy-panel { min-height: 176px; }
  .phone-copy-slide h3 { font-size: 25px; }
  .phone-copy-slide p { font-size: 15px; }
  .phone-carousel-controls { margin: 22px 0 26px; }
}
@media (max-width: 600px) {
  .phone-carousel-controls { flex-wrap: wrap; gap: 4px 14px; }
  .phone-dots { gap: 0; }
  .phone-dots button,
  .phone-dots button.is-active {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 50%;
  }
  .phone-dots button::after {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #b5a9bd;
  }
  .phone-dots button.is-active::after {
    width: 25px;
    border-radius: 20px;
    background: #742aa1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-slide, .phone-dots button, .phone-feature-link, .phone-feature .walk-nav button { transition: none; }
}
