/* Layout/components specific to the /download landing page. Loaded
   ALONGSIDE /legal/legal.css (not instead of it) — legal.css supplies
   the shared :root color tokens, base html/body reset, header.top/
   .brand/.lang-toggle, and footer.bottom styles every public/ page
   already uses; this file only adds what's unique to a marketing page
   (hero, store buttons, feature grid, phone mockup, social icons).
   Same "hand-copied from src/theme.js, not imported" caveat applies:
   keep in sync manually if the app's palette changes. */

.dl-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 64px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero h1 .gold { color: var(--gold); }

.hero .lead {
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.store-btn svg { flex-shrink: 0; color: var(--ink); }
.store-btn .store-btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-btn .store-btn-small { font-size: 11px; font-weight: 700; color: var(--muted-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.store-btn .store-btn-big { font-size: 17px; font-weight: 900; color: var(--ink); }

/* Primary (Google Play — the one actually live right now) gets the
   gold-gradient treatment used on the app's own PrimaryButton
   (THEME.goldGradient) so one CTA reads as the "main" action; the
   App Store button stays on the neutral glass style already defined
   above. */
.store-btn.primary {
  background: linear-gradient(135deg, #F3B62B 0%, #E8912D 100%);
  border-color: transparent;
}
.store-btn.primary svg { color: #1A1204; }
.store-btn.primary .store-btn-small { color: rgba(26,18,4,0.65); }
.store-btn.primary .store-btn-big { color: #1A1204; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-soft);
}

.cta-band {
  text-align: center;
  padding: 56px 0;
}
.cta-band p { max-width: 46ch; margin: 0 auto 24px; }
.cta-band .store-buttons { justify-content: center; }

/* ---------- Phone mockup ---------- */
/* Real app screenshots (public/download/en_*.png, 1284x2778 — no
   device frame baked in) — this CSS supplies the frame/bezel around
   the raw image. aspect-ratio (not a fixed height) is what lets the
   same frame markup work for the smaller .screenshot-frame variant
   below without duplicating sizing math. */

.phone-frame,
.screenshot-frame {
  padding: 14px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(30,41,59,0.7), rgba(15,20,30,0.85));
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.phone-frame img,
.screenshot-frame img {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
}

.phone-frame {
  justify-self: center;
  width: 260px;
}

/* ---------- Screenshots gallery ---------- */

.screenshots-section {
  padding: 24px 0 56px;
  text-align: center;
}

.screenshots-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.screenshot-frame {
  width: 170px;
  padding: 10px;
  border-radius: 28px;
  flex-shrink: 0;
}

.screenshot-frame img {
  border-radius: 18px;
}

/* ---------- Features ---------- */

.section-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.section-lead {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 40px;
  color: var(--muted);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(240,180,41,0.15);
  color: var(--gold);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Social ---------- */

.social-section {
  text-align: center;
  padding: 56px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.social-icon:hover { border-color: var(--gold); color: var(--gold-text); transform: translateY(-2px); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 48px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .trust-row { justify-content: center; }
  .phone-frame { margin-top: 8px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .dl-wrap { padding: 24px 18px 64px; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 23px; }
  .screenshot-frame { width: 140px; }
}

/* Sticky mobile CTA — see landing.css's identical rule for the full
   rationale. Placed AFTER the 560px block above so its padding-bottom
   override always wins over that block's `padding` shorthand. */
@media (max-width: 640px) {
  .dl-wrap { padding-bottom: 96px; }
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .sticky-cta .store-btn { width: 100%; max-width: 360px; justify-content: center; }
}
@media (min-width: 641px) {
  .sticky-cta { display: none; }
}
