/* Download landing page (index.html).
   Colours, radii and type mirror the Flutter app — see
   lib/core/theme/app_colors.dart, app_sizes.dart and app_text_styles.dart. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Material Symbols Rounded — the same glyphs as Flutter's Icons.*_rounded. */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  display: inline-block;
  direction: ltr;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.ms.o { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }

/* Feature-tile gradients (AppColors.*Tile). */
.t-green   { background: linear-gradient(to bottom right, #1F9D5F, #12643B); }
.t-teal    { background: linear-gradient(to bottom right, #16A79A, #0C6E65); }
.t-orange  { background: linear-gradient(to bottom right, #D98324, #9C560D); }
.t-indigo  { background: linear-gradient(to bottom right, #5B54D6, #3A34A8); }
.t-purple  { background: linear-gradient(to bottom right, #8B31D1, #5E1F8F); }
.t-crimson { background: linear-gradient(to bottom right, #D1264E, #921634); }
.t-blue    { background: linear-gradient(to bottom right, #1E7FC4, #135589); }

.ur-p { text-align: right; }
/* English terms inside Urdu lines: keep them in Poppins and on one line. */
.ur b { font-family: var(--font); font-weight: 600; white-space: nowrap; }

/* ---------- Nav ---------- */
.home .nav-inner { max-width: 1080px; }
.home .nav-links { align-items: center; }

/* ---------- Hero ---------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--hero-diag);
  border-radius: 0 0 40px 40px;   /* echoes the app's greeting hero */
}
/* Faint eight-point-star lattice, strongest around the phone. */
.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23E6C97A' stroke-width='1'%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  opacity: .09;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 78% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 50% 70% at 78% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
/* Soft light discs, as on FeatureHero. */
.disc { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); pointer-events: none; }
.disc-1 { width: 520px; height: 520px; top: -260px; right: -160px; }
.disc-2 { width: 300px; height: 300px; bottom: -170px; left: -110px; background: rgba(255, 255, 255, .035); }

.dl-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
  padding-block: 52px 80px;
}
.dl-hero p, .dl-hero li { color: rgba(255, 255, 255, .8); }
.dl-hero strong { color: #fff; }

.bismillah { font-family: var(--font-ar); font-size: 26px; line-height: 1.6; color: var(--gold-light); text-align: left; }
.crest { display: block; width: 84px; height: 84px; margin: 14px 0 4px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.dl-hero h1 { margin: 0; font-weight: 400; }
.h1-ur { display: block; font-family: var(--font-ur); font-size: clamp(34px, 4.6vw, 50px); line-height: 1.95; text-align: left; color: #fff; }
.h1-en { display: block; font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; letter-spacing: -.2px; line-height: 1.25; color: #fff; }
.lead { font-size: 16px; max-width: 520px; margin-top: 14px; }
.dl-hero .lead-ur { font-size: 16px; margin-top: 2px; text-align: left; color: var(--gold-light); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-gold {
  background: var(--gold-light);
  color: var(--green-dark);
  padding: 12px 26px 12px 18px;
  font-size: 17px;
  line-height: 1.25;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(160, 123, 46, .35);
}
.btn-gold:hover { background: #EFD690; transform: translateY(-1px); }
.btn-gold .ms { font-size: 30px; }
.btn-gold small { display: block; font-size: 12px; font-weight: 500; opacity: .72; }
.btn-ghost {
  color: var(--gold-light);
  padding: 12px 20px;
  font-size: 15px;
  border: 1.5px solid rgba(230, 201, 122, .55);
}
.btn-ghost:hover { background: rgba(230, 201, 122, .1); }
.btn-ghost .ms { font-size: 22px; }
.btn-gold:focus-visible, .btn-ghost:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.meta { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font-size: 13.5px; }
.dl-hero .meta li { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .72); }
.meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 4px 0 10px; }
.meta .ms { font-size: 18px; color: var(--gold-light); }

/* Device-specific hints (the <html> element is tagged in the page head). */
.notice, .qr-card {
  display: none;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 14px 16px;
  max-width: 480px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
}
.is-ios .notice { display: flex; }
.is-desktop .qr-card.ready { display: flex; }
.notice .ms { color: var(--gold-light); font-size: 26px; }
.notice p, .qr-card p { font-size: 13.5px; line-height: 1.55; }
.notice .ur, .qr-card .ur { font-size: 13px; line-height: 2; text-align: left; margin-top: 2px; }
.qr { flex: none; width: 108px; height: 108px; padding: 8px; background: #fff; border-radius: 12px; }
.qr svg, .qr img { display: block; width: 100%; height: 100%; }
.qr-card strong { font-size: 15px; }

/* ---------- Phone mockup of the app's home screen ---------- */
.dl-visual { position: relative; display: grid; place-items: center; }
.dl-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 201, 122, .22), rgba(230, 201, 122, 0) 65%);
}
.phone {
  position: relative;
  width: 300px;
  height: 616px;
  padding: 10px;
  border-radius: 46px;
  background: #14181A;
  box-shadow: 0 0 0 1px rgba(230, 201, 122, .35), 0 0 0 7px rgba(255, 255, 255, .04), 0 40px 80px -24px rgba(0, 0, 0, .7);
}
.phone::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #0B0D0E;
  box-shadow: inset 0 0 0 2px #22282B;
  z-index: 2;
}
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 37px; background: var(--bg); color: var(--text); text-align: left; }

.m-top { background: linear-gradient(90deg, #124734, #0C3125); color: #fff; }
.m-status { height: 34px; padding: 0 22px 0 26px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; }
.m-sys { display: flex; gap: 3px; }
.m-sys .ms { font-size: 14px; }
.m-appbar { height: 42px; padding: 0 6px; display: flex; align-items: center; }
.m-appbar > .ms { font-size: 21px; padding: 8px; }
.m-lang { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 13px; padding: 0 6px; }
.m-lang .ms { font-size: 16px; }

.m-hero { background: var(--hero-diag); color: #fff; padding: 4px 16px 16px; border-radius: 0 0 24px 24px; }
.m-salam { font-size: 11.5px; line-height: 2; color: var(--gold-light); text-align: left; }
.m-name { font-size: 21px; line-height: 1.75; text-align: left; }
.m-en { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.m-prayers { display: flex; gap: 6px; margin: 12px -16px 0 0; overflow: hidden; }
.m-p { flex: none; text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.m-p small { display: block; font-size: 8.5px; font-weight: 500; opacity: .85; line-height: 1.4; }
.m-p b { font-size: 12.5px; font-weight: 600; }
.m-p.on { background: #fff; color: var(--green-dark); }

.m-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.m-card { background: #fff; border-radius: 14px; padding: 9px 12px 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
.m-card-h { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding-bottom: 5px; border-bottom: 1px solid var(--divider); }
.m-card-h .ms { font-size: 17px; color: var(--gold); }
.m-card-h .ur { font-size: 10px; line-height: 1.6; font-weight: 400; }
.m-ar { font-family: var(--font-ar); direction: rtl; text-align: center; font-size: 18px; line-height: 1.9; font-weight: 500; }
.m-ref { font-size: 9px; text-align: center; color: var(--green); font-weight: 500; }
.m-sec { font-size: 13.5px; font-weight: 600; display: flex; align-items: baseline; gap: 4px; }
.m-sec .ur { font-size: 12.5px; line-height: 1.6; font-weight: 400; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tile { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .06); text-align: center; }
.m-art { height: 60px; display: grid; place-items: center; color: #fff; }
.m-tile b { display: block; font-size: 9.5px; font-weight: 600; padding: 5px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile .ur { display: block; font-size: 8px; line-height: 1.9; color: var(--muted); white-space: nowrap; overflow: hidden; padding: 0 4px 2px; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--divider); }
.sec-head { margin-bottom: 28px; max-width: 700px; }
.sec-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.sec-head h2 .sep { color: var(--hint); font-weight: 400; }
.sec-head h2 .ur { font-size: .85em; font-weight: 400; line-height: 1.8; }
.sec-head p { margin-top: 6px; font-size: 15.5px; }

/* Feature tiles — same build as the app's FeatureTile. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .06); }
.tile-art { height: 104px; display: grid; place-items: center; color: #fff; }
.tile-art .ms { font-size: 38px; }
.tile-body { padding: 12px 14px 18px; text-align: center; }
.tile h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.tile .tile-ur { font-size: 13px; line-height: 2; text-align: center; color: var(--muted); }
.tile p:last-child { font-size: 13px; line-height: 1.5; margin-top: 2px; }

/* Install steps. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { margin: 0; padding: 20px; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-light);
  background: var(--green-dark);
  box-shadow: inset 0 0 0 1.5px rgba(230, 201, 122, .75);   /* the crest's gilt ring */
}
.step-top .ms { font-size: 26px; color: var(--green); }
.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--text); }
.step p { font-size: 14px; line-height: 1.6; }
.step .ur-p { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 14px; line-height: 2.1; }
.step p + .ur-p { margin-top: 12px; }

/* Notes styled like the app's AnnouncementBanner. */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.banner { display: flex; gap: 12px; padding: 16px 18px; background: var(--gold-surface); border: 1px solid rgba(201, 162, 74, .45); border-radius: 16px; }
.banner > .ms { flex: none; font-size: 24px; color: var(--gold-dark); }
.banner > div > strong { display: block; font-size: 15px; color: #6F5314; }
.banner p { font-size: 14px; color: var(--text); margin-top: 2px; }
.banner .ur-p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Info + getting started. */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .card { margin: 0; padding: 26px; border-radius: 16px; box-shadow: 0 6px 14px rgba(0, 0, 0, .04); }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-h .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.card-h h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.3; }
.card-h .ur { font-size: 14px; line-height: 1.8; text-align: left; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--text); text-align: right; }
.mini-steps { margin: 4px 0 0; padding-left: 22px; }
.mini-steps li { margin: 8px 0; font-size: 14.5px; }
.mini-steps li::marker { color: var(--gold-dark); font-weight: 600; }
.privacy-note { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--green-surface); }
.privacy-note .ms { flex: none; font-size: 22px; color: var(--green); }
.privacy-note p { font-size: 14px; color: var(--text); }

/* Closing call to action. */
.cta-band { padding-block: 0 72px; }
.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  padding: 32px 36px;
  border-radius: 24px;
  color: #fff;
  background: var(--hero-diag);
}
.cta-card .disc-3 { width: 320px; height: 320px; top: -190px; right: -70px; }
.cta-card .crest { flex: none; width: 72px; height: 72px; margin: 0; }
.cta-text { flex: 1 1 260px; }
.cta-text h2 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; }
.cta-text p { color: rgba(255, 255, 255, .8); }
.cta-text .ur { color: var(--gold-light); font-size: 16px; text-align: left; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* Snackbar shown when a download starts (matches the app's floating SnackBar). */
.snack {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.snack.show { transform: translate(-50%, 0); visibility: visible; }
.snack .ms { color: var(--gold-light); }
.snack a { color: var(--gold-light); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .dl-hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 40px 60px; }
  .dl-hero::before {
    -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 30%, transparent 80%);
  }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home .nav-links { width: auto; }
  .home .nav-links .nl { display: none; }
  .notes, .two-col { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .cta-band { padding-block: 0 52px; }
}
@media (max-width: 560px) {
  .dl-hero { border-radius: 0 0 28px 28px; }
  .bismillah { font-size: 22px; }
  .crest { width: 72px; height: 72px; }
  .cta-row > a, .cta-actions > a { flex: 1 1 100%; justify-content: center; }
  .cta-actions { width: 100%; }
  .phone { zoom: .88; }
  .dl-visual::before { width: 360px; height: 360px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-art { height: 84px; }
  .tile-body { padding: 10px 10px 14px; }
  .steps { grid-template-columns: 1fr; }
  .cta-card { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .brand { font-size: .92rem; }
  .brand small { display: none; }
  .nav-cta .lbl { display: none; }
  .home .nav-links a.nav-cta { padding: 8px; }
  .container { padding-inline: 16px; }
}
