/* MCQ Mitra storefront. One stylesheet for every page. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --ink: #0f172a; --muted: #55627a; --line: #e2e6ef;
  --brand: #1d4ed8; --brand-ink: #ffffff; --brand-soft: #e7eefe; --accent: #f59e0b; --accent-soft: #fff4dc;
  --ok: #15803d; --ok-soft: #e3f6ea; --bad: #b91c1c; --bad-soft: #fde8e8;
  --wa: #1f9d55; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 18px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --surface: #131a2e; --ink: #e8edf7; --muted: #a3aec4; --line: #26304a;
    --brand: #7fb0ff; --brand-ink: #0a1a3a; --brand-soft: #172443; --accent: #fbbf24; --accent-soft: #33280d;
    --ok: #4ade80; --ok-soft: #12351f; --bad: #f87171; --bad-soft: #3d1818; --wa: #34c46e;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #131a2e; --ink: #e8edf7; --muted: #a3aec4; --line: #26304a;
  --brand: #7fb0ff; --brand-ink: #0a1a3a; --brand-soft: #172443; --accent: #fbbf24; --accent-soft: #33280d;
  --ok: #4ade80; --ok-soft: #12351f; --bad: #f87171; --bad-soft: #3d1818; --wa: #34c46e;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 34px; height: 34px; flex: 0 0 auto; }
.logo span b { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav a:hover { background: var(--brand-soft); }
.nav .btn { margin-left: 6px; }
.menu { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 760px) {
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.big { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns { justify-content: center; }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }

/* hero */
.hero { padding: 48px 0 40px; }
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* phone mock in hero */
.phone { justify-self: center; width: min(320px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: 14px; box-shadow: var(--shadow); }
.phone .screen { background: var(--bg); border-radius: 24px; padding: 16px 14px; }
.phone .q { font-weight: 650; margin-bottom: 12px; font-size: .98rem; }
.phone .o { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .92rem; }
.phone .o i { font-style: normal; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 800; flex: 0 0 auto; }
.phone .o.right { background: var(--ok-soft); border-color: var(--ok); }
.phone .o.right i { background: var(--ok); color: #fff; }
.phone .why { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: .85rem; margin-top: 12px; }
.phone .why b { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 12px; }
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.soon { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.app-card .btns { margin-top: auto; padding-top: 6px; }
.app-card.soon { opacity: .9; border-style: dashed; box-shadow: none; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }

/* pricing */
.plans { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); position: relative; }
.plan.best { border: 2px solid var(--brand); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #3a2600; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.plan .per { color: var(--muted); font-size: .9rem; }
.plan ul { padding: 0; margin: 8px 0 12px; list-style: none; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* sample quiz */
.quiz { max-width: 720px; margin: 0 auto; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.qcard .sec { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.qcard .qt { font-weight: 650; font-size: 1.05rem; margin: 6px 0 12px; }
.qcard button.opt { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; font: inherit; color: var(--ink); cursor: pointer; }
.qcard button.opt i { font-style: normal; display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .85rem; flex: 0 0 auto; }
.qcard button.opt.right { background: var(--ok-soft); border-color: var(--ok); }
.qcard button.opt.right i { background: var(--ok); color: #fff; }
.qcard button.opt.wrong { background: var(--bad-soft); border-color: var(--bad); }
.qcard button.opt.wrong i { background: var(--bad); color: #fff; }
.qcard button.opt:disabled { cursor: default; }
.qcard .exp { display: none; background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: .95rem; }
.qcard.done .exp { display: block; }
.qcard .exp b { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.qcard .exp b:first-child { margin-top: 0; }

/* lists and tables */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--brand-soft); font-size: .9rem; }
.table tr:last-child td { border-bottom: 0; }
.table td:last-child, .table th:last-child { text-align: right; }
.scroll-x { overflow-x: auto; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* cta band */
.band { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 36px 24px; text-align: center; }
.band h2 { color: var(--brand-ink); }
.band p { opacity: .92; }
.band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.band .btn.wa { background: var(--wa); color: #fff; border-color: var(--wa); }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--brand); }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: .95rem; }

/* floating WhatsApp button (phones) */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.fab svg { width: 30px; height: 30px; }
.fab[hidden] { display: none; }
