/* v3 application. Figma: Application 10505:4774 (1440), mobile 11307:11207 (430). */
.v3-app {
  --ap-dash: repeating-linear-gradient(180deg, var(--v3-gray-400) 0 3px, transparent 3px 5px);
  position: relative;
  background: var(--v3-dark);
  color: var(--v3-white);
  overflow: clip;
  isolation: isolate;
}
.v3-app::before,
.v3-app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v3-app::before {                /* dashed guide lines */
  max-width: var(--v3-container-max);
  margin-inline: auto;
  background:
    var(--ap-dash) 3.47% 0 / 1px 100% no-repeat,
    var(--ap-dash) 26.94% 0 / 1px 100% no-repeat,
    var(--ap-dash) 50% 0 / 1px 100% no-repeat,
    var(--ap-dash) 73.06% 0 / 1px 100% no-repeat,
    var(--ap-dash) 96.53% 0 / 1px 100% no-repeat;
}
.v3-app::after {
  opacity: 0.04;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 1024px;
}

.v3-app__content { display: flex; flex-direction: column; align-items: flex-start; width: 400px; max-width: 100%; }
.v3-app__label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0 0 40px;
  font-size: var(--v3-fs-caption);
  font-weight: 700;
  line-height: var(--v3-lh-tight);
  text-transform: uppercase;
}
.v3-app__label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--v3-primary); }
.v3-app__title { margin: 0; color: var(--v3-gray-50); }
.v3-app__muted { color: var(--v3-gray-100); }
@media (min-width: 1025px) {
  .v3-app__muted { display: block; }   /* own line on desktop, inline on mobile (as in Figma) */
}
.v3-app__text { margin: 24px 0 0; font-size: 16px; line-height: var(--v3-lh-body-m); color: var(--v3-gray-100); }
.v3-app__btn { width: 320px; max-width: 100%; margin-top: 40px; }
.v3-app__card { display: none; }

/* ---- desktop: four perspective phones bleeding off the right edge ---- */
.v3-app__stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v3-app__phones {
  position: absolute;
  top: 0;
  right: 0;
  width: min(883px, 61.3vw);
  aspect-ratio: 883 / 595;
}
@media (min-width: 1441px) {
  .v3-app__phones { right: auto; left: calc(50% - 163px); }   /* keep the 1440 composition centred */
}
.v3-app__ph { position: absolute; overflow: hidden; }
.v3-app__ph img {
  position: absolute;
  left: -31.53%;
  top: -34.13%;
  width: 160.85%;
  height: 170.67%;
  max-width: none;
}
.v3-app__ph--1 { left: 5.31%; top: 3.93%; width: 93.75%; height: 89.92%; }
.v3-app__ph--2 { left: -2.38%; top: 53.03%; width: 93.68%; height: 89.86%; opacity: 0.7; }
.v3-app__ph--3 { left: 62.51%; top: -3.03%; width: 93.65%; height: 89.92%; opacity: 0.65; }
.v3-app__ph--4 { left: 65.06%; top: 55.18%; width: 93.68%; height: 89.86%; opacity: 0.55; }

/* ---- lead form dialog ---- */
.v3-app__dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--v3-radius-lg);
  background: none;
  color: var(--v3-dark);
  overflow: visible;
}
.v3-app__dialog::backdrop { background: rgba(10, 10, 10, 0.7); }
.v3-app__dialog-card {
  position: relative;
  max-height: calc(100vh - 32px);
  padding: 32px;
  overflow-y: auto;
  border-radius: var(--v3-radius-lg);
  background: var(--v3-white);
}
.v3-app__form-title { margin: 0 40px 24px 0; }
.v3-app__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--v3-radius-sm);
  background: var(--v3-bg-light);
  cursor: pointer;
}
.v3-app__close::before,
.v3-app__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--v3-dark);
  transform: translate(-50%, -50%) rotate(45deg);
}
.v3-app__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.v3-app__close:hover { background: var(--v3-primary-10); }
.v3-app__close:focus-visible { outline: 2px solid var(--v3-primary); outline-offset: 2px; }
body:has(.v3-app__dialog[open]) { overflow: hidden; }

/* ---- <=1024: one column, the phone sits in a teal card ---- */
@media (max-width: 1024px) {
  .v3-app::before {
    max-width: none;
    background:
      var(--ap-dash) calc(50% - 199px) 0 / 1px 100% no-repeat,
      var(--ap-dash) calc(50% + 199px) 0 / 1px 100% no-repeat;
  }
  .v3-app__stage { display: none; }
  .v3-app__content { width: 100%; max-width: 640px; margin-inline: auto; }
  .v3-app__label { height: 20px; margin-bottom: 12px; }
  .v3-app__card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 390 / 320;
    margin-top: 24px;
    overflow: hidden;
    border-radius: var(--v3-radius-md);
    background: linear-gradient(256.65deg, #4aefee 20.4%, #15c0bf 66.6%);
    container-type: inline-size;
  }
  .v3-app__phone {
    position: absolute;
    top: 7.19%;
    left: 50%;
    width: 65.1cqw;
    aspect-ratio: 254 / 530;
    border-radius: 9.7cqw;
    background: linear-gradient(135deg, #8d93ad 0%, #2b2f3d 38%, #5b6180 100%);
    box-shadow: inset 0 0 0 0.4cqw rgba(255, 255, 255, 0.25), 0 3cqw 6cqw rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
  }
  .v3-app__phone img {
    position: absolute;
    left: 4.33%;
    top: 2.29%;
    width: 91.6%;
    height: 95.4%;
    border-radius: 8.5cqw;
    object-fit: cover;
    object-position: 50% 0;
  }
  .v3-app__phone::after {        /* dynamic island */
    content: "";
    position: absolute;
    top: 3.9%;
    left: 50%;
    width: 29%;
    height: 4.2%;
    border-radius: 99px;
    background: #000;
    transform: translateX(-50%);
  }
  .v3-app__btn { width: 100%; max-width: none; }
}
@media (max-width: 768px) {
  .v3-app__content { max-width: none; }
}
