/* Colour tokens mirror apps/mobile/src/theme/tokens.ts */
:root {
  --bg: #FFFFFF;
  --canvas: #FFFCF5;
  --surface: #F2F5F3;
  --card: #FFFFFF;
  --border: #D3DCD8;
  --text: #17201C;
  --muted: #4F5D57;
  --primary: #0E5A47;
  --primary-text: #0E5A47;
  --on-primary: #FFFFFF;
  --primary-soft: #DDEFE7;
  --gold: #8A5F00;
  --gold-soft: #FFF4D9;
  --shadow: 0 18px 40px -18px rgba(14, 50, 38, .28);
  --radius: 24px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', 'Poppins', serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1512; --canvas: #111A16; --surface: #16211D; --card: #16211D;
    --border: #2E3E37; --text: #F1F5F3; --muted: #B4C5BE;
    --primary: #237A5F; --primary-text: #6BE0B6; --primary-soft: #1C3A30;
    --gold: #F2D27A; --gold-soft: #3A2F12;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1512; --canvas: #111A16; --surface: #16211D; --card: #16211D;
  --border: #2E3E37; --text: #F1F5F3; --muted: #B4C5BE;
  --primary: #237A5F; --primary-text: #6BE0B6; --primary-soft: #1C3A30;
  --gold: #F2D27A; --gold-soft: #3A2F12;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ur"] body { font-family: var(--font-ur); line-height: 2.1; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--canvas); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--gold);
  background: var(--gold-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.13rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { color: var(--primary-text); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; font-family: var(--font); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer .brand img { width: 34px; height: 34px; }
.wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--primary-text); letter-spacing: 0; }
.wordmark b { color: var(--gold); font-weight: 700; }
/* The mark is drawn for a light background: give it a cream tile in dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { background: #FFFDF7; padding: 3px; }
}
:root[data-theme="dark"] .brand img { background: #FFFDF7; padding: 3px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.tools { display: flex; gap: 8px; }
.pill-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 999px; height: 38px; min-width: 38px; padding: 0 14px;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pill-btn:hover { border-color: var(--primary-text); }
.pill-btn svg { width: 18px; height: 18px; }
#langBtn { font-family: var(--font-ur); }
html[lang="ur"] #langBtn { font-family: var(--font); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: var(--canvas); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--primary-text); }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-art img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.chip .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.chip .dot svg { width: 16px; height: 16px; }
.chip.c1 { top: 8%; inset-inline-start: -14%; }
.chip.c2 { bottom: 10%; inset-inline-end: -10%; }
.chip.c2 .dot { background: var(--gold-soft); color: var(--gold); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 10px 20px; border-radius: 14px; text-decoration: none;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.3; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.3; font-family: var(--font); }
.store.soon { cursor: default; opacity: .92; }
.store:not(.soon):hover { transform: translateY(-1px); }
.store-note { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* Trust strip */
.trust { padding: 28px 0; border-block: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text);
}
.icon svg { width: 24px; height: 24px; }
.trust .icon { width: 40px; height: 40px; border-radius: 12px; }
.trust .icon svg { width: 20px; height: 20px; }

/* Steps & features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin: 0; }
.card .icon { margin-bottom: 18px; }
.step-no {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 18px;
  font-family: var(--font);
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); max-height: 560px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .75rem/1 var(--font);
  background: var(--primary-soft); color: var(--primary-text);
}
html[lang="ur"] .ticks li::before { margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.mini { padding: 22px; }
.mini h3 { font-size: 1rem; }
.mini p { font-size: .93rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--primary); color: var(--on-primary); margin-top: 28px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--primary-text); border: 1.5px solid var(--primary-text); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .price { font-size: 2.4rem; font-weight: 700; font-family: var(--font); margin: 6px 0 2px; }
.plan .per { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: .93rem; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--primary-text); font-weight: 700; flex: none; }
.plan.featured { border: 2px solid var(--primary-text); }
.plan .tag {
  position: absolute; top: -13px; inset-inline-start: 24px; background: var(--primary); color: var(--on-primary);
  font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}
.plan-desc { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* Safety */
.safety { background: var(--primary); color: #fff; }
.safety .lead { color: rgba(255,255,255,.85); }
.safety .eyebrow { background: rgba(255,255,255,.14); color: #F2D27A; }
.safety .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.safety .card p { color: rgba(255,255,255,.82); }
.safety .icon { background: rgba(242,210,122,.16); color: #F2D27A; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }

/* Download band */
.cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.cta img { border-radius: 20px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; max-width: 300px; justify-self: end; box-shadow: var(--shadow); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
}
html[lang="ur"] .field input, html[lang="ur"] .field select, html[lang="ur"] .field textarea { font-family: var(--font); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-text); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form .btn { margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--primary-soft); color: var(--primary-text); }
.form-status.err { display: block; background: #FCE8E6; color: #B3261E; }
:root[data-theme="dark"] .form-status.err { background: #3A1B18; color: #FF9A90; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.err { background: #3A1B18; color: #FF9A90; } }
.text-link { color: var(--primary-text); font-weight: 600; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0; background: var(--canvas); }
.page-hero .split img { aspect-ratio: 4 / 5; }
.form-card { max-width: 820px; margin-inline: auto; }

/* Footer */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: .4em; }
.legal .updated { font-size: .9rem; }
.note { background: var(--gold-soft); color: var(--text); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .tools { margin-inline-start: auto; }
  .plans, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero .wrap, .split, .cta { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { width: min(360px, 100%); }
  .chip.c1 { inset-inline-start: -10%; }
  .chip.c2 { inset-inline-end: -8%; }
  .grid-3 { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: -1; }
  .split img { max-height: 420px; }
  .cta img { justify-self: center; max-width: 320px; }
}
@media (max-width: 560px) {
  .plans, .grid-4, .grid-2, .trust ul, .form { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
  .chip { font-size: .8rem; padding: 8px 12px; }
  .header .wordmark { font-size: 1.15rem; }
}
