:root {
  --green: #00564F;
  --deep: #022D2B;
  --gold: #2BD4B4;
  --pale: #CFF8EF;
  --paper: #faf6ec;
  --card: #fffdf8;
  --ink: #1d2b27;
  --muted: #5c6b66;
  --line: #e8dcc2;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1a17;
    --card: #132520;
    --ink: #eef3f1;
    --muted: #a9b8b3;
    --line: #23413a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--green); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; margin-inline-end: auto; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--pale); }
.lang select {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(243,217,156,.5);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .95rem; cursor: pointer;
}
.lang option { color: #111; }
.menu { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; cursor: pointer; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 10px; font-size: .95rem; }
.nav a { text-decoration: none; color: rgba(255,255,255,.8); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: #fff; border-color: var(--gold); }
@media (max-width: 760px) {
  .menu { display: block; }
  .nav { display: none; flex-direction: column; padding-bottom: 14px; }
  .nav.open { display: flex; }
}

/* Hero */
.hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23daad5b' stroke-opacity='.12' stroke-width='1.5'%3E%3Crect x='33' y='33' width='54' height='54'/%3E%3Crect x='33' y='33' width='54' height='54' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 140% at 20% 0%, #008577, var(--green) 55%, var(--deep));
  color: #fff;
  padding: 48px 0 56px;
  overflow: hidden;
}
.hero .lead { color: rgba(255,255,255,.82); }
.hero.small { padding: 36px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--pale); font-weight: 600; margin: 0 0 .6rem; }
.crumbs { color: var(--pale); margin: 0 0 .8rem; font-size: .95rem; }
.crumbs a { text-decoration: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn.gold { background: var(--gold); color: var(--green); }
.btn.light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn:hover { filter: brightness(1.06); }

/* Phones */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.phone {
  margin: 0; width: clamp(150px, 18vw, 220px);
  border-radius: 28px; padding: 7px; background: #141414;
  box-shadow: 0 0 0 1.5px #8c7a44, 0 18px 40px rgba(0,0,0,.35); overflow: hidden;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.phones .p0 { transform: rotate(-6deg) translateY(18px); margin-inline-end: -40px; }
.phones .p1 { z-index: 2; width: clamp(170px, 21vw, 250px); }
.phones .p2 { transform: rotate(6deg) translateY(18px); margin-inline-start: -40px; }
@media (max-width: 860px) { .phones { min-height: 0; } .phone { width: 31vw; } .phones .p1 { width: 36vw; } }

/* Feature cards */
.features { padding: 56px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  padding: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,64,52,.12); }
.card img { width: 96px; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); }
.card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.card p { margin: 0 0 .5em; color: var(--muted); }
.more { color: var(--gold); font-weight: 700; }

/* Feature page */
.feature { padding: 48px 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) 1.1fr; gap: 40px; align-items: start; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-items: center; }
.shots.n1 { grid-template-columns: 1fr; }
.shots .phone { width: 100%; max-width: 250px; }
.benefits, .steps { padding-inline-start: 1.2em; margin: 0 0 2rem; }
.benefits li, .steps li { margin-bottom: .7em; }
.benefits li::marker { color: var(--gold); }
.steps li::marker { color: var(--gold); font-weight: 700; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* Download */
.download { background: var(--card); border-block: 1px solid var(--line); padding: 52px 0; text-align: center; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.store {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 12px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--paper); text-decoration: none; color: var(--muted); position: relative; min-height: 130px;
}
.store img { height: 54px; width: auto; }
.store img.gp { height: 62px; margin: -4px 0; }
.store.rec { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(218,173,91,.25); }
.store .tag { position: absolute; top: -11px; background: var(--gold); color: var(--green); font-size: .8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.store.off { opacity: .55; pointer-events: none; }
.ag-badge, .web-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px;
  border-radius: 9px; background: #000; color: #fff; font-size: .95rem; border: 1px solid #a6a6a6;
}
.web-badge { background: var(--green); border-color: var(--green); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.note { color: var(--muted); margin: 14px 0 0; }
dialog { border: none; border-radius: var(--radius); padding: 24px; width: min(460px, 100% - 32px); background: var(--card); color: var(--ink); text-align: start; }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
dialog summary { font-weight: 700; cursor: pointer; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.more-features { padding: 28px 0; }
.more-features .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.more-features a { text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* Footer */
.foot { background: var(--deep); color: rgba(255,255,255,.78); padding: 32px 0; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 10px 0; }
.foot a { text-decoration: none; }
.foot .small { font-size: .85rem; opacity: .7; }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin: auto; width: max-content; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 30; }

/* Nastaliq letters are tall: more room between lines. */
html[lang="ur"] body { line-height: 2.1; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; }

/* About page */
.wrap.narrow { width: min(760px, 100% - 32px); }
.about-hero { text-align: center; }
.about-logo { display: block; margin: 0 auto 10px; }
.about-hero .version { color: var(--pale); opacity: .8; margin: 0; font-size: .95rem; }
.about { padding: 40px 0; }
.about h2 { margin-top: 1.6em; }
.about .dua { text-align: center; font-weight: 600; color: var(--green); background: rgba(218,173,91,.14); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
@media (prefers-color-scheme: dark) { .about .dua { color: var(--pale); } }
.donors { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.donors-head { text-align: center; padding: 18px 16px 14px; background: rgba(218,173,91,.12); color: var(--gold); }
.donors-head h3 { color: var(--green); margin: 6px 0 2px; }
@media (prefers-color-scheme: dark) { .donors-head h3 { color: var(--pale); } }
.donors-head p { margin: 0; font-weight: 600; font-size: .95rem; }
#donor-list { list-style: none; margin: 0; padding: 0; }
#donor-list li { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
#donor-list .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--gold); background: rgba(218,173,91,.18); }
#donor-list b { display: block; }
#donor-list .country { display: block; color: var(--muted); font-size: .9rem; }
#donor-list q { display: block; margin-top: 6px; font-style: italic; quotes: none; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact span { color: var(--muted); }
.credits { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; background: var(--card); }
.credits summary { cursor: pointer; list-style: none; }
.credits summary h2 { display: inline; font-size: 1.15rem; margin: 0; }
.credits summary::after { content: " ▾"; color: var(--gold); }
.credits h3 { font-size: 1rem; margin: 1em 0 .2em; }

/* Supporting the work */
.donate { text-align: center; background: var(--card); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 22px 18px; margin: 24px 0; }
.donate h3 { color: var(--green); margin-bottom: .3em; }
@media (prefers-color-scheme: dark) { .donate h3 { color: var(--pale); } }
.donate p { margin: 0 0 14px; color: var(--muted); }
.donate .contact { justify-content: center; margin: 0; }
.home-donors { padding: 8px 0 32px; }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; }
.gallery { padding: 8px 0 48px; }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x proximity; }
.strip figure { margin: 0; flex: 1 0 190px; max-width: 240px; text-align: center; scroll-snap-align: start; }
.strip img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); }
.strip figcaption { margin-top: 8px; font-weight: 600; }
.lang { min-width: 0; }
.lang select { min-width: 0; max-width: 42vw; }
.actions .btn { max-width: 100%; white-space: normal; }
.card .more { color: #00786B; }
