/*
 * Nityabhyas website – one stylesheet.
 * Colours, type and shapes follow the app's design system (Rozabhyas docs/DESIGN.md, "Jamun" palette).
 * Rules carried over from the app: purple for action, apricot only for rewards, green/red never decorative,
 * flat surfaces with 1px borders (no shadows), designed dark mode (not inverted).
 */
@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FAF7FC;
  --surface: #FFFFFF;
  --surface2: #F3EEF8;
  --border: #E9E1F0;
  --ink: #241433;
  --muted: #5E5470;
  --primary: #5B2A86;
  --on-primary: #FFFFFF;
  --btn-bg: #5B2A86;
  --btn-text: #FFFFFF;
  --link: #5B2A86;
  --tint: #EFE7F6;
  --hero-bg: #5B2A86;
  --on-hero: #FFFFFF;
  --on-hero-sub: #E2D4EF;
  --progress: #F2A65A;
  --reward: #E8892F;
  --on-reward: #2A1606;
  --reward-bg: #FDEBD9;
  --reward-ink: #7A3B0C;
  --phone-frame: #241433;

  --font: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --radius-chip: 8px;
  --radius-tile: 12px;
  --radius-btn: 16px;
  --radius-card: 18px;
  --radius-hero: 22px;
  --radius-pill: 999px;
  --max: 1200px;
  --read: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
}

/* Dark: the designed dark token set (DESIGN §2), following the system unless the visitor picked light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141019; --surface: #1E1826; --surface2: #282032; --border: #3A3047;
    --ink: #F1ECF7; --muted: #B8AECA; --primary: #C9A7F0; --on-primary: #1E0F33;
    --btn-bg: #C9A7F0; --btn-text: #1E0F33; --link: #D4B8F5; --tint: #2E2340;
    --hero-bg: #4A2775; --on-hero-sub: #E3D5F5; --progress: #F7B57A;
    --reward: #F7B57A; --reward-bg: #3A2614; --reward-ink: #FFC999; --phone-frame: #0B080F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141019; --surface: #1E1826; --surface2: #282032; --border: #3A3047;
  --ink: #F1ECF7; --muted: #B8AECA; --primary: #C9A7F0; --on-primary: #1E0F33;
  --btn-bg: #C9A7F0; --btn-text: #1E0F33; --link: #D4B8F5; --tint: #2E2340;
  --hero-bg: #4A2775; --on-hero-sub: #E3D5F5; --progress: #F7B57A;
  --reward: #F7B57A; --reward-bg: #3A2614; --reward-ink: #FFC999; --phone-frame: #0B080F;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
:lang(hi) body, body:lang(hi) { line-height: 1.7; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--progress); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 700; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
:lang(hi) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; padding: 10px 12px; border-radius: var(--radius-tile); min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--link); }
.tools { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; background: var(--surface); }
.lang-switch a, .lang-switch span { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 0 10px; }
.lang-switch [aria-current="true"] { background: var(--tint); color: var(--link); }
.icon-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: var(--radius-tile); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-toggle .sun { display: none; } :root:not([data-theme]) .theme-toggle .moon { display: block; } }
.menu-btn { display: none; }
.nav-theme { display: none; }
@media (max-width: 880px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .theme-toggle--bar { display: none; }
  .nav-theme { display: flex; align-items: center; min-height: 48px; padding: 12px; margin-top: 4px; border: 1px solid var(--border); border-radius: var(--radius-tile); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 17px; text-align: left; cursor: pointer; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-btn); font-weight: 700; font-size: 18px; text-decoration: none; border: 1px solid transparent; }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--secondary { background: var(--surface); color: var(--link); border-color: var(--border); }
.btn--secondary:hover { background: var(--tint); }
.play-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.play-badge img { height: 72px; width: auto; } /* Google's official badge; its transparent padding is part of the artwork */

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: var(--on-hero); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--on-hero); }
.hero .tagline-hi { color: var(--progress); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; margin: -4px 0 18px; }
.hero .lead { color: var(--on-hero-sub); font-size: 21px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; padding: 0; list-style: none; }
.hero .chips li { border: 1px solid color-mix(in srgb, var(--on-hero-sub) 45%, transparent); color: var(--on-hero); border-radius: var(--radius-pill); padding: 4px 14px; font-weight: 600; font-size: 16px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero .cta-note { color: var(--on-hero-sub); font-size: 16px; }
.hero .cta-note span { white-space: nowrap; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 24px; min-height: 520px; }
.phone { width: 250px; flex: none; border-radius: 40px; padding: 10px; background: var(--phone-frame); border: 1px solid color-mix(in srgb, var(--on-hero) 18%, transparent); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; background: #FAF7FC; }
.phone--back { margin-top: 64px; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { min-height: 0; }
  .phone--back { display: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.section--alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.tile { width: 52px; height: 52px; border-radius: var(--radius-tile); background: var(--tint); color: var(--link); display: grid; place-items: center; margin-bottom: 16px; }
.tile svg { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.steps li h3 { margin: 4px 0 4px; }
.steps li p { color: var(--muted); margin: 0; }
.steps .phones { min-height: 0; }
.steps .phone { width: 230px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Exams ---------- */
.exam h3 { margin-bottom: 6px; }
.exam ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.exam li { color: var(--muted); font-size: 16px; padding-left: 18px; position: relative; }
.exam li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.note { font-size: 15px; color: var(--muted); margin-top: 22px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-hero); padding: 30px; display: flex; flex-direction: column; }
.section--alt .plan { background: var(--bg); }
.plan--pro { border: 2px solid var(--primary); }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-size: 44px; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); font-size: 16px; min-height: 2.8em; }
.reward-pill { background: var(--reward-bg); color: var(--reward-ink); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; padding: 3px 12px; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 17px; }
.checks svg { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.plan .fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots .phone { width: 220px; padding: 8px; border-radius: 34px; }
.shots .phone img { border-radius: 27px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 16px; font-weight: 600; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--read); margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.section--alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-weight: 800; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }
.more { text-align: center; margin-top: 28px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero-bg); color: var(--on-hero); border-radius: var(--radius-hero); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta-band img.icon { width: 88px; height: 88px; border-radius: 22px; }
.cta-band h2 { color: var(--on-hero); margin: 0 0 6px; }
.cta-band p { color: var(--on-hero-sub); margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 32px; margin-top: var(--section); font-size: 16px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
:lang(hi) .site-footer h2 { letter-spacing: 0; text-transform: none; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .about { color: var(--muted); max-width: 340px; }
.legal-line { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--tint); border-bottom: 1px solid var(--border); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.page-head .meta { color: var(--muted); font-size: 16px; margin: 0; }
.page-head .lead { margin: 0; }
.prose { max-width: var(--read); margin: 0 auto; padding: clamp(40px, 6vw, 64px) 0 0; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.8em 0 .6em; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose ol > li { padding-left: .2em; }
.prose strong { font-weight: 700; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius-tile); padding: 16px 20px; margin: 0 0 1.4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); margin: 0 0 1.6em; background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15.5px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--surface2); font-weight: 700; font-size: 14px; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; min-width: 150px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-hero); padding: 24px; margin: 0 0 2.4em; }
.contact-card .tile { margin: 0; }
.contact-card h2 { margin: 0 0 4px !important; font-size: 22px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a.email { font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps-list > li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; margin: 0 !important; }
.steps-list > li::before { content: counter(s); width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--tint); color: var(--link); display: grid; place-items: center; font-weight: 800; }
.steps-list h3 { margin: 4px 0 4px; font-size: 19px; }
.steps-list p { margin: 0; color: var(--muted); }
.not-found { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.not-found .code { font-size: clamp(72px, 14vw, 140px); font-weight: 800; line-height: 1; color: var(--primary); margin: 0 0 8px; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.placeholder { background: var(--reward-bg); color: var(--reward-ink); border-radius: 6px; padding: 0 6px; font-weight: 700; }
