/* Scroll explains the real screen; no click-through or fabricated app states. */
.hero-prog {
  display: none !important;
}
.scene-2 .town {
  left: 60%;
  bottom: -7%;
  width: min(1050px, 82vw);
  opacity: 0.9;
  animation: none;
}
.hero .km-speech {
  right: 50%;
  bottom: -58px;
  transform: translateX(50%);
  font-size: 12px;
}
.hero .km-speech.show {
  transform: translateX(50%);
}
.hero .km-wrap {
  will-change: width, right, bottom;
}
.text-link span,
.pages a span {
  font-size: 20px;
}
.portrait {
  aspect-ratio: 1;
  background: #e9ecef;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.portrait img {
  height: 130%;
  width: auto;
  max-width: none;
  object-fit: contain;
  margin-top: 4%;
}
.badge.b2 .portrait img {
  height: 132%;
}
.walkthrough {
  height: 260svh;
  position: relative;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.walk-pin {
  position: sticky;
  top: 90px;
  min-height: 0;
  height: calc(100svh - 104px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
  padding: 20px 0;
}
.walk-copy h3 {
  font: 900 clamp(32px, 4vw, 56px)/1.45 var(--display);
  margin: 26px 0;
}
.walk-copy .product-lead {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}
.walk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.walk-steps li {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  color: #687176;
  transition: color 200ms var(--ease-out);
}
.walk-steps h4 {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}
.walk-steps p {
  font-size: 13px;
  line-height: 1.8;
  margin: 7px 0 0;
  max-width: 30em;
  opacity: 0.42;
  transition: opacity 200ms var(--ease-out);
}
.walk-steps li.active {
  color: var(--ink);
}
.walk-steps li.active p {
  opacity: 1;
}
.step-dot {
  margin-top: 8px;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.active .step-dot {
  background: #a84d46;
  box-shadow: 0 0 0 5px #e8837c22;
}
.walk-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.device-shell {
  position: relative;
  width: min(300px, calc((100svh - 205px) * 0.447));
  aspect-ratio: 402/900;
  padding: 6px;
  background: linear-gradient(
    120deg,
    #aaa9a5,
    #3c3d3d 18%,
    #d2d1ce 50%,
    #525454 80%,
    #a3a3a1
  );
  border-radius: 46px;
  box-shadow:
    0 0 0 1px #777,
    0 30px 50px #22272a25,
    0 8px 12px #22272a15;
  isolation: isolate;
}
.device-shell::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 22%;
  width: 3px;
  height: 12%;
  background: #838582;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 -25px 0 -1px #838582;
}
.device-shell::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 28%;
  width: 3px;
  height: 10%;
  background: #838582;
  border-radius: 0 3px 3px 0;
}
.device-display {
  position: relative;
  border: 4px solid #111;
  border-radius: 40px;
  background: #f7f5fc;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.os-status {
  height: 38px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  font: 600 11px/1 system-ui;
  color: #17171b;
  position: relative;
}
.os-status > i {
  position: absolute;
  width: 30%;
  height: 20px;
  border-radius: 20px;
  background: #070707;
  left: 35%;
  top: 7px;
}
.os-status > i::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1b2132;
  right: 7px;
  top: 7px;
}
.os-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 9px;
  letter-spacing: -2px;
}
.os-icons b {
  width: 15px;
  height: 8px;
  background: #17171b;
  border-radius: 2px;
  outline: 1px solid #17171b;
  outline-offset: 1px;
  margin-left: 1px;
  position: relative;
}
.os-icons b::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  height: 4px;
  width: 2px;
  background: #17171b;
}
.app-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.app-viewport > img {
  position: absolute;
  top: -4px;
  left: -5px;
  width: calc(100% + 10px);
  max-width: none;
  height: calc(100% + 16px);
  object-fit: fill;
}
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 34%;
  width: 32%;
  height: 4px;
  border-radius: 4px;
  background: #17171b;
  z-index: 3;
}
.walk-focus {
  position: absolute;
  left: 6%;
  top: 57%;
  width: 88%;
  height: 12%;
  border: 2px solid #b24f46;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #fff8;
  pointer-events: none;
  transition:
    transform 280ms var(--ease-out),
    height 280ms var(--ease-out);
  will-change: transform;
}
.device-caption {
  text-align: center;
}
.device-caption .zoom-screen {
  margin: 16px auto 0;
}
.device-caption small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 9px;
}
.walk-copy .eyebrow > span {
  font-size: 16px;
}
.walk-copy .eyebrow {
  font-size: 11px;
}
.walkthrough:last-child {
  margin-bottom: 80px;
}
@media (max-width: 960px) {
  .scene-2 .town {
    left: 62%;
    bottom: 3%;
    width: 135vw;
  }
  .walk-pin {
    gap: 6%;
  }
  .walk-copy h3 {
    font-size: 34px;
  }
  .walk-steps p {
    font-size: 12px;
  }
  .device-shell {
    width: min(270px, calc((100svh - 200px) * 0.447));
  }
}
@media (max-width: 700px) {
  .hero .km-speech {
    font-size: 10px;
    padding: 8px 10px;
    bottom: -44px;
  }
  .walkthrough {
    height: 240svh;
  }
  .walk-pin {
    top: 80px;
    height: calc(100svh - 90px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }
  .walk-copy {
    display: contents;
  }
  .walk-copy .eyebrow,
  .walk-copy .product-lead {
    display: none;
  }
  .walk-copy h3 {
    order: 0;
    font-size: 26px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
  }
  .walk-copy h3 br {
    display: none;
  }
  .walk-device {
    order: 1;
    align-self: center;
    min-height: 0;
  }
  .device-shell {
    width: min(205px, calc((100svh - 280px) * 0.447));
    border-radius: 34px;
    padding: 4px;
  }
  .device-display {
    border-radius: 29px;
    border-width: 3px;
  }
  .os-status {
    height: 27px;
    padding: 0 10px;
    font-size: 8px;
  }
  .os-status > i {
    height: 16px;
    top: 4px;
  }
  .os-status > i::after {
    top: 5px;
    right: 5px;
    width: 4px;
    height: 4px;
  }
  .os-icons {
    font-size: 7px;
    gap: 3px;
  }
  .os-icons svg {
    width: 10px;
  }
  .os-icons b {
    width: 11px;
    height: 6px;
  }
  .device-caption small {
    font-size: 8px;
  }
  .device-caption .zoom-screen {
    font-size: 10px;
    margin-top: 8px;
    padding: 3px 0;
    gap: 20px;
  }
  .walk-steps {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 0;
    gap: 10px;
    position: relative;
    min-height: 95px;
    padding-bottom: 44px;
  }
  .walk-steps li {
    padding: 8px 0;
    gap: 6px;
    border-bottom: 2px solid var(--line);
    display: block;
  }
  .walk-steps li.active {
    border-color: #a84d46;
  }
  .step-dot {
    display: none;
  }
  .walk-steps h4 {
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
  }
  .walk-steps p {
    display: none;
  }
  .walk-steps .active p {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    margin: 0;
    font-size: 12px;
    max-width: none;
  }
  .walkthrough:last-child {
    margin-bottom: 50px;
  }
  .walk-focus {
    border-radius: 8px;
  }
  .portrait img {
    height: 132%;
  }
  .badge-detail {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .walkthrough {
    height: auto;
  }
  .walk-pin {
    position: relative;
    top: auto;
    height: auto;
    padding: 50px 0;
    gap: 24px;
  }
  .walk-focus {
    display: none;
  }
  .walk-steps p {
    opacity: 1;
  }
  .walk-steps li {
    color: var(--ink);
  }
  .walk-steps li.active {
    border-color: var(--line);
  }
  .walk-steps .step-dot {
    background: var(--line);
    box-shadow: none;
  }
  .hero .km-wrap {
    will-change: auto;
  }
  .walk-steps li,
  .walk-steps p {
    transition: none;
  }
}

/* Remove the preview capture's outer frame from the device viewport. */
.app-viewport > img {
  left: -7px;
  width: calc(100% + 14px);
  top: -6px;
  height: calc(100% + 16px);
}
.app-viewport::before,
.app-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15px;
  height: 12px;
  background: #f7f5fc;
  z-index: 2;
  pointer-events: none;
}
.app-viewport::before {
  left: 0;
}
.app-viewport::after {
  right: 0;
}
.home-indicator {
  display: none;
}
.walk-steps p {
  opacity: 0.75;
}
.walk-steps li.active p {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .walk-pin {
    display: flex;
    flex-direction: column;
  }
  .walk-copy {
    display: contents;
  }
  .walk-copy h3 {
    order: 0;
  }
  .walk-device {
    order: 1;
  }
  .walk-steps {
    order: 2;
    display: block;
    min-height: 0;
    width: 100%;
    padding: 0;
  }
  .walk-steps li {
    display: block;
    padding: 16px 0;
  }
  .walk-steps p,
  .walk-steps .active p {
    display: block;
    position: static;
    margin-top: 8px;
    opacity: 1;
  }
  .device-shell {
    width: 205px;
  }
  .walk-steps h4 {
    font-size: 14px;
  }
  .walk-steps li.active {
    border-color: var(--line);
  }
}

@media (max-width: 700px) {
  .device-shell {
    width: min(205px, calc((100svh - 370px) * 0.447));
  }
  .walk-copy h3 {
    font-size: 24px;
    text-wrap: balance;
  }
  .walk-steps h4 {
    font-size: 10px;
  }
  .device-caption small {
    margin-top: 5px;
    line-height: 1.5;
  }
  .walk-device {
    padding: 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .device-shell {
    width: 205px;
  }
}
