:root {
  color-scheme: light;
  --ink: #241d2b;
  --muted: #756d7c;
  --violet: #7b5cff;
  --violet-dark: #5c3be0;
  --lime: #dfff69;
  --lav: #f1edff;
  --paper: #fbfafc;
  --line: #eae5ef;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(123,92,255,.18), transparent 25rem),
    radial-gradient(circle at 3% 45%, rgba(223,255,105,.20), transparent 22rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.download-page {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(19px, env(safe-area-inset-top)) 17px max(24px, env(safe-area-inset-bottom));
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .6px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 11px;
  background: var(--ink);
  transform: rotate(-4deg);
  box-shadow: 0 7px 18px rgba(36,29,43,.2);
}

.brand-mark i { position: absolute; display: block; width: 5px; border-radius: 99px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 22px; top: 7px; left: 9px; transform: rotate(-22deg); }
.brand-mark i:nth-child(2) { height: 18px; top: 8px; left: 18px; transform: rotate(15deg); }
.brand-mark i:nth-child(3) { height: 12px; top: 11px; left: 26px; transform: rotate(31deg); }

.android-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--violet-dark);
  background: white;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.35px;
}

.download-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 26px 70px rgba(49,31,78,.15);
}

.visual {
  position: relative;
  min-height: 238px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(145deg, #241d2b, #4a3561);
  background-size: 22px 22px, auto;
}

.blob {
  position: absolute;
  width: 225px;
  height: 225px;
  border-radius: 43% 57% 61% 39% / 46% 40% 60% 54%;
  background: linear-gradient(145deg, var(--violet), #aa94ff);
  transform: rotate(8deg);
  box-shadow: 0 0 0 27px rgba(123,92,255,.10);
}

.phone-icon {
  position: relative;
  width: 116px;
  height: 158px;
  overflow: hidden;
  border: 6px solid white;
  border-radius: 55px 55px 21px 21px;
  background: #f3d7c8;
  box-shadow: 0 18px 36px rgba(20,12,28,.3);
  transform: rotate(-3deg);
}

.face { position: absolute; inset: 47px 18px 12px; border-radius: 44% 44% 50% 50%; background: #f5cdbb; }
.eye { position: absolute; top: 34px; width: 5px; height: 7px; border-radius: 50%; background: var(--ink); }
.eye.left { left: 17px; }
.eye.right { right: 17px; }
.smile { position: absolute; left: 50%; top: 51px; width: 19px; height: 9px; border-bottom: 2px solid var(--ink); border-radius: 50%; transform: translateX(-50%); }

.hair { position: absolute; z-index: 2; inset: 18px 7px auto; height: 78px; border-radius: 54px 54px 34px 34px; background: #5a3329; }
.hair:after { content: ""; position: absolute; right: -1px; bottom: -34px; width: 25px; height: 67px; border-radius: 50%; background: #5a3329; }
.hair:before { content: ""; position: absolute; left: -1px; bottom: -34px; width: 25px; height: 67px; border-radius: 50%; background: #5a3329; }
.hair i { position: absolute; top: 0; width: 32px; height: 50px; border-radius: 50%; background: #6f4337; }
.hair i:nth-child(1) { left: 5px; transform: rotate(18deg); }
.hair i:nth-child(2) { left: 35px; height: 45px; }
.hair i:nth-child(3) { right: 4px; transform: rotate(-18deg); }

.spark { position: absolute; color: var(--lime); font-size: 27px; text-shadow: 0 8px 15px rgba(0,0,0,.2); }
.spark-a { left: 20%; top: 25%; }
.spark-b { right: 19%; bottom: 23%; font-size: 18px; }

.visual-caption {
  position: absolute;
  right: 17px;
  bottom: 15px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.55px;
}

.content { padding: 27px 21px 24px; }

.eyebrow { margin: 0 0 11px; color: var(--violet-dark); font-size: 10px; font-weight: 900; letter-spacing: 1.55px; }
h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 15px;
  font-size: clamp(34px, 9.8vw, 49px);
  font-weight: 850;
  line-height: .97;
  letter-spacing: -2.4px;
}

h1 em { color: var(--violet); font-family: Georgia, serif; font-weight: 500; }
.lead { margin-bottom: 22px; color: var(--muted); font-size: 15px; line-height: 1.58; }

.download-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 12px 15px;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  box-shadow: 0 15px 30px rgba(92,59,224,.27);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.download-button:active { transform: translateY(1px); }
.button-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: var(--lime); font-size: 23px; font-weight: 900; }
.download-button > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.download-button b { font-size: 16px; }
.download-button small { color: rgba(255,255,255,.68); font-size: 11px; }
.safe-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.safe-note span { color: #26845e; font-weight: 900; }
.apk-missing { color: #9b3d31; font-weight: 700; }
.is-apk-missing .download-button { pointer-events: none; opacity: .55; box-shadow: none; }
.is-apk-missing .steps { display: none; }
.browser-link { display: block; margin-top: 13px; color: var(--violet-dark); text-align: center; font-size: 12px; font-weight: 750; }

.ios-warning { display: none; margin-bottom: 18px; padding: 14px; border: 1px solid #d2c5ff; border-radius: 14px; background: var(--lav); color: #4e3e77; }
.ios-warning strong, .ios-warning span { display: block; }
.ios-warning strong { margin-bottom: 4px; font-size: 14px; }
.ios-warning span { font-size: 12px; line-height: 1.45; }
.is-ios .ios-warning { display: block; }
.is-ios .download-button, .is-ios .safe-note { display: none; }

.steps { margin-top: 17px; padding: 24px 20px 7px; border: 1px solid var(--line); border-radius: 23px; background: rgba(255,255,255,.94); }
.steps-heading h2 { margin-bottom: 20px; font-size: 26px; line-height: 1.05; letter-spacing: -1.2px; }
.steps ol { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 39px 1fr; gap: 12px; padding: 0 0 17px; }
.steps li > b { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--lime); font-size: 13px; }
.steps li div { display: flex; flex-direction: column; gap: 4px; }
.steps li strong { font-size: 14px; }
.steps li span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mobile-footer { padding: 23px 0 4px; color: #8e8791; text-align: center; font-size: 10px; font-weight: 650; letter-spacing: .5px; }

@media (min-width: 620px) {
  .download-page { padding-left: 24px; padding-right: 24px; }
  .download-card { display: grid; grid-template-columns: 42% 58%; }
  .visual { min-height: 100%; }
  .content { padding: 35px 28px; }
  h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-icon { animation: float 4s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(-1deg); } }
}
