/* Standalone styling for the public app-download landing pages.
   Reuses the palette + button styles from styles.css. */

body.download-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(26, 79, 184, 0.35), transparent 65%),
    #0b1c33;
}

.dl-wrap {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.dl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-decoration: none;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* The <img> carries width/height attributes for layout stability, so the CSS
   must set both — a height-only rule lets the 300px attribute width through
   and stretches the logo into an ellipse. Matches the site header treatment. */
.dl-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
}

.dl-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  color: #0b1c33;
}

.dl-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1a4fb8, #123a8a);
}

.dl-icon svg { width: 30px; height: 30px; }

.dl-card h1 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.dl-sub {
  margin: 0 0 0.75rem;
  color: #5a6b82;
  font-size: 0.92rem;
}

.dl-version {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: #5a6b82;
}

.dl-countdown { cursor: pointer; margin-bottom: 1.25rem; }

.dl-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
}

.dl-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dl-ring-track { fill: none; stroke: #e8eef6; stroke-width: 8; }

.dl-ring-progress {
  fill: none;
  stroke: #f58220;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.dl-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.dl-countdown p { margin: 0; font-size: 0.88rem; color: #5a6b82; }

.dl-actions { margin-bottom: 1rem; }
.dl-actions .btn { width: 100%; justify-content: center; }

.dl-retry { font-size: 0.85rem; color: #5a6b82; }
.dl-retry a { color: #1a4fb8; }

.dl-unavailable {
  background: #fdf1e7;
  border: 1px solid rgba(232, 106, 23, 0.35);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #8a3d06;
}

.dl-unavailable p { margin: 0 0 0.4rem; }
.dl-unavailable p:last-child { margin-bottom: 0; }

.dl-steps {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 28, 51, 0.12);
  text-align: left;
}

.dl-steps h2 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.dl-steps ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: #5a6b82;
  line-height: 1.75;
}

.dl-back { margin-top: 1.25rem; font-size: 0.88rem; }
.dl-back a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.dl-back a:hover { color: #fff; }

body.download-page.is-bangla {
  font-family: "Noto Sans Bengali", "DM Sans", system-ui, sans-serif;
}

body.download-page.is-bangla .dl-steps ol { line-height: 1.95; }
