.install-page {
  padding: 112px 18px 80px;
}

.install-guide {
  width: min(1040px, 100%);
  max-width: 1040px;
  margin: 0 auto;
}

.guide-hero {
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background:
    radial-gradient(560px 320px at 90% 0, rgba(0, 47, 167, .24), transparent 70%),
    #0b0b0d;
}

.guide-eyebrow,
.step-title p {
  margin: 0;
  color: #7997e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.guide-hero h1 {
  max-width: 760px;
  margin: 14px 0 0;
  color: #f7f7f8;
  font-family: var(--display);
  font-size: clamp(46px, 8vw, 84px);
  letter-spacing: -.06em;
  line-height: 1;
  text-wrap: balance;
}

.guide-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: #a3a3aa;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.guide-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #c5c5ca;
  font-size: 11px;
}

.guide-note {
  margin: 20px 0 0;
  color: #d5b06a;
  font-size: 12px;
  line-height: 1.6;
}

.install-step {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  margin-top: 20px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: #0b0b0d;
}

.step-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-title > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #002fa7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.step-title h2 {
  margin: 5px 0 0;
  color: #f1f1f3;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.04em;
  text-wrap: balance;
  word-break: keep-all;
}

.step-copy > p {
  margin: 24px 0 0;
  color: #999aa2;
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 20px;
  border-radius: 999px;
  background: #002fa7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: #161618;
  color: #e8e8ea;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.demo-card {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: #070708;
}

.demo-label {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 47, 167, .9);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.demo-card figcaption {
  padding: 14px 4px 2px;
  color: #777982;
  font-size: 11px;
  line-height: 1.6;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.real-demo-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.real-demo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.demo-replay {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(5, 5, 7, .78);
  color: #e7e7ea;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.demo-pointer,
.demo-target,
.demo-action {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.demo-pointer {
  left: var(--from-x);
  top: var(--from-y);
  width: clamp(16px, 2vw, 24px);
  height: clamp(20px, 2.6vw, 30px);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .7));
}

.demo-pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 84% 67%, 52% 70%, 68% 100%, 49% 100%, 34% 72%, 12% 94%);
}

.demo-pointer::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid #7da2ff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
}

.demo-target {
  left: var(--target-left);
  top: var(--target-top);
  width: var(--target-width);
  height: var(--target-height);
  border: 2px solid #6d94ff;
  border-radius: 12px;
  background: rgba(0, 47, 167, .08);
  box-shadow: 0 0 0 5px rgba(0, 47, 167, .13);
}

.demo-action {
  left: 50%;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border: 1px solid rgba(125, 162, 255, .35);
  border-radius: 999px;
  background: rgba(3, 8, 20, .88);
  color: #dbe5ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(8px);
}

[data-motion] {
  --from-x: 12%;
  --from-y: 18%;
  --to-x: 60%;
  --to-y: 58%;
  --target-left: 52%;
  --target-top: 50%;
  --target-width: 22%;
  --target-height: 18%;
}

[data-motion="download"] {
  --from-x: 18%;
  --from-y: 22%;
  --to-x: 60%;
  --to-y: 65%;
  --target-left: 54%;
  --target-top: 59%;
  --target-width: 20%;
  --target-height: 16%;
}

[data-motion="drag-mac"] {
  --from-x: 42%;
  --from-y: 43%;
  --to-x: 70%;
  --to-y: 43%;
  --target-left: 61%;
  --target-top: 29%;
  --target-width: 24%;
  --target-height: 32%;
}

[data-motion="windows-install"] {
  --from-x: 55%;
  --from-y: 24%;
  --to-x: 20%;
  --to-y: 58%;
  --target-left: 9%;
  --target-top: 52%;
  --target-width: 25%;
  --target-height: 14%;
}

[data-motion="find-app"] {
  --from-x: 70%;
  --from-y: 65%;
  --to-x: 41%;
  --to-y: 39%;
  --target-left: 34%;
  --target-top: 29%;
  --target-width: 15%;
  --target-height: 23%;
}

[data-motion="chat-input"] {
  --from-x: 76%;
  --from-y: 24%;
  --to-x: 60%;
  --to-y: 54%;
  --target-left: 30%;
  --target-top: 46%;
  --target-width: 61%;
  --target-height: 15%;
}

[data-motion="mobile-qr"] {
  --from-x: 58%;
  --from-y: 20%;
  --to-x: 25%;
  --to-y: 71%;
  --target-left: 9%;
  --target-top: 56%;
  --target-width: 30%;
  --target-height: 34%;
}

[data-motion="ios-store"] {
  --from-x: 72%;
  --from-y: 48%;
  --to-x: 46%;
  --to-y: 27%;
  --target-left: 38%;
  --target-top: 18%;
  --target-width: 22%;
  --target-height: 17%;
}

[data-motion="android-store"] {
  --from-x: 72%;
  --from-y: 48%;
  --to-x: 17%;
  --to-y: 53%;
  --target-left: 6%;
  --target-top: 45%;
  --target-width: 24%;
  --target-height: 15%;
}

[data-motion="mobile-chat"] {
  --from-x: 72%;
  --from-y: 18%;
  --to-x: 53%;
  --to-y: 44%;
  --target-left: 35%;
  --target-top: 34%;
  --target-width: 35%;
  --target-height: 23%;
}

.motion-demo.is-playing [data-motion] .real-demo-image {
  animation: demo-image-focus 4.2s ease both;
}

.motion-demo.is-playing [data-motion] .demo-pointer {
  animation: demo-pointer-track 4.2s ease both;
}

.motion-demo.is-playing [data-motion] .demo-pointer::after {
  animation: demo-click-ripple 4.2s ease both;
}

.motion-demo.is-playing [data-motion] .demo-target {
  animation: demo-target-pulse 4.2s ease both;
}

.motion-demo.is-playing [data-motion] .demo-action {
  animation: demo-action-show 4.2s ease both;
}

@keyframes demo-pointer-track {
  0%, 8% {
    left: var(--from-x);
    top: var(--from-y);
    opacity: 0;
  }
  16% {
    left: var(--from-x);
    top: var(--from-y);
    opacity: 1;
  }
  54%, 82% {
    left: var(--to-x);
    top: var(--to-y);
    opacity: 1;
  }
  100% {
    left: var(--to-x);
    top: var(--to-y);
    opacity: 0;
  }
}

@keyframes demo-click-ripple {
  0%, 54% {
    transform: translate(-50%, -50%) scale(.3);
    opacity: 0;
  }
  62% {
    transform: translate(-50%, -50%) scale(2.1);
    opacity: .95;
  }
  72%, 100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes demo-target-pulse {
  0%, 46% {
    opacity: 0;
    transform: scale(.94);
  }
  58%, 80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes demo-action-show {
  0%, 52% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  64%, 86% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -3px);
  }
}

@keyframes demo-image-focus {
  0%, 25% {
    filter: brightness(.9);
    transform: scale(1);
  }
  58%, 84% {
    filter: brightness(1);
    transform: scale(1.018);
  }
  100% {
    filter: brightness(.94);
    transform: scale(1);
  }
}

.real-demo-frame--finder .real-demo-image {
  object-position: center 28%;
}

.real-demo-frame--mobile-download {
  aspect-ratio: 1200 / 650;
}

.real-demo-frame--mobile-ui {
  aspect-ratio: 16 / 9;
}

.real-demo-frame--mobile-ui .real-demo-image {
  object-fit: contain;
}

.mobile-guide-intro {
  margin-top: 44px;
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid rgba(0, 47, 167, .42);
  border-radius: 20px;
  background: radial-gradient(480px 220px at 100% 0, rgba(0, 47, 167, .22), transparent 72%), #0b0b0d;
}

.mobile-guide-intro h2 {
  margin: 10px 0 0;
  color: #f3f3f5;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.mobile-guide-intro > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #999aa2;
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.mobile-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mobile-store-actions .primary-action {
  margin-top: 0;
}

.account-sync-note {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(91, 137, 255, .38);
  border-radius: 12px;
  background: rgba(0, 47, 167, .16);
}

.account-sync-note b,
.account-sync-note span {
  display: block;
}

.account-sync-note b {
  color: #d7e3ff;
  font-size: 13px;
}

.account-sync-note span {
  margin-top: 6px;
  color: #aebddd;
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.store-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-demo-grid > div {
  min-width: 0;
}

.store-demo-grid span {
  display: block;
  padding: 8px 2px 0;
  color: #8b8c94;
  font-size: 10px;
  text-align: center;
}

.system-copy {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.system-copy article {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: #101012;
}

.system-copy b,
.system-copy span {
  display: block;
}

.system-copy b {
  color: #e5e5e8;
  font-size: 13px;
}

.system-copy span {
  margin-top: 5px;
  color: #85868d;
  font-size: 12px;
  line-height: 1.6;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.test-copy {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.test-copy code {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  background: #101012;
  color: #d8e3ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.test-copy button {
  justify-self: start;
  padding: 9px 13px;
  border: 1px solid rgba(91, 137, 255, .35);
  border-radius: 999px;
  background: rgba(0, 47, 167, .16);
  color: #afc8ff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.test-copy button.copied {
  border-color: #002fa7;
  background: #002fa7;
  color: #fff;
}

.install-done {
  margin-top: 20px;
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid rgba(0, 47, 167, .42);
  border-radius: 20px;
  background: radial-gradient(480px 220px at 100% 0, rgba(0, 47, 167, .22), transparent 72%), #0b0b0d;
}

.install-done span {
  color: #7997e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.install-done h2 {
  margin: 9px 0 7px;
  color: #f3f3f5;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.install-done p {
  margin: 0;
  color: #85868d;
  font-size: 13px;
  line-height: 1.7;
}

@media (hover: hover) {
  .primary-action:hover,
  .secondary-action:hover,
  .demo-replay:hover,
  .test-copy button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 800px) {
  .install-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .install-page {
    padding: 92px 14px 64px;
  }

  .guide-hero {
    padding: 34px 24px;
  }

  .guide-hero h1 {
    font-size: 44px;
  }

  .install-step {
    padding: 26px 20px;
  }

  .demo-label {
    top: 22px;
    right: 22px;
  }

  .demo-replay {
    top: 22px;
    left: 22px;
  }

  .store-demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action,
  .secondary-action,
  .demo-replay,
  .test-copy button {
    transition: none;
  }

  .demo-replay {
    display: none;
  }

  .motion-demo.is-playing [data-motion] .real-demo-image,
  .motion-demo.is-playing [data-motion] .demo-pointer,
  .motion-demo.is-playing [data-motion] .demo-pointer::after,
  .motion-demo.is-playing [data-motion] .demo-target,
  .motion-demo.is-playing [data-motion] .demo-action {
    animation: none;
  }
}

.install-platform-section {
  margin-top: 20px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background:
    radial-gradient(620px 300px at 100% 0, rgba(0, 47, 167, .12), transparent 72%),
    #0b0b0d;
}

.install-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.install-section-head h2 {
  margin: 8px 0 0;
  color: #f3f3f5;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -.05em;
  line-height: 1.06;
  text-wrap: balance;
}

.install-section-head > div > p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: #96979f;
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.install-section-head .primary-action {
  flex: none;
  margin-top: 0;
}

.install-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.install-video-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 24, 27, .96), rgba(8, 8, 10, .98));
}

.install-video-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.install-video-title > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #002fa7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.install-video-title p {
  margin: 0 0 2px;
  color: #7997e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.install-video-title h3 {
  margin: 0;
  color: #f4f4f6;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -.03em;
}

.install-video-card > p {
  min-height: 48px;
  margin: 16px 0;
  color: #92939b;
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.install-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: #000;
  object-fit: cover;
}

.install-section-head .mobile-store-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
}

.install-section-head .mobile-store-actions a {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .install-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .install-video-grid {
    grid-template-columns: 1fr;
  }

  .install-section-head .mobile-store-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .install-platform-section {
    padding: 26px 18px;
  }

  .install-video-card {
    padding: 14px;
  }

  .install-video-card > p {
    min-height: 0;
  }

  .install-section-head .primary-action,
  .install-section-head .secondary-action {
    width: 100%;
  }
}
