/* ============================================================
   DOWNLOAD PAGE — download.css
   BooksByAma Design System
   Depends on: style.css, header.css, footer.css
============================================================ */

/* ─── 1. HERO ───────────────────────────────────────────── */
.dl-hero {
  background: var(--bg-page);
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}

.dl-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.dl-hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dl-hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0;
}
.dl-hero__headline span { color: var(--purple); }

.dl-hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}

/* Store buttons */
.dl-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.dl-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
  min-width: 170px;
  border: 1.5px solid var(--border);
}
.dl-store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(99,93,169,.12); }

.dl-store-btn--play {
  background: #fff;
  color: #2D2A4A;
}
.dl-store-btn--apple {
  background: #2D2A4A;
  color: #fff;
  border-color: #2D2A4A;
}

.dl-store-btn__icon { flex-shrink: 0; display: flex; }
.dl-store-btn__text { display: flex; flex-direction: column; gap: 1px; }
.dl-store-btn__sub  { font-size: .6rem; font-weight: 600; letter-spacing: .06em; opacity: .7; text-transform: uppercase; }
.dl-store-btn__name { font-size: .92rem; font-weight: 700; font-family: var(--font-head); line-height: 1; }

/* Social proof */
.dl-hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .86rem;
  color: var(--text-muted);
}
.dl-proof__avatars {
  display: flex;
}
.dl-proof__avatars span {
  font-size: 1.3rem;
  margin-right: -6px;
}
.dl-hero__proof strong { color: var(--purple); }

/* Visual: single phone */
.dl-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.dl-hero__visual .phone { filter: drop-shadow(0 24px 64px rgba(45,42,74,.16)); }

/* QR widget */
.dl-hero__qr {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dl-hero__qr p {
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.dl-cta__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.dl-cta__qr p {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* QR placeholder box */
.dl-qr-box {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.dl-qr-inner {
  width: 52px; height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-qr-icon { font-size: 1.6rem; position: relative; z-index: 1; }

.dl-qr-corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(255,255,255,.7);
  border-style: solid;
  border-width: 0;
}
.dl-qr-corner--tl { top: 0; left: 0;  border-top-width: 2px;    border-left-width: 2px;  }
.dl-qr-corner--tr { top: 0; right: 0; border-top-width: 2px;    border-right-width: 2px; }
.dl-qr-corner--bl { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px;  }
.dl-qr-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ─── 2. BENEFITS ───────────────────────────────────────── */
.dl-benefits { background: var(--bg-surface); padding: 80px 0; }

.dl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.dl-benefit-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.dl-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(99,93,169,.12);
}
.dl-benefit-card--soon { border-style: dashed; }

.dl-benefit-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dl-benefit-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-benefit-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.dl-soon-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--purple-tint);
  color: var(--purple-dark);
  padding: 3px 8px;
  border-radius: 20px;
}

/* ─── 3. APP GALLERY ────────────────────────────────────── */
.dl-gallery { background: var(--bg-page); overflow: hidden; }

.dl-gallery__strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  padding: 20px 0 0;
}

.dl-gphone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .3s ease;
}
.dl-gphone:hover { transform: translateY(-12px); }

.dl-gphone--1 { transform: rotate(-6deg) translateY(20px); }
.dl-gphone--2 { transform: rotate(-2deg) translateY(8px); z-index: 2; }
.dl-gphone--3 { z-index: 3; }
.dl-gphone--4 { transform: rotate(2deg) translateY(8px); z-index: 2; }
.dl-gphone--5 { transform: rotate(6deg) translateY(20px); }
.dl-gphone:hover { transform: rotate(0deg) translateY(-12px) !important; z-index: 10; }

.dl-gphone__label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  background: var(--bg-surface);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  white-space: nowrap;
}

/* ─── 4. PLATFORMS ──────────────────────────────────────── */
.dl-platforms { background: var(--bg-surface); }

.dl-platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.dl-platform-card {
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.dl-platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  opacity: 0;
  transition: opacity .25s ease;
}
.dl-platform-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(99,93,169,.1); }

.dl-platform-card--android { background: linear-gradient(160deg, #E8F8EF, #F7FFFB); border-color: #A0DFB8; }
.dl-platform-card--ios     { background: linear-gradient(160deg, #F2F1FA, #EEEDF8); border-color: #C9C7E8; }
.dl-platform-card--more    { background: linear-gradient(160deg, #EAF4FB, #F0F8FF); border-color: #9AC8E8; }

.dl-platform-card__icon { font-size: 3rem; line-height: 1; }

.dl-platform-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dl-platform-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.dl-platform-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.dl-platform-card__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.dl-platform-card__badge--live { background: var(--green-soft); color: #27AE60; }
.dl-platform-card__badge--soon { background: var(--purple-soft); color: var(--purple-dark); }

.dl-platform-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
  background: var(--purple);
  color: #fff;
}
.dl-platform-card__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,93,169,.3); }
.dl-platform-card__btn--dark  { background: #2D2A4A; }
.dl-platform-card__btn--muted { background: var(--border); color: var(--text-muted); cursor: default; }
.dl-platform-card__btn--muted:hover { transform: none; box-shadow: none; }

/* ─── 5. FAQ ────────────────────────────────────────────── */
.dl-faq { background: var(--bg-page); }
.dl-faq__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.dl-faq__header {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-faq__header .section-heading { text-align: left; font-size: 1.6rem; }
.dl-faq__header .section-sub { text-align: left; }

.dl-faq__list { display: flex; flex-direction: column; }

.dl-faq-item { border-bottom: 1.5px solid var(--border); }
.dl-faq-item:first-child { border-top: 1.5px solid var(--border); }

.dl-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color .2s ease;
}
.dl-faq-btn:hover { color: var(--purple); }
.dl-faq-item--open .dl-faq-btn { color: var(--purple); }

.dl-faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
.dl-faq-item--open .dl-faq-icon { background: var(--purple); color: #fff; }

.dl-faq-body { padding: 0 0 20px; }
.dl-faq-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── 6. STATISTICS ─────────────────────────────────────── */
.dl-stats { background: var(--bg-surface); }

.dl-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.dl-stat-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dl-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(99,93,169,.1);
}
.dl-stat-card--featured {
  background: linear-gradient(160deg, var(--purple-dark), var(--purple));
  border-color: transparent;
}
.dl-stat-card--featured .dl-stat-card__val,
.dl-stat-card--featured .dl-stat-card__lbl,
.dl-stat-card--featured .dl-stat-card__desc { color: #fff; }
.dl-stat-card--featured .dl-stat-card__val  { color: #FFC93B; }
.dl-stat-card--featured .dl-stat-card__desc { color: rgba(255,255,255,.7); }

.dl-stat-card__icon { font-size: 1.8rem; line-height: 1; }
.dl-stat-card__val  { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--purple); }
.dl-stat-card__lbl  { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--text-primary); }
.dl-stat-card__desc { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }

/* ─── 7. DOWNLOAD CTA ───────────────────────────────────── */
.dl-cta { background: var(--bg-page); }

.dl-cta__card {
  background: linear-gradient(135deg, #4E4890 0%, #635DA9 55%, #7B75C2 100%);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.dl-cta__bg-deco { position: absolute; inset: 0; pointer-events: none; }
.dl-cta__blob { position: absolute; border-radius: 50%; opacity: .1; }
.dl-cta__blob--1 { width: 500px; height: 500px; background: #FFC93B; top: -200px; right: -100px; }
.dl-cta__blob--2 { width: 340px; height: 340px; background: #51BB79; bottom: -120px; left: -60px; }

.dl-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 72px 64px;
}

.dl-cta__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.dl-cta__title span { color: #FFC93B; }

.dl-cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

.dl-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.dl-cta__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.dl-cta__trust span::before { content: ''; }

.dl-cta__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.dl-cta__phone {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.3));
}

/* ─── 8. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .dl-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .dl-stats__grid    { grid-template-columns: repeat(3, 1fr); }
  .dl-gallery__strip { gap: 12px; }
  .dl-gphone--1, .dl-gphone--5 { display: none; }
}

@media (max-width: 900px) {
  .dl-hero__inner  { grid-template-columns: 1fr; text-align: center; }
  .dl-hero__text   { align-items: center; }
  .dl-hero__sub    { max-width: 100%; }
  .dl-hero__visual { display: none; }
  .dl-hero__btns   { justify-content: center; }
  .dl-hero__proof  { justify-content: center; }
  .dl-platforms__grid { grid-template-columns: 1fr; }
  .dl-faq__inner   { grid-template-columns: 1fr; }
  .dl-faq__header  { position: static; }
  .dl-cta__inner   { grid-template-columns: 1fr; text-align: center; }
  .dl-cta__btns    { justify-content: center; }
  .dl-cta__trust   { justify-content: center; }
  .dl-cta__visual  { display: none; }
  .dl-cta__text    { align-items: center; }
}

@media (max-width: 640px) {
  .dl-hero { padding: 100px 0 64px; }
  .dl-benefits__grid { grid-template-columns: 1fr; }
  .dl-stats__grid    { grid-template-columns: repeat(2, 1fr); }
  .dl-gallery__strip { gap: 10px; }
  .dl-gphone--2, .dl-gphone--4 { display: none; }
  .dl-cta__inner { padding: 48px 24px; }
  .dl-store-btn  { min-width: auto; }
}
