/* Garhbhasha — one-page site
   Palette sampled directly from the real app UI + logo assets:
   deep navy (#12206c) brand, violet (#6100ed) accent/CTA, soft lavender cards. */

:root {
  --navy: #12206c;
  --navy-deep: #0a1650;
  --violet: #6100ed;
  --violet-deep: #4a00b8;
  --lavender: #c5c5e7;
  --lavender-light: #eeecfb;
  --bg: #f6f6fb;
  --surface: #ffffff;
  --ink: #1a1a2e;
  --muted: #62627a;
  --line: #e3e2f2;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* Horizontal-overflow guard lives on a wrapper BELOW the sticky navbar —
   overflow-x:hidden on html/body would break position:sticky on the navbar. */
.page-wrap { overflow-x: hidden; max-width: 100%; }
/* clip (unlike hidden) doesn't create a scroll container, so sticky elements inside still work */
@supports (overflow: clip) { .page-wrap { overflow-x: clip; } }

h1, h2, h3, h4 {
  font-family: 'Baloo Bhai 2', 'Hind', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

a { text-decoration: none; }

[lang-en] { display: none !important; }
html[data-lang="en"] [lang-hi] { display: none !important; }
html[data-lang="en"] [lang-en] { display: revert !important; }

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 3.5rem 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--violet);
  background: var(--lavender-light);
  border: 1px solid rgba(97, 0, 237, .16);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title { font-size: 2.15rem; margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* Buttons */
.btn-brand {
  background: var(--violet);
  border: 1px solid var(--violet);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px -10px rgba(97, 0, 237, .55);
}
.btn-brand:hover { background: var(--violet-deep); color: #fff; transform: translateY(-2px); }

.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  transition: all .15s ease;
}
.btn-outline-brand:hover { background: var(--navy); color: #fff; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--navy-deep);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.15;
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); color: #fff; }
.store-badge i { font-size: 1.5rem; }
.store-badge small { display: block; font-size: .65rem; opacity: .75; }
.store-badge span { display: block; font-size: .95rem; font-weight: 600; }
.store-badge small span { display: inline; font-size: inherit; font-weight: inherit; }

/* Language toggle + social icons — used inline in the navbar (light background) */
.lang-toggle { display: inline-flex; align-items: center; background: var(--lavender-light); border-radius: 999px; padding: 2px; }
.lang-toggle button {
  border: none; background: transparent; color: var(--muted);
  font-size: .76rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
  cursor: pointer; transition: all .15s ease;
}
.lang-toggle button.active { background: var(--violet); color: #fff; }
.lang-toggle-mini { padding: 1px; }
.lang-toggle-mini button { padding: .25rem .55rem; font-size: .7rem; }

.social-icons { display: flex; align-items: center; gap: .5rem; }
.social-icons a, .footer-social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; transition: all .2s ease;
}

/* Brand colors — icons keep their real-world identity instead of flat monochrome */
.social-icons a.ic-fb { background: #e7f0ff; color: #1877f2; }
.social-icons a.ic-x { background: #eef0f2; color: #0f1419; }
.social-icons a.ic-ig { background: #fce8f3; color: #d6249f; }
.social-icons a.ic-fb:hover { background: #1877f2; color: #fff; transform: translateY(-2px); }
.social-icons a.ic-x:hover { background: #0f1419; color: #fff; transform: translateY(-2px); }
.social-icons a.ic-ig:hover {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff; transform: translateY(-2px);
}

.footer-social a.ic-fb { background: rgba(24,119,242,.18); color: #6fa4ff; }
.footer-social a.ic-x { background: rgba(255,255,255,.12); color: #fff; }
.footer-social a.ic-ig { background: rgba(214,36,159,.2); color: #ff7fc6; }
.footer-social a.ic-fb:hover { background: #1877f2; color: #fff; }
.footer-social a.ic-x:hover { background: #fff; color: #0f1419; }
.footer-social a.ic-ig:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }

/* Navbar */
.navbar-gb {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
  transition: box-shadow .2s ease;
}
.navbar-gb.scrolled { box-shadow: 0 6px 24px -18px rgba(10, 22, 80, .35); }

.brand-logo { height: 50px; width: auto; display: block; }
@media (max-width: 575.98px) { .brand-logo { height: 40px; } }

/* Grouped menu dropdowns (Learn, App, About) */
.navbar-gb .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: middle; margin-left: .3rem; transition: transform .2s ease; }
.navbar-gb .dropdown-toggle.show::after { transform: rotate(180deg); }
.nav-drop { border: 1px solid var(--line); border-radius: 14px; padding: .45rem; min-width: 240px; box-shadow: 0 24px 48px -24px rgba(10,22,80,.35); }
.nav-drop .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 10px; padding: .55rem .75rem; font-weight: 500; color: var(--ink); }
.nav-drop .dropdown-item i { color: var(--violet); font-size: 1rem; width: 1.1rem; text-align: center; }
.nav-drop .dropdown-item:hover, .nav-drop .dropdown-item:focus { background: var(--lavender-light); color: var(--violet); }
/* Desktop: open on hover too (click still works for touch and keyboard) */
@media (min-width: 1200px) and (hover: hover) {
  .navbar-gb .dropdown:hover > .nav-drop { display: block; margin-top: 0; }
  .navbar-gb .dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }
}
/* Mobile menu: dropdowns open inline, without the floating card */
@media (max-width: 1199.98px) {
  .nav-drop { border: 0; box-shadow: none; padding: 0 0 .4rem .5rem; background: transparent; }
  /* The navbar is sticky, so a tall open menu must scroll inside itself rather than run off-screen */
  .navbar-gb .navbar-collapse { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .navbar-gb .navbar-nav .nav-link { padding-top: .65rem; padding-bottom: .65rem; }
  .navbar-gb .nav-drop .dropdown-item { padding-top: .6rem; padding-bottom: .6rem; }
}

.navbar-gb .nav-link {
  color: var(--ink);
  font-weight: 500;
  margin: 0 .5rem;
  position: relative;
}
.navbar-gb .nav-link:hover, .navbar-gb .nav-link.active { color: var(--violet); }
/* The menu collapses below 1200px. Above that, keep every label and the CTA on one line; below
   1400px tighten spacing and drop the navbar social icons (they are repeated in the footer) */
@media (min-width: 1200px) {
  .navbar-gb .nav-link, .navbar-gb .btn-brand { white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-gb .nav-link { margin: 0 .1rem; }
  .navbar-gb .navbar-collapse > .d-xl-flex .social-icons { display: none; }
  .navbar-gb .navbar-collapse > .d-xl-flex .btn-brand { padding: .65rem 1.2rem; }
}

/* Feature cards */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(10,22,80,.22); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--lavender-light);
  color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  transition: transform .25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }

/* Distinct material colors per feature, instead of one flat brand tint */
.feature-icon.fi-blue   { background: #e7f0ff; color: #2563eb; }
.feature-icon.fi-green  { background: #e6f7f0; color: #0d9488; }
.feature-icon.fi-amber  { background: #fef3e2; color: #d97706; }
.feature-icon.fi-rose   { background: #fde8ee; color: #e11d48; }
.feature-icon.fi-violet { background: #f1eafe; color: #7c3aed; }
.feature-icon.fi-teal   { background: #e2f6f5; color: #0f9b8e; }
.feature-card h5 { color: var(--ink); font-family: 'Hind', sans-serif; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* How it works — bordered step cards with a connecting line, colored icon per step */
.how-track { position: relative; }
.how-track::before {
  content: "";
  position: absolute; top: 68px; left: 9%; right: 9%; height: 1px;
  background: var(--line);
  z-index: 0;
}
@media (max-width: 991px) { .how-track::before { display: none; } }

.how-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.3rem;
  height: 100%;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.how-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -26px rgba(10,22,80,.25); }
.how-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.how-icon.s1 { background: linear-gradient(150deg, #10b981, #0d9488); }
.how-icon.s2 { background: linear-gradient(150deg, #3b82f6, #2563eb); }
.how-icon.s3 { background: linear-gradient(150deg, #a78bfa, #7c3aed); }
.how-icon.s4 { background: linear-gradient(150deg, #fbbf24, #d97706); }
.how-icon.s5 { background: linear-gradient(150deg, #fb7185, #e11d48); }
.how-step-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); opacity: .7; margin-bottom: .5rem; }
.how-card h6 { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.how-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* App preview: horizontally scrolling rail of real screenshots, all the same size */
.preview-rail-wrap { position: relative; }
.preview-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.75rem) / 4);
  gap: 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .25rem;
  scroll-behavior: smooth;
  padding: 1.25rem .25rem 1.5rem;
  scrollbar-width: none;
}
.preview-rail::-webkit-scrollbar { display: none; }
.preview-rail:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 1199px) { .preview-rail { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3.2); gap: 1.5rem; } }
@media (max-width: 767px)  { .preview-rail { grid-auto-columns: 46%; gap: 1.1rem; } }
@media (max-width: 480px)  { .preview-rail { grid-auto-columns: 64%; gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .preview-rail { scroll-behavior: auto; } }

.preview-item { margin: 0; scroll-snap-align: start; }
.phone-mock {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a2a44, var(--ink));
  padding: 8px;
  box-shadow: 0 28px 50px -26px rgba(10,22,80,.45);
  transition: transform .4s cubic-bezier(.22,.85,.32,1.1), box-shadow .4s ease;
}
.phone-shot {
  display: block; width: 100%; height: auto;
  aspect-ratio: 720 / 1520; object-fit: cover;
  border-radius: 27px;
  background: var(--lavender-light);
}
@media (hover: hover) and (pointer: fine) {
  .phone-mock:hover { transform: translateY(-10px); box-shadow: 0 40px 60px -26px rgba(10,22,80,.55); }
}
.phone-caption { text-align: center; font-weight: 600; color: var(--ink); margin-top: 1.1rem; }
.phone-caption small { display: block; font-weight: 400; color: var(--muted); margin-top: .15rem; }

.preview-nav {
  position: absolute; top: calc(50% - 2.2rem); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -12px rgba(10,22,80,.35);
  transition: opacity .25s ease, background .2s ease, color .2s ease;
}
.preview-nav:hover:not(:disabled) { background: var(--violet); color: #fff; border-color: var(--violet); }
.preview-nav:disabled { opacity: 0; pointer-events: none; }
.preview-nav.prev { left: -18px; }
.preview-nav.next { right: -18px; }
@media (max-width: 767px) { .preview-nav { display: none; } }

/* FAQ */
.accordion-gb .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-gb .accordion-button { font-weight: 600; color: var(--ink); background: #fff; }
.accordion-gb .accordion-button:not(.collapsed) { color: var(--navy); background: var(--lavender-light); box-shadow: none; }
.accordion-gb .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-gb .accordion-button::after { filter: none; }

/* Footer */
.footer-gb {
  position: relative; margin-top: 200px; padding: 2.5rem 0 1.5rem;
  color: rgba(255,255,255,.72);
  background:
    radial-gradient(ellipse 45% 70% at 100% 75%, rgba(97,0,237,.3), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(37,99,235,.16), transparent 70%),
    var(--navy-deep);
}
/* Himalayan scene rising out of the page into the footer: sun glow, snow peaks, misty ridges, pines
   (assets/web/img/forest/make_footer_scene.py; its front row is --navy-deep). One wide scene, centred */
.footer-gb::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 200px; pointer-events: none;
  background: url(../img/forest/footer-scene.svg) center bottom / cover no-repeat;
}
.footer-gb a { color: rgba(255,255,255,.72); transition: color .15s ease; }
.footer-gb a:hover { color: #fff; }
.footer-main { position: relative; z-index: 1; }

.footer-logo { display: inline-block; background: #fff; padding: .7rem 1.1rem; border-radius: 16px; margin-bottom: 1.1rem; box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.footer-logo img { height: 64px; width: auto; display: block; }
.footer-tagline { font-size: .92rem; line-height: 1.65; margin-bottom: 1.1rem; max-width: 330px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.footer-contact i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #ffb703; font-size: .8rem; flex-shrink: 0; }

.footer-h {
  position: relative; color: #fff; font-family: 'Hind', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; margin: .35rem 0 1.25rem; padding-bottom: .6rem;
}
.footer-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffb703, var(--violet)); }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a::before { content: "\203A"; color: #ffb703; opacity: 0; margin-left: -.8rem; transition: all .18s ease; }
.footer-links a:hover::before { opacity: 1; margin-left: 0; }
.footer-links-legal a::before { display: none; }
.footer-links-legal i { font-size: .85rem; color: rgba(255,255,255,.45); transition: color .15s ease; }
.footer-links-legal a:hover i { color: #ffb703; }
@media (max-width: 767px) {
  .footer-links-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

.footer-app {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 1.35rem;
}
.footer-app-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.footer-app-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 12px 24px -12px rgba(0,0,0,.7); }
.footer-app-head strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.2; }
.footer-app-head small { font-size: .78rem; color: rgba(255,255,255,.6); }
.footer-app p { font-size: .86rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-app-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-app-badges .store-badge { padding: .5rem .9rem; border-radius: 12px; }
.footer-gb a.store-badge-light { color: var(--navy-deep); }
.footer-gb a.store-badge-light:hover { color: var(--navy-deep); }
.footer-badge-soon { background: transparent; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); cursor: default; }
.footer-badge-soon:hover { transform: none; color: rgba(255,255,255,.75); }

.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 34px; height: 34px; transform: none; }
.footer-social a:hover { transform: translateY(-2px); }

.footer-bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.75rem; padding-top: 1.25rem; font-size: .85rem;
}
.footer-bottom-end { display: flex; align-items: center; gap: 1rem; }
.footer-motto { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-lang { background: rgba(255,255,255,.1); }
.footer-lang button { color: rgba(255,255,255,.7); }
@media (max-width: 575px) {
  .footer-gb { margin-top: 120px; }
  .footer-gb::before { height: 120px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .footer-bottom-end { width: 100%; justify-content: space-between; }
}

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
  z-index: 999;
  box-shadow: 0 12px 24px -10px rgba(97,0,237,.55);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--violet-deep); color: #fff; }

/* Utility */

.bg-lavender-light { background: var(--lavender-light); }
.text-icon-blue { color: #2563eb; }

.text-icon-amber { color: #d97706; }
.text-icon-rose { color: #e11d48; }
.text-icon-teal { color: #0f9b8e; }

/* ==========================================================================
   Know Garhwal (गढ़वाल की लोक संस्कृति) — /know-garhwal
   ========================================================================== */
:root { --nav-h: 62px; --kg-subnav-h: 56px; }

.kg-section { scroll-margin-top: calc(var(--nav-h) + var(--kg-subnav-h) + 8px); }

/* Accent palette shared by icons, tags and tiles (same hues as .feature-icon) */
.kc-violet { background: #f1eafe; color: #7c3aed; }
.kc-rose   { background: #fde8ee; color: #e11d48; }
.kc-amber  { background: #fef3e2; color: #d97706; }
.kc-blue   { background: #e7f0ff; color: #2563eb; }
.kc-green  { background: #e6f7f0; color: #0d9488; }
.kc-teal   { background: #e2f6f5; color: #0f9b8e; }
.kc-grad-blue  { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.kc-grad-rose  { background: linear-gradient(135deg, #fb7185, #be123c); }
.kc-grad-amber { background: linear-gradient(135deg, #fbbf24, #c2410c); }

/* Hero */
.kg-hero {
  position: relative;
  padding: 2.25rem 0 9rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(97,0,237,.55), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(37,99,235,.35), transparent 45%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
  overflow: hidden;
}
/* Misty pine forest along the base of the hero (assets/web/img/forest, tiles left to right) */
.kg-hero::before, .gb-forest {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 200px; pointer-events: none;
  background: url(../img/forest/forest-hero.svg) center bottom / auto 100% repeat-x;
}
@media (max-width: 767.98px) {
  .kg-hero::before, .gb-forest { height: 130px; }
  .kg-hero, .kg-hero.lp-hero { padding-bottom: 7rem; }
}
.kg-crumbs { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1.75rem; }
.kg-crumbs a { color: rgba(255,255,255,.85); }
.kg-crumbs a:hover { color: #fff; }
.kg-crumbs i { font-size: .7rem; }
.eyebrow-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.kg-hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 1rem; }
.kg-hero-title .hl { color: #ffb703; font-style: normal; }
.kg-hero-sub { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 620px; margin: 0; }
.kg-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 1.1rem; backdrop-filter: blur(6px);
}
.kg-hero-stats > div { text-align: center; font-size: .8rem; color: rgba(255,255,255,.75); }
.kg-hero-stats strong { display: block; font-family: 'Baloo Bhai 2', sans-serif; font-size: 2rem; line-height: 1.1; color: #fff; }

.kg-topics { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; margin-top: 2.5rem; }
@media (max-width: 991px) { .kg-topics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .kg-topics { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
.kg-topic {
  position: relative; display: flex; flex-direction: column; gap: .55rem;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 1rem 1rem 1.1rem;
  box-shadow: 0 20px 40px -26px rgba(0,0,0,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kg-topic:hover { transform: translateY(-5px); color: var(--ink); box-shadow: 0 26px 46px -24px rgba(0,0,0,.7); }
.kg-topic-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.kg-topic-num { position: absolute; top: .85rem; right: 1rem; font-size: .72rem; font-weight: 700; color: var(--muted); opacity: .6; letter-spacing: .06em; }
.kg-topic-label { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.kg-topic-arrow { position: absolute; bottom: .7rem; right: .8rem; font-size: 1.2rem; color: var(--violet); opacity: 0; transform: translateY(-4px); transition: all .2s ease; }
.kg-topic:hover .kg-topic-arrow { opacity: 1; transform: translateY(0); }

/* Sticky section switcher */
.kg-subnav {
  position: sticky; top: var(--nav-h); z-index: 1010;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.kg-subnav-track {
  display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.kg-subnav-track::-webkit-scrollbar { display: none; }
.kg-subnav-track a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: all .15s ease;
}
.kg-subnav-track a i { font-size: .8rem; }
.kg-subnav-track a:hover { color: var(--navy); background: var(--lavender-light); }
.kg-subnav-track a.active { background: var(--navy); color: #fff; }
@media (min-width: 992px) { .kg-subnav-track { justify-content: center; } }

/* Section heading with big outlined number */
.kg-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2.5rem; }
.kg-head .section-sub { max-width: 760px; }
.kg-head-num {
  font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 4.5rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--lavender); flex-shrink: 0;
}
@media (max-width: 767px) { .kg-head { flex-direction: column; gap: .5rem; } .kg-head-num { font-size: 3rem; } }
.kg-sub-title { font-size: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.kg-sub-title::before { content: ""; width: 6px; height: 1.3rem; border-radius: 3px; background: var(--violet); }

/* Icon squares */
.kg-icon { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kg-icon-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }

/* Chips */
.kg-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.kg-chip {
  display: inline-block; padding: .38rem .8rem; border-radius: 999px; font-size: .87rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); line-height: 1.3;
  transition: all .15s ease;
}
.kg-chip:hover { border-color: var(--violet); color: var(--violet); }
.kg-chip-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.kg-chip-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.kg-chip-gold { background: #fffaf0; border-color: #f6dfb4; color: #7c4a03; font-weight: 600; }
.kg-chip-gold:hover { background: #d97706; border-color: #d97706; color: #fff; }
.kg-chip-green { background: #fff; border-color: #bfe8dc; color: #0f5f55; font-weight: 600; }
.kg-chip-green:hover { background: #0d9488; border-color: #0d9488; color: #fff; }
.kg-chip-violet { background: #f7f2ff; border-color: #ddccfb; color: #5b21b6; font-weight: 600; }
.kg-chip-violet:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* Instrument classes */
.kg-class-card {
  background: #fff; border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--radius);
  padding: 1.5rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease;
}
.kg-class-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(10,22,80,.3); }
.kc-border-amber { border-top-color: #f59e0b; }
.kc-border-rose  { border-top-color: #f43f5e; }
.kc-border-blue  { border-top-color: #3b82f6; }
.kc-border-teal  { border-top-color: #14b8a6; }
.kg-class-card h5 { font-family: 'Hind', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.kg-class-num { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kg-class-card .kg-chip { font-size: .82rem; padding: .3rem .7rem; }

/* Highlight band */
.kg-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-deep)); color: #fff;
  border-radius: 22px; padding: 1.6rem 1.8rem;
}
.kg-band-label { font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.kg-band-label i { color: #ffb703; }
.kg-band-light { background: #effaf6; color: var(--ink); border: 1px solid #cdeee3; }
.kg-band-light .kg-band-label i { color: #0d9488; }

/* Filter pills */
.kg-filter { display: inline-flex; flex-wrap: wrap; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.kg-filter button {
  border: none; background: transparent; color: var(--muted); font-weight: 600; font-size: .85rem;
  padding: .4rem .95rem; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.kg-filter button:hover { color: var(--navy); }
.kg-filter button.active { background: var(--violet); color: #fff; }

/* Masonry card grid (CSS columns keep uneven text lengths tidy) */
.kg-masonry { column-count: 3; column-gap: 1.5rem; }
.kg-masonry-2 { column-count: 2; }
@media (max-width: 991px) { .kg-masonry { column-count: 2; } }
@media (max-width: 575px) { .kg-masonry, .kg-masonry-2 { column-count: 1; } }
.kg-card {
  break-inside: avoid; margin-bottom: 1.5rem; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.kg-card:hover { box-shadow: 0 20px 40px -26px rgba(10,22,80,.28); }
.kg-card.is-hidden { display: none; }
.kg-card.is-entering { animation: kgFadeIn .35s ease both; }
@keyframes kgFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kg-card.is-entering { animation: none; } }
.kg-card-top { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .9rem; }
.kg-card-title { font-size: 1.3rem; margin-bottom: .35rem; }
.kg-card-title i { color: var(--violet); font-size: 1rem; margin-right: .2rem; }
.kg-card p { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0; }
.kg-card p b { color: var(--navy); }
.kg-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-right: .3rem; }
.kg-tag-warn { background: #fff1e6; color: #c2410c; }

.kg-card-featured { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: transparent; }
.kg-card-featured .kg-card-title { color: #fff; }
.kg-card-featured .kg-card-title i { color: #ffb703; }
.kg-card-featured p { color: rgba(255,255,255,.8); }
.kg-card-featured p b { color: #ffb703; }

/* Attire */
.kg-attire-card { background: #fff; border-radius: 22px; overflow: hidden; height: 100%; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.kg-attire-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(10,22,80,.3); }
.kg-attire-head { position: relative; color: #fff; padding: 1.6rem 1.5rem 1.4rem; }
.kg-attire-head > i { font-size: 2rem; opacity: .95; margin-bottom: .8rem; display: block; }
.kg-attire-head h5 { color: #fff; font-family: 'Hind', sans-serif; font-weight: 700; margin: 0; }
.kg-count {
  position: absolute; top: 1.2rem; right: 1.2rem; min-width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}

/* Jewellery — head-to-toe body map */
@media (min-width: 992px) { .kg-sticky { position: sticky; top: calc(var(--nav-h) + var(--kg-subnav-h) + 24px); } }
.kg-note { display: inline-flex; align-items: center; gap: .6rem; background: #fef3e2; color: #92400e; font-weight: 600; font-size: .9rem; border-radius: 12px; padding: .7rem 1rem; margin-top: .5rem; }
.kg-body-map { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.kg-body-map::before {
  content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(#fbbf24, #d97706 60%, #92400e);
  border-radius: 2px;
}
.kg-body-map li {
  position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .75rem;
  transition: border-color .2s ease, transform .2s ease;
}
.kg-body-map li:hover { border-color: #f6dfb4; transform: translateX(4px); }
.kg-body-map li::before {
  content: ""; position: absolute; left: calc(-1.75rem + .45rem - 6px); top: 50%; margin-top: -7px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #d97706;
}
.kg-zone { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
@media (max-width: 575px) { .kg-body-map li { grid-template-columns: 1fr; gap: .5rem; } }

/* Song categories */
.kg-cat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.kg-cat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(10,22,80,.3); }
.kg-cat-card > i { width: 40px; height: 40px; border-radius: 12px; background: var(--lavender-light); color: var(--violet); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .8rem; }
.kg-cat-card h6 { font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.kg-cat-card p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0; }

/* Food */
.kg-meal { border-radius: 20px; padding: 1.6rem; height: 100%; position: relative; overflow: hidden; }
.kg-meal h5 { font-family: 'Hind', sans-serif; font-weight: 700; margin: .9rem 0 .5rem; }
.kg-meal p { font-size: .93rem; line-height: 1.7; margin: 0; }
.kg-meal-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(255,255,255,.65); }
.kg-meal-1 { background: linear-gradient(160deg, #fff4dc, #ffe2c2); color: #6b3a07; }
.kg-meal-1 h5, .kg-meal-1 .kg-meal-icon { color: #c2410c; }
.kg-meal-2 { background: linear-gradient(160deg, #fffbe6, #fdefb2); color: #5c4a06; }
.kg-meal-2 h5, .kg-meal-2 .kg-meal-icon { color: #b45309; }
.kg-meal-3 { background: linear-gradient(160deg, #2a3a8f, var(--navy-deep)); color: rgba(255,255,255,.82); }
.kg-meal-3 h5 { color: #fff; }
.kg-meal-3 .kg-meal-icon { background: rgba(255,255,255,.12); color: #ffd166; }

.kg-list-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; }
.kg-list-card h5 { font-family: 'Hind', sans-serif; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.kg-buransh {
  border-radius: 20px; padding: 1.6rem; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #e11d48, #9f1239);
}
.kg-buransh > i { position: absolute; right: -10px; bottom: -18px; font-size: 7rem; opacity: .15; }
.kg-buransh h5 { color: #fff; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.5rem; }
.kg-buransh h5 small { font-family: 'Hind', sans-serif; font-size: .8rem; font-weight: 500; opacity: .8; margin-left: .3rem; }
.kg-buransh p { color: rgba(255,255,255,.88); position: relative; }

/* Dances */
.kg-dance { position: relative; padding-top: 1.8rem; overflow: hidden; }
.kg-dance-num {
  position: absolute; top: .4rem; right: 1rem; font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800;
  font-size: 3.4rem; line-height: 1; color: var(--lavender-light);
}
.kg-dance .kg-card-title, .kg-dance p { position: relative; }
.kg-dance .kg-card-title { padding-right: 3.5rem; }
.kg-dance:hover .kg-dance-num { color: var(--lavender); }

/* Closing CTA */
.kg-cta { padding: 0 0 5rem; }
.kg-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: radial-gradient(circle at 90% 10%, rgba(97,0,237,.5), transparent 55%), linear-gradient(120deg, var(--navy), var(--navy-deep));
  color: rgba(255,255,255,.8); border-radius: 26px; padding: 2.4rem 2.6rem; margin-top: -2.5rem; position: relative;
}
.kg-cta-inner h3 { color: #fff; margin-bottom: .35rem; }
.store-badge-light { background: #fff; color: var(--navy-deep); }
.store-badge-light:hover { color: var(--navy-deep); }
.btn-outline-light-brand { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid rgba(255,255,255,.5); color: #fff; font-weight: 600; padding: .7rem 1.4rem; border-radius: 999px; transition: all .15s ease; }
.btn-outline-light-brand:hover { background: #fff; color: var(--navy); }

/* Home-page teaser cards linking into /know-garhwal */
.kg-tile {
  --t1: #8b5cf6; --t2: #5b21b6;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; height: 100%; min-height: 290px;
  padding: 1.5rem 1.5rem 4.25rem; border-radius: 24px; color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.28), transparent 45%),
    linear-gradient(150deg, var(--t1), var(--t2));
  box-shadow: 0 22px 40px -26px var(--t2);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.kg-tile-violet { --t1: #8b5cf6; --t2: #4c1d95; }
.kg-tile-rose   { --t1: #fb7185; --t2: #9f1239; }
.kg-tile-amber  { --t1: #fbbf24; --t2: #b45309; }
.kg-tile-blue   { --t1: #60a5fa; --t2: #1e3a8a; }
.kg-tile-green  { --t1: #34d399; --t2: #065f46; }
.kg-tile-teal   { --t1: #2dd4bf; --t2: #115e59; }

/* Hill silhouettes along the bottom edge, echoing the page hero */
.kg-tile::before, .kg-tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.kg-tile::before {
  height: 92px; background: rgba(255,255,255,.12);
  clip-path: polygon(0 60%, 14% 25%, 28% 55%, 44% 10%, 60% 50%, 74% 20%, 88% 48%, 100% 22%, 100% 100%, 0 100%);
}
.kg-tile::after {
  height: 58px; background: rgba(0,0,0,.14);
  clip-path: polygon(0 45%, 18% 70%, 34% 30%, 52% 62%, 68% 28%, 84% 58%, 100% 35%, 100% 100%, 0 100%);
}
.kg-tile-watermark {
  position: absolute; right: -18px; top: 38px; z-index: -1;
  font-size: 9rem; color: #fff; opacity: .1; transform: rotate(-12deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.kg-tile:hover { color: #fff; transform: translateY(-8px); box-shadow: 0 34px 50px -26px var(--t2); }
.kg-tile:hover::before { transform: translateX(-12px); }
.kg-tile:hover::after { transform: translateX(10px); }
.kg-tile:hover .kg-tile-watermark { transform: rotate(-4deg) scale(1.08); opacity: .16; }
@media (prefers-reduced-motion: reduce) {
  .kg-tile, .kg-tile::before, .kg-tile::after, .kg-tile-watermark { transition: none; }
}

.kg-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.kg-tile-icon {
  width: 52px; height: 52px; border-radius: 16px; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.kg-tile-num { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; opacity: .55; }
.kg-tile-title { color: #fff; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.5rem; font-weight: 700; margin: 0 0 .2rem; }
.kg-tile-count { font-size: .88rem; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.kg-tile-count strong { font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.15rem; color: #fff; }
.kg-tile-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.kg-tile-chips > span {
  font-size: .8rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.kg-tile-go {
  position: absolute; left: 1.5rem; bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--t2); font-weight: 700; font-size: .85rem;
  padding: .45rem 1rem; border-radius: 999px;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
}
.kg-tile-go i { transition: transform .2s ease; }
.kg-tile:hover .kg-tile-go i { transform: translateX(4px); }

/* ==========================================================================
   Hero search — live dictionary lookup (Home::search)
   ========================================================================== */
/* Search */
.hero-search { position: relative; max-width: 560px; z-index: 5; }
.hero-search-box {
  display: flex; align-items: center; gap: .3rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: .4rem .4rem .4rem 1.15rem;
  box-shadow: 0 1px 2px rgba(10,22,80,.04), 0 24px 48px -28px rgba(10,22,80,.5);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(97,0,237,.12), 0 20px 44px -26px rgba(10,22,80,.45); }
.hero-search-box > i { color: var(--violet); font-size: 1.15rem; }
.hero-search-box input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 1.02rem; padding: .8rem .5rem; color: var(--ink);
}
.hero-search-box input::-webkit-search-cancel-button { cursor: pointer; }
.hero-search-kbd {
  flex-shrink: 0; margin-right: .35rem; padding: .1rem .5rem; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--line);
  color: var(--muted); font-family: inherit; font-size: .78rem; font-weight: 600;
}
.hero-search-box:focus-within .hero-search-kbd, .hero-search.is-loading .hero-search-kbd { display: none; }
.hero-search-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem;
  border: 0; border-radius: 13px; padding: .78rem 1.2rem;
  background: linear-gradient(135deg, var(--violet), #3b3bf0); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 20px -10px rgba(97,0,237,.7); transition: transform .15s ease, box-shadow .15s ease;
}
.hero-search-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -10px rgba(97,0,237,.75); }
.hero-search-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.hero-search-btn i { transition: transform .15s ease; }
.hero-search-btn:hover i { transform: translateX(2px); }
@media (max-width: 575px) {
  .hero-search-kbd { display: none; }
  .hero-search-btn { padding: .72rem .85rem; }
  .hsb-label { display: none; }
}
@media (hover: none) { .hero-search-kbd { display: none; } }
.hero-search-spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-right: .3rem;
  border: 2px solid var(--lavender); border-top-color: var(--violet);
  animation: gbSpin .7s linear infinite; visibility: hidden;
}
.hero-search.is-loading .hero-search-spinner { visibility: visible; }
@keyframes gbSpin { to { transform: rotate(360deg); } }

.hero-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -28px rgba(10,22,80,.45);
  padding: .4rem; max-height: 360px; overflow-y: auto;
  animation: gbDrop .18s ease;
}
@keyframes gbDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hs-item { display: block; padding: .75rem .9rem; border-radius: 12px; cursor: default; }
.hs-item + .hs-item { border-top: 1px solid var(--line); }
.hs-item:hover, .hs-item.active { background: var(--lavender-light); }
.hs-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.hs-gh { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.hs-tr { font-size: .78rem; color: var(--muted); }
.hs-mean { font-size: .88rem; color: var(--ink); margin-top: .15rem; line-height: 1.45; }
.hs-mean em { color: var(--muted); }
.hs-mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.hs-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .92rem; }
.hs-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .3rem; padding: .65rem .9rem; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600;
}
.hs-foot:hover { color: #fff; background: var(--navy-deep); }

.hero-try { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.hero-try-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--muted); margin-right: .15rem; }
.hero-try-label i { color: #f59e0b; }
.hero-try button {
  border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--navy);
  font-family: 'Baloo Bhai 2', sans-serif; font-weight: 600; font-size: .95rem; line-height: 1;
  border-radius: 999px; padding: .42rem .9rem .36rem; cursor: pointer; transition: all .15s ease;
}
.hero-try button:hover { border-color: var(--violet); color: var(--violet); background: #fff; transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(97,0,237,.5); }

/* ==========================================================================
   Hero v3 — night-to-dawn Himalayan sky. Search leads, the app and today's
   real word sit on the right, stats rest on the ridgeline, which fades into the page.
   ========================================================================== */
.hero-v3 {
  position: relative; overflow: hidden; color: #fff;
  padding: 3.75rem 0 8rem;
  background:
    radial-gradient(90% 70% at 74% 100%, rgba(251,133,0,.30), transparent 60%),
    radial-gradient(60% 55% at 100% 0%, rgba(97,0,237,.45), transparent 65%),
    radial-gradient(45% 50% at 0% 30%, rgba(37,99,235,.22), transparent 70%),
    linear-gradient(180deg, #060d38 0%, var(--navy-deep) 45%, var(--navy) 100%);
}
.hero-v3 > .container { z-index: 1; }

/* Sky: stars, rising sun and three ridges (far snow peaks, mid range, page-coloured foreground) */
.h3-sky { position: absolute; inset: 0; pointer-events: none; }
.h3-stars {
  position: absolute; inset: 0 0 35% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 230px 170px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(255,255,255,.5), transparent);
  background-size: 340px 220px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
          mask-image: linear-gradient(180deg, #000 30%, transparent);
  animation: h3Twinkle 6s ease-in-out infinite alternate;
}
@keyframes h3Twinkle { from { opacity: .55; } to { opacity: 1; } }
.h3-sun {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  left: 62%; bottom: 60px;
  background: radial-gradient(circle, #ffd166 0%, #ffb703 30%, rgba(251,133,0,.55) 52%, transparent 70%);
  filter: blur(10px); opacity: .4;
}
.h3-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: radial-gradient(60% 100% at 70% 100%, rgba(255,183,3,.18), transparent 70%);
}
.h3-peaks { position: absolute; left: 0; bottom: -1px; width: 100%; height: 300px; }
.h3-peaks .p1 { fill: #1d2c86; }
.h3-peaks .p1-snow { fill: rgba(255,255,255,.75); }
.h3-forest { height: 230px; }
@media (max-width: 767.98px) { .h3-forest { height: 150px; } }

/* Drifting outline icons for Garhwali culture: instruments, attire, jewellery, songs, food, dance.
   Each one draws its outline in, then floats; colours alternate white / amber. */
.h3-icons { position: absolute; inset: 0; }
.h3-icon {
  position: absolute; width: var(--s, 56px); height: var(--s, 56px);
  fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  animation: h3Drift var(--d, 12s) ease-in-out var(--dl, 0s) infinite alternate;
}
.h3-icon.amber { stroke: rgba(255,183,3,.42); }
.h3-icon * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: h3Draw 2.4s ease-out var(--dl, 0s) forwards; }
@keyframes h3Draw { to { stroke-dashoffset: 0; } }
@keyframes h3Drift {
  0%   { transform: translate(0, 0) rotate(var(--r, -6deg)); }
  50%  { transform: translate(10px, -16px) rotate(calc(var(--r, -6deg) * -1)); }
  100% { transform: translate(-8px, 8px) rotate(var(--r, -6deg)); }
}
.h3-icon.i1 { top: 9%;  left: 44%; --s: 58px; --d: 13s; --dl: .2s; }  /* dhol */
.h3-icon.i2 { top: 3%;  left: 60%; --s: 52px; --d: 11s; --dl: .6s; --r: 8deg; }  /* folk song */
.h3-icon.i3 { top: 40%; left: 49%; --s: 46px; --d: 14s; --dl: 1s; }  /* nath */
.h3-icon.i4 { top: 69%; left: 92%; --s: 56px; --d: 12s; --dl: .4s; --r: 6deg; }  /* attire */
.h3-icon.i5 { top: 3%;  left: 30%; --s: 48px; --d: 15s; --dl: .8s; }  /* food */
.h3-icon.i6 { top: 64%; left: 46%; --s: 54px; --d: 12.5s; --dl: 1.2s; --r: 7deg; }  /* dance */
@media (max-width: 991px) {
  .h3-icon { --s: 40px !important; }
  .h3-icon.i1 { top: 4%; left: 72%; }
  .h3-icon.i3 { top: 44%; left: 4%; }
  .h3-icon.i5 { top: 22%; left: 84%; }
  .h3-icon.i6 { top: 64%; left: 3%; }
}
@media (max-width: 575px) { .h3-icon.i2, .h3-icon.i4, .h3-icon.i5 { display: none; } }

/* Copy */
.hero-v3 .eyebrow-light { background: rgba(255,255,255,.08); }
.hero-v3 .eyebrow-light i { color: #ffb703; }
.h3-title {
  color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.15;
  letter-spacing: -.01em; margin: 1.1rem 0 1.1rem;
}
.h3-hl {
  background: linear-gradient(90deg, #ffd166, #ffb703 40%, #fb8500);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h3-lead { color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.7; max-width: 560px; margin-bottom: 2rem; }

/* Search, restyled for the dark sky */
.hero-v3 .hero-search { max-width: 580px; }
.hero-v3 .hero-search-box {
  border-color: transparent; border-radius: 20px; padding: .45rem .45rem .45rem 1.2rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,.07), 0 30px 60px -28px rgba(0,0,0,.75);
}
.hero-v3 .hero-search-box:focus-within { border-color: transparent; box-shadow: 0 0 0 5px rgba(167,139,250,.45), 0 30px 60px -28px rgba(0,0,0,.75); }
.hero-v3 .hero-search-box input { font-size: 1.05rem; padding: .9rem .5rem; }
.hero-v3 .hero-search-btn { border-radius: 15px; padding: .85rem 1.35rem; }
.hero-v3 .hero-try-label { color: rgba(255,255,255,.65); }
.hero-v3 .hero-try-label i { color: #ffb703; }
.hero-v3 .hero-try button { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.hero-v3 .hero-try button:hover { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 10px 20px -12px rgba(0,0,0,.6); }

/* Store buttons */
.h3-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 2.25rem; }
.h3-cta .store-badge { padding: .7rem 1.3rem; border-radius: 14px; }
.h3-cta .store-badge-play { background: #fff; color: var(--navy); box-shadow: 0 16px 32px -16px rgba(0,0,0,.7); }
.h3-cta .store-badge-play:hover { color: var(--navy); box-shadow: 0 20px 36px -16px rgba(0,0,0,.8); }
.h3-cta .store-badge-play i { color: var(--violet); }
.h3-cta .store-badge-soon { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.25); cursor: default; }
.h3-cta .store-badge-soon:hover { transform: none; color: #fff; }
.h3-cta .store-badge-soon > i, .h3-cta .store-badge-soon small { opacity: .65; }

/* Visual: phone in the middle, orbit rings behind, word card and quiz chip floating on top */
.h3-visual { position: relative; max-width: 600px; margin: 0 auto; padding-top: .5rem; }
.h3-ring {
  position: absolute; left: 50%; top: 44%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09); transform: translate(-50%, -50%);
  pointer-events: none;
}
.h3-ring.r1 { width: 400px; height: 400px; }
.h3-ring.r2 { width: 540px; height: 540px; border-style: dashed; border-color: rgba(255,255,255,.07); animation: h3Spin 80s linear infinite; }
.h3-ring.r2::after {
  content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: #ffb703; box-shadow: 0 0 14px 3px rgba(255,183,3,.6);
}
@keyframes h3Spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) var(--phone-tilt, rotate(0deg)); }
  50% { transform: translateY(-14px) var(--phone-tilt, rotate(0deg)); }
}
@keyframes h3Bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes h3Pop {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to { opacity: 1; transform: none; }
}
.hero-float { animation: heroFloat 7s ease-in-out infinite; }

/* Phone frame around the real app screenshots (720x1520 after cropping the status bar) */
.app-home-mock {
  position: relative; z-index: 2;
  width: 100%; max-width: 270px; margin: 0 auto;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(145deg, #34345a, #0d0d22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 0 0 8px rgba(255,255,255,.04), 0 50px 90px -30px rgba(0,0,0,.8);
  /* Tilted 3D presentation; heroFloat composes its bob with this same tilt */
  --phone-tilt: perspective(1600px) rotateY(-10deg) rotateX(5deg) rotate(6deg);
  transform: var(--phone-tilt);
}
.app-home-mock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 30%);
}
.app-home-screen { position: relative; background: var(--navy-deep); border-radius: 34px; overflow: hidden; }
/* Punch-hole camera, in place of the cropped status bar */
.app-home-screen::before {
  content: ""; position: absolute; z-index: 3; top: 9px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #05050c; box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}

/* Screen carousel — one screenshot visible at a time, crossfading on rotation */
.hero-screen-stack { position: relative; aspect-ratio: 720 / 1520; }
.hero-screen {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-screen.active { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }

.hero-screen-dots { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: .45rem; padding-top: 1.4rem; }
.hero-screen-dots .dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s ease;
}
.hero-screen-dots .dot:hover { background: rgba(255,255,255,.7); }
.hero-screen-dots .dot.active { width: 24px; border-radius: 4px; background: #ffb703; }
.hero-screen-dots .dot:focus-visible { outline: 2px solid #ffb703; outline-offset: 3px; }

/* Word of the Day card */
.h3-wotd {
  position: absolute; z-index: 3; left: -12px; bottom: 70px; width: 182px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: .75rem .85rem .8rem;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.65);
  animation: h3Pop .7s cubic-bezier(.2,.8,.2,1) .5s both, h3Bob 6s ease-in-out 1.2s infinite;
}
.h3-wotd-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.h3-wotd-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fff4d6; color: #b45309; border-radius: 999px; padding: .2rem .6rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .02em;
}
.h3-wotd-date { font-size: .64rem; font-weight: 600; color: var(--muted); }
.h3-wotd-word { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--navy); word-break: break-word; }
.h3-wotd-tr { font-size: .74rem; color: var(--muted); font-style: italic; }
.h3-wotd-mean { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px dashed var(--line); display: grid; gap: .25rem; }
.h3-wotd-mean > div { display: flex; align-items: baseline; gap: .5rem; }
.h3-wotd-mean dt {
  flex-shrink: 0; min-width: 24px; text-align: center;
  background: var(--lavender-light); color: var(--violet); border-radius: 6px; padding: .05rem .3rem;
  font-size: .6rem; font-weight: 700;
}
.h3-wotd-mean dd { margin: 0; font-size: .76rem; line-height: 1.4; color: var(--ink); }

/* Glass chips around the phone: Daily Quiz, Song of the Week, Proverb of the Day */
.h3-chip {
  position: absolute; z-index: 3; width: 200px;
  display: flex; align-items: center; gap: .65rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; padding: .65rem .95rem .65rem .7rem;
  box-shadow: 0 24px 44px -24px rgba(0,0,0,.6);
  animation: h3Pop .7s cubic-bezier(.2,.8,.2,1) var(--pop, .8s) both, h3Bob var(--bob, 5s) ease-in-out 1.5s infinite;
}
.h3-chip.c-quiz    { right: -24px; top: 34px; }
.h3-chip.c-song    { left: -24px; top: 120px; width: 190px; --pop: 1s; --bob: 5.6s; }
.h3-chip.c-proverb { right: -32px; bottom: 150px; width: 215px; --pop: 1.2s; --bob: 6.4s; }
.h3-chip.c-song .h3-chip-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.h3-chip.c-proverb .h3-chip-icon { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.h3-chip.c-proverb strong { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 600; font-size: .84rem; line-height: 1.3; }
.h3-chip-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, var(--violet)); color: #fff; font-size: 1rem;
}
.h3-chip strong { font-size: .86rem; font-weight: 700; color: #fff; line-height: 1.2; }
.h3-chip small { display: block; font-size: .72rem; color: rgba(255,255,255,.7); line-height: 1.3; }

/* Stats bar resting on the ridgeline */
.h3-stats {
  list-style: none; margin: 3.75rem 0 0; padding: 1.1rem 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10,22,80,.45); border: 1px solid rgba(255,255,255,.14); border-radius: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -36px rgba(0,0,0,.8);
}
.h3-stats li { display: flex; align-items: center; gap: .8rem; padding: .25rem 1.1rem; }
.h3-stats li + li { border-left: 1px solid rgba(255,255,255,.12); }
.h3-stat-icon {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: rgba(255,183,3,.14); color: #ffb703;
}
.h3-stats strong { display: block; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.45rem; line-height: 1.1; color: #fff; }
.h3-stats small { display: block; font-size: .8rem; color: rgba(255,255,255,.68); line-height: 1.35; }

/* Responsive */
/* Narrow two-column layout (992-1199) has no room beside the phone: keep only the quiz chip and word card */
@media (min-width: 992px) and (max-width: 1199px) {
  .h3-wotd { left: -30px; }
  .h3-chip.c-quiz { right: -20px; }
  .h3-chip.c-song, .h3-chip.c-proverb { display: none; }
  .app-home-mock { max-width: 250px; }
}
@media (max-width: 991px) {
  .hero-v3 { padding-top: 2.75rem; }
  .h3-stats { grid-template-columns: repeat(2, 1fr); gap: .9rem 0; }
  .h3-stats li:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
  .hero-v3 { padding-bottom: 5rem; }
  .h3-peaks { height: 170px; }
  .h3-sun { width: 240px; height: 240px; left: 50%; bottom: 40px; }
  .h3-stats { margin-top: 2.75rem; }
}
@media (max-width: 575px) {
  .h3-lead { font-size: 1rem; }
  .app-home-mock { max-width: 215px; border-radius: 36px; padding: 9px; --phone-tilt: perspective(1400px) rotateY(-6deg) rotateX(3deg) rotate(4deg); }
  .app-home-screen { border-radius: 28px; }
  .h3-ring.r1 { width: 300px; height: 300px; }
  .h3-ring.r2 { width: 400px; height: 400px; }
  .h3-wotd { width: 150px; left: -4px; bottom: 56px; padding: .6rem .7rem .65rem; border-radius: 14px; }
  .h3-wotd-word { font-size: 1.15rem; }
  .h3-wotd-date { display: none; }
  .h3-wotd-mean dd { font-size: .7rem; }
  .h3-chip { width: auto; max-width: 160px; padding: .5rem .65rem .5rem .5rem; gap: .5rem; }
  .h3-chip.c-quiz { right: -4px; top: 24px; }
  .h3-chip.c-song, .h3-chip.c-proverb { display: none; }
  .h3-chip-icon { width: 30px; height: 30px; font-size: .85rem; }
  .h3-chip small { display: none; }
  .h3-stats { padding: 1rem .5rem; }
  .h3-stats li { flex-direction: column; text-align: center; gap: .4rem; padding: .2rem .5rem; }
  .h3-stats strong { font-size: 1.25rem; }
  .h3-stats small { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float, .h3-wotd, .h3-chip, .h3-ring.r2, .h3-stars, .h3-icon, .h3-icon * { animation: none !important; }
  .h3-icon * { stroke-dashoffset: 0; }
  .hero-screen { transition: opacity .15s linear; transform: none; }
}

/* ==========================================================================
   Culture v2 — Material colour cards with live content
   ========================================================================== */
.mc-purple { --mc1: #7E57C2; --mc2: #4527A0; --mc: #5E35B1; }  /* Deep Purple 400/800/600 */
.mc-orange { --mc1: #FF7043; --mc2: #D84315; --mc: #F4511E; }  /* Deep Orange */
.mc-teal   { --mc1: #26A69A; --mc2: #00695C; --mc: #00897B; }  /* Teal */
.mc-cyan   { --mc1: #22B8CF; --mc2: #0B5E8A; --mc: #1596B8; }  /* Cyan-blue, as in the app's quiz screen */

.mc-legend { list-style: none; padding: 0; margin: 1.5rem 0 1.2rem; display: grid; gap: .65rem; }
.mc-legend li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.mc-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--mc); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 18%, transparent); }
.mc-live { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 999px; padding: .35rem .85rem; }
.mc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: gbPulse 1.8s infinite; }
@keyframes gbPulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.mc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; }
.mc-song { grid-row: span 2; }
@media (max-width: 767px) { .mc-grid { grid-template-columns: 1fr; } .mc-song { grid-row: auto; } }

.mc-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: 24px; padding: 1.6rem; color: #fff;
  background: linear-gradient(145deg, var(--mc1), var(--mc2));
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 22px 40px -22px var(--mc2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mc-card::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
  right: -70px; top: -90px; background: rgba(255,255,255,.1);
}
.mc-card::after {
  content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; border-radius: 50%;
  right: 30px; bottom: -80px; background: rgba(255,255,255,.07);
}
.mc-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 30px 50px -22px var(--mc2); }
.mc-label { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; margin-bottom: .9rem; }
html[lang="hi"] .mc-label, html[data-lang="hi"] .mc-label { letter-spacing: .02em; }
.mc-body { font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.92); }

/* Share button, top-right of each card's label row (after the equaliser / question count when present) */
.mc-share {
  margin: -.4rem 0 -.4rem auto; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.16); color: #fff; font-size: .9rem;
  transition: background .2s ease, transform .2s ease;
}
.mc-share:hover, .mc-share:focus-visible { background: rgba(255,255,255,.3); transform: scale(1.06); }
.mc-share:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mc-eq + .mc-share, .mc-quiz-count + .mc-share { margin-left: .35rem; }

/* Small confirmation toast (share fallback: "image downloaded, text copied") */
.gb-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000; transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100vw - 32px); background: #1f2937; color: #fff; font-size: .9rem; font-weight: 500;
  padding: .7rem 1.1rem; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.gb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mc-body em { opacity: .85; }

/* Song card */
.mc-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; margin-left: auto; }
.mc-eq i { width: 3px; background: #fff; border-radius: 2px; animation: gbEq 1s ease-in-out infinite; }
.mc-eq i:nth-child(2) { animation-delay: .2s; } .mc-eq i:nth-child(3) { animation-delay: .4s; } .mc-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes gbEq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.mc-song-title { color: #fff; font-size: 1.6rem; line-height: 1.25; margin: 0; }
.mc-lyrics { margin: 1.2rem 0 1.4rem; padding-left: 1rem; border-left: 3px solid rgba(255,255,255,.45); }
.mc-lyrics p { font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.12rem; line-height: 1.55; margin: 0 0 .35rem; }
.mc-credit { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.mc-credit strong { display: block; font-size: .95rem; }
.mc-credit span { font-size: .8rem; opacity: .85; }
.mc-disc { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.mc-disc i { animation: gbSpin 6s linear infinite; }
.mc-cta {
  align-self: flex-start; margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--mc2); font-weight: 700; font-size: .85rem; padding: .5rem 1.05rem; border-radius: 999px;
}
.mc-cta:hover { color: var(--mc2); }
.mc-cta i { transition: transform .2s ease; }
.mc-cta:hover i { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .mc-eq i, .mc-disc i, .mc-live-dot { animation: none; } }

/* Word / proverb */
.mc-word { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1.1; }
.mc-translit { font-size: .85rem; opacity: .8; margin: .15rem 0 .7rem; }
.mc-proverb { font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.15rem; line-height: 1.5; margin-bottom: .6rem; }

/* Daily quiz: full-width card — question + CTA on the left, the four options on the right */
.mc-quiz {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-areas: "main opts" "cta opts"; column-gap: 1.75rem; align-items: center;
}
.mc-quiz-main { grid-area: main; min-width: 0; }
.mc-quiz-options { grid-area: opts; }
.mc-quiz .mc-cta { grid-area: cta; align-self: start; justify-self: start; }
@media (max-width: 991px) {
  .mc-quiz { grid-template-columns: 1fr; grid-template-areas: "main" "opts" "cta"; row-gap: 1.1rem; }
  .mc-quiz .mc-cta { margin-top: 0; }
}
.mc-quiz-count { margin-left: auto; font-size: .7rem; letter-spacing: .04em; background: rgba(255,255,255,.18); border-radius: 999px; padding: .2rem .6rem; }
.mc-quiz-ask { font-size: .95rem; margin: 0; opacity: .9; }
.mc-quiz-term { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1.15; margin: .1rem 0 .35rem; overflow-wrap: anywhere; }
.mc-quiz-options { min-width: 0; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mc-quiz-options li {
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 14px;
  padding: .6rem .75rem; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere;
}
.mc-quiz-letter { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.25); font-family: 'Hind', sans-serif; font-size: .75rem; font-weight: 700; }

/* ==========================================================================
   Contact v2 — split card with a working AJAX form
   ========================================================================== */
.contact-shell { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(10,22,80,.4); }
.contact-info {
  position: relative; height: 100%; padding: 2.75rem 2.5rem 7rem; color: rgba(255,255,255,.8); overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(97,0,237,.55), transparent 55%), linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.contact-info::before, .contact-info::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.contact-info::before { height: 120px; background: rgba(255,255,255,.06); clip-path: polygon(0 60%, 15% 30%, 32% 58%, 50% 18%, 66% 52%, 82% 26%, 100% 50%, 100% 100%, 0 100%); }
.contact-info::after { height: 70px; background: rgba(255,255,255,.08); clip-path: polygon(0 55%, 20% 25%, 40% 60%, 60% 30%, 80% 62%, 100% 35%, 100% 100%, 0 100%); }
.contact-info-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.25; margin-bottom: .8rem; }
.contact-info-sub { font-size: .98rem; line-height: 1.65; margin-bottom: 1.8rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list .ci { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #ffb703; font-size: 1.1rem; }
.contact-list small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.contact-list a, .contact-list div { color: #fff; font-weight: 600; }
.contact-list a:hover { color: #ffb703; }
.contact-social { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .88rem; position: relative; z-index: 1; }

.contact-form-wrap { position: relative; padding: 2.75rem 2.5rem; height: 100%; }
@media (max-width: 575px) { .contact-info, .contact-form-wrap { padding-left: 1.4rem; padding-right: 1.4rem; } }
.contact-form-title { font-size: 1.5rem; margin-bottom: 1.3rem; }
.topic-group { border: 0; padding: 0; margin: 0 0 1.4rem; }
.topic-group legend { float: none; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .7rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-chip { position: relative; cursor: pointer; margin: 0; }
.topic-chip input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chip > span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: .88rem;
  transition: all .15s ease;
}
.topic-chip:hover > span { border-color: var(--violet); color: var(--violet); }
.topic-chip input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 8px 18px -10px rgba(97,0,237,.7); }
.topic-chip input:focus-visible + span { outline: 3px solid rgba(97,0,237,.35); outline-offset: 2px; }

#contactForm .form-control { border: 1.5px solid var(--line); border-radius: 14px; background: #fbfbfe; }
#contactForm .form-control:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(97,0,237,.1); }
#contactForm .form-floating > label { color: var(--muted); }
#contactForm textarea.form-control { height: 160px; resize: vertical; }
#contactForm .form-control.is-invalid { border-color: #e11d48; background-image: none; }
.cf-counter { text-align: right; font-size: .76rem; color: var(--muted); margin-top: .35rem; }
.cf-counter.near { color: #d97706; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-alert { margin-top: 1rem; padding: .75rem 1rem; border-radius: 12px; background: #fff1f2; color: #be123c; font-size: .9rem; font-weight: 500; }
.cf-submit { display: inline-flex; align-items: center; min-width: 170px; justify-content: center; }
.cf-submit-loading { display: none; align-items: center; gap: .5rem; }
.cf-submit.is-loading { pointer-events: none; opacity: .85; }
.cf-submit.is-loading .cf-submit-label { display: none; }
.cf-submit.is-loading .cf-submit-loading { display: inline-flex; }
.cf-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: gbSpin .7s linear infinite; }

.cf-success { text-align: center; padding: 3rem 1rem; animation: gbDrop .3s ease; }
.cf-success:focus { outline: none; }
.cf-success h3 { font-size: 1.7rem; margin: 1.2rem 0 .5rem; }
.cf-success p { color: var(--muted); max-width: 380px; margin: 0 auto 1.6rem; }
.cf-check { width: 84px; height: 84px; margin: 0 auto; }
.cf-check svg { width: 100%; height: 100%; }
.cf-check circle { fill: #ecfdf5; stroke: #10b981; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: cfDraw .6s ease forwards; }
.cf-check path { fill: none; stroke: #10b981; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cfDraw .4s .5s ease forwards; }
@keyframes cfDraw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Garhwali language — dark editorial section
   ========================================================================== */
.lang-section {
  position: relative; overflow: hidden; color: rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 0% 0%, rgba(97,0,237,.45), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(37,99,235,.35), transparent 45%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
}
/* Giant Devanagari "ग" watermark */
.lang-glyph {
  position: absolute; right: 3%; bottom: -6%; pointer-events: none; user-select: none;
  font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: clamp(16rem, 30vw, 28rem); line-height: 1;
  color: rgba(255,255,255,.04);
}
.lang-title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.lang-lead { font-size: 1.15rem; line-height: 1.7; color: #fff; }
.lang-text { font-size: 1rem; line-height: 1.75; }
.lang-facts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.lang-facts > div {
  display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: .92rem;
}
.lang-facts i { color: #ffb703; font-size: 1.1rem; }
.lang-facts small { display: block; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }

/* Variant rotator card */
.variant-card {
  background: #fff; color: var(--ink); border-radius: 26px; padding: 1.6rem;
  box-shadow: 0 40px 70px -35px rgba(0,0,0,.7); position: relative;
}
.variant-card::before {
  content: ""; position: absolute; inset: -10px 24px auto; height: 100%; z-index: -1; border-radius: 26px;
  background: rgba(255,255,255,.12); transform: rotate(-3deg);
}
.variant-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.variant-head h3 { font-size: 1.25rem; margin: 0; }
.variant-head small { color: var(--muted); font-size: .8rem; }
.variant-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--violet), #2563eb); }
.variant-stage { position: relative; min-height: 200px; display: grid; }
.variant-slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 1.4rem 0 1rem;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.variant-slide.active { opacity: 1; visibility: visible; }
.variant-forms { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.variant-form {
  display: inline-flex; flex-direction: column; align-items: center; padding: .55rem 1.1rem; border-radius: 16px;
  background: var(--lavender-light); border: 1.5px solid rgba(97,0,237,.18);
}
.variant-slide.active .variant-form { animation: variantIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * .12s); }
@keyframes variantIn { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.variant-form b { font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.55rem; color: var(--navy); line-height: 1.2; }
.variant-form small { font-size: .72rem; color: var(--muted); }
.variant-form + .variant-form { position: relative; }
.variant-form + .variant-form::before {
  content: "·"; position: absolute; left: -.52rem; top: 50%; transform: translate(-50%, -50%); color: var(--violet); font-weight: 800;
}
.variant-meaning { display: flex; align-items: baseline; gap: .6rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.variant-eq { font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.5rem; color: var(--violet); line-height: 1; }
.variant-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.variant-dots { display: flex; gap: .4rem; }
.variant-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--line); cursor: pointer; transition: all .3s ease; }
.variant-dots button.active { width: 22px; background: var(--violet); }
@media (prefers-reduced-motion: reduce) { .variant-slide.active .variant-form { animation: none; } .variant-slide { transition: none; } }

/* Heritage / diversity cards */
.lang-card {
  height: 100%; padding: 2rem; border-radius: 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease;
}
.lang-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.lang-card h3 { color: #fff; font-size: 1.4rem; margin: 1rem 0 .8rem; }
.lang-card p { line-height: 1.75; font-size: .96rem; }
.lang-card-icon { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #1a1a2e; background: #ffb703; }
.lang-card-icon.green { background: #34d399; }
.lang-carries small, .lang-goals small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .6; margin-bottom: .6rem; }
.lang-carries { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed rgba(255,255,255,.18); }
.lang-carries > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.lang-carries > div > span, .lang-goals > span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: .85rem; font-weight: 600;
}
.lang-carries i { color: #ffb703; }
.lang-goals { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed rgba(255,255,255,.18); }
.lang-goals i { color: #34d399; }

/* Closing invitation */
.lang-invite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
  margin-top: 2.5rem; padding: 2rem 2.2rem; border-radius: 24px;
  background: linear-gradient(120deg, rgba(255,183,3,.16), rgba(255,183,3,.04));
  border: 1px solid rgba(255,183,3,.35);
}
.lang-invite-text { flex: 1 1 480px; }
.lang-invite-text p { margin-bottom: .7rem; line-height: 1.7; }
.lang-invite-text strong { display: block; color: #ffb703; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.2rem; line-height: 1.45; }
.lang-invite-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lang-btn-primary, .lang-btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; transition: all .15s ease;
}
.lang-btn-primary { background: #ffb703; color: #1a1a2e; box-shadow: 0 12px 24px -12px rgba(255,183,3,.8); }
.lang-btn-primary:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.lang-btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.lang-btn-ghost:hover { background: #fff; color: var(--navy); }
@media (max-width: 575px) { .lang-card, .lang-invite { padding: 1.5rem; } .variant-form b { font-size: 1.3rem; } }

/* Footer credit */
.footer-bottom a.credit-link { color: #fff; font-weight: 600; border-bottom: 1px dashed rgba(255,255,255,.35); }
.footer-bottom a.credit-link:hover { color: #ffb703; border-bottom-color: #ffb703; }
.footer-bottom .heart { display: inline-block; animation: gbBeat 1.6s ease-in-out infinite; }
@keyframes gbBeat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .footer-bottom .heart { animation: none; } }

/* ==========================================================================
   About page: story chapters + credits
   ========================================================================== */
.ab-hero { padding-bottom: 6.5rem; }
.ab-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.25rem; }
.ab-jump a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem .45rem .45rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-weight: 600; font-size: .9rem; transition: background .2s ease, transform .2s ease;
}
.ab-jump a:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }
.ab-jump .n {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #ffb703; color: var(--navy-deep); font-family: 'Baloo Bhai 2', sans-serif; font-size: .8rem; font-weight: 800;
}

/* Story chapters, joined by a thin line on large screens */
.ab-story { padding-top: 3.5rem; padding-bottom: 3rem; }
.ab-chapter { position: relative; padding: 3.25rem 0; scroll-margin-top: 80px; }
.ab-chapter + .ab-chapter { border-top: 1px solid var(--line); }
@media (min-width: 992px) { .ab-chapter-head { position: sticky; top: 96px; } }
.ab-num {
  display: block; font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 4.2rem; line-height: 1;
  background: linear-gradient(135deg, var(--violet), #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .75rem; opacity: .9;
}
.ab-lead { font-size: 1.25rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.ab-text { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.ab-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
@media (max-width: 767px) { .ab-facts { grid-template-columns: 1fr; } }
.ab-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.ab-fact i { font-size: 1.3rem; color: var(--violet); }
.ab-fact:nth-child(2) i { color: #d97706; }
.ab-fact:nth-child(3) i { color: #0d9488; }
.ab-fact strong { display: block; font-family: 'Baloo Bhai 2', sans-serif; font-size: 1.45rem; color: var(--navy); margin: .45rem 0 .15rem; }
.ab-fact span { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.ab-steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 1rem; }
.ab-steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--violet), var(--lavender)); }
.ab-steps li {
  position: relative; display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem 1.25rem 1rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.ab-steps li:hover { box-shadow: 0 18px 36px -24px rgba(10,22,80,.35); transform: translateX(4px); }
.ab-step-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); box-shadow: 0 10px 22px -10px rgba(97,0,237,.6);
}
.ab-steps h3 { font-size: 1.12rem; margin: .2rem 0 .3rem; }
.ab-steps p { color: var(--muted); margin: 0; line-height: 1.65; }
.ab-inline-stat { display: inline-block; margin-top: .55rem; font-size: .82rem; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 999px; padding: .2rem .7rem; }

.ab-roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 575px) { .ab-roadmap { grid-template-columns: 1fr; } }
.ab-road {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease;
}
.ab-road:hover { border-color: var(--violet); transform: translateY(-3px); }
.ab-road i { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--lavender-light); color: var(--violet); }
.ab-road h3 { font-size: 1.08rem; margin: .85rem 0 .3rem; }
.ab-road p { color: var(--muted); font-size: .92rem; margin: 0; }
.ab-road-wide { grid-column: 1 / -1; }
.ab-road-hl { background: linear-gradient(135deg, var(--navy), var(--violet-deep)); border: 0; color: #fff; }
.ab-road-hl h3 { color: #fff; }
.ab-road-hl p { color: rgba(255,255,255,.8); }
.ab-road-hl i { background: rgba(255,255,255,.14); color: #ffb703; }

/* Knowledge to technology: navy band with a five-step flow, arrows between steps (downward when stacked) */
.ab-flow { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 5rem 0; }
.ab-flow-title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.ab-flow-sub { color: rgba(255,255,255,.78); font-size: 1.05rem; margin: 0 auto 2.5rem; max-width: 560px; }
.ab-flow-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 0; }
.ab-flow-steps li { display: flex; align-items: center; color: #fff; font-weight: 500; font-size: 1.02rem; }
.ab-flow-steps li > span {
  padding: .95rem 1.6rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
}
.ab-flow-steps li + li::before { content: "\2192"; color: #ffb703; font-size: 1.4rem; padding: 0 1.1rem; }
@media (max-width: 767px) {
  .ab-flow { padding: 3.5rem 0; }
  .ab-flow-steps { flex-direction: column; gap: 0; }
  .ab-flow-steps li { flex-direction: column; }
  .ab-flow-steps li > span { min-width: 220px; }
  .ab-flow-steps li + li::before { content: "\2193"; padding: .35rem 0; }
}

/* Credits */
.ab-credits { scroll-margin-top: 70px; }

/* Team groups: name on the left, description on the right, a hairline underneath */
.ab-group { margin-bottom: 4rem; scroll-margin-top: 90px; }
.ab-group-head { display: grid; gap: .75rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--lavender); }
@media (min-width: 992px) { .ab-group-head { grid-template-columns: 320px minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.ab-group-title { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; color: var(--navy); margin: 0; }
.ab-group-title .ab-gi {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--violet); font-size: 1rem;
}
.ab-group-desc { color: var(--muted); font-size: .97rem; line-height: 1.7; margin: 0; max-width: 760px; }

/* Avatars: soft initials underneath, photo on top (removed if it fails to load) */
.ab-avatar {
  position: relative; overflow: hidden; display: inline-flex; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10,22,80,.08);
}
.ab-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-avatar-lg { width: 72px; height: 72px; }
.ab-avatar-xl { width: 96px; height: 96px; }
.ab-initials { align-items: center; justify-content: center; font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; }
.ab-avatar-xl.ab-initials { font-size: 1.9rem; }
.ab-tone-0 { background: #ede9fe; color: #5b21b6; }
.ab-tone-1 { background: #fdeee2; color: #9a3412; }
.ab-tone-2 { background: #dff5f1; color: #0f5f57; }
.ab-tone-3 { background: #e3ecfd; color: #1e3a8a; }
.ab-tone-4 { background: #fbe7f0; color: #9d174d; }

/* Title line, location and bio */
.ab-title { color: var(--violet-deep); font-size: .9rem; font-weight: 600; line-height: 1.45; margin-top: .2rem; }
.ab-location { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.ab-location i { font-size: .8rem; }
.ab-bio { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ab-bio-text {
  color: #4a4a63; font-size: .95rem; line-height: 1.75; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ab-bio.is-open .ab-bio-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ab-more {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; padding: 0; border: 0; background: none;
  color: var(--violet); font-weight: 600; font-size: .88rem; cursor: pointer;
}
.ab-more:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.ab-more i { font-size: .72rem; transition: transform .2s ease; }
.ab-more-close, .ab-bio.is-open .ab-more-open { display: none; }
.ab-bio.is-open .ab-more-close { display: inline; }
.ab-bio.is-open .ab-more i { transform: rotate(180deg); }

/* 'feature' and 'cards' layouts: profile cards, two to a row */
.ab-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ab-profiles.is-single { grid-template-columns: 1fr; }
@media (max-width: 991px) { .ab-profiles { grid-template-columns: 1fr; } }
.ab-profile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(10,22,80,.04), 0 16px 36px -28px rgba(10,22,80,.3);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.ab-profile:hover { border-color: var(--lavender); box-shadow: 0 1px 2px rgba(10,22,80,.04), 0 24px 44px -28px rgba(10,22,80,.38); }
.ab-profile-head { display: flex; align-items: center; gap: 1.25rem; }
.ab-profile-id { min-width: 0; }
.ab-profile h4 { font-size: 1.2rem; color: var(--navy); margin: 0; line-height: 1.3; }

/* 'feature' layout: highlighted cards — lavender wash, brand gradient bar on top, ringed avatar */
.ab-profiles-feature .ab-profile {
  padding: 2rem; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(97,0,237,.09), transparent 60%), linear-gradient(180deg, var(--surface) 0%, var(--lavender-light) 100%);
  border-color: var(--lavender);
  box-shadow: 0 1px 2px rgba(10,22,80,.05), 0 26px 50px -30px rgba(74,0,184,.45);
}
.ab-profiles-feature .ab-profile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--violet));
}
.ab-profiles-feature .ab-profile:hover { border-color: rgba(97,0,237,.35); box-shadow: 0 1px 2px rgba(10,22,80,.05), 0 32px 60px -30px rgba(74,0,184,.55); }
.ab-profiles-feature .ab-avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--violet), 0 12px 24px -12px rgba(74,0,184,.6); }
.ab-profiles-feature .ab-profile h4 { font-size: 1.35rem; }
.ab-profiles-feature .ab-bio { border-top-color: var(--lavender); }
@media (min-width: 992px) { .ab-profiles-feature.is-single .ab-bio { border-left-color: var(--lavender); } }

/* A lone profile: identity on the left, bio on the right */
@media (min-width: 992px) {
  .ab-profiles.is-single .ab-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2.5rem; padding: 2rem 2.25rem; }
  .ab-profiles.is-single .ab-profile-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ab-profiles.is-single .ab-bio { margin: 0; padding: 0 0 0 2.5rem; border-top: 0; border-left: 1px solid var(--line); }
  .ab-profiles.is-single .ab-bio-text { max-width: 75ch; }
}
@media (max-width: 575px) {
  .ab-profile, .ab-profiles-feature .ab-profile { padding: 1.35rem; border-radius: 16px; }
  .ab-profile-head { gap: 1rem; }
  .ab-profile .ab-avatar-lg { width: 60px; height: 60px; font-size: 1.15rem; }
  .ab-profile .ab-avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }
  .ab-profile h4, .ab-profiles-feature .ab-profile h4 { font-size: 1.12rem; }
}

/* 'cards' layout: avatar on the left, name / title / bio stacked beside it, two to a row */
.ab-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ab-cards.is-single { grid-template-columns: minmax(0, 820px); }
@media (max-width: 991px) { .ab-cards { grid-template-columns: 1fr; } }
.ab-card {
  display: flex; align-items: flex-start; gap: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 2rem 2rem 2.25rem; box-shadow: 0 1px 2px rgba(10,22,80,.04), 0 18px 40px -30px rgba(10,22,80,.3);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.ab-card:hover { border-color: var(--lavender); box-shadow: 0 1px 2px rgba(10,22,80,.04), 0 26px 48px -30px rgba(10,22,80,.4); }
.ab-avatar.ab-avatar-card { width: 88px; height: 88px; font-size: 1.6rem; }
.ab-card-body { min-width: 0; flex: 1; }
.ab-card h4 { font-size: 1.3rem; color: var(--navy); margin: 0 0 .35rem; line-height: 1.3; }
.ab-card .ab-title { color: #2f54b8; font-weight: 700; font-size: .98rem; line-height: 1.6; }
.ab-card .ab-bio { margin-top: .9rem; padding-top: 0; border-top: 0; }
.ab-card .ab-bio-text { color: var(--muted); font-size: .97rem; line-height: 1.7; }
@media (max-width: 575px) {
  .ab-card { padding: 1.35rem; gap: 1rem; border-radius: 18px; }
  .ab-avatar.ab-avatar-card { width: 60px; height: 60px; font-size: 1.15rem; }
  .ab-card h4 { font-size: 1.12rem; }
}

/* 'grid' layout: compact photo cards */
.ab-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 440px) { .ab-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.ab-person { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.1rem 1.25rem; transition: border-color .25s ease, box-shadow .25s ease; }
.ab-person:hover { border-color: var(--lavender); box-shadow: 0 20px 40px -28px rgba(10,22,80,.38); }
.ab-person .ab-avatar { margin-bottom: .9rem; }
.ab-person h4 { font-size: 1.02rem; color: var(--navy); margin: 0; }
.ab-person .ab-title { font-size: .82rem; }
.ab-person .ab-location { justify-content: center; font-size: .8rem; }
.ab-person .ab-bio { margin-top: .9rem; padding-top: .9rem; text-align: left; }
.ab-person .ab-bio-text { font-size: .85rem; -webkit-line-clamp: 3; }

/* 'names' layout: name chips */
.ab-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ab-chips li { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 1rem .35rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.ab-avatar.ab-chip-dot { width: 30px; height: 30px; font-size: .68rem; box-shadow: none; }

/* Invitation to join */
.ab-join { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; border: 1px solid var(--lavender); border-radius: 20px; padding: 1.25rem 1.5rem; margin-top: 1rem; background: linear-gradient(90deg, var(--surface), rgba(255,255,255,.6)); }
.ab-join-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender-light); color: var(--violet); font-size: 1.2rem; flex-shrink: 0; }
.ab-join > div { flex: 1 1 240px; }
.ab-join strong { display: block; color: var(--navy); }
.ab-join div > span { font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .ab-jump a, .ab-steps li, .ab-road, .ab-person, .ab-profile, .ab-card { transition: none; transform: none !important; }
}

/* ==========================================================================
   Legal pages — /privacy-policy, /terms, /disclaimer, /delete-account
   (?app=1 renders them without navbar/footer inside the mobile app)
   ========================================================================== */
.lg-hero { padding-bottom: 5rem; }
.lg-hero .kg-hero-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 1rem; }
.lg-updated { margin: 1.1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.65); }
.lg-updated i { margin-right: .3rem; }
.lg-hero-app { padding-top: 1.75rem; }

.lg-section { padding: 1rem 0 5rem; }

.lg-toc {
  position: sticky; top: calc(var(--nav-h) + 1.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.app-view .lg-toc { top: 1rem; }
.lg-toc-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; font-family: 'Hind', sans-serif; }
.lg-toc ol { list-style: none; counter-reset: lg; margin: 0; padding: 0; }
.lg-toc li { counter-increment: lg; }
.lg-toc a {
  display: flex; gap: .6rem; padding: .4rem .5rem; border-radius: 10px;
  font-size: .92rem; line-height: 1.35; color: var(--ink);
}
.lg-toc a::before { content: counter(lg, decimal-leading-zero); font-size: .72rem; font-weight: 700; color: var(--violet); opacity: .7; padding-top: .15rem; }
.lg-toc a:hover { background: var(--lavender-light); color: var(--violet-deep); }
@media (max-width: 991px) {
  .lg-toc { position: static; }
  .lg-toc ol { columns: 2; column-gap: 1rem; }
  .lg-toc li { break-inside: avoid; }
}
@media (max-width: 575px) { .lg-toc ol { columns: 1; } }

.lg-doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2.5rem; box-shadow: 0 24px 50px -40px rgba(18,32,108,.45);
}
@media (max-width: 575px) { .lg-doc { padding: 1.5rem 1.25rem; } }
.lg-block { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.lg-block + .lg-block { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.75rem; }
.lg-block h2 { display: flex; align-items: baseline; gap: .7rem; font-size: 1.35rem; margin-bottom: .9rem; }
.lg-num { font-size: .8rem; font-weight: 700; color: var(--violet); background: var(--lavender-light); border-radius: 8px; padding: .1rem .45rem; flex-shrink: 0; }
.lg-text { color: #3a3a52; font-size: 1rem; line-height: 1.75; }
.lg-text p { margin-bottom: .85rem; }
.lg-text p:last-child, .lg-text ul:last-child, .lg-text ol:last-child { margin-bottom: 0; }
.lg-text ul, .lg-text ol { padding-left: 1.3rem; margin-bottom: .85rem; }
.lg-text li { margin-bottom: .4rem; }
.lg-text li::marker { color: var(--violet); }
.lg-text b { color: var(--ink); }
.lg-text a { color: var(--violet); font-weight: 600; border-bottom: 1px solid rgba(97,0,237,.25); overflow-wrap: anywhere; }
.lg-text a:hover { color: var(--violet-deep); border-bottom-color: var(--violet-deep); }
.lg-note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }

.lg-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.5rem; }
@media (max-width: 767px) { .lg-related { grid-template-columns: 1fr; } }
.lg-related-card {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .95rem 1.1rem; color: var(--navy); font-weight: 600;
  transition: border-color .2s ease, transform .2s ease;
}
.lg-related-card > i:first-child { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--lavender-light); color: var(--violet); flex-shrink: 0; }
.lg-related-card .lg-arrow { margin-left: auto; color: var(--violet); }
.lg-related-card:hover { border-color: var(--violet); color: var(--navy); transform: translateY(-2px); }

/* ==========================================================================
   Announcement banner + admin maintenance notice (Admin -> Settings)
   ========================================================================== */
.gb-banner { color: #fff; font-size: .95rem; font-weight: 500; }
.gb-banner .container { display: flex; align-items: center; justify-content: center; gap: .6rem 1rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; padding-right: 2.75rem; position: relative; text-align: center; }
.gb-banner-info { background: linear-gradient(90deg, var(--violet-deep), var(--violet)); }
.gb-banner-celebrate { background: linear-gradient(90deg, #ffb703, #fb8500); color: #1a1a2e; }
.gb-banner-warning { background: linear-gradient(90deg, #b91c1c, #dc2626); }
.gb-banner-link { color: inherit; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.gb-banner-link:hover { color: inherit; opacity: .85; }
.gb-banner-close {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: inherit;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; cursor: pointer;
}
.gb-banner-close:hover { background: rgba(255,255,255,.3); }
.gb-banner-celebrate .gb-banner-close { background: rgba(26,26,46,.12); }
.gb-admin-notice { background: #ffb703; color: #1a1a2e; font-size: .88rem; font-weight: 600; text-align: center; padding: .5rem 1rem; }
.gb-admin-notice a { color: #1a1a2e; text-decoration: underline; margin-left: .35rem; }

/* Announcement popup (Admin -> Settings) */
.gb-announce .modal-dialog { max-width: 440px; padding: 0 .5rem; }
.gb-announce .modal-content { position: relative; border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(10,22,80,.7); }
.gb-announce.fade .modal-dialog { transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.gb-announce.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .6; background: var(--navy-deep); }
.gb-announce-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .15s ease;
}
.gb-announce-close:hover { transform: rotate(90deg); }
.gb-announce-img { display: block; width: 100%; max-height: 300px; object-fit: cover; background: var(--lavender-light); }
.gb-announce-hero {
  position: relative; height: 120px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.25), transparent 50%), var(--an-grad);
}
.gb-announce-hero span {
  width: 72px; height: 72px; margin-bottom: -36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--an-fg); background: var(--an-grad); border: 5px solid #fff; box-shadow: 0 10px 22px -10px rgba(0,0,0,.4);
  animation: gbAnPop .6s .35s both cubic-bezier(.2,.9,.3,1.4);
}
@keyframes gbAnPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gb-announce-body { padding: 1.6rem 1.75rem 1.75rem; text-align: center; }
.gb-announce-hero + .gb-announce-body { padding-top: 2.9rem; }
.gb-announce-title { font-size: 1.5rem; line-height: 1.3; margin: 0 0 .6rem; }
.gb-announce-text { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0; }
.gb-announce-actions { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.gb-announce-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 200px;
  padding: .75rem 1.6rem; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer;
  color: var(--an-fg); background: var(--an-grad); box-shadow: 0 14px 26px -14px var(--an-shadow); transition: transform .15s ease;
}
.gb-announce-cta:hover { color: var(--an-fg); transform: translateY(-2px); }
.gb-announce-later { border: 0; background: none; color: var(--muted); font-size: .9rem; padding: .3rem .8rem; cursor: pointer; }
.gb-announce-later:hover { color: var(--navy); }
.gb-announce-info { --an-grad: linear-gradient(135deg, var(--violet), var(--violet-deep)); --an-fg: #fff; --an-shadow: rgba(97,0,237,.8); }
.gb-announce-celebrate { --an-grad: linear-gradient(135deg, #ffb703, #fb8500); --an-fg: #1a1a2e; --an-shadow: rgba(251,133,0,.8); }
.gb-announce-warning { --an-grad: linear-gradient(135deg, #dc2626, #b91c1c); --an-fg: #fff; --an-shadow: rgba(220,38,38,.8); }
@media (max-width: 575px) { .gb-announce-body { padding-left: 1.25rem; padding-right: 1.25rem; } .gb-announce-title { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .gb-announce.fade .modal-dialog { transition: none; } .gb-announce-hero span { animation: none; } }

/* ==========================================================================
   Learning pages — /learn-garhwali, /garhwali-dictionary, /garhwali-words,
   /garhwali-phrases, /garhwali-translation, /garhwali-app, /dictionary/{word}.
   Built on the Know Garhwal hero (.kg-hero) and the home page cards.
   ========================================================================== */

/* Hero */
.lp-hero { padding-bottom: 9.5rem; overflow: visible; z-index: 5; }  /* visible: the live-search dropdown hangs below the hero */
.lp-hero-title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.gb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.gb-crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.gb-crumbs [aria-current] { color: rgba(255,255,255,.95); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.lp-btn-gold { background: #ffb703; border-color: #ffb703; color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(255,183,3,.7); }
.lp-btn-gold:hover { background: #ffc633; border-color: #ffc633; color: var(--navy-deep); }
.lp-btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: 999px; transition: all .15s ease;
}
.lp-btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.lp-hero-chips { margin-top: 1.75rem; }
.lp-search { margin-top: 1.75rem; }
.lp-search .hero-try-label { color: rgba(255,255,255,.75); }
.lp-app-phone .phone-mock { max-width: 230px; }

/* Text blocks */
.lp-h2 { font-size: 1.6rem; }
.lp-h3 { font-family: 'Hind', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .4rem; }
.lp-text { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.lp-text b { color: var(--navy); }
.lp-link { color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.lp-link:hover { color: var(--violet-deep); }
.lp-link i { transition: transform .15s ease; }
.lp-link:hover i { transform: translateX(3px); }
.lp-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.lp-note h3 { font-size: 1.3rem; }
.lp-note h3 i, .lp-note h2 i { color: var(--violet); }
.lp-note p { color: var(--muted); line-height: 1.7; }
.lp-examples { list-style: none; padding: 0; margin: 0 0 1rem; }
.lp-examples li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.lp-examples small { display: block; color: var(--muted); font-size: .78rem; }

/* Cards that are links */
a.feature-card { display: block; height: 100%; color: inherit; position: relative; }
.lp-step-num { position: absolute; top: 1.1rem; right: 1.25rem; font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--lavender); }
.lp-tip { height: 100%; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lp-tip > i { font-size: 1.5rem; color: var(--violet); display: block; margin-bottom: .6rem; }
.lp-tip p { color: var(--muted); font-size: .93rem; margin: 0; }
.lp-topic-chips .kg-chip { font-size: .95rem; padding: .5rem 1rem; }
.kg-chip small { opacity: .6; margin-left: .2rem; }
.lp-hub {
  display: flex; flex-direction: column; gap: .35rem; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-hub:hover { transform: translateY(-4px); border-color: var(--lavender); box-shadow: 0 20px 40px -26px rgba(10,22,80,.3); color: var(--ink); }
.lp-hub .feature-icon { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: .4rem; }
.lp-hub strong { color: var(--navy); font-size: 1.05rem; }
.lp-hub small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.lp-cat {
  display: flex; flex-direction: column; gap: .25rem; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; transition: all .15s ease;
}
.lp-cat strong { color: var(--navy); }
.lp-cat small { color: var(--muted); }
.lp-cat:hover { border-color: var(--violet); transform: translateY(-2px); }
.lp-cat:hover small { color: var(--violet); }

/* Word grid */
.dw-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.dw-grid-compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .65rem; }
.dw-card {
  display: flex; flex-direction: column; height: 100%; gap: .1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dw-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(97,0,237,.5); color: var(--ink); }
.dw-card-gh { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.dw-card-tr { font-size: .78rem; color: var(--muted); }
.dw-card-mean { font-size: .9rem; margin-top: .2rem; }
.dw-card-en { font-size: .82rem; color: var(--muted); font-style: italic; }
.bg-lavender-light .dw-card { border-color: transparent; }

/* Word page */
.dw-h1-tr { font-size: .5em; color: rgba(255,255,255,.75); font-weight: 600; }
.dw-h1-sub { display: block; font-size: .38em; font-weight: 600; letter-spacing: .04em; color: #ffb703; margin-top: .3rem; }
.dw-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: 0 20px 40px -32px rgba(10,22,80,.35); }
.dw-meanings { margin: 0; }
.dw-meanings > div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dw-meanings > div:last-child { border-bottom: 0; }
.dw-meanings dt { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding-top: .2rem; }
.dw-meanings dd { margin: 0; font-size: 1.08rem; }
.dw-meanings .kg-chip { margin: 0 .2rem .3rem 0; }
.dw-gh { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 1.7rem !important; color: var(--navy); line-height: 1.2; }
@media (max-width: 575px) {
  .dw-entry { padding: 1.1rem 1.15rem; }
  .dw-meanings > div { grid-template-columns: 1fr; gap: .2rem; }
}
.dw-block { margin-top: 2.5rem; }
.dw-examples { padding-left: 1.2rem; margin: 0; }
.dw-examples li { margin-bottom: 1rem; }
.dw-examples li::marker { color: var(--violet); font-weight: 700; }
.dw-ex-gh { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: 0 0 .2rem; }
.dw-ex-tr { color: var(--muted); margin: 0; }
.dw-side { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) { .dw-side { position: sticky; top: calc(var(--nav-h) + 20px); } }
.dw-side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.dw-side-box .hero-search { margin-top: .5rem; }
.dw-side-box .hero-search-btn .hsb-label { display: none; }
.dw-app { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: transparent; color: rgba(255,255,255,.85); }
.dw-app img { border-radius: 12px; margin-bottom: .75rem; }
.dw-side-links { list-style: none; padding: 0; margin: 0; }
.dw-side-links li + li { border-top: 1px solid var(--line); }
.dw-side-links a { display: flex; gap: .5rem; padding: .6rem 0; color: var(--ink); font-size: .95rem; }
.dw-side-links a i { color: var(--violet); }
.dw-side-links a:hover { color: var(--violet); }

/* Search results that link to word pages */
a.hs-item { color: inherit; cursor: pointer; }
a.hs-item:hover { color: inherit; }

/* Phrases */
.lp-phrase-cat { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--ink); }
.lp-phrase-cat .lp-h3 i { color: var(--violet); margin-right: .2rem; }
.lp-soon { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; }
.lp-phrase-help { border-style: dashed; border-color: var(--lavender); transition: border-color .15s ease; }
.lp-phrase-help:hover { border-color: var(--violet); color: var(--ink); }
.lp-phrase-help p { color: var(--muted); font-size: .9rem; margin: 0; }
.lp-phrase-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.lp-phrase-list li { padding: .5rem 0; border-top: 1px solid var(--line); }
.lp-phrase-list strong, .lp-phrase-list small { display: block; }
.lp-proverb-gh { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy) !important; line-height: 1.4 !important; margin-bottom: .4rem !important; }
.lp-proverb-hi { font-style: italic; margin-bottom: .5rem !important; }
.lp-proverb-mean { font-size: .9rem !important; }

/* App band */
.lp-app-band { border-radius: 24px; background: linear-gradient(135deg, var(--violet), var(--navy-deep)); color: #fff; padding: 1.75rem 2rem; }
.lp-app-band-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lp-app-band img { border-radius: 16px; flex: 0 0 auto; }
.lp-app-band-text { flex: 1 1 320px; }
.lp-app-band h2 { color: #fff; font-size: 1.45rem; margin-bottom: .3rem; }
.lp-app-band p { color: rgba(255,255,255,.8); margin: 0; }
.lp-app-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.lp-btn-light { background: #fff; border-color: #fff; color: var(--navy-deep); display: inline-flex; align-items: center; gap: .5rem; }
.lp-btn-light:hover { background: #ffb703; border-color: #ffb703; color: var(--navy-deep); }
.lp-link-light { color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; }
.lp-link-light:hover { color: #fff; }
@media (max-width: 575px) { .lp-app-band { padding: 1.4rem; } }
/* The hero's hill edge already adds space, so the first section can start closer */
.lp-hero + .section-pad { padding-top: 2.5rem; }

/* ---------- Content previews: locked words, "more in the app", featured proverb ---------- */
.dw-card-locked { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, var(--bg) 10px, var(--bg) 20px); border-style: dashed; }
.dw-card-lock, .dw-locked { color: var(--violet); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; }
.dw-locked { font-size: 1rem; margin-top: 0; }
.lp-more { background: var(--lavender-light); border: 1px solid var(--lavender); border-radius: var(--radius); padding: 1.5rem; margin-top: 2.5rem; }
.dw-side .lp-more { margin-top: 0; }
.lp-more-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.lp-more-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.lp-more-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.lp-more-list li { display: flex; gap: .55rem; align-items: baseline; color: var(--ink); }
.lp-more-list i { color: var(--violet); }
a.lp-proverb { display: block; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.lp-proverb:hover { border-color: var(--violet); transform: translateY(-2px); color: inherit; }
.lp-featured-proverb { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--violet); border-radius: var(--radius); padding: 1.75rem 2rem; color: inherit; box-shadow: 0 20px 40px -32px rgba(10,22,80,.35); }
.lp-featured-proverb:hover { color: inherit; border-color: var(--violet); }
.lp-featured-gh { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: clamp(1.35rem, 3.5vw, 1.9rem); color: var(--navy); line-height: 1.35; margin: .6rem 0 .5rem; }
.hs-item.hs-locked .hs-mean { color: var(--violet); font-weight: 600; }
@media (max-width: 575.98px) { .lp-featured-proverb { padding: 1.25rem; } }

/* ---------- 404 page (views/pages/not_found) ---------- */
.nf-hero { text-align: center; padding-top: 2.5rem; padding-bottom: 11rem; }
.nf-art { display: block; width: min(500px, 100%); height: auto; margin: 0 auto 1.25rem; overflow: visible; }
.nf-digit { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 214px; }
.nf-zero { transform-box: fill-box; transform-origin: center; animation: nf-float 6s ease-in-out infinite; }
.nf-star { animation: nf-twinkle 3.2s ease-in-out infinite; }
@keyframes nf-float { 50% { transform: translateY(-9px); } }
@keyframes nf-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.nf-title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.nf-sub { margin: 0 auto; }
.nf-path {
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%;
  margin: 1.1rem 0 0; padding: .3rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7);
}
.nf-path code { color: #ffd166; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.nf-back { background: transparent; font: inherit; font-weight: 600; }
.nf-search { max-width: 660px; margin: 0 auto; text-align: left; }
.nf-search .hero-try { justify-content: center; }
.nf-hero + .lp-explore { padding-top: 4.5rem !important; }
@media (max-width: 575.98px) {
  .nf-hero { padding-top: 1.5rem; }
  .nf-actions > * { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nf-zero, .nf-star { animation: none; } }
