/* Design frame is 440 x 1319. Every size is expressed in --u (1 design px),
   so the page scales 1:1 on any phone width and caps at 440px on desktop. */
:root {
  --w: min(100vw, 440px);
  --u: calc(var(--w) / 440);
}

@supports (width: 1cqw) {
  .lp { container-type: inline-size; }
  .lp > * { --u: calc(100cqw / 440); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: #cbebfd linear-gradient(to top, #cbebfd 0%, #edf9fe 100%) fixed;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; }

.lp {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.lp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../image/bg.webp") no-repeat;
  background-size: calc(920 * var(--u)) auto;
  background-position: center calc(-52 * var(--u));
}

.lp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(222, 242, 253, 0.83);
}

.logo {
  width: calc(72 * var(--u));
  height: calc(61 * var(--u));
  margin: calc(23 * var(--u)) auto 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner {
  display: block;
  width: calc(398 * var(--u));
  height: calc(225 * var(--u));
  margin: calc(10 * var(--u)) auto 0;
  border: 2px solid #fff;
  border-radius: calc(20 * var(--u));
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .2s ease;
}

.banner--first {
  margin-top: calc(16 * var(--u));
  box-shadow: 0 4px 4px rgba(255, 255, 255, 0.25);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner:active { transform: scale(.985); }

.steps {
  width: calc(398 * var(--u));
  height: calc(542 * var(--u));
  margin: calc(10 * var(--u)) auto 0;
  border: 2px solid #fff;
  border-radius: calc(20 * var(--u));
  overflow: hidden;
}

.steps img {
  width: 100%;
  height: 104.35%;
  object-fit: cover;
  object-position: top;
}

.cta {
  display: block;
  width: calc(317 * var(--u));
  height: calc(105 * var(--u));
  margin: 0 auto;
  animation: cta-pulse 1.8s ease-in-out infinite;
  transition: transform .15s ease;
}

.cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta:active {
  transform: scale(.95);
  animation: none;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
}

.partners {
  position: relative;
  width: calc(440 * var(--u));
  height: calc(102 * var(--u));
  margin: 0 auto;
  border-radius: calc(20 * var(--u)) calc(20 * var(--u)) 0 0;
  overflow: hidden;
}

.partners img {
  position: absolute;
  left: -2.76%;
  top: -27.66%;
  width: 105.51%;
  height: 153.19%;
  max-width: none;
}
