/* ==========================================================================
   ApnaTrack — marketing site styles (apnatrack.in)
   Plain CSS, no build step. Design tokens first, then components.
   ========================================================================== */

:root {
  --navy-950: #061528;
  --navy-900: #0B2545;
  --navy-800: #13315C;
  --navy-700: #1D4373;
  --ink: #0F172A;
  --text: #1E293B;
  --muted: #475569;
  --muted-2: #64748B;
  --line: #E2E8F0;
  --line-2: #EDF2F7;
  --bg: #FFFFFF;
  --tint: #F3F7FA;
  --brand: #0F766E;
  --brand-700: #0B5F59;
  --brand-500: #14B8A6;
  --brand-300: #5EEAD4;
  --brand-50: #E9FBF7;
  --accent: #FFB020;
  --accent-600: #F59E0B;
  --accent-50: #FFF6E5;
  --wa: #15803D;
  --wa-700: #116632;
  --wa-float: #16A34A;
  --red: #EF4444;
  --green: #16A34A;
  --amber: #F59E0B;
  --grey: #94A3B8;

  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(11, 37, 69, .18), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow-lg: 0 40px 80px -30px rgba(11, 37, 69, .35), 0 12px 30px -12px rgba(11, 37, 69, .18);
  --header-h: 68px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
p a[href^="tel:"], li a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible, .final-cta :focus-visible { outline-color: var(--accent); }

/* Hindi typography: Devanagari needs room for matras, and no negative tracking */
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { letter-spacing: 0; line-height: 1.35; }
html[lang="hi"] body { line-height: 1.75; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 650; font-size: .97rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #0D6C7E 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 118, 110, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -10px rgba(15, 118, 110, .85); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -10px rgba(21, 128, 61, .8); }
.btn-wa:hover { background: var(--wa-700); color: #fff; }
.btn-wa .i { fill: currentColor; }
.btn-accent { background: var(--accent); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(255, 176, 32, .9); }
.btn-accent:hover { background: #FFC24D; color: var(--navy-950); }
.btn-outline { background: #fff; color: var(--navy-900); border-color: #CBD5E1; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 37, 69, .4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--navy-900); }
.brand-word span { color: var(--brand); }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word span { color: var(--brand-300); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .94rem;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy-900);
  font-weight: 600; font-size: .92rem;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.lang-btn .i { width: 18px; height: 18px; }
.lang-short { display: none; }

.dropdown { position: relative; }
.dropdown-toggle .i-chev { width: 16px; height: 16px; transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; animation: pop .16s var(--ease);
}
.dropdown-menu a {
  display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--tint); }
.dropdown-menu strong { display: block; font-size: .95rem; font-weight: 650; }
.dropdown-menu small { display: block; color: var(--muted); font-size: .82rem; }
.dm-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-900); align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(20, 184, 166, .16), transparent 70%),
    radial-gradient(520px 360px at 5% 90%, rgba(255, 176, 32, .12), transparent 70%),
    radial-gradient(700px 500px at 60% 100%, rgba(29, 67, 115, .10), transparent 70%),
    linear-gradient(180deg, #F7FBFD 0%, #FFFFFF 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 37, 69, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 37, 69, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 1.25rem + 3.3vw, 3.55rem); line-height: 1.07; letter-spacing: -.035em; margin-bottom: .45em; }
html[lang="hi"] .hero h1 { line-height: 1.3; font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.1rem); }
.grad-text {
  background: linear-gradient(90deg, var(--brand) 0%, #0E7490 55%, var(--navy-800) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 36em; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 600; color: var(--navy-800);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: livepulse 2s infinite; display: inline-block; flex: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-ctas-center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .i { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }

/* Dashboard mock */
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; z-index: -1; border-radius: 40px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .35), rgba(29, 67, 115, .28));
  filter: blur(40px); opacity: .55;
}
.mock { background: #fff; border-radius: var(--radius-lg); border: 1px solid rgba(11, 37, 69, .08); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.mock-dots i:nth-child(1) { background: #FCA5A5; } .mock-dots i:nth-child(2) { background: #FCD34D; } .mock-dots i:nth-child(3) { background: #86EFAC; }
.mock-url { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; max-width: 220px; margin: 0 auto; }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.mock-body { display: grid; grid-template-columns: 1fr; height: 340px; }
.mock-side { display: none; flex-direction: column; border-right: 1px solid var(--line-2); padding: 12px 10px; background: #fff; overflow: hidden; }
.mock-side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; margin: 2px 6px 8px; }
.mock-side li { display: flex; gap: 9px; align-items: center; padding: 8px 8px; border-radius: 10px; }
.mock-side li.is-active { background: var(--brand-50); box-shadow: inset 2px 0 0 var(--brand); }
.mock-side b { display: block; font-size: .8rem; color: var(--ink); font-weight: 650; line-height: 1.25; }
.mock-side small { display: block; font-size: .7rem; color: var(--muted-2); line-height: 1.3; }
.st { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.st-moving { background: var(--green); } .st-idle { background: var(--amber); } .st-stopped { background: var(--red); } .st-offline { background: var(--grey); }
.mock-map { position: relative; overflow: hidden; background: #EAF1F5; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-label { font: 700 15px var(--font); fill: var(--brand-700); }
.pulse { transform-origin: center; transform-box: fill-box; animation: mapPulse 2.2s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.mock-toast, .mock-summary {
  position: absolute; background: rgba(255, 255, 255, .96); border: 1px solid rgba(11, 37, 69, .08);
  border-radius: 14px; box-shadow: var(--shadow);
}
.mock-toast { top: 12px; right: 12px; display: flex; gap: 10px; align-items: center; padding: 9px 12px 9px 9px; max-width: 72%; animation: floaty 6s ease-in-out infinite; }
.mock-toast b { display: block; font-size: .8rem; color: #B91C1C; line-height: 1.25; }
.mock-toast small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.toast-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #FEE2E2; color: #DC2626; flex: none; }
.toast-ic .i { width: 18px; height: 18px; stroke-width: 2.2; }
.mock-summary { left: 12px; bottom: 12px; padding: 10px 12px; animation: floaty 7s ease-in-out -2s infinite; }
.ms-title { font-size: .7rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .05em; }
.ms-grid { display: flex; gap: 14px; }
.ms-grid b { display: block; font-size: 1rem; color: var(--navy-900); line-height: 1.2; }
.ms-grid small { display: block; font-size: .68rem; color: var(--muted-2); }
.mock-legend { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 10px 6px 2px; border-top: 1px solid var(--line-2); font-size: .68rem; color: var(--muted); font-weight: 600; }
.mock-legend > span { display: inline-flex; align-items: center; gap: 5px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 20px 8px; min-width: 0; }
.trust-item b { display: block; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.trust-item small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--brand-50), #E6F0FA); color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 5vw + 36px, 108px) 0; position: relative; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 3vw + 20px, 56px); }
.section-sub { color: var(--muted); font-size: 1.07rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
html[lang="hi"] .eyebrow { letter-spacing: .02em; font-size: .9rem; }
.eyebrow-light { color: var(--brand-300); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D5E3EC; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.f-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: var(--brand); background: var(--brand-50); }
.f-ic .i { width: 23px; height: 23px; }
.f-ic-warm { color: #B45309; background: var(--accent-50); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-no {
  position: absolute; top: 20px; right: 20px; font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #CBD5E1;
}
.step-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand) 60%, var(--navy-800)); box-shadow: 0 10px 22px -10px rgba(15, 118, 110, .8); }
.step-ic .i { width: 24px; height: 24px; }

/* Use cases */
.use-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.use { position: relative; border-radius: var(--radius); padding: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.use::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: currentColor; opacity: 0; }
.use:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.use p { color: var(--muted); font-size: .95rem; margin: 0; }
.u-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.u-ic .i { width: 25px; height: 25px; }
.u-teal { background: #E6FAF6; color: #0F766E; }
.u-blue { background: #E8F0FB; color: #1D4ED8; }
.u-amber { background: #FFF4DB; color: #B45309; }
.u-orange { background: #FFEDE3; color: #C2410C; }
.u-violet { background: #F1ECFE; color: #6D28D9; }
.u-green { background: #E7F7EC; color: #15803D; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 650; text-decoration: none; font-size: .95rem; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: stretch; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 2vw + 16px, 40px); box-shadow: var(--shadow-sm); min-width: 0; }
.panel h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
.panel > p:not(.eyebrow) { color: var(--muted); }
.panel-school { background: linear-gradient(180deg, #FFFBF2 0%, #FFFFFF 60%); border-color: #F6E7C8; }
.panel-school .eyebrow { color: #B45309; }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .97rem; }
.check-list .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-50); color: var(--brand); stroke-width: 3; margin-top: 2px; }
.check-list-dark li { color: #E2E8F0; }
.check-list-dark .i { background: rgba(94, 234, 212, .14); color: var(--brand-300); }

/* AIS diagram */
.ais-diagram { margin: 22px 0 6px; padding: 20px; border-radius: var(--radius); background: var(--tint); border: 1px dashed #CBD5E1; }
.ad-device {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; width: max-content; max-width: 100%;
  padding: 10px 16px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 650; font-size: .92rem;
}
.ad-device .i { color: var(--brand-300); }
.ad-lines { width: 100%; height: 44px; display: block; overflow: visible; }
.ad-lines path { fill: none; stroke: #94A3B8; stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; }
.ad-lines .ad-ours { stroke: var(--brand); stroke-width: 2.5; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.ad-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-box { text-align: center; padding: 12px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.ad-box small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 700; }
html[lang="hi"] .ad-box small { letter-spacing: 0; font-size: .78rem; }
.ad-box b { display: block; font-size: 1rem; color: var(--ink); }
.ad-box span { display: block; font-size: .8rem; color: var(--muted); }
.ad-box-ours { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.ad-box-ours b { color: var(--brand-700); }

/* School gauge */
.gauge-card { display: flex; align-items: center; gap: 18px; margin: 18px 0 4px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid #F3E2BF; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.gauge { width: 150px; height: auto; flex: none; }
.needle { transform-origin: 100px 106px; animation: needle 4s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.gauge-read b { display: block; font-size: 2rem; color: var(--navy-900); line-height: 1.1; }
.gauge-read b small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.gauge-limit { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 650; color: #B91C1C; background: #FEE2E2; padding: 4px 10px; border-radius: 999px; }

/* School alert feed */
.alert-feed { display: grid; gap: 8px; margin-top: 18px; }
.alert-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #F3E2BF; border-radius: 12px; }
.alert-feed li > span:nth-child(2) { flex: 1; min-width: 0; }
.alert-feed b { display: block; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.alert-feed small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.alert-feed time { font-size: .78rem; font-weight: 650; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.af-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.af-ic .i { width: 18px; height: 18px; }
.af-green { background: #E7F7EC; color: #15803D; } .af-red { background: #FEE2E2; color: #DC2626; } .af-blue { background: #E8F0FB; color: #1D4ED8; }

/* Partner (dark) */
.section-dark { background: radial-gradient(900px 500px at 90% 0%, rgba(20, 184, 166, .22), transparent 60%), linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #0E3550 100%); color: #CBD5E1; overflow: hidden; }
.section-dark h2 { color: #fff; }
.on-dark { color: #CBD5E1; font-size: 1.07rem; }
.partner-glow { position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(20, 184, 166, .10); filter: blur(70px); }
.split-partner { align-items: center; gap: 48px; }
.wl-visual { position: relative; padding: 30px 10px; min-width: 0; }
.wl-card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); max-width: 420px; margin: 0 auto; color: var(--text); transform: rotate(-1.5deg); }
.wl-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.wl-logo { width: 58px; height: 58px; border-radius: 14px; border: 2px dashed #CBD5E1; display: grid; place-items: center; text-align: center; font-size: .66rem; font-weight: 700; color: var(--muted-2); line-height: 1.2; padding: 4px; flex: none; }
.wl-head b { display: block; color: var(--ink); font-size: 1.1rem; }
.wl-head small { color: var(--muted); font-size: .82rem; }
.wl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.wl-stats span { background: var(--tint); border-radius: 12px; padding: 10px; min-width: 0; }
.wl-stats small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.wl-line { display: block; height: 10px; width: 70%; margin-top: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--brand-500), var(--brand)); }
.wl-stats span:nth-child(2) .wl-line { width: 50%; background: linear-gradient(90deg, #60A5FA, #1D4ED8); }
.wl-stats span:nth-child(3) .wl-line { width: 85%; background: linear-gradient(90deg, #FCD34D, var(--accent-600)); }
.wl-rows { display: grid; gap: 8px; }
.wl-rows i { display: block; height: 12px; border-radius: 6px; background: var(--line-2); }
.wl-rows i:nth-child(1) { width: 92%; } .wl-rows i:nth-child(2) { width: 76%; } .wl-rows i:nth-child(3) { width: 84%; }
.wl-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .84rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: floaty 6s ease-in-out infinite; }
.wl-chip .i { width: 16px; height: 16px; color: var(--accent); }
.wl-chip-1 { top: 0; right: 4%; }
.wl-chip-2 { bottom: 4px; left: 2%; animation-delay: -3s; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px 26px; }
.price h3 { font-size: 1.35rem; margin-bottom: 4px; }
.price-for { color: var(--muted); font-size: .94rem; line-height: 1.5; min-height: 3em; margin-bottom: 14px; }
.price-tag { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
html[lang="hi"] .price-tag { letter-spacing: 0; }
.price .check-list { margin-bottom: 24px; }
.price-ctas { margin-top: auto; display: grid; gap: 10px; }
.price-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand-500), var(--navy-800)) border-box; box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--navy-950); font-size: .78rem; font-weight: 750; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .9); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq[open] { box-shadow: var(--shadow); border-color: #D5E3EC; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 650; color: var(--ink); font-size: 1.02rem; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--brand); transition: transform .25s var(--ease); flex: none; }
.faq[open] summary .i { transform: rotate(180deg); }
.faq p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* Demo / form */
.demo-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.demo-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }
.demo-alt { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.demo-alt a { font-weight: 650; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2vw + 12px, 34px); box-shadow: var(--shadow-lg); min-width: 0; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: #B91C1C; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid #CBD5E1; background: #fff;
  font-size: 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8391A5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .16); }
.field [aria-invalid="true"] { border-color: #DC2626; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.field-error { color: #B91C1C; font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid #CBD5E1; border-right: 0; border-radius: 12px 0 0 12px; background: var(--tint); font-weight: 600; color: var(--muted); }
.input-prefix input { border-radius: 0 12px 12px 0; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; }
.select-wrap .i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted-2); margin: 12px 0 0; text-align: center; }
.form-status { padding: 12px 14px; border-radius: 12px; font-size: .93rem; margin-bottom: 16px; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-status a { color: #7F1D1D; font-weight: 650; }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .btn-spinner { display: inline-block; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 24px 6px; }
.form-success:focus { outline: none; }
.form-success p { color: var(--muted); font-size: 1.05rem; }
.success-ic { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22C55E, var(--wa)); box-shadow: 0 14px 30px -12px rgba(21, 128, 61, .8); }
.success-ic .i { width: 32px; height: 32px; stroke-width: 2.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; min-width: 0; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFE0EA; color: var(--text); }
.contact-card b { color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.c-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.c-sub { color: var(--brand); font-size: .86rem; font-weight: 600; margin-top: 4px; }
.c-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 10px; }
.c-ic-wa { background: #E7F7EC; color: var(--wa); }
.c-ic-wa .i { fill: currentColor; }

/* Final CTA */
.final-cta { padding: 0 0 clamp(64px, 5vw + 36px, 100px); background: var(--tint); }
.final-inner {
  text-align: center; border-radius: 28px; padding: clamp(40px, 4vw + 20px, 72px) 24px; color: #CBD5E1;
  background: radial-gradient(600px 300px at 15% 0%, rgba(20, 184, 166, .35), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(56, 189, 248, .14), transparent 60%), linear-gradient(135deg, var(--navy-900), #0E3A57);
  box-shadow: var(--shadow-lg);
}
.final-inner h2 { color: #fff; }
.final-inner p { font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94A3B8; padding: 64px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand p { max-width: 30em; margin-top: 14px; }
.ft-app { display: flex; align-items: center; gap: 8px; color: #CBD5E1; }
.ft-app .i { color: var(--brand-300); }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #E2E8F0; }
.socials a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.socials .i { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Floating WhatsApp + mobile bar */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa-float); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(22, 163, 74, .75), 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa); color: #fff; }
.wa-float .i { width: 30px; height: 30px; fill: currentColor; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa-float); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; background: var(--navy-900); color: #fff; font-size: .86rem; font-weight: 600;
  padding: 7px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: var(--shadow);
}
.wa-tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: var(--navy-900); transform: translateY(-50%) rotate(45deg); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: translateY(-50%); }

.mobile-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal / simple pages ---------- */
.page-hero { padding: 56px 0 28px; background: linear-gradient(180deg, #F3F8FB, #fff); border-bottom: 1px solid var(--line-2); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem); }
.page-hero p:not(.eyebrow) { color: var(--muted); margin: 0; }
.legal { padding: 40px 0 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.hi-summary { background: var(--accent-50); border: 1px solid #F6E0B5; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px; }
.hi-summary h2 { margin-top: 0 !important; font-size: 1.15rem !important; }
.hi-summary p:last-child { margin-bottom: 0; }
.simple-header .header-inner { justify-content: space-between; }
.simple-links { display: flex; gap: 8px; align-items: center; }
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 60px 0 100px; position: relative; overflow: hidden; isolation: isolate; }
.notfound .nf-code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 0 0 8px; background: linear-gradient(135deg, var(--brand-500), var(--navy-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p:not(.nf-code) { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .mock-body { grid-template-columns: 170px 1fr; height: 380px; }
  .mock-side { display: flex; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-item { padding: 24px 12px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
  .mock-body { height: 420px; }
  .split { grid-template-columns: 1fr 1fr; gap: 26px; }
  .split-partner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .demo-wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .demo-copy { position: sticky; top: calc(var(--header-h) + 32px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 52px; height: 2px; background: repeating-linear-gradient(90deg, #CBD5E1 0 8px, transparent 8px 16px); z-index: 0; }
  .step { z-index: 1; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .use-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Header collapse */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11, 37, 69, .35);
    padding: 12px var(--gutter) 20px; display: none;
  }
  .nav-open .nav { display: block; animation: pop .18s var(--ease); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 12px; font-size: 1.02rem; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .header-wa { display: none; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .lang-btn { padding: 6px 10px; min-width: 44px; justify-content: center; }
  .lang-globe, .dd-login-ic { display: none; }
  .dropdown-toggle .i-chev { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; font-weight: 650; text-decoration: none; background: var(--navy-900); color: #fff; }
  .mobile-bar a.mb-wa { background: var(--wa); }
  .mobile-bar .mb-wa .i { fill: currentColor; }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 54px; height: 54px; }
  .nav { max-height: calc(100vh - var(--header-h) - 64px - env(safe-area-inset-bottom)); }
  .wa-float .i { width: 27px; height: 27px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .dropdown-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); width: auto; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 1.12rem; }
  .brand img { width: 30px; height: 30px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .dropdown { display: none; }
  .ms-grid { gap: 10px; }
  .mock-toast { max-width: 82%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wa-float::before { display: none; }
}

@media print {
  .site-header, .wa-float, .mobile-bar, .hero-visual, .form-card { display: none !important; }
}
