/* Naam Jap Mitra website. Brand: orange #F2580C, gold #FFD54A, warm cream and deep brown.
   Fonts: Anek Gujarati (Latin + Gujarati) and Anek Devanagari, self-hosted (OFL). */

@font-face { font-family: "Anek"; src: url("../fonts/anek-gujarati.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-024F, U+0A80-0AFF, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF, U+25CF, U+A830-A839; }
@font-face { font-family: "Anek"; src: url("../fonts/anek-devanagari.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Num"; src: url("../fonts/anek-condensed.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --orange: #F2580C; --orange-d: #C9430A; --orange-l: #FF8A4C;
  --gold: #FFD54A; --gold-d: #E8B21C;
  --ink: #1C110A; --ink-2: #4A3A2E; --ink-3: #7A6A5E;
  --cream: #FFF8F1; --sand: #FCEBDC; --card: #FFFFFF;
  --line: #EED9C6; --line-2: #E2C4A8;
  --night: #170C06; --night-2: #24140B; --night-3: #3A2214;
  --ok: #1D7A43; --err: #B3261E;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 0 rgba(28,17,10,.04), 0 10px 30px -12px rgba(120,48,8,.28);
  --shadow-lg: 0 30px 70px -30px rgba(120,48,8,.55);
  --font: "Anek", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --num: "Anek Num", "Anek", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 500 17px/1.6 var(--font); color: var(--ink); background: var(--cream); text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--orange-d); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
.lang-hi h1, .lang-hi h2, .lang-hi h3, .lang-gu h1, .lang-gu h2, .lang-gu h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .55em 1.15em; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { min-height: 56px; padding: .7em 1.5em; font-size: 17px; }
.btn-sm { min-height: 38px; padding: .4em 1em; font-size: 15px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(242,88,12,.8); }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: var(--gold); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--orange); color: var(--orange-d); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn[aria-disabled="true"] { opacity: .85; cursor: default; }
.textlink { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.textlink .ic { width: 1em; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,248,241,.86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { border-radius: 11px; box-shadow: 0 4px 12px -4px rgba(242,88,12,.6); }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--ink); background: var(--sand); }
.mainnav .nav-cta { margin-left: 8px; color: #fff; background: var(--orange); }
.mainnav .nav-cta:hover { background: var(--orange-d); color: #fff; }
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: 15px; background: #fff; }
.langpick summary::-webkit-details-marker { display: none; }
.langmenu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; display: grid; }
.langmenu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.langmenu a:hover, .langmenu a[aria-current] { background: var(--sand); }
.menubtn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menubtn span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 600px at 85% -10%, rgba(242,88,12,.45), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(255,213,74,.18), transparent 60%), linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, #3b1a08 100%); color: #FFF4EA; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 84px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,213,74,.14); border: 1px solid rgba(255,213,74,.45); color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); margin: 18px 0 16px; color: #fff; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #F3DCCB; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero .btn-dark { background: #fff; color: var(--ink); }
.hero .btn-dark:hover { color: var(--orange-d); }
.hero .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-light:hover { border-color: var(--gold); color: var(--gold); }
.hero .textlink { color: var(--gold); }
.hero-stats { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #EBCDB7; font-weight: 600; font-size: 15px; }
.hero-stats li { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats .ic { color: var(--gold); }
.hero-art { display: flex; justify-content: center; }
.phone { width: min(320px, 82vw); aspect-ratio: 9/18.5; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #3a2a20, #0d0704); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(3deg); }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #1F120A, #120904); padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.ph-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: #fff; }
.ph-top img { border-radius: 8px; }
.ph-hero { border-radius: 18px; padding: 14px; background: linear-gradient(160deg, rgba(242,88,12,.35), rgba(242,88,12,.08)); border: 1px solid rgba(242,88,12,.5); }
.ph-hero span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.ph-hero strong { display: block; font: 800 40px/1 var(--num); color: #fff; margin: 4px 0 10px; }
.ph-bar { height: 7px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.ph-mala { display: flex; justify-content: center; }
.ph-mala .on { fill: var(--gold); } .ph-mala .off { fill: rgba(255,255,255,.18); }
.ph-count { font: 800 46px var(--num); fill: #fff; } .ph-sub { font: 700 15px var(--font); fill: #C9AE98; }
.ph-row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #F3DCCB; font-size: 13px; font-weight: 600; }
.ph-row b { color: var(--gold); font-family: var(--num); font-size: 15px; }

/* Sections */
.section { padding: 76px 0; }
.section.tight { padding: 28px 0 70px; }
.section.alt { background: linear-gradient(180deg, var(--sand), var(--cream)); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sublead { color: var(--ink-2); font-size: 19px; max-width: 42em; margin-bottom: 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pagehead { padding: 64px 0 24px; background: linear-gradient(180deg, var(--sand), var(--cream)); border-bottom: 1px solid var(--line); }
.pagehead.compact { padding: 44px 0 14px; }
.pagehead h1 { font-size: clamp(34px, 5vw, 56px); }
.pagehead .lead { font-size: 19px; color: var(--ink-2); max-width: 44em; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.empty { color: var(--ink-3); font-size: 18px; text-align: center; padding: 40px 0; }

/* Kinds */
.kinds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kind { border-radius: var(--r); padding: 22px 18px; color: #fff; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kind::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 10px dotted rgba(255,255,255,.25); }
.kind b { font-size: 22px; font-weight: 800; }
.kind span { font-size: 15px; opacity: .92; }
.k1 { background: linear-gradient(150deg, #F2580C, #C33F05); }
.k2 { background: linear-gradient(150deg, #B3261E, #7A1414); }
.k3 { background: linear-gradient(150deg, #6A2C91, #3E1660); }
.k4 { background: linear-gradient(150deg, #0E7C66, #08493C); }
.k5 { background: linear-gradient(150deg, #C98B00, #8A5E00); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.feature { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: var(--orange-l); }
.ficon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(150deg, var(--orange), var(--orange-d)); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(242,88,12,.8); }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.steps li > b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 800 22px var(--num); margin-bottom: 14px; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-2); margin: 0; }

/* Festivals */
.fest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fest-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 34px; }
.month { font-size: 26px; margin: 10px 0 14px; color: var(--orange-d); }
.fest { display: flex; gap: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.fest-date { flex: none; width: 64px; height: 70px; border-radius: 16px; background: var(--night-2); color: #fff; display: grid; place-items: center; align-content: center; line-height: 1; }
.fest-date b { font: 800 30px var(--num); color: var(--gold); }
.fest-date span { font-size: 13px; font-weight: 700; margin-top: 4px; text-transform: uppercase; }
.fest-ekadashi .fest-date { background: linear-gradient(160deg, #0E7C66, #08493C); }
.fest h3 { font-size: 19px; margin: 6px 0 4px; }
.fest p { margin: 0; color: var(--ink-2); font-size: 15px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chip-ekadashi { background: #DDF3EC; color: #0A5C4A; }
.chip-festival { background: #FFE6D6; color: #9A3407; }
.when { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-btn { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.chip-btn[aria-current] { background: var(--ink); color: var(--gold); border-color: var(--ink); }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.postcard { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.postcard:hover { transform: translateY(-3px); border-color: var(--orange-l); color: var(--ink); }
.postcard img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.postcard-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.postcard h3 { font-size: 21px; margin: 0; }
.postcard p { color: var(--ink-2); margin: 0; font-size: 16px; flex: 1; }
.postcard .meta { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.postcard .more { color: var(--orange-d); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.postcard .more .ic { width: 1em; }
.article { padding: 40px 0 30px; }
.article h1 { font-size: clamp(32px, 5vw, 50px); margin-top: 12px; }
.article .meta { color: var(--ink-3); font-weight: 600; }
.article .cover { border-radius: var(--r); margin: 16px 0 26px; width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.2em 0; padding: 16px 20px; border-left: 5px solid var(--orange); background: var(--sand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 600; }
.legal h2 { font-size: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-bottom: 30px; }
.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding: 0 22px 18px; font-size: 17px; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 34px 38px; border-radius: 30px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0, rgba(255,213,74,.35), transparent 60%), linear-gradient(140deg, var(--orange), #B83A06); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #FFE7D8; }
.cta-band .cta-row { margin: 0; }
.cta-band .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-light:hover { color: var(--gold); border-color: var(--gold); }
.cta-band.small { padding: 24px 28px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
input, textarea, select { font: 500 17px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,88,12,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 700; margin-bottom: 16px; }
.notice.ok { background: #E3F4EA; color: var(--ok); border: 1.5px solid #B7E0C7; }
.notice.err { background: #FCE8E6; color: var(--err); border: 1.5px solid #F4C3BE; }

/* Web counter */
.counter { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: center; }
.counter-side { display: grid; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.counter-side label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.c-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-stats div { background: var(--sand); border-radius: var(--r-sm); padding: 12px 14px; }
.c-stats span { display: block; font-size: 13px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.c-stats b { font: 800 30px var(--num); }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mala { position: relative; justify-self: center; width: min(520px, 92vw); aspect-ratio: 1; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 50% 42%, #3A2214 0%, #1C0F07 62%, #120904 100%); box-shadow: 0 40px 80px -36px rgba(80,30,5,.9), inset 0 0 0 2px rgba(255,213,74,.18);
  display: grid; place-items: center; color: #fff; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.mala:active { transform: scale(.99); }
.mala svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mala .bead { fill: rgba(255,255,255,.16); transition: fill .15s; }
.mala .bead.on { fill: var(--gold); }
.mala .bead.cur { fill: #fff; }
.mala .guru { fill: var(--orange); }
.mala-num { font: 800 clamp(72px, 14vw, 128px)/1 var(--num); position: relative; }
.mala-sub { position: absolute; top: 63%; font: 700 20px var(--font); color: #C9AE98; }
.mala-hint { position: absolute; top: 72%; font: 700 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); opacity: .8; }
.mala.pulse .mala-num { animation: pulse .18s ease-out; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* Footer */
.footer { background: var(--night); color: #D8C2B0; padding: 60px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer a { display: block; color: #D8C2B0; text-decoration: none; padding: 4px 0; font-weight: 600; }
.footer a:hover { color: var(--gold); }
.footer .brand { display: inline-flex; color: #fff; margin-bottom: 12px; }
.footer p { font-size: 15px; }
.devlogo img { width: 200px; height: auto; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--night-3); margin-top: 34px; padding-top: 20px; font-size: 14px; color: #A88E7B; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin-inline: auto; background: var(--ink); color: #F3DCCB; border-radius: 20px; padding: 18px 20px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent[hidden] { display: none; }
[hidden] { display: none !important; }
.consent p { margin: 0; flex: 1 1 300px; font-size: 15px; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 8px; }
.consent .btn-ghost { color: #F3DCCB; }
.consent .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Responsive */
@media (max-width: 1060px) {
  .kinds { grid-template-columns: repeat(3, 1fr); }
  .fest-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menubtn { display: flex; }
  .mainnav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .mainnav.open { transform: none; }
  .mainnav a { padding: 14px 12px; font-size: 18px; }
  .mainnav .nav-cta { margin: 8px 0 0; justify-content: center; }
  .menubtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menubtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menubtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 70px; }
  .hero-art { order: -1; }
  .phone { width: 250px; transform: none; }
  .features, .steps, .posts { grid-template-columns: 1fr 1fr; }
  .counter { grid-template-columns: 1fr; }
  .counter-side { order: 2; }
  .fest-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 28px); }
  .section { padding: 52px 0; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .kind { min-height: 110px; padding: 16px; }
  .features, .steps, .posts, .fest-grid, .row2 { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 22px; border-radius: 24px; }
  .btn-lg { width: 100%; }
  .cta-row { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 18px; }
  .topbar-in { gap: 10px; min-height: 62px; }
  .mainnav { inset: 62px 0 auto 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .footer, .consent, .cta-band { display: none; } }

/* ---------------- My sadhana (web app) ---------------- */
.wa-signin, .wa-loading { max-width: 560px; margin: 30px auto; text-align: center; display: grid; justify-items: center; gap: 8px; padding: 40px 28px; }
.wa-signin img { border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(242,88,12,.8); }
.wa-signin h1 { font-size: 34px; margin: 12px 0 4px; }
.wa-signin p { color: var(--ink-2); }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--orange); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wa { max-width: 980px; margin: 0 auto; }
.wa-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; }
.wa-hello { font-size: 24px; font-weight: 800; display: block; }
.wa-status { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.wa-status.ok { color: var(--ok); } .wa-status.warn { color: #9A6400; }
.wa-tabs { display: flex; gap: 6px; padding: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; margin-bottom: 18px; overflow-x: auto; position: sticky; top: 78px; z-index: 5; box-shadow: var(--shadow); }
.wa-tabs button { flex: 1; border: 0; background: transparent; padding: 10px 14px; border-radius: 999px; font: 700 16px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.wa-tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold); }
.wa-date { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wa-date input { width: auto; padding: 8px 12px; }
.wa-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 26px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(500px 240px at 100% 0, rgba(255,213,74,.3), transparent 60%), linear-gradient(140deg, var(--orange), #A93505); box-shadow: var(--shadow-lg); }
.wa-hero .over { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.wa-hero strong { display: block; font: 800 clamp(44px, 8vw, 64px)/1.05 var(--num); }
.wa-hero strong small { font-size: .45em; color: #FFE0CC; }
.wa-hero .path { font-weight: 700; color: #FFE7D8; }
.wa-hero .streak { text-align: center; background: rgba(0,0,0,.18); border-radius: 20px; padding: 12px 18px; }
.wa-hero .streak b { display: block; font: 800 40px/1 var(--num); color: var(--gold); }
.wa-ring .bg { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 12; }
.wa-ring .fg { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .3s; }
.wa-ring text { fill: #fff; font: 800 24px var(--num); }
.wa-group { display: flex; align-items: center; gap: 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 22px 0 10px; }
.wa-group span { margin-left: auto; color: var(--ink-3); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.wa-items, .wa-lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wa-item { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.wa-item.done { border-color: #9FD9B6; background: linear-gradient(180deg, #F2FBF5, #fff); }
.wa-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wa-name { font-weight: 800; font-size: 18px; }
.wa-count { border: 0; background: var(--sand); border-radius: 12px; padding: 6px 10px; cursor: pointer; text-align: right; font-family: var(--num); }
.wa-count b { font-size: 26px; } .wa-count span { color: var(--ink-3); font-size: 15px; margin-left: 2px; }
.bar { height: 8px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.bar.thick { height: 14px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold-d)); border-radius: 9px; transition: width .25s; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wa-actions.end { justify-content: flex-end; margin-top: 8px; }
.wa-actions.center { justify-content: center; margin-top: 14px; gap: 14px; }
.linkbtn { border: 0; background: none; color: var(--orange-d); font: 700 13px var(--font); cursor: pointer; text-decoration: underline; }
.wa-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wa-tiles div { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.wa-tiles span { display: block; font-size: 13px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.wa-tiles b { font: 800 30px var(--num); }
.wa-chart { margin-bottom: 16px; }
.wa-chart h3, .card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.cols { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.cols i { flex: 1; min-height: 3px; background: linear-gradient(180deg, var(--orange), #FFB27F); border-radius: 6px 6px 2px 2px; }
.cols i.now { background: var(--ink); }
.hbar { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 10px; margin: 8px 0; font-weight: 700; }
.hbar div { height: 12px; background: var(--sand); border-radius: 9px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }
.hbar b { text-align: right; font-family: var(--num); font-size: 20px; }
.wa-libitem { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.wa-libitem b { display: block; font-size: 17px; }
.wa-libitem span { font-size: 14px; color: var(--ink-3); }
.wa-libitem .btn { grid-column: 1 / -1; justify-self: start; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--orange); }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.wa-sankalp { margin-bottom: 14px; }
.wa-sankalp .big { font: 800 40px var(--num); margin: 6px 0 8px; }
.wa-sankalp .big small { font-size: .5em; color: var(--ink-3); }
.wa-dialog { border: 0; border-radius: 26px; padding: 26px; width: min(520px, calc(100% - 24px)); box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); background: var(--cream); color: var(--ink); }
.wa-dialog::backdrop { background: rgba(23,12,6,.6); backdrop-filter: blur(4px); }
.wa-dialog h2 { font-size: 26px; }
.wa-dialog:has(.wa-mala) { width: min(640px, calc(100% - 16px)); background: var(--night-2); color: #fff; }
.wa-mala-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 20px; }
.wa-mala .mala { width: min(440px, 80vw); }
.wa-mala .muted { color: #C9AE98; }
.wa-kinds { display: grid; gap: 10px; }
.wa-kind { border: 0; border-radius: 18px; padding: 16px 18px; color: #fff; text-align: left; cursor: pointer; display: grid; gap: 2px; font-family: var(--font); }
.wa-kind b { font-size: 19px; } .wa-kind span { font-size: 14px; opacity: .92; }
.wa-kind:hover { filter: brightness(1.08); }
@media (max-width: 700px) {
  .wa-items, .wa-lib { grid-template-columns: 1fr; }
  .wa-tiles { grid-template-columns: 1fr 1fr; }
  .wa-tabs { top: 70px; }
  .wa-hero { padding: 18px; }
  .hbar { grid-template-columns: 100px 1fr 70px; }
}
