/* Download page — five Richlance apps */

body[data-page="download"] {
  background: var(--bg);
}

.dl-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(48px, 8vw, 72px) 0 clamp(56px, 10vw, 88px);
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(255, 195, 23, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    linear-gradient(145deg, #041a4d 0%, #0041C4 40%, #005DFF 100%);
  pointer-events: none;
}

.dl-hero .container {
  position: relative;
  z-index: 1;
}

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

.dl-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.dl-hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.dl-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 28px;
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.dl-hero-phone {
  position: relative;
  z-index: 1;
  max-width: min(100%, 320px);
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dl-hero-phone img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.dl-hero-float {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dl-hero-float--1 {
  top: 8%;
  left: 0;
}

.dl-hero-float--2 {
  bottom: 12%;
  right: 0;
  background: var(--yellow);
  max-width: 200px;
  text-align: center;
  line-height: 1.3;
}

.dl-web-band {
  padding: 0 0 48px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.dl-web-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 65, 196, 0.1);
}

.dl-web-band-inner h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 0 0 6px;
}

.dl-web-band-inner p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.dl-apps-section {
  position: relative;
  padding: 16px 0 80px;
}

.dl-apps-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 93, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 30%, rgba(255, 195, 23, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  pointer-events: none;
}

.dl-apps-section .container {
  position: relative;
  z-index: 1;
}

.dl-apps-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.dl-apps-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.dl-apps-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.dl-apps-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl-app-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 28px rgba(0, 65, 196, 0.06);
  position: relative;
  overflow: hidden;
}

.dl-app-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--dl-accent, var(--blue));
}

.dl-app-card--blue { --dl-accent: linear-gradient(180deg, #005DFF, #2563eb); }
.dl-app-card--gold { --dl-accent: linear-gradient(180deg, var(--yellow-dark), var(--yellow)); }
.dl-app-card--indigo { --dl-accent: linear-gradient(180deg, #4f46e5, #818cf8); }
.dl-app-card--teal { --dl-accent: linear-gradient(180deg, #0891b2, #22d3ee); }
.dl-app-card--violet { --dl-accent: linear-gradient(180deg, #7c3aed, #a78bfa); }

.dl-app-card-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

.dl-app-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  background: var(--dl-icon-bg, #dbeafe);
  box-shadow: 0 8px 20px rgba(0, 65, 196, 0.12);
}

.dl-app-icon--img {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 28px rgba(0, 65, 196, 0.18);
}

.dl-app-icon--img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dl-app-card--blue .dl-app-icon:not(.dl-app-icon--img) { background: linear-gradient(145deg, #dbeafe, #93c5fd); }
.dl-app-card--gold .dl-app-icon:not(.dl-app-icon--img) { background: linear-gradient(145deg, #fef3c7, var(--yellow)); }
.dl-app-card--indigo .dl-app-icon:not(.dl-app-icon--img) { background: linear-gradient(145deg, #e0e7ff, #a5b4fc); }
.dl-app-card--teal .dl-app-icon:not(.dl-app-icon--img) { background: linear-gradient(145deg, #cffafe, #67e8f9); }
.dl-app-card--violet .dl-app-icon:not(.dl-app-icon--img) { background: linear-gradient(145deg, #ede9fe, #c4b5fd); }

.dl-app-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.dl-app-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
}

.dl-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dl-store-btn--apple {
  background: var(--blue-dark);
  color: var(--white);
}

.dl-store-btn--google {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--border);
}

.dl-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 65, 196, 0.15);
}

.dl-store-btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.dl-app-qr {
  text-align: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.dl-app-qr-link {
  display: block;
  line-height: 0;
  border-radius: 8px;
}

.dl-app-qr-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.dl-app-qr img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 8px;
}

.dl-app-qr-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dl-apps-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 32px auto 0;
  max-width: 520px;
  line-height: 1.6;
}

.dl-apps-note a {
  color: var(--blue);
  font-weight: 600;
}

/* Homepage download teaser */
.download-teaser {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

.download-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-teaser-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.download-teaser-copy p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0;
  font-size: 16px;
}

.download-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .dl-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dl-hero-lead {
    margin-inline: auto;
  }

  .dl-hero-actions {
    justify-content: center;
  }

  .dl-hero-float--1 {
    left: 8%;
  }

  .dl-hero-float--2 {
    right: 8%;
  }

  .dl-app-card {
    grid-template-columns: 1fr;
  }

  .dl-app-qr {
    max-width: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .dl-app-card-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dl-app-stores {
    justify-content: center;
  }

  .dl-web-band-inner {
    flex-direction: column;
    text-align: center;
  }
}
