/* Bachpan Saathi landing — glassmorphism, sky blue + navy, brand orange accent */
:root {
  --navy: #07295c;
  --navy-2: #0b3b7a;
  --blue: #0284c7;
  --sky: #38bdf8;
  --orange: #f77a12;
  --text: #0f2742;
  --muted: #4b6380;
  --bg: #eef7ff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.75);
  --ring: rgba(2, 132, 199, 0.4);
  --shadow: 0 20px 50px -20px rgba(7, 41, 92, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(7, 41, 92, 0.22);
  --radius: 24px;
  --max: 1180px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }

/* Ambient colour behind the glass */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #7dd3fc; top: -140px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 460px; background: #bae6fd; top: 30%; right: -160px; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: #fed7aa; bottom: -120px; left: 20%; opacity: .45; }
.bg-blobs span:nth-child(4) { width: 300px; height: 300px; background: #a5f3fc; top: 55%; left: -100px; opacity: .4; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius);
}

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--glass-strong); border: 1px solid var(--glass-border);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 0; transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue) 55%, var(--navy-2)); box-shadow: 0 14px 30px -12px rgba(2, 132, 199, .7); }
.btn-glass { color: var(--navy); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 12px; z-index: 100; margin-top: 12px; }
.nav { display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 16px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand b { font: 700 1.18rem/1 var(--font-head); display: block; }
.brand b span { color: var(--orange); }
.brand small { font: 600 .64rem/1.4 var(--font-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 13px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .85); color: var(--blue); }
.nav-actions { display: flex; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-strong); color: var(--navy); font-size: 1.3rem; cursor: pointer; }
.mobile-menu { margin-top: 10px; padding: 14px; display: grid; gap: 4px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.mobile-menu a.btn { color: #fff; margin-top: 6px; }
.mobile-menu a.btn-glass { color: var(--navy); margin-top: 0; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--blue), var(--sky) 60%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-points li { font-size: .88rem; font-weight: 600; color: var(--navy); background: var(--glass-strong); border: 1px solid var(--glass-border); padding: 8px 12px; border-radius: 999px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 1206 / 2622;
  border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #1e3a5f, #07152b);
  box-shadow: 0 40px 80px -30px rgba(7, 41, 92, .6), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone > video, .phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #dbeefe; }
.phone.sm { width: 220px; border-radius: 34px; padding: 8px; }
.phone.sm > img { border-radius: 27px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; font-size: .85rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font: 700 .98rem var(--font-head); color: var(--navy); }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.float-card.one { left: -14px; top: 16%; }
.float-card.two { right: -24px; top: 46%; animation-delay: -2s; }
.float-card.three { left: -4px; bottom: 10%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px; margin-top: 36px; }
.stat { text-align: center; padding: 8px 12px; }
.stat + .stat { border-left: 1px solid rgba(7, 41, 92, .1); }
.stat strong { display: block; font: 800 1.45rem/1.25 var(--font-head); color: var(--navy); }
.stat span { font-size: .9rem; color: var(--muted); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -24px rgba(7, 41, 92, .35); }
.feature h3 { font-size: 1.15rem; margin-top: 14px; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); flex: 0 0 auto; }
.i-blue { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.i-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.i-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.i-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.i-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.i-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.center { text-align: center; margin-top: 36px; }

/* Showcase rows */
.showcase { display: grid; gap: 28px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
.show-row:nth-child(even) .show-media { order: -1; }
.show-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.show-row p { color: var(--muted); }
.show-media { display: flex; justify-content: center; gap: 18px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); }

/* One-image app showcase */
.showcase-img { margin: 0 0 32px; }
.showcase-img img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }

/* Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 28px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.gallery figcaption { margin-top: 12px; font: 600 .95rem var(--font-head); color: var(--navy); }
.gallery-nav { display: flex; justify-content: center; gap: 10px; }
.gallery-nav button { width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--navy); }

/* Roles, steps */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { padding: 26px; }
.role h3 { font-size: 1.1rem; margin-top: 12px; }
.role p { color: var(--muted); font-size: .95rem; margin: 0; }
.badge { display: inline-block; font: 700 .7rem var(--font-body); padding: 4px 9px; border-radius: 999px; background: #ffedd5; color: #9a3412; margin-left: 6px; vertical-align: middle; letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 800 1.2rem var(--font-head); color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; }

/* Video */
.video-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: 40px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 4px 22px; border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font: 600 1.05rem var(--font-head); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band { text-align: center; padding: 56px 32px; background: linear-gradient(135deg, rgba(14, 165, 233, .92), rgba(7, 41, 92, .94)); border-color: rgba(255, 255, 255, .3); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .hero-ctas { justify-content: center; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 26px; text-decoration: none; color: var(--text); display: block; transition: transform .2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card span { font: 700 .76rem var(--font-head); letter-spacing: .1em; color: var(--blue); }
.contact-card strong { display: block; font: 700 1.12rem var(--font-head); color: var(--navy); margin: 8px 0 4px; overflow-wrap: anywhere; }
.contact-card em { font-style: normal; color: var(--muted); font-size: .94rem; }

/* Inner pages */
.page-hero { padding: 56px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0 auto; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 900px; }
.toc a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--glass-strong); border: 1px solid var(--glass-border); padding: 7px 12px; border-radius: 999px; }
.feature-block { padding: 36px; margin-bottom: 22px; scroll-margin-top: 110px; }
.feature-block .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature-block h2 { margin: 0; font-size: 1.5rem; }
.feature-block .cols { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.feature-block .cols.no-media { grid-template-columns: 1fr; }
.feature-block p { color: var(--muted); }

/* Footer */
.site-footer { margin-top: 40px; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 36px; }
.footer-grid h2 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid p { color: var(--muted); font-size: .95rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--navy); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0 8px; font-size: .9rem; color: var(--muted); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .btn:hover, .feature:hover, .contact-card:hover { transform: none; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .feature-grid, .roles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .hero-grid, .show-row, .video-block, .feature-block .cols { grid-template-columns: 1fr; }
  .show-row, .video-block { padding: 26px; }
  .show-row:nth-child(even) .show-media { order: 0; }
  .hero { text-align: center; padding-top: 36px; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .steps, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat + .stat { border-left: 0; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav-actions { display: none; }
  .brand b { white-space: nowrap; }
  .feature-grid, .roles, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { padding: 26px; }
  .float-card { display: none; }
  .phone.sm { width: 190px; }
  .show-media .phone.sm + .phone.sm { display: none; }
  .feature-block { padding: 24px; }
}

/* Legal pages */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; margin: 0 auto; }
.legal-side { position: sticky; top: 108px; padding: 22px 18px; max-height: calc(100vh - 130px); overflow-y: auto; }
.legal-side-title { font: 700 .78rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 6px; }
.legal-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-side a { display: block; padding: 8px 10px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.35; }
.legal-side a:hover, .legal-side a.active { background: rgba(255, 255, 255, .9); color: var(--blue); }
.legal { padding: 40px clamp(22px, 4vw, 56px); font-size: 1.02rem; line-height: 1.75; }
.legal > p, .legal li { color: #253f5c; }
.legal h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 2.2em 0 .7em; padding-top: 1.4em; border-top: 1px solid rgba(7, 41, 92, .08); scroll-margin-top: 110px; }
.legal h2::before { content: attr(data-n); flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); }
.legal h3 { font-size: 1.04rem; margin: 1.4em 0 .4em; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--blue); }
.legal a { font-weight: 600; text-underline-offset: 3px; }
.legal-glance { background: linear-gradient(135deg, rgba(224, 242, 254, .9), rgba(255, 237, 213, .7)); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; padding: 20px 24px; margin-bottom: 26px; }
.legal-glance-title { font: 700 .82rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 6px; }
.legal-glance ul { margin: 0; padding-left: 20px; }
.legal-glance li { margin: 5px 0; color: var(--navy); font-weight: 600; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-side { position: static; max-height: none; }
  .legal-side ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .legal-side ol { grid-template-columns: 1fr; } .legal { padding: 26px 18px; } }

/* Opened from the Bachpan Saathi app (?app=1): just the document */
.in-app .site-header, .in-app .site-footer, .in-app .crumbs, .in-app .legal-side, .in-app .bg-blobs span:nth-child(n+3) { display: none; }
.in-app .page-hero { padding-top: 24px; }
.in-app .section { padding-bottom: 24px; }
