:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #5b6577;
  --line: #dde3ec;
  --brand: #0b4f9c;
  --brand-ink: #ffffff;
  --accent: #f5a623;
  --ok: #1f8a4c;
  --ok-bg: #e7f6ee;
  --bad: #c8102e;
  --bad-bg: #fdecef;
  --radius: 14px;
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

html[lang="ne"] body, html[lang="hi"] body { --font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
html[lang="bn"] body { --font: 'Noto Sans Bengali', 'Noto Sans', system-ui, sans-serif; }
html[lang="ur"] body { --font: 'Noto Nastaliq Urdu', 'Noto Sans', system-ui, sans-serif; line-height: 2.1; }

.alt { font-family: 'Noto Sans', system-ui, sans-serif; }

a { color: var(--brand); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top {
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 0;
}
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font-weight: 700; font-size: 18px; color: inherit; text-decoration: none; letter-spacing: .2px; font-family: 'Noto Sans', system-ui, sans-serif; }
.brand span { color: var(--accent); }

nav.langs { display: flex; flex-wrap: wrap; gap: 6px; }
nav.langs a {
  color: var(--brand-ink);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.6;
}
nav.langs a[aria-current="page"] { background: var(--brand-ink); color: var(--brand); }

.hero { padding: 28px 0 8px; }
.tagline { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
html[lang="ur"] h1 { line-height: 1.9; }
.sub { font-size: 18px; color: var(--ink); margin: 0 0 18px; }

.facts { display: grid; gap: 10px; margin: 18px 0; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); width: 100%; margin-top: 14px; }
.btn.buy { background: var(--accent); color: #1b1b1b; border-color: var(--accent); width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

section.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
section.card h2 { margin: 0 0 10px; font-size: 21px; }
ul.features { margin: 0; padding-inline-start: 22px; }
ul.features li { margin: 4px 0; }
.price { font-size: 18px; margin: 0 0 12px; }

details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; }

footer { color: var(--muted); font-size: 14px; padding: 18px 0 40px; }

/* Quiz */
#quiz { padding: 18px 0 40px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--brand); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 8px; color: var(--muted); font-size: 15px; }
.link { background: none; border: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
.sign { display: flex; justify-content: center; margin: 8px 0 12px; }
.sign svg { width: 120px; height: 120px; }
h2.q { font-size: 21px; line-height: 1.45; margin: 0 0 14px; }
html[lang="ur"] h2.q { line-height: 2; }
.main { display: block; }
.alt { display: block; color: var(--muted); font-size: .82em; font-weight: 400; margin-top: 2px; line-height: 1.45; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: start;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.opt .letter {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Noto Sans', system-ui, sans-serif;
  line-height: 1;
}
.opt.picked { border-color: var(--brand); }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt[disabled] { cursor: default; }

.feedback { margin-top: 14px; padding: 12px 14px; border-radius: 12px; }
.feedback.ok { background: var(--ok-bg); color: #0f5a31; }
.feedback.bad { background: var(--bad-bg); color: #7d0a1d; }
.feedback .answer { margin: 6px 0; font-weight: 700; }
.feedback .why { margin-top: 8px; color: var(--ink); }

.result { text-align: center; padding: 18px; border-radius: var(--radius); }
.result.ok { background: var(--ok-bg); }
.result.bad { background: var(--bad-bg); }
.result .big { font-size: 34px; font-weight: 700; margin: 6px 0; font-family: 'Noto Sans', system-ui, sans-serif; }
ol.mistakes { margin: 18px 0; padding-inline-start: 22px; }
ol.mistakes li { margin: 0 0 12px; }
ol.mistakes .answer { color: var(--ok); font-weight: 700; }
.row { display: flex; gap: 10px; margin-top: 14px; }
.row .btn { flex: 1; }

@media (min-width: 640px) {
  h1 { font-size: 34px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* Practice app */
.timer { font-weight: 700; color: var(--ink); font-family: 'Noto Sans', system-ui, sans-serif; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; }
.link.small { display: block; margin: 10px auto 0; font-size: 14px; }
.notice { background: #fff6e0; border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; }
.muted { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.card-lite { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }

.readiness { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 14px; }
.readiness.ok { background: var(--ok-bg); border-color: #b9e3c9; }
.readiness.bad { background: #fff6e0; border-color: #f3d79a; }
.readiness h2 { margin: 0 0 6px; font-size: 20px; }
.readiness p { margin: 0; }

.modes { display: grid; gap: 10px; }
.mode {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--brand);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}
.mode strong { display: block; font-size: 18px; }
.mode span { color: var(--muted); font-size: 15px; }
.pill { display: inline-block; background: var(--brand); color: #fff !important; border-radius: 99px; padding: 0 9px; font-size: 13px !important; margin-inline-start: 6px; vertical-align: middle; font-family: 'Noto Sans', system-ui, sans-serif; }

h3 { font-size: 19px; margin: 22px 0 10px; }
.topics { display: grid; gap: 8px; margin-bottom: 16px; }
.topic {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}
.tmeta { color: var(--muted); font-size: 14px; font-family: 'Noto Sans', system-ui, sans-serif; }
.tbar { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.tbar span { display: block; height: 100%; background: var(--ok); }
ol.mistakes .why { color: var(--muted); font-size: .95em; margin-top: 4px; }

@media (min-width: 640px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
}

/* Glossary and footer links */
.footnav { font-size: 15px; }
.tablewrap { overflow-x: auto; }
table.gloss { width: 100%; border-collapse: collapse; font-size: 16px; }
table.gloss th { text-align: start; color: var(--muted); font-size: 14px; font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line); }
table.gloss td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.gloss td[lang] { font-family: 'Noto Sans', system-ui, sans-serif; }

/* Unlock form */
.unlock form { display: grid; gap: 10px; margin: 12px 0; }
.unlock input { font: inherit; font-family: 'Noto Sans', system-ui, sans-serif; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; min-height: 52px; }
.unlock input:focus { outline: none; border-color: var(--brand); }
.unlock .btn.primary { margin-top: 0; }

/* Signs library and key numbers */
.signgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.signcard { margin: 0; background: var(--bg); border-radius: 12px; padding: 12px 10px; text-align: center; }
.signcard svg { width: 84px; height: 84px; display: block; margin: 0 auto 8px; }
.signcard figcaption { font-size: 15px; line-height: 1.4; }
.signcard .alt { font-size: 13px; }
table.rules td.num { font-weight: 700; white-space: nowrap; text-align: end; font-family: 'Noto Sans', system-ui, sans-serif; }

/* Saved questions */
.qtools { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.link.fav { text-decoration: none; color: var(--muted); }
.link.fav.on { color: #b77900; font-weight: 700; }

/* ================= Landing page (sales) ================= */
body.lp { background: #f4f7fb; }
body.lp header.top { background: #0a3a86; }
.lp svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp .msign svg { stroke: none; }

.lp-hero {
  background: radial-gradient(1200px 500px at 80% -10%, #2a7de1 0%, rgba(42, 125, 225, 0) 60%), linear-gradient(160deg, #0a3a86 0%, #0b4f9c 55%, #0d5fb8 100%);
  color: #fff;
  padding: 36px 0 56px;
  overflow: hidden;
}
.lp-hero-grid { display: grid; gap: 34px; align-items: center; }
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  margin: 0 0 14px;
}
.lp-hero h1 { font-size: 34px; line-height: 1.15; font-weight: 800; margin: 0 0 14px; letter-spacing: -.3px; }
html[lang="ur"] .lp-hero h1 { line-height: 1.8; }
.lead { font-size: 18px; line-height: 1.6; opacity: .93; margin: 0 0 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.cta {
  background: #ffb703;
  color: #1a1a1a;
  border: 0;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(255, 183, 3, .35);
}
.btn.cta:hover { background: #ffc633; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.ghost-dark { width: 100%; border: 1.5px solid #0b4f9c; color: #0b4f9c; background: #fff; border-radius: 14px; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; background: #22c55e; color: #fff; border-radius: 50%; padding: 3px; stroke-width: 3; }

/* Phone mock-up */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  background: #0f172a;
  border-radius: 38px;
  padding: 11px;
  box-shadow: 0 30px 60px rgba(3, 15, 40, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone-screen { background: #fff; color: #14213d; border-radius: 28px; padding: 14px 14px 16px; }
.mbar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #0b4f9c; font-family: 'Noto Sans', system-ui, sans-serif; }
.mprog { height: 5px; background: #e5eaf2; border-radius: 9px; margin: 8px 0 10px; overflow: hidden; }
.mprog span { display: block; height: 100%; background: #0b4f9c; }
.msign { display: flex; justify-content: center; margin-bottom: 8px; }
.msign svg { width: 64px; height: 64px; }
.mq { font-size: 15px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.mq .alt, .mopt .alt { font-size: 12px; }
.mopt { display: flex; gap: 8px; align-items: flex-start; border: 1.5px solid #dde3ec; border-radius: 12px; padding: 7px 9px; margin-bottom: 7px; font-size: 13px; line-height: 1.35; }
.mopt.right { border-color: #16a34a; background: #ecfdf3; }
.mletter { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; font-family: 'Noto Sans', system-ui, sans-serif; }
.mtick { margin-inline-start: auto; color: #16a34a; }
.mtick svg { width: 18px; height: 18px; stroke-width: 3; }
.mfeedback { background: #ecfdf3; color: #166534; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 7px 10px; text-align: center; }

/* Sections */
.lp-sec { padding: 52px 0; }
.lp-sec.lp-alt { background: #fff; }
.fgrid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sec-title { font-size: 27px; line-height: 1.25; text-align: center; margin: 0 0 28px; font-weight: 800; letter-spacing: -.2px; }
html[lang="ur"] .sec-title { line-height: 1.9; }
.lp main .wrap, .lp .lp-hero .wrap, body.lp header.top .wrap, body.lp footer .wrap { max-width: 1040px; }
.lp main .wrap.narrow { max-width: 760px; }

.pgrid { display: grid; gap: 14px; }
.pcard { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); border: 1px solid #e6ebf2; }
.pbig { font-size: 42px; font-weight: 800; color: #c8102e; line-height: 1; margin-bottom: 8px; font-family: 'Noto Sans', system-ui, sans-serif; }
.pcard p { margin: 0; font-size: 16px; }
.src { text-align: center; margin: 18px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: #f4f7fb; border-radius: 18px; padding: 18px; }
.snum { flex: 0 0 38px; height: 38px; border-radius: 50%; background: #0b4f9c; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Noto Sans', system-ui, sans-serif; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: #475569; }

.fgrid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fcard { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; padding: 16px; font-size: 16px; box-shadow: 0 6px 18px rgba(15, 23, 42, .05); }
.ficon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #e8f0fc; color: #0b4f9c; display: inline-flex; align-items: center; justify-content: center; }
.ficon svg { width: 24px; height: 24px; }

table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e6ebf2; font-size: 16px; }
table.compare th, table.compare td { padding: 14px 12px; border-bottom: 1px solid #eef2f7; text-align: center; }
table.compare th[scope="row"] { text-align: start; font-weight: 600; }
table.compare thead th { font-size: 14px; color: #475569; }
table.compare thead th.us { color: #0b4f9c; font-weight: 800; }
table.compare td.yes { background: #f2fbf5; }
table.compare td svg { width: 22px; height: 22px; stroke-width: 3; }
table.compare td.yes svg { color: #16a34a; }
table.compare td.no svg { color: #94a3b8; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }

.plans { display: grid; gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid #e6ebf2; border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.plan.best { border: 2px solid #0b4f9c; box-shadow: 0 18px 40px rgba(11, 79, 156, .18); }
.plan h3 { margin: 0; font-size: 20px; }
.badge { position: absolute; top: -13px; inset-inline-start: 20px; background: #ffb703; color: #1a1a1a; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.pprice { font-size: 40px; font-weight: 800; margin: 8px 0 14px; font-family: 'Noto Sans', system-ui, sans-serif; }
.pprice s { font-size: 22px; color: #94a3b8; font-weight: 600; margin-inline-end: 4px; }
.pprice small { font-size: 14px; color: #475569; font-weight: 600; }
.plist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plist li { display: flex; gap: 8px; align-items: flex-start; }
.plist svg { flex: 0 0 20px; width: 20px; height: 20px; color: #16a34a; stroke-width: 3; margin-top: 3px; }
.plan .btn.buy { margin: 0; border-radius: 14px; font-size: 18px; box-shadow: 0 10px 24px rgba(255, 183, 3, .3); }
.anchor { margin: 12px 0 0; font-size: 14px; color: #475569; text-align: center; }

.faq details { background: #f4f7fb; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; border: 0; }
.faq summary { font-size: 17px; }
.faq p { margin: 10px 0 0; color: #334155; }

.lp-final { background: linear-gradient(160deg, #0a3a86, #0d5fb8); color: #fff; text-align: center; padding: 48px 0; }
.lp-final h2 { margin: 0 0 18px; font-size: 26px; }
body.lp footer { background: #0b1f3f; color: #b6c3d8; }
body.lp footer a { color: #fff; }

@media (min-width: 760px) {
  .lp-hero { padding: 56px 0 72px; }
  .lp-hero-grid { grid-template-columns: 1.15fr .85fr; }
  .lp-hero h1 { font-size: 50px; }
  .phone { transform: rotate(-2deg); }
  html[dir="rtl"] .phone { transform: rotate(2deg); }
  .sec-title { font-size: 34px; }
  .pgrid, .steps { grid-template-columns: repeat(3, 1fr); }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; }
}
