/* Landing page. Colors follow the app: night sky, moon lavender, burn orange. */
:root {
  --bg: #05060f;
  --sky-top: #1c2152;
  --sky-mid: #0a0d21;
  --card: rgba(255, 255, 255, .045);
  --card-strong: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .1);
  --text: #f4f5ff;
  --dim: #a3a7c2;
  --moon: #c7ccff;
  --moon-ink: #0b0d22;
  --burn: #ff8a50;
  --radius: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dim { color: var(--dim); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Night sky with stars behind the top of the page */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 1200px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 30%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 46%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 62%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 58%, #fff4 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 24%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 74%, #fff4 50%, transparent 51%),
    radial-gradient(80% 60% at 70% 0%, #2a3180aa, transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--bg) 100%);
}

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); background: rgba(5, 6, 15, .55); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 24px; margin-left: 16px; }
.links a { color: var(--dim); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; display: flex; align-items: center; color: var(--dim); }
.lang svg { position: absolute; left: 10px; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px 8px 32px; font: inherit; font-size: 14px; cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600;
  background: var(--moon); color: var(--moon-ink); border-radius: 999px; padding: 14px 24px; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(199, 204, 255, 0);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(199, 204, 255, .6); }
.btn.small { padding: 9px 16px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 96px; }
.eyebrow { color: var(--moon); font-weight: 600; font-size: 15px; margin: 0 0 14px; letter-spacing: .01em; }
h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; font-weight: 800; }
.lead { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); margin: 22px 0 0; max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #000; text-decoration: none;
  border-radius: 16px; padding: 12px 22px 12px 18px; transition: transform .15s, box-shadow .2s;
}
.store:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -10px rgba(199, 204, 255, .7); }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; }
.store b { font-size: 22px; letter-spacing: -.01em; }
.qr-card { display: none; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 290px; }
.qr-card.ready { display: flex; }
.qr { width: 76px; height: 76px; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-card b { display: block; font-size: 14px; }
.qr-card span { font-size: 13px; color: var(--dim); line-height: 1.35; display: block; }
.note { color: var(--dim); font-size: 14px; margin: 18px 0 0; text-wrap: balance; }
.note.android { color: var(--burn); }

.hero-phones { position: relative; height: 640px; }
.phone {
  border-radius: 46px; padding: 9px; background: linear-gradient(160deg, #3a3f5c, #14162a 40%, #23263d);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 120px -30px rgba(120, 130, 255, .45);
}
.phone img { border-radius: 38px; width: 100%; height: auto; background: #000; }
.hero-phones .phone { position: absolute; }
.hero-phones .front { width: min(300px, 64%); right: 4%; top: 0; z-index: 2; }
.hero-phones .back { width: min(260px, 54%); left: 2%; top: 80px; transform: rotate(-7deg); opacity: .55; filter: saturate(.8); }
.luni { position: absolute; height: auto; width: 130px; left: -4px; bottom: 0; z-index: 3; filter: drop-shadow(0 0 40px rgba(199, 204, 255, .5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .luni { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 800; max-width: 18em; }
.narrow { max-width: 820px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .card, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.num { display: inline-block; color: var(--moon); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.steps h3, .card h3 { font-size: 21px; margin-bottom: 8px; }
.steps p, .card p { color: var(--dim); margin: 0; font-size: 16px; }

.tabs { display: flex; gap: 6px; margin: 32px 0 0; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; color: var(--dim); font: inherit; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--moon); color: var(--moon-ink); }
.feature { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; margin-top: 28px; background: linear-gradient(160deg, rgba(42, 49, 128, .35), rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: 32px; padding: 48px 56px 0; overflow: hidden; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 800; }
.feature-phone { width: 320px; margin-bottom: -140px; align-self: end; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.feature-text { padding-bottom: 48px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(199, 204, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23c7ccff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.checks.two { grid-template-columns: 1fr 1fr; column-gap: 20px; }

.earn-card {
  border-radius: 32px; padding: 56px; text-align: center; border: 1px solid rgba(255, 138, 80, .25);
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 138, 80, .18), transparent 70%), var(--card);
}
.earn-card h2, .earn-card .lead { margin-left: auto; margin-right: auto; }
.earn-card .eyebrow { color: var(--burn); }
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.earn-grid div { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 20px; padding: 24px 16px; }
.earn-grid b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.earn-grid span { display: block; color: var(--dim); font-size: 15px; margin-top: 10px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ico { width: 32px; height: 32px; fill: none; stroke: var(--moon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

.plans { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-top: 36px; align-items: start; }
.plan h3 { font-size: 28px; }
.plan .dim { margin: 6px 0 0; }
.plan.pro { background: linear-gradient(160deg, rgba(199, 204, 255, .16), rgba(199, 204, 255, .03)); border-color: rgba(199, 204, 255, .35); }
.plan .btn { margin-top: 28px; }
.fine { color: var(--dim); font-size: 14px; margin-top: 18px; max-width: 52em; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--moon); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--dim); margin: -6px 0 22px; padding-right: 40px; }

.final { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 96px; }
.final img { width: 120px; margin-bottom: 18px; filter: drop-shadow(0 0 40px rgba(199, 204, 255, .45)); }
.final .lead { margin: 14px 0 30px; }

.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot > .dim { margin-left: auto; }

/* Tablet */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; gap: 40px; }
  .hero-phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-phones .front { width: 260px; right: 8%; }
  .hero-phones .back { width: 230px; left: 8%; top: 60px; }
  .luni { width: 110px; left: 2%; }
  .feature { grid-template-columns: 1fr 280px; gap: 32px; padding: 40px 36px 0; }
  .feature-phone { width: 280px; }
  .checks.two { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { gap: 10px; height: 58px; }
  .brand span { display: none; }
  .desktop-only { display: none !important; }
  .hero { padding-top: 32px; }
  h1 { font-size: 42px; }
  .store { width: 100%; justify-content: center; padding: 14px; }
  .hero-phones { height: 470px; }
  .hero-phones .phone { border-radius: 38px; padding: 7px; }
  .hero-phones .phone img { border-radius: 32px; }
  .hero-phones .front { width: 215px; right: 0; }
  .hero-phones .back { width: 185px; left: 0; top: 50px; }
  .luni { width: 84px; left: -6px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .steps, .cards3, .earn-grid, .plans { grid-template-columns: 1fr; }
  .steps li, .card, .plan { padding: 22px; }
  .tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .tabs button { border-radius: 17px; padding: 10px 8px; }
  .feature { grid-template-columns: 1fr; padding: 28px 22px 0; gap: 24px; border-radius: 26px; }
  .feature-text { padding-bottom: 0; }
  .feature-phone { width: 240px; margin: 0 auto -120px; }
  .earn-card { padding: 36px 20px; border-radius: 26px; }
  .earn-grid div { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; }
  .earn-grid b { font-size: 34px; min-width: 78px; }
  .earn-grid span { margin: 0; }
  .plan .btn { width: 100%; }
  .faq summary { font-size: 17px; }
  .foot > .dim { margin-left: 0; width: 100%; }
}
