/* ===========================================================================
   02 — Base: reset, typography, shared utilities, buttons
   Everything here is used by more than one section. A rule that only one
   section needs belongs in that section's own file, not here.
   =========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.62;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{font-family:var(--ff-display);margin:0;line-height:1.1;text-wrap:balance;letter-spacing:-.02em}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
b,strong{font-weight:650}

:focus-visible{outline:3px solid var(--papaya);outline-offset:3px;border-radius:4px}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}

.skip{position:absolute;left:-9999px;top:0;z-index:999;background:var(--cobalt);color:#fff;padding:12px 18px;border-radius:0 0 10px 0}
.skip:focus{left:0}

/* Money and counts line up in columns all over the site. */
.num,.price b,.stat b,.sc-card b{font-variant-numeric:tabular-nums}

/* ── reveal on scroll ──────────────────────────────────────────────────────
   Applied by js/reveal.js. --d staggers siblings.

   Every rule here is gated behind .js, which the inline script in <head> puts
   on <html>. Without that class nothing is hidden, so if a script fails to
   load — a bad deploy, a blocked CDN, a browser with JavaScript off — the
   page is still fully readable instead of blank. It is only allowed to hide
   content because something is guaranteed to show it again. */
.js .rv{opacity:0;transform:translateY(20px);transition:opacity .66s cubic-bezier(.2,.7,.3,1) var(--d,0ms),transform .66s cubic-bezier(.2,.7,.3,1) var(--d,0ms)}
.js .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1;transform:none;transition:none}
}

/* The row entrance used by the phone, the trade list and the mini card. */
@keyframes row{to{opacity:1;transform:none}}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn{
  --b:var(--cta);
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:var(--b);color:var(--on-cta);
  font-weight:650;font-size:15px;line-height:1;
  padding:14px 22px;border-radius:var(--r-md);
  box-shadow:var(--sh-cta);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space:nowrap;
}
.btn svg{width:18px;height:18px;flex:none}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(252,128,69,.42);filter:saturate(1.05)}
.btn:active{transform:translateY(0)}
.btn-lg{padding:17px 28px;font-size:16px;border-radius:14px}
.btn-sm{padding:10px 16px;font-size:14px}
.btn-full{width:100%}
.btn-ghost{
  background:transparent;color:var(--brand-text);
  box-shadow:inset 0 0 0 1.6px var(--rule-2);
}
.btn-ghost:hover{box-shadow:inset 0 0 0 1.6px var(--brand-text);transform:translateY(-2px)}

/* Per-device routes (the platform script in index.html's <head>). Only ever
   hides — never sets display — so a .btn keeps its own inline-flex. With no
   script, data-platform is unset and the Android/Google Play route shows,
   which is where most of the audience is. */
html:not([data-platform="desktop"]):not([data-platform="ios"]) .for-browser{display:none !important}
html[data-platform="desktop"] .for-android,
html[data-platform="ios"] .for-android{display:none !important}
html:not([data-platform="desktop"]) .for-desktop{display:none !important}
html:not([data-platform="ios"]) .for-ios{display:none !important}

/* Title Case on everything that is read as a label rather than a sentence —
   headings, buttons, menus, list items, short labels — the same way the app
   writes its buttons ("Save Karein", "Aage Barhein"). Paragraphs stay in
   sentence case: a capital on every word makes running text hard to read.
   Done in CSS so the Roman Urdu and English copy both follow it unchanged. */
h1,h2,h3,.btn,.nav a,.mnav a,.tab span,.trust b,.assure b,.loss,.calc-q,
.qs summary,.plan li,.ticks li,.lst-name,.lst-open,.lst-t b,.lst-t span,.lst-act span,
.ftr-col a,.pp-tab,.pp-toggle button,.mod-t b,.ps-n,.ftr-tag,.flag,.yearly b{text-transform:capitalize}
