:root {
  --bg0: #f7fbff;
  --bg1: #e8f1ff;
  --blue: #2f6bff;
  --blue-deep: #1f56e0;
  --text: #1a1f2e;
  --muted: #8b93a7;
  --card: #ffffff;
  --line: #e6ebf5;
  --shadow: 0 12px 40px rgba(47, 107, 255, 0.12);
  --radius: 22px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --sticky-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, #dcebff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(var(--sticky-h) + var(--safe-b) + 18px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  animation: rise 0.55s ease both;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 40, 90, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.app-icon img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}

.brand {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.meta-line {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.os-badge {
  margin: 5px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3d8b40;
  font-size: 0.75rem;
  font-weight: 800;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
  box-shadow: 0 4px 14px rgba(20, 40, 90, 0.04);
}

.lang-pill img {
  border-radius: 2px;
}

.device-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4e5;
  color: #8a5a00;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.how {
  text-align: center;
  margin-top: 4px;
  animation: rise 0.65s ease 0.08s both;
}

.how-label {
  margin: 0 0 12px;
  color: #7aa0ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.phone {
  width: min(210px, 62vw);
  margin: 0 auto;
}

.phone-bezel {
  aspect-ratio: 9 / 17.2;
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2f3a, #0f1218);
  box-shadow:
    0 22px 44px rgba(20, 35, 80, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 10px;
  border-radius: 999px;
  background: #0b0d12;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #f4f7fc 0%, #eef3fb 100%);
  position: relative;
  overflow: hidden;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 14px 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #5d667a;
}

.status-icons {
  letter-spacing: 0.02em;
}

.phone-app-preview {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.preview-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 40, 90, 0.1);
  display: grid;
  place-items: center;
}

.preview-icon img {
  border-radius: 6px;
}

.preview-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-sub {
  margin: 0;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.install-sheet {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  background: #fff;
  border-radius: 16px 16px 14px 14px;
  padding: 8px 12px 12px;
  box-shadow: 0 10px 28px rgba(20, 40, 90, 0.14);
  text-align: left;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d8deea;
  margin: 0 auto 10px;
}

.sheet-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sheet-row img {
  border-radius: 4px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sheet-row p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2b3345;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.btn-ghost,
.btn-sheet-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.btn-ghost {
  background: #eef1f7;
  color: #6b7387;
}

.btn-sheet-dl {
  background: var(--blue);
  color: #fff;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9d4ea;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dots span.is-active {
  background: var(--blue);
  transform: scale(1.2);
}

.slide-caption {
  margin: 8px 0 0;
  color: #5b657a;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1.2em;
}

.cta-block {
  margin-top: 6px;
  text-align: center;
  animation: rise 0.7s ease 0.16s both;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b78ff 0%, var(--blue) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  user-select: none;
}

.btn-download:active {
  transform: scale(0.98);
  filter: brightness(0.97);
}

.play-icon {
  flex-shrink: 0;
}

.android-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pills span {
  border: 1px solid #d9e1f2;
  background: rgba(255, 255, 255, 0.75);
  color: #6b758c;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.instruction {
  margin-top: 10px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(20, 40, 90, 0.06);
  overflow: hidden;
  animation: rise 0.75s ease 0.22s both;
}

.instruction-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 16px;
  min-height: 52px;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.info-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  font-style: italic;
  flex-shrink: 0;
}

.instruction-toggle .chevron {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.instruction.is-open .chevron {
  transform: rotate(180deg);
}

.instruction-body {
  padding: 0 16px 16px;
  color: #4b556b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.instruction-body[hidden] {
  display: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #f5f8ff;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.steps strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.steps p {
  margin: 0;
  font-size: 0.82rem;
  color: #5b657a;
  font-weight: 600;
}

.tip {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #eef4ff;
  color: #3a4d78;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: linear-gradient(180deg, rgba(247, 251, 255, 0) 0%, rgba(247, 251, 255, 0.92) 28%, #f7fbff 100%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-btn {
  max-width: 430px;
  width: 100%;
  min-height: 50px;
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.4);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .page {
    padding-top: 28px;
  }

  .phone {
    width: 230px;
  }

  .sticky-cta {
    display: none;
  }

  .page {
    padding-bottom: 32px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-download:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
  }
}
