/*
 * Joyful Genius public site, in the logo's colours (navy, magenta, teal, pink, sky).
 * Same tokens as the portal (frontend/src/styles/index.css); backend/pages/tests/test_brand_theme.py
 * checks they match and that the text pairs pass WCAG AA. Light theme only, mobile first.
 */
:root {
  --phala: #011b94;
  --phala-dark: #00106b;
  --phala-hover: #0b2aa6;
  --phala-tint: #e5eafb;
  --zendu: #bf0ea0;
  --zendu-edge: #8a0a74;
  --zendu-hover: #a50c8a;
  --zendu-tint: #fce8f7;
  --zendu-ink: #8a0a74;
  --zendu-line: #f1bde3;
  --on-zendu: #ffffff;
  --gulabi: #ec037f;
  --morpankhi: #019ebb;
  --sky: #bcdff8;
  --shai: #00788c;
  --shai-dark: #005a69;
  --shai-tint: #e6f5f8;
  --popati: #16803f;
  --popati-ink: #12662f;
  --popati-tint: #e3f5e9;
  --kunku: #c8352a;
  --kunku-ink: #a32a21;
  --kunku-tint: #fde8e5;
  --khadu: #f2f7fc;
  --card: #ffffff;
  --ink: #0e1733;
  --muted: #4b5675;
  --line: #d5e1ee;
  --line-strong: #7d8aa6;
  --on-phala: #f2f7fc;
  --r-card: 16px;
  --r-chip: 12px;
  --font-display: "Baloo 2", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 56px;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --header-h: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--khadu);
  color: var(--ink);
  font: 500 16.5px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; text-wrap: balance; }
p, ul, dl, dd, address { margin: 0; }
a { color: var(--shai); text-underline-offset: 3px; }
a:hover { color: var(--shai-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--shai); outline-offset: 2px; border-radius: 6px; }
main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 16px; }
.icon { flex: none; }

/* Missing SiteSettings value: loud on purpose so the founder notices it. */
mark.ph {
  background: var(--zendu-tint);
  color: var(--zendu-ink);
  border: 1px dashed var(--zendu-edge);
  border-radius: 6px;
  padding: 0 0.35em;
  font-weight: 600;
}

/* ---------- buttons ("clay press": magenta fill with white text, darker bottom edge) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 14px;
  font: 700 17px/1.1 var(--font-display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, border-bottom-width 0.08s ease;
}
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn-primary { background: var(--zendu); color: var(--on-zendu); border-bottom: 3px solid var(--zendu-edge); }
.btn-primary:hover { color: var(--on-zendu); background: var(--zendu-hover); }
.btn-dark { background: var(--phala); color: #fff; border-bottom: 3px solid var(--phala-dark); }
.btn-dark:hover { color: #fff; background: var(--phala-hover); }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 19px; }
.btn-block { display: flex; width: 100%; }

/* ---------- site header (matches the portal's SiteHeader) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-in { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
/* The brand shrinks (the name ends in "…") so the login button and menu stay on a phone screen
   whatever Brand name admin sets. */
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand:hover { color: inherit; }
.logo { display: block; flex: none; }
.brand-text { min-width: 0; }
.brand-text b { display: block; font: 800 18px/1 var(--font-display); color: var(--phala); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { display: block; margin-top: 3px; font: 500 12px/1.2 var(--font-body); color: var(--muted); }
.nav-main { display: none; }
.header-cta { position: relative; flex: none; margin-left: auto; min-height: 40px; padding: 8px 14px; border-radius: 12px; border-bottom-width: 2px; font-size: 15.5px; }
.header-cta::after { content: ""; position: absolute; inset: -4px 0; } /* 48px touch target */
.cta-long { display: none; }
.nav-menu { flex: none; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--ink);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  list-style: none;
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:hover { background: var(--khadu); }
.menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-btn .i-close, .nav-menu[open] .menu-btn .i-open { display: none; }
.nav-menu[open] .menu-btn .i-close { display: block; }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -24px rgba(14, 23, 51, 0.45);
  padding: 4px 16px 16px;
}
.menu-panel > nav { display: flex; flex-direction: column; margin-bottom: 12px; }
.menu-panel > nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 600 17px/1.3 var(--font-body);
  text-decoration: none;
}
.menu-panel > nav a[aria-current="page"] { color: var(--phala); font-weight: 700; }

/* Language switch (matches the portal's LangToggle): two links, the current one filled navy.
   In the header bar from 1024px; inside the menu below that. */
.lang-toggle {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.lang-toggle a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 14.5px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.lang-toggle a::after { content: ""; position: absolute; inset: -7px 0; } /* 46px touch target */
.lang-toggle a:hover { background: var(--khadu); color: var(--ink); }
.lang-toggle a[aria-current="true"] { background: var(--phala); color: var(--on-phala); }
.header-in > .lang-toggle { display: none; }
.menu-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin: -4px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 15px/1.3 var(--font-body);
}
@media (min-width: 768px) {
  .header-in { gap: 24px; }
  .header-cta { min-height: 44px; padding: 8px 18px; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
}
/* The links and the language switch join the bar at 1024px (below that they are in the menu),
   as in the portal: in English the labels need the room. */
@media (min-width: 1024px) {
  .nav-main { display: flex; gap: 4px; margin-left: auto; }
  .nav-main a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font: 600 16px/1.3 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-main a:hover { background: var(--khadu); color: var(--ink); }
  .nav-main a[aria-current="page"] { background: var(--phala-tint); color: var(--phala); }
  .header-cta { margin-left: 0; white-space: nowrap; }
  .nav-menu { display: none; }
  .header-in > .lang-toggle { display: inline-flex; }
}
@media (pointer: coarse) and (min-width: 1024px) { .nav-main a { padding-block: 12px; } }

/* ---------- shared blocks ---------- */
.band { padding-block: 44px; }
.band-white { background: #fff; border-block: 1px solid var(--line); }
@media (min-width: 1024px) { .band { padding-block: 72px; } }
.sec-head { max-width: 720px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.sec-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.lead { font-size: 18px; color: var(--muted); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--popati); margin-top: 4px; }
.plain { padding-left: 20px; display: grid; gap: 6px; }
.more { margin-top: 14px; font-weight: 600; }
.toran { height: 16px; background: url("toran.a415531ac4df.svg") repeat-x left top / 24px 16px; }

/* ---------- landing: hero ---------- */
.hero { background: var(--phala); color: var(--on-phala); }
.hero :focus-visible { outline-color: var(--sky); }
.hero-in { display: grid; gap: 28px; padding-block: 28px 44px; }
@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; padding-block: 56px 80px; }
}
.hero-badge { display: block; width: 88px; height: 88px; margin-bottom: 16px; }
@media (min-width: 1024px) { .hero-badge { width: 112px; height: 112px; } }
.chip-dark { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font: 600 14px/1.35 var(--font-body); }
.hero h1 { margin: 16px 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #fff; }
.hero-sub { max-width: 34em; font-size: 18.5px; color: rgba(242, 247, 252, 0.92); }
.hero .en-sub { max-width: 38em; margin-top: 12px; font-size: 15.5px; color: rgba(242, 247, 252, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.link-light { color: #fff; font-weight: 600; }
.link-light:hover { color: var(--sky); }
.hero-note { margin-top: 12px; font-size: 15.5px; color: rgba(242, 247, 252, 0.86); }
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15.5px;
}
.countdown .icon { color: var(--sky); }
.countdown b { color: var(--sky); font-weight: 700; white-space: nowrap; }

/* sample question card */
.sq {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 28px 50px -30px rgba(0, 0, 0, 0.6);
}
.sq :focus-visible { outline-color: var(--shai); }
.sq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sq-title { font-size: 19px; font-weight: 700; }
.tag-pyq { padding: 5px 9px; border: 1px solid var(--zendu-line); border-radius: 8px; background: var(--zendu-tint); color: var(--zendu-ink); font: 600 13px/1.2 var(--font-body); }
.sq-stem { margin: 14px 0; font: 500 18px/1.7 var(--font-body); }
.sq-opts { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 17px/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.opt:hover { border-color: var(--shai); }
.opt:active { transform: scale(0.99); }
.opt[aria-disabled="true"] { cursor: default; transform: none; }
.opt[aria-disabled="true"]:hover { border-color: var(--line); }
.bub {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.8px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font: 700 14px/1 var(--font-body);
}
.opt .st { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font: 600 13.5px/1.2 var(--font-body); white-space: nowrap; }
.opt.ok, .opt.ok:hover { border-color: var(--popati); background: var(--popati-tint); }
.opt.ok .bub { border-color: var(--popati); background: var(--popati); color: #fff; }
.opt.ok .st { color: var(--popati-ink); }
.opt.bad, .opt.bad:hover { border-color: var(--kunku); background: var(--kunku-tint); }
.opt.bad .bub { border-color: var(--kunku); background: var(--kunku); color: #fff; }
.opt.bad .st { color: var(--kunku-ink); }
.sq-verdict { margin-top: 14px; font-weight: 700; }
.sq-explain { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--khadu); color: var(--ink); font-size: 15.5px; }
.sq-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 44px; font-weight: 600; color: var(--phala); }
.sq-more:hover { color: var(--phala-dark); }

/* ---------- landing: trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; padding-block: 16px; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item .ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--phala-tint); color: var(--phala); }
.trust-item b { display: block; font: 700 16.5px/1.3 var(--font-display); }
.trust-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .trust-item:nth-child(2) { border-top: 0; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-item { padding-block: 22px; }
  .trust-item + .trust-item { border-top: 0; }
}

/* ---------- landing: formats ---------- */
.fmt-top { display: flex; align-items: flex-start; gap: 14px; }
.fmt-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--phala-tint); color: var(--phala); }
.fmt h3 { font-size: 21px; font-weight: 700; }
.fmt .muted { font-size: 15.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--khadu); font: 600 15px/1.2 var(--font-body); }
/* English chips ("50 questions") are wider: tighter chips, and from 768px as many columns as fit a
   310px card (2 + 1 up to 1024px), so each card keeps its facts on one row. Marathi keeps v2's grid. */
html[lang="en"] .fmt .facts { gap: 6px; }
html[lang="en"] .fmt .facts li { padding: 7px 9px; }
@media (min-width: 768px) { html[lang="en"] .fmt-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); } }

/* ---------- landing: units ---------- */
.unit-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1024px) { .unit-grid { gap: 20px; } }
.unit { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--khadu); }
.unit-head { display: flex; align-items: center; gap: 12px; }
.unit-no { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--phala); color: #fff; font: 800 19px/1 var(--font-display); }
.unit h3 { font-size: 19px; font-weight: 700; }
.unit-count { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14.5px; line-height: 1.4; }
/* Two or more live subjects: one group per subject, the first open (details, so no JavaScript), its
   units' names one heading level down. */
.subject-groups { display: grid; gap: 14px; }
.subject-group { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.subject-group > summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.subject-group > summary::-webkit-details-marker { display: none; }
.subject-group > summary::after {
  content: "";
  align-self: center;
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 4px 0 auto;
  border-right: 2.2px solid var(--muted);
  border-bottom: 2.2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.subject-group[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.subject-group > summary h3 { font-size: 21px; font-weight: 700; }
.subject-group .unit-grid { padding: 0 18px 18px; }
.unit h4 { font-size: 19px; font-weight: 700; }
/* The subject test's card with two or more live subjects: one line per subject. */
.facts-lines { flex-direction: column; align-items: flex-start; }

/* ---------- packs (landing + pricing) ---------- */
.price-wrap { display: grid; gap: 28px; }
@media (min-width: 1024px) { .price-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 56px; } }
.price-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.price-copy .lead { margin: 6px 0 18px; }
.pack-list { display: grid; gap: 20px; align-content: start; }
.pack-card { position: relative; padding: 26px 22px 22px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; }
.pack-card.featured { border: 2px solid var(--phala); }
.pack-card .badge { position: absolute; top: -13px; left: 20px; padding: 5px 10px; border: 1px solid var(--zendu-edge); border-radius: 999px; background: var(--zendu); color: var(--on-zendu); font: 700 13.5px/1.2 var(--font-body); }
.pack-card h3 { font-size: 22px; font-weight: 700; }
.pack-en { color: var(--muted); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 16px; }
.price b { color: var(--phala); font: 800 48px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-weight: 600; }
.pack-card .checks { margin-bottom: 18px; }
.pack-desc { margin: -6px 0 18px; color: var(--muted); font-size: 15.5px; }
/* Marathi mode: the card's key terms again in English, for English readers such as Razorpay's reviewers. */
.pack-terms-en { margin: -6px 0 18px; color: var(--muted); font-size: 15px; }
/* Purchases switched off in admin: a quiet note where the buy button was. */
.paused-note { margin: 0; padding: 12px 14px; border-radius: var(--r-chip); background: var(--khadu); color: var(--ink); font-size: 16px; }
.paused-note a { color: var(--shai); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pricing page ---------- */
.page-head { padding-block: 32px 20px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-head .lead { margin-top: 6px; }
.en-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.card .en-sub { margin-top: 10px; }
.pricing-layout { display: grid; gap: 20px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .page-head { padding-block: 48px 28px; }
  .pricing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
  .pricing-layout .pack-list { position: sticky; top: calc(var(--header-h) + 24px); }
}
.pricing-side { display: grid; gap: 16px; }
.pay-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600; }
.pay-line .icon { color: var(--phala); }
.pay-total { margin-top: 10px; }
.agree { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--phala); border-radius: 12px; background: #fff; font-weight: 600; }
.empty { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; } }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--khadu); }
.faq details + details { margin-top: 10px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  font: 700 17.5px/1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2.2px solid var(--muted);
  border-bottom: 2.2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .ans { padding: 0 16px 16px; }
.faq .ans ul { padding-left: 20px; margin-bottom: 6px; }

/* ---------- closing call to action ---------- */
.cta-band { background: var(--phala); color: var(--on-phala); }
.cta-band :focus-visible { outline-color: var(--sky); }
.cta-in { display: grid; justify-items: center; gap: 12px; padding-block: 44px 52px; text-align: center; }
.cta-in h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta-in p { color: rgba(242, 247, 252, 0.88); margin-bottom: 8px; }

/* ---------- policy pages (English, with a Marathi summary box) ---------- */
.policy-layout { display: grid; gap: 28px; padding-block: 28px 56px; }
@media (min-width: 1024px) { .policy-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 48px 80px; } }
.policy { max-width: 760px; }
.eyebrow { color: var(--phala); font: 700 13px/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow:lang(mr) { letter-spacing: 0; } /* spacing breaks the Devanagari headline */
.policy h1 { margin-top: 6px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.updated { margin-top: 6px; color: var(--muted); font-size: 15px; }
.mr-summary { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--zendu-line); border-radius: var(--r-card); background: var(--zendu-tint); }
.mr-summary h2 { margin-bottom: 6px; color: var(--zendu-ink); font-size: 18px; font-weight: 700; }
.mr-summary ul { padding-left: 20px; display: grid; gap: 4px; }
.prose { margin-top: 28px; }
.prose > * + * { margin-top: 12px; }
.prose h2 { margin-top: 32px; font-size: 22px; font-weight: 700; }
.prose h2 + * { margin-top: 8px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.lead-box { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--phala); border-radius: 12px; background: #fff; }
.policy-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) { .policy-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.side-card h2 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
nav.side-card a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
nav.side-card a:hover { color: var(--ink); text-decoration: underline; }
nav.side-card a[aria-current="page"] { color: var(--phala); font-weight: 700; }
.side-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.contact-lines { display: grid; gap: 6px; padding: 0; list-style: none; font-size: 15px; overflow-wrap: anywhere; }
.contact-lines .k { display: inline-block; min-width: 82px; color: var(--muted); font-weight: 600; }
.contact-dl { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; overflow-wrap: anywhere; }
.contact-dl > div { display: grid; gap: 2px; padding: 14px 18px; }
.contact-dl > div + div { border-top: 1px solid var(--line); }
.contact-dl dt { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.contact-dl .dt-en { display: block; font-weight: 500; }
.contact-dl address { font-style: normal; }
@media (min-width: 640px) { .contact-dl > div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; } }

/* ---------- error pages (404, 500) ---------- */
.error-page { display: grid; justify-items: start; gap: 12px; max-width: 640px; padding-block: 48px 72px; }
.error-code { color: var(--phala); font: 800 56px/1 var(--font-display); }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 12px; }
.error-actions > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { padding-top: 40px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; } }
.footer-brand p { margin-top: 10px; color: var(--muted); }
.footer-brand .operator { color: var(--ink); font-weight: 600; }
.footer-brand address { margin-top: 2px; color: var(--muted); font-style: normal; }
.footer-col h2 { margin-bottom: 8px; font-size: 15.5px; font-weight: 700; }
.footer-col > a { display: block; padding-block: 6px; color: var(--muted); text-decoration: none; }
.footer-col > a:hover { color: var(--ink); text-decoration: underline; }
@media (pointer: coarse) { .footer-col > a { padding-block: 11px; } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:active, .opt:active { transform: none; }
}
