*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  min-height: 100svh;
  background: #0e0e0e;
  color: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Bouncing hint ── */
.hint {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  animation: float 2s ease-in-out infinite;
}
.hint-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}
.hint-text b { color: rgba(255,255,255,0.8); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Header card ── */
.header-card {
  width: 100%;
  background: #181818;
  border-radius: 18px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ── GIF card ── */
.gif-card {
  width: 100%;
  background: #181818;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}
.phone-screen { line-height: 0; }
.phone-screen img,
.phone-screen video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Steps card ── */
.steps-card {
  width: 100%;
  background: #181818;
  border-radius: 18px;
  padding: 6px 16px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.65);
}
.steps li + li {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.steps .num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps b { color: #fff; font-weight: 600; }

/* ── CTA ── */
.cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  background: #fff;
  color: #0e0e0e;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  transition: opacity 0.15s;
}
.cta:active { opacity: 0.85; }

.foot {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  line-height: 1.4;
}

@media (max-height: 680px) {
  .phone { max-width: 240px; }
  .title { font-size: 20px; }
  .wrap { gap: 10px; }
  .header-card, .gif-card, .steps-card { padding: 12px; }
}
