/* LightKeeper site pages (Data & notices, Version) in the home page's "Night watch" look: black water,
   uppercase headlines, buoy lights flashing at their Light List rhythms. No external dependencies. */

@font-face { font-family: Inter; font-weight: 400; src: url(../vendor/fonts/inter-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 500; src: url(../vendor/fonts/inter-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(../vendor/fonts/inter-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 700; src: url(../vendor/fonts/inter-700.woff2) format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #03060b; --bg-1: #070d15; --bg-2: #0b131d; --bg-3: #111c28; --line: #16222f; --line-2: #24364a;
  --text: #eef3f8; --text-2: #a2b2c2; --text-3: #647789;
  --accent: #eef3f8; --accent-2: #fff; --cyan: #3ad0e8; --green: #3be38a; --red: #ff4d5a; --white: #fff4d6; --yellow: #ffd23f; --magenta: #e0559b;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text); text-decoration-color: var(--text-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Lights: --k keyframes, --p period, --o offset */
@keyframes fl  { 0%, 9% { opacity: 1; } 14%, 100% { opacity: .07; } }
@keyframes q   { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .07; } }
@keyframes iso { 0%, 49% { opacity: 1; } 51%, 100% { opacity: .07; } }
@keyframes oc  { 0%, 80% { opacity: 1; } 84%, 96% { opacity: .07; } 100% { opacity: 1; } }
.lt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--green)); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--c, var(--green)) 55%, transparent);
  animation: var(--k, fl) var(--p, 4s) var(--o, 0s) infinite; flex: none; }
.lt.g { --c: var(--green); } .lt.r { --c: var(--red); } .lt.w { --c: var(--white); } .lt.y { --c: var(--yellow); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(3, 6, 11, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; font-size: 18px; text-decoration: none; }
.brand b { font-weight: 700; }
.brand img { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 24px; font-size: 14px; }
.nav nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav nav a:hover, .nav nav a.on { color: var(--text); }
.nav nav a.on { box-shadow: inset 0 -2px 0 var(--text); padding-bottom: 4px; }

/* ---------- page hero with a night horizon ---------- */
.hero { position: relative; padding: 96px 0 120px; }
.horizon { position: absolute; left: 50%; bottom: 34px; width: 100vw; height: 70px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, transparent 0 48%, rgba(150, 190, 230, .16) 48% calc(48% + 1px), rgba(10, 26, 43, .55) calc(48% + 1px), transparent 100%); }
.horizon i { position: absolute; top: 48%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px 4px color-mix(in srgb, var(--c) 50%, transparent);
  animation: var(--k, fl) var(--p, 4s) var(--o, 0s) infinite; }
.horizon i::after { content: ""; position: absolute; left: 1px; top: 8px; width: 4px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, transparent), transparent); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
h1 { margin: 22px 0 22px; max-width: 900px; font-size: clamp(38px, 6vw, 76px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; font-weight: 700; color: var(--text); }
h1 span { display: block; padding-bottom: .06em; background: linear-gradient(180deg, #eef3f8 10%, rgba(238, 243, 248, .2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin: 0 0 32px; font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 2px;
  border: 1px solid var(--line-2); background: rgba(3, 6, 11, .55); color: var(--text); font: 700 13.5px var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 12px; }

/* ---------- sections ---------- */
section { padding: 96px 0 0; }
section > .eyebrow { display: flex; }
section > .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h2 { margin: 18px 0 12px; font-size: clamp(30px, 4.4vw, 52px); line-height: .96; letter-spacing: -.03em; text-transform: uppercase; color: var(--text); font-weight: 700; max-width: 800px; }
.sub { max-width: 620px; margin: 0; font-size: 17px; }
.grid { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; padding: 28px 30px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.card h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }
.card p { margin: 0; font-size: 15px; }
.card .more { display: inline-block; margin-top: 18px; color: var(--text); font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--text-3); padding-bottom: 3px; }
.card .more:hover { border-color: var(--text); }
.card .tag { display: inline-block; margin-left: 8px; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }

.shot { margin: 40px auto 0; max-width: 980px; border-radius: 6px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg-1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.shot img { display: block; width: 100%; height: auto; }

/* Data sources: Light List style rows */
.sources { margin-top: 40px; border-top: 1px solid var(--line); }
.sources div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 6px; border-bottom: 1px solid var(--line); font-size: 15px; transition: background .2s; }
.sources div:hover { background: linear-gradient(90deg, rgba(59, 227, 138, .06), transparent 70%); }
.sources b { color: var(--text); font: 600 13px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sources span b { font: inherit; letter-spacing: 0; text-transform: none; }

/* Notices: chart-style caution box */
.legal { margin-top: 32px; padding: 26px 28px; border-radius: 2px; border: 1px solid rgba(224, 85, 155, .45); font-size: 15px; }
.legal p { margin: 0; }
.legal p + p { margin-top: 14px; }
.legal b { color: var(--magenta); font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.note { font-size: 13.5px; color: var(--text-3); }

/* Closing: one big white light */
.closing { position: relative; margin-top: 110px; padding: 100px 28px 90px; text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(600px 260px at 50% 0%, rgba(255, 244, 214, .07), transparent 70%); }
.closing::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 34px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 36px 12px rgba(255, 244, 214, .45), 0 0 110px 36px rgba(255, 244, 214, .12); animation: iso 6s infinite; }
.closing h2 { margin: 0 auto 14px; }
.closing p { max-width: 520px; margin: 0 auto 30px; }
.closing .cta { justify-content: center; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 46px; font-size: 13.5px; color: var(--text-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Roadmap: stops along a dashed route, each marked by a buoy light */
.route { position: relative; list-style: none; margin: 40px 0 0; padding: 0; }
.route::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 120px; border-left: 2px dashed rgba(224, 85, 155, .55); }
.stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 28px; padding-bottom: 80px; }
.mark { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; }
.mark .lt { width: 12px; height: 12px; }
.stop-body { padding-top: 12px; }
.stop h2 { margin: 16px 0 26px; }
.legs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legs li { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 6px; border-bottom: 1px solid var(--line); font-size: 15px; transition: background .2s; }
.legs li:hover { background: linear-gradient(90deg, rgba(238, 243, 248, .04), transparent 70%); }
.legs b { color: var(--text); font-weight: 600; font-size: 16px; }
.legs em { font: 12px var(--mono); font-style: normal; color: var(--green); white-space: nowrap; }
.stop.now .legs b { color: #fff1b8; }
.stop.later h2, .stop.later .legs b { color: var(--text-2); }
.route + .legal { margin-top: 0; }
.legal a { color: var(--text); }

/* Data health: headline tiles, grade bar, meters, district table, source lights */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-1); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile b { color: var(--text); font-size: clamp(28px, 3.4vw, 42px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile span { color: var(--text-2); font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.tile small { color: var(--text-3); font-size: 13px; }
.qbar { display: flex; height: 44px; margin-top: 36px; border-radius: 3px; overflow: hidden; background: var(--bg-2); }
.qbar span { display: flex; align-items: center; padding-left: 12px; font: 600 13px var(--mono); color: var(--bg); white-space: nowrap; overflow: hidden; }
.qbar .v, .sw.v { background: var(--green); } .qbar .l, .sw.l { background: var(--yellow); } .qbar .u, .sw.u { background: #2a3a4c; }
.qbar .u { color: var(--text-2); }
.qkey { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 14.5px; }
.qkey b { display: block; color: var(--text); margin-bottom: 2px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.qkey li { position: relative; padding-left: 18px; } .qkey .sw { position: absolute; left: 0; top: 7px; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.meter .mh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter b { color: var(--text); font-weight: 600; }
.meter .mh span { color: var(--text); font: 600 20px var(--mono); }
.mt { height: 6px; margin: 10px 0 8px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.mt i, .mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); border-radius: 3px; }
.meter small { color: var(--text-3); font-size: 13px; }
.dtable { margin-top: 40px; border-top: 1px solid var(--line); }
.drow { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(0, .7fr)) minmax(150px, 1.3fr) repeat(2, minmax(0, .6fr)); gap: 16px; align-items: center; padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.drow:not(.dhead):hover { background: linear-gradient(90deg, rgba(59, 227, 138, .05), transparent 70%); }
.dhead { color: var(--text-3); font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; }
.drow .dn { color: var(--text-2); } .drow .dn b { color: var(--text); font: 600 14px var(--mono); margin-right: 4px; }
.drow .num { font-variant-numeric: tabular-nums; color: var(--text); }
.drow .dv { display: flex; align-items: center; gap: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.mini { flex: 1; max-width: 120px; height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; margin-top: 32px; border-top: 1px solid var(--line); }
.src { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.src b { flex: 1; color: var(--text); font-weight: 500; }
.src span:last-child { color: var(--green); font: 12px var(--mono); }
.src.down span:last-child { color: var(--red); }
#h-error { margin: 0 0 24px; color: var(--yellow); }

details summary { cursor: pointer; }
details summary::marker { color: var(--text-3); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 860px) {
  .grid, .g2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3) { border-left: 0; } .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .qkey, .meters { grid-template-columns: 1fr; gap: 14px; }
  .meters { gap: 24px; }
  .dhead { display: none; }
  .drow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; padding: 16px 4px; }
  .drow .dn { grid-column: 1 / -1; }
  .drow .dv { grid-column: 1 / -1; order: 9; }
  .drow .num::before, .drow .dv::before { display: block; color: var(--text-3); font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .drow .dv::before { content: "Verified"; display: inline; margin-right: 4px; }
  .drow .num:nth-child(2)::before { content: "Aids"; } .drow .num:nth-child(3)::before { content: "Places"; }
  .drow .num:nth-child(5)::before { content: "Phone"; } .drow .num:nth-child(6)::before { content: "Address"; }
  .nav nav { gap: 16px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .nav .wrap { height: 58px; }
  .nav nav { gap: 14px; font-size: 13.5px; }
  .nav nav a.hide-sm, .nav nav a.hide-xs { display: none; }
  .brand { font-size: 17px; }
  .brand img { width: 22px; height: 22px; }
  .hero { padding: 64px 0 104px; }
  .lead { font-size: 16.5px; }
  .card { padding: 22px; }
  .sources div { grid-template-columns: 1fr; gap: 4px; }
  .route::before { left: 15px; }
  .stop { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 60px; }
  .mark { width: 32px; height: 32px; }
  .mark .lt { width: 10px; height: 10px; }
  .stop-body { padding-top: 6px; }
  .legs li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 2px; }
  .legs li span { grid-column: 1 / -1; grid-row: 2; }
  .legs em { grid-column: 2; grid-row: 1; }
  .cta .btn { width: 100%; }
  section { padding-top: 76px; }
  .closing { margin-top: 84px; padding: 80px 18px 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
