/* ============================================================
   MDM गुरु — website styles (mdmguru.in)
   Brand: deep plum (बैंगन) + kesariya (saffron), warm paper neutrals.
   One shared stylesheet for every page. No build step.
   ============================================================ */

:root {
  --green: #61275f;
  --green-dark: #2e0a33;
  --green-700: #4a154b;
  --saffron: #e8850c;
  --saffron-soft: #fff3df;
  --saffron-line: #f0cd9a;

  --paper: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f4f0e8;
  --ink: #1d1b16;
  --ink-soft: #55514a;
  --muted: #7a766b;
  --line: #e6e0d2;

  --green-tint: #f3e7f3;
  --green-line: #d6b3d4;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .04), 0 8px 28px rgba(20, 40, 25, .07);
  --shadow-sm: 0 1px 2px rgba(20, 40, 25, .05), 0 3px 10px rgba(20, 40, 25, .05);
  --maxw: 1120px;
  --font: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14140f;
    --surface: #1e1d17;
    --surface-2: #24231b;
    --ink: #f3efe6;
    --ink-soft: #cdc8bb;
    --muted: #9c978a;
    --line: #33322a;
    --green-tint: #241a25;
    --green-line: #4a3449;
    --saffron-soft: #2b2113;
    --saffron-line: #4a3a1e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1.02rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); }
.btn-accent { background: var(--saffron); color: #3a2400; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green-line); }
.btn-ghost:hover { background: var(--green-tint); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  display: grid; place-items: center; color: #fff; font-size: 20px; box-shadow: var(--shadow-sm);
}
.brand b { color: var(--saffron); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron-soft); color: #9a5600; border: 1px solid var(--saffron-line);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; margin-bottom: 18px;
}
.hero h1 { color: var(--ink); margin-bottom: 16px; }
.hero h1 .hl { color: var(--green); }
.hero-sub { font-size: 1.18rem; max-width: 34ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: none; }
  .phone-wrap { order: -1; }
}

/* ---------- phone mockup (CSS-drawn app home) ---------- */
.phone-wrap { display: grid; place-items: center; }
.phone {
  width: 288px; border-radius: 40px; background: #0e120f; padding: 12px;
  box-shadow: 0 30px 60px rgba(20, 40, 25, .22), 0 8px 20px rgba(20, 40, 25, .14);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 20px; background: #0e120f; border-radius: 0 0 14px 14px; z-index: 3;
}
.screen { border-radius: 30px; overflow: hidden; background: var(--paper); }
.s-bar { background: var(--green); color: #fff; padding: 26px 16px 14px; font-weight: 800; font-size: 1.1rem; }
.s-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.s-hero { background: var(--green); border-radius: 16px; padding: 14px; color: #fff; }
.s-hero small { opacity: .85; font-size: .72rem; }
.s-hero .t { font-weight: 700; margin: 2px 0 12px; font-size: .95rem; }
.s-cta { background: var(--saffron); color: #3a2400; text-align: center; font-weight: 700; padding: 12px; border-radius: 12px; font-size: .85rem; }
.s-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.s-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.s-chip small { display: block; color: var(--muted); font-size: .62rem; }
.s-chip b { color: var(--ink); font-size: .82rem; }
.s-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.s-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; font-size: .66rem; color: var(--ink-soft); }
.s-tile .ic { font-size: 18px; display: block; margin-bottom: 4px; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 20px; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.trust-item .ic { color: var(--green); font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .kicker { color: var(--saffron); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.section-head h2 { margin: 8px 0 12px; color: var(--ink); }
.section-head p { font-size: 1.1rem; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ficon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px; background: var(--green-tint); border: 1px solid var(--green-line);
}
.card.accent .ficon { background: var(--saffron-soft); border-color: var(--saffron-line); }
.card h3 { color: var(--ink); margin-bottom: 6px; }
.card p { font-size: .98rem; }

@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--ink); margin: 6px 0 6px; }
.step p { font-size: .98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- privacy highlight band ---------- */
.band { background: linear-gradient(160deg, var(--green), var(--green-dark)); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .88); max-width: 60ch; margin: 12px auto 0; font-size: 1.08rem; }
.band .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.band .pill { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .band { padding: 34px 22px; } }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 18px; font-size: 1rem; }

/* ---------- whatsapp community ---------- */
.btn-whatsapp { background: #25d366; color: #06331b; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1fbe5b; }
.community {
  display: flex; align-items: center; gap: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid #25d366; border-radius: var(--radius-lg);
  padding: 32px 36px; box-shadow: var(--shadow);
}
.community-icon {
  flex: none; width: 64px; height: 64px; border-radius: 18px;
  background: #e7f9ee; display: grid; place-items: center; font-size: 32px;
}
.community-body { flex: 1; min-width: 0; }
.community-body h2 { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.community-body p { font-size: 1.05rem; max-width: 56ch; }
.community .btn { flex: none; }
@media (prefers-color-scheme: dark) { .community-icon { background: #16311f; } }
@media (max-width: 760px) {
  .community { flex-direction: column; text-align: center; align-items: center; padding: 30px 22px; gap: 18px; }
  .community-body p { margin-inline: auto; }
}

/* ---------- final cta ---------- */
.cta-final { text-align: center; }
.cta-final h2 { color: var(--ink); }
.cta-final p { font-size: 1.12rem; max-width: 52ch; margin: 12px auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.foot-brand p { margin-top: 12px; font-size: .96rem; max-width: 40ch; }
.foot-col h4 { color: var(--ink); font-size: 1rem; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--ink-soft); padding: 5px 0; font-weight: 500; }
.foot-col a:hover { color: var(--green); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- legal / prose pages ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-hero h1 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .lead { margin-top: 10px; font-size: 1.1rem; }
.page-hero .updated { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.prose { max-width: 780px; margin: 0 auto; padding: 46px 20px 60px; }
.prose h2 { color: var(--ink); font-size: 1.4rem; margin: 34px 0 10px; }
.prose h3 { color: var(--ink); font-size: 1.12rem; margin: 22px 0 6px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 6px 0 14px; padding-left: 22px; }
.prose li { color: var(--ink-soft); margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.callout {
  background: var(--green-tint); border: 1px solid var(--green-line);
  border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 26px;
}
.callout p { color: var(--ink); margin: 0; }
.callout .hi { font-weight: 600; }

/* ---------- support cards ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.support-card .ic { font-size: 28px; }
.support-card h3 { color: var(--ink); margin: 10px 0 6px; }
.support-card a.email { font-weight: 700; font-size: 1.12rem; }
@media (max-width: 620px) { .support-grid { grid-template-columns: 1fr; } }

/* Reveal is a JS-only enhancement: without JS (or for crawlers) content is
   fully visible — the opacity hide applies only when <html> has the .js flag. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Secondary run-on text inside a lead line — used for the "(पहले: MDM गुरु)"
   note that carries the old app name through the rename. */
.muted { color: var(--muted); font-weight: 500; }
