/* ChargeLK website. The app's own look, grown up for a big screen: navy surfaces with flowing current, teal for action, lime only for
   electricity flowing, grey-blue paper and white cards. Motion is on-scroll reveals, live numbers and flowing lines, and all of it
   stops for people who ask their device for less motion. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/site/Inter_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600 700; font-display: swap; src: url('/fonts/site/Inter_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('/fonts/site/PlusJakartaSans_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/fonts/site/PlusJakartaSans_800ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Sinhala'; font-weight: 400 600; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; src: url('/fonts/site/NotoSansSinhala_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Sinhala'; font-weight: 700 800; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; src: url('/fonts/site/NotoSansSinhala_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif Sinhala'; font-weight: 600 800; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; src: url('/fonts/site/NotoSerifSinhala_700Bold.woff2') format('woff2'); }

:root {
    --navy: #0B1220; --navy-2: #141E33; --navy-3: #1B2740;
    --teal: #0F766E; --teal-deep: #0B5C55; --teal-bright: #2DD4BF; --lime: #A3E635;
    --page: #EEF1F6; --card: #FFFFFF; --card-2: #F6F8FB; --ink: #12161B; --muted: #566070; --line: #E2E7EF;
    --link: #0F766E; --soft-teal: #E4F3F0; --chip-text: #0B5C55;
    --ok: #16A34A; --ok-text: #166534; --ok-tint: #DCFCE7;
    --busy: #F59E0B; --busy-text: #92400E; --busy-tint: #FEF3C7;
    --bad: #DC2626; --bad-text: #B91C1C; --bad-tint: #FEE2E2;
    --off: #94A3B8; --off-text: #475569; --off-tint: #E9EDF3;
    --maint-text: #1E40AF; --maint-tint: #DBEAFE;
    --on-navy: #D6DEEA; --on-navy-muted: #9AA7BD;
    --shadow: 0 1px 2px rgba(18, 22, 27, .04), 0 14px 34px rgba(18, 22, 27, .07);
    --shadow-lift: 0 2px 4px rgba(18, 22, 27, .05), 0 24px 48px rgba(18, 22, 27, .13);
    --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --body: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, 'Segoe UI', Roboto, 'Iskoola Pota', 'Nirmala UI', 'Noto Sans Tamil', 'Latha', sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header: 68px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --page: #0B1220; --card: #121C31; --card-2: #17233B; --ink: #E6EDF6; --muted: #9FAEC4; --line: #25344C;
        --link: #5EEAD4; --soft-teal: #12302E; --chip-text: #5EEAD4;
        --ok-tint: #12341F; --ok-text: #86EFAC; --busy-tint: #3A2A0A; --busy-text: #FCD34D; --bad-tint: #3B1414; --bad-text: #FCA5A5; --off-tint: #222E42; --off-text: #B4C0D2; --maint-tint: #14284F; --maint-text: #93C5FD;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35); --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px rgba(0, 0, 0, .5); color-scheme: dark; }
}
:root[data-theme="dark"] { --page: #0B1220; --card: #121C31; --card-2: #17233B; --ink: #E6EDF6; --muted: #9FAEC4; --line: #25344C;
    --link: #5EEAD4; --soft-teal: #12302E; --chip-text: #5EEAD4;
    --ok-tint: #12341F; --ok-text: #86EFAC; --busy-tint: #3A2A0A; --busy-text: #FCD34D; --bad-tint: #3B1414; --bad-text: #FCA5A5; --off-tint: #222E42; --off-text: #B4C0D2; --maint-tint: #14284F; --maint-text: #93C5FD;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35); --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px rgba(0, 0, 0, .5); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
html, body { overflow-x: hidden; overflow-x: clip; } /* nothing may push the page sideways, not even focus or a link jump */
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--navy); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- scrollbar and reading progress ---------- */
/* Chrome, Edge, Safari: a rounded teal-to-lime thumb with a little room around it, on the page colour so it follows light and dark. */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--teal), var(--teal-bright) 55%, var(--lime)); border: 3px solid var(--page); border-radius: 999px; background-clip: padding-box; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--teal-bright), var(--lime)); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--page); }
.stations::-webkit-scrollbar, .tabs::-webkit-scrollbar, pre::-webkit-scrollbar { width: 8px; height: 8px; }
.stations::-webkit-scrollbar-track, pre::-webkit-scrollbar-track { background: transparent; }
.stations::-webkit-scrollbar-thumb, pre::-webkit-scrollbar-thumb { border-width: 2px; border-color: transparent; }
/* Firefox has no gradient scrollbars, so it gets the same colours in one tone. */
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-width: thin; scrollbar-color: var(--teal) var(--page); }
    .stations, pre { scrollbar-width: thin; scrollbar-color: var(--teal) transparent; }
}
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal-bright), var(--lime)); box-shadow: 0 0 10px rgba(163, 230, 53, .6); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header); display: flex; align-items: center; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.site-header.scrolled, .site-header.open { background: rgba(11, 18, 32, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .bar { display: flex; align-items: center; gap: 8px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px var(--display); letter-spacing: -.4px; margin-right: auto; }
.brand img { width: 26px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--on-navy); text-decoration: none; white-space: nowrap; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 18px; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.theme-btn .moon { display: none; } :root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }
.menu-btn { display: none; }
.site-header .header-cta { margin-left: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; display: none; }
@media (min-width: 1100px) { .site-header .header-cta { display: inline-flex; } }
@media (max-width: 1000px) {
    .menu-btn { display: grid; }
    .nav { position: absolute; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 18px; background: rgba(11, 18, 32, .97); backdrop-filter: blur(14px); max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .2s, max-height .3s var(--ease); }
    .site-header.open .nav { max-height: 420px; opacity: 1; visibility: visible; padding-top: 8px; }
    .nav a { padding: 13px 14px; font-size: 16px; border-radius: 14px; }
}

/* ---------- navy surfaces, hero ---------- */
.navy { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; padding-top: var(--header); }
.navy .field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.field .flow { stroke-dasharray: 6 22; animation: flow 6s linear infinite; }
.field .flow.b { animation-duration: 9s; animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -280; } }
.glowblob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.glowblob.a { width: 420px; height: 420px; background: var(--teal); left: -120px; bottom: -160px; }
.glowblob.b { width: 360px; height: 360px; background: var(--lime); right: -140px; top: 18%; opacity: .16; animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(40px, -30px, 0) scale(1.1); } }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero { padding-bottom: 80px; }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 44px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 70px; gap: 56px; } }
.hero h1 { font: 800 clamp(38px, 6.4vw, 70px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 .go { color: var(--lime); position: relative; white-space: nowrap; }
.hero h1 .go::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--lime), var(--teal-bright)); transform-origin: left; animation: underline 1s .9s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-navy); max-width: 54ch; margin: 0 0 30px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--on-navy); font-size: 14.5px; }
.chips-row span { display: inline-flex; align-items: center; gap: 8px; }
.chips-row .ico { color: var(--lime); font-size: 18px; }
.page-head { padding: 34px 0 44px; }
.page-head h1 { font: 800 clamp(30px, 4.6vw, 48px)/1.08 var(--display); letter-spacing: -.025em; margin: 6px 0 10px; text-wrap: balance; }
.page-head p { color: var(--on-navy); margin: 0; max-width: 62ch; }
.page-head.narrow { max-width: 860px; margin-inline: auto; } .page-head.narrow.wide { max-width: 940px; }
.wrap.narrow { max-width: 900px; } .wrap.narrow.wide { max-width: 980px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 26px; border-radius: 18px; font: 700 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { font-size: 19px; }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 10px 28px rgba(163, 230, 53, .3); }
.btn-lime:hover { box-shadow: 0 14px 34px rgba(163, 230, 53, .42); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the live phone: the app's charging screen, ticking */
.stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone { position: relative; width: 272px; aspect-ratio: 9 / 18.4; border-radius: 40px; background: #060B16; padding: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.1), 0 50px 90px rgba(0,0,0,.55), 0 0 90px rgba(45, 212, 191, .16); animation: floaty 7s ease-in-out infinite; transform: rotate(-3deg); }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.phone .screen { height: 100%; border-radius: 32px; overflow: hidden; background: radial-gradient(120% 70% at 0% 100%, rgba(15,118,110,.55), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(163,230,53,.18), transparent 60%), var(--navy); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.phone .notch { position: absolute; top: 9px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 0 0 14px 14px; background: #060B16; z-index: 2; }
.phone .top { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--on-navy); }
.phone .live-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(163,230,53,.14); color: var(--lime); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 11.5px; }
.ring { position: relative; width: 168px; height: 168px; margin: 4px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,.1); } .ring .prog { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset .9s linear; filter: drop-shadow(0 0 8px rgba(163,230,53,.6)); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .kwh { font: 800 38px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring .lab { font-size: 11.5px; color: var(--on-navy-muted); margin-top: 3px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 9px 11px; }
.mini small { display: block; font-size: 10.5px; color: var(--on-navy-muted); letter-spacing: .02em; }
.mini b { font: 700 16px var(--display); font-variant-numeric: tabular-nums; }
.stopbtn { margin-top: auto; background: #F8FAFC; color: var(--navy); border-radius: 16px; padding: 12px; text-align: center; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.stopbtn i { width: 11px; height: 11px; border-radius: 3px; background: var(--navy); display: block; }
.float-card { position: absolute; background: rgba(20, 30, 51, .78); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 16px 20px; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.float-card.live { left: -8px; bottom: 30px; max-width: 250px; animation: floaty2 8s ease-in-out infinite; }
.float-card.rcpt { display: none; right: -36px; top: 70px; width: 172px; padding: 14px 16px; animation: floaty2 9s -3s ease-in-out infinite; font-size: 12.5px; color: var(--on-navy); }
@keyframes floaty2 { 50% { transform: translateY(10px); } }
.float-card .num { font: 800 54px/.95 var(--display); letter-spacing: -.04em; color: var(--lime); display: flex; align-items: baseline; gap: 8px; }
.float-card .num small { font: 700 15px var(--body); color: #fff; letter-spacing: 0; }
.float-card .sub { margin: 6px 0 0; font-size: 13px; color: var(--on-navy); display: flex; align-items: center; gap: 8px; }
.float-card .row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--on-navy); }
.float-card.rcpt b { display: block; color: #fff; font: 700 13px var(--display); margin-bottom: 4px; } .float-card.rcpt .line { display: flex; justify-content: space-between; gap: 8px; } .float-card.rcpt .tot { border-top: 1px dashed rgba(255,255,255,.3); margin-top: 6px; padding-top: 6px; color: #fff; font-weight: 700; }
@media (min-width: 1100px) { .float-card.rcpt { display: block; } .float-card.live { left: -56px; } }
@media (max-width: 520px) { .stage { min-height: 470px; } .phone { width: 244px; } .float-card.live { left: 0; bottom: 18px; padding: 12px 15px; } .float-card .num { font-size: 40px; } .float-card.rcpt { display: none; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--off); }
.dot.available { background: var(--ok); } .dot.occupied { background: var(--busy); } .dot.faulted { background: var(--bad); } .dot.maintenance { background: #60A5FA; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(163, 230, 53, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }

/* ---------- facts strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -42px; }
.facts .grid { background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lift); display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
@media (min-width: 820px) { .facts .grid { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(2n) { border-right: 0; } @media (min-width: 820px) { .fact { border-bottom: 0; } .fact:nth-child(2n) { border-right: 1px solid var(--line); } .fact:last-child { border-right: 0; } }
.fact .v { font: 800 clamp(30px, 4vw, 42px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.fact .v em { font-style: normal; color: var(--teal); font-size: .52em; letter-spacing: -.01em; } :root[data-theme="dark"] .fact .v em { color: var(--teal-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact .v em { color: var(--teal-bright); } }
.fact .l { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- sections ---------- */
section.block { padding: 88px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lime), var(--teal)); }
/* a section opens with a centred heading, and what follows fills the width, so the gaps on both sides match */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.sec-head .eyebrow { justify-content: center; }
.sec-head .intro { margin: 0 auto; }
section.block h2 { font: 800 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 17.5px; max-width: 60ch; margin: 0 0 34px; text-wrap: pretty; }
.card { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.card .more { margin-top: 14px; color: var(--link); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
a.card .more::after { content: '→'; transition: transform .2s; } a.card:hover .more::after { transform: translateX(4px); }
.card h3 { font: 700 18px/1.3 var(--display); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* find a charger: one map, with the search on top of it and the stations floating at its side */
.finder { position: relative; border-radius: 28px; box-shadow: var(--shadow-lift); background: var(--card); isolation: isolate; }
#map { height: 400px; border-radius: 0; overflow: hidden; background: var(--off-tint); z-index: 0; }
.finder { display: flex; flex-direction: column; }
.finder-top { display: grid; gap: 10px; padding: 14px; order: 1; }
#map { order: 2; }
.finder-list { order: 3; }
.search { position: relative; flex: 1 1 240px; }
.search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 16px 0 44px; font: 15.5px var(--body); box-shadow: 0 6px 20px rgba(11, 18, 32, .14); }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 14px var(--body); cursor: pointer; transition: background .2s, color .2s, transform .15s; box-shadow: 0 6px 20px rgba(11, 18, 32, .14); }
.filter:hover { transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .filter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .filter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--navy); } }

.finder-list { padding: 4px 14px 14px; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 6px 4px 12px; }
.list-head b { display: inline-flex; align-items: center; gap: 8px; font: 800 18px var(--display); letter-spacing: -.01em; }
.list-head small { color: var(--muted); font-size: 13px; }
.list-head .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulseok 2s infinite; }
.stations { display: grid; gap: 12px; align-content: start; }

.station { background: var(--card-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; cursor: pointer; scroll-margin-top: 90px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); outline: none; }
.station:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.station:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.station.on { border-color: var(--teal-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-bright) 35%, transparent); }
.station h3 { font: 800 17px/1.25 var(--display); letter-spacing: -.01em; margin: 0; }
.station .where { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.station .where .ico { margin-top: 3px; color: var(--teal); }
.crow[hidden], .station[hidden] { display: none; }
.charger { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "kw info price" "kw pill pill"; align-items: center; gap: 2px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 8px; }
.charger .plugbox { grid-area: kw; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.plug { width: 46px; height: 46px; color: var(--ink); --plug-pin: var(--teal); }
:root[data-theme="dark"] .plug { --plug-pin: var(--teal-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plug { --plug-pin: var(--teal-bright); } }
.po { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pp { fill: var(--plug-pin, currentColor); }
.charger .cinfo { grid-area: info; display: grid; gap: 1px; min-width: 0; }
.charger .id { font: 700 15.5px var(--display); }
.charger .spec { color: var(--muted); font-size: 13.5px; }
.cur { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 1px 7px; border-radius: 6px; margin-right: 4px; }
.cur.dc { background: var(--busy-tint); color: var(--busy-text); } .cur.ac { background: var(--maint-tint); color: var(--maint-text); }
.charger .price { grid-area: price; text-align: right; display: grid; line-height: 1.25; }
.charger .price b { font: 800 15.5px var(--display); } .charger .price span { color: var(--muted); font-size: 12.5px; }
.charger .pill { grid-area: pill; justify-self: start; margin-top: 6px; }
.station .outage { color: var(--maint-text); background: var(--maint-tint); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 8px 0 0; }
.demo-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--maint-tint); color: var(--maint-text); font: 700 11.5px var(--body); letter-spacing: .04em; text-transform: uppercase; }
.station .demo-note { color: var(--maint-text); background: var(--maint-tint); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 8px 0 0; }
.station .hours { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { background: var(--soft-teal); color: var(--chip-text); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; }
.station .actions { margin: 12px 0 0; }
.station .go { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.station .go:hover { background: var(--teal-deep); }
.empty-note { text-align: center; color: var(--muted); padding: 22px 12px; border: 1px dashed var(--line); border-radius: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--off-tint); color: var(--off-text); }
.pill.available { background: var(--ok-tint); color: var(--ok-text); } .pill.available::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulseok 2s infinite; }
@keyframes pulseok { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } }
.pill.occupied { background: var(--busy-tint); color: var(--busy-text); } .pill.faulted { background: var(--bad-tint); color: var(--bad-text); } .pill.maintenance { background: var(--maint-tint); color: var(--maint-text); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.updated { color: var(--muted); font-size: 13.5px; margin: 12px 4px 0; text-align: center; }

/* wide screens: the map fills the whole panel and the controls float over it */
@media (min-width: 940px) {
    .finder { display: block; height: 660px; background: var(--off-tint); overflow: hidden; }
    #map { position: absolute; inset: 0; height: 100%; border-radius: 0; }
    .finder-top { position: absolute; z-index: 500; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; padding: 16px; pointer-events: none; }
    .finder-top > * { pointer-events: auto; }
    .finder-top .search { flex: 0 1 380px; }
    .finder-list { position: absolute; z-index: 500; left: 16px; top: 76px; max-height: calc(100% - 92px); width: 400px; display: flex; flex-direction: column; padding: 8px 8px 8px 14px; border-radius: 22px; background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(11, 18, 32, .28); border: 1px solid var(--line); }
    .finder-list .stations { overflow: auto; padding: 2px 8px 6px 0; }
}

/* pins on the map */
.pin { display: block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); position: relative; transition: transform .2s var(--ease); }
.pin.on { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(45, 212, 191, .45), 0 4px 12px rgba(0,0,0,.45); }
.pin.available { background: var(--ok); } .pin.occupied { background: var(--busy); } .pin.faulted { background: var(--bad); } .pin.offline { background: var(--off); } .pin.maintenance { background: #3B82F6; }
.pin.available::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
/* a dark map when the site is dark: the same tiles, inverted and softened */
:root[data-theme="dark"] .finder .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.65); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .finder .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.65); } }
.leaflet-bar a { background: var(--card); color: var(--ink); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--soft-teal); }
.leaflet-control-attribution { font-size: 11px; }
.leaflet-container { font-family: var(--body); } .pop b { font-family: var(--display); }

/* steps timeline */
.steps { position: relative; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 29px; height: 3px; border-radius: 3px; background: var(--line); } .steps .progress { position: absolute; left: 6%; top: 29px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--lime)); width: 0; transition: width .2s linear; } }
.step { position: relative; }
.step .no { width: 58px; height: 58px; border-radius: 50%; background: var(--navy-3); border: 1px solid rgba(163, 230, 53, .4); color: var(--lime); display: grid; place-items: center; font-size: 25px; margin-bottom: 14px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--page); transition: transform .3s var(--ease); }
.step:hover .no { transform: scale(1.08) rotate(-6deg); }
.step h3 { margin-bottom: 6px; } .step p { font-size: 15.5px; }

/* bento */
.bento { display: grid; gap: 18px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento .b1 { grid-column: span 3; } .bento .b2 { grid-column: span 3; } .bento .b3 { grid-column: span 2; } .bento .b4 { grid-column: span 2; } .bento .b5 { grid-column: span 2; } }
.bento .card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 250px; }
.bento .card .ico-lg { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--soft-teal); color: var(--teal); font-size: 24px; margin-bottom: 10px; }
:root[data-theme="dark"] .bento .card .ico-lg { color: var(--teal-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bento .card .ico-lg { color: var(--teal-bright); } }
.bento .dark { background: radial-gradient(120% 90% at 0% 100%, rgba(15,118,110,.55), transparent 62%), radial-gradient(80% 70% at 100% 0%, rgba(163,230,53,.14), transparent 60%), #0E1830; color: #fff; border: 1px solid rgba(255,255,255,.08); } .bento .dark p { color: var(--on-navy); } .bento .dark .ico-lg { background: rgba(163,230,53,.14); color: var(--lime); }
.bento .viz { margin-top: auto; padding-top: 16px; }
.meter { height: 12px; border-radius: 12px; background: rgba(255,255,255,.12); overflow: hidden; } .meter i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--teal-bright), var(--lime)); transition: width 1.6s var(--ease); }
.in .meter i { width: 72%; }
.pay-row { display: flex; gap: 10px; flex-wrap: wrap; } .tag { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; font-weight: 700; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; } .tag .ico { color: var(--teal); }
.rec { background: var(--card-2); border: 1px dashed var(--line); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); } .rec .l { display: flex; justify-content: space-between; padding: 2px 0; } .rec .t { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; color: var(--ink); font-weight: 700; }
.scripts { display: flex; gap: 10px; flex-wrap: wrap; } .scripts span { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 18px; font-size: 20px; font-weight: 700; }
.scripts span:lang(si) { font-family: 'Noto Serif Sinhala', var(--body); }

/* safety band */
.band { margin-top: 88px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, #112240, #0B1220 70%); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: 72px 0; }
.band h2 { color: #fff; font: 800 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 12px; text-wrap: balance; } .band .intro { color: var(--on-navy); }
.sos-row { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 0 26px; }
.sos-row a { background: #B91C1C; border-radius: 20px; padding: 16px 8px; text-align: center; color: #fff; text-decoration: none; line-height: 1.25; transition: transform .2s var(--ease); }
.sos-row a:hover { transform: translateY(-3px) scale(1.02); }
.sos-row b { display: block; font: 800 clamp(26px, 5vw, 38px) var(--display); } .sos-row span { font-size: 13px; opacity: .92; }
.band .btn-row .btn-ghost { color: #fff; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 700 17px var(--display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--body); color: var(--teal); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* final call */
.cta { margin: 88px 0 0; }
.cta .box { background: radial-gradient(90% 120% at 0% 100%, rgba(15,118,110,.7), transparent 60%), radial-gradient(70% 90% at 100% 0%, rgba(163,230,53,.22), transparent 60%), var(--navy); border-radius: 32px; padding: clamp(32px, 6vw, 64px); color: #fff; display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta .box { grid-template-columns: 1.2fr .8fr; } .cta .box .btn-row { justify-content: flex-end; } }
.cta h2 { font: 800 clamp(28px, 4vw, 42px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 8px; } .cta p { color: var(--on-navy); margin: 0; max-width: 46ch; }

/* long text pages */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tabs button { font: 700 15px var(--body); border: 1px solid var(--line); background: var(--card); color: var(--ink); height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); transition: all .2s; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .tabs button[aria-pressed="true"] { background: var(--lime); color: var(--navy); border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-pressed="true"] { background: var(--lime); color: var(--navy); border-color: var(--lime); } }
html.js .lang-block[hidden] { display: none; }
.lang-block { animation: fadein .35s var(--ease); }
.lang-block h2 { font: 800 28px/1.2 var(--display); margin: 0 0 8px; }
.lang-block:lang(si), .lang-block:lang(ta) { line-height: 1.85; }
.lang-block:lang(si) h2, .lang-block:lang(si) h3 { font-family: 'Noto Serif Sinhala', var(--display); font-weight: 700; letter-spacing: 0; }
.lang-block:lang(ta) h2, .lang-block:lang(ta) h3 { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.tabs button:lang(si) { font-family: 'Noto Sans Sinhala', var(--body); }
.sos { background: linear-gradient(135deg, #B91C1C, #991B1B); color: #fff; border-radius: 24px; padding: 20px 22px; margin: 0 0 18px; box-shadow: 0 18px 40px rgba(185,28,28,.25); }
.sos strong { display: block; margin-bottom: 10px; }
.sos .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sos a { background: rgba(255,255,255,.16); border-radius: 16px; padding: 12px 6px; text-align: center; color: #fff; text-decoration: none; line-height: 1.25; transition: background .2s; } .sos a:hover { background: rgba(255,255,255,.26); }
.sos a b { display: block; font: 800 clamp(24px, 5vw, 34px) var(--display); } .sos a span { font-size: 12.5px; }
.sec { background: var(--card); border-radius: 22px; padding: 20px 22px; margin: 0 0 14px; box-shadow: var(--shadow); }
.sec h3 { margin: 0 0 8px; font: 700 18px/1.3 var(--display); } .sec.alarm { border-left: 5px solid var(--bad); } .sec.alarm h3 { color: var(--bad-text); }
.sec ul, .sec ol { margin: 0; padding-left: 22px; } .sec li { margin-bottom: 6px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* annual report */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 20px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--card); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.tile .k { color: var(--muted); font-size: 14px; } .tile .v { font: 800 clamp(26px, 3.4vw, 34px)/1.15 var(--display); letter-spacing: -.02em; } .tile .u { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars i { display: block; background: linear-gradient(to top, var(--teal), var(--teal-bright)); border-radius: 8px 8px 3px 3px; min-height: 3px; margin-bottom: 5px; transform-origin: bottom; }
html.js .bars i { transform: scaleY(0); transition: transform 1s var(--ease); } html.js .in .bars i, html.js .bars.in i { transform: scaleY(1); }

/* footer */
footer.foot { margin-top: 96px; background: var(--navy); color: var(--on-navy); padding: 64px 0 34px; font-size: 14.5px; position: relative; overflow: hidden; }
footer.foot .cols { display: grid; gap: 34px; }
@media (min-width: 820px) { footer.foot .cols { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
footer.foot .about { max-width: 34ch; } footer.foot .brand { margin: 0 0 14px; }
footer.foot h2 { font: 700 15px var(--display); color: #fff; margin: 0 0 14px; }
footer.foot a { color: var(--on-navy); text-decoration: none; background-image: linear-gradient(var(--lime), var(--lime)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s, color .2s; padding-bottom: 2px; }
footer.foot a:hover { color: #fff; background-size: 100% 2px; }
footer.foot ul { list-style: none; padding: 0; margin: 0; } footer.foot li { margin-bottom: 10px; }
footer.foot .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; color: var(--on-navy-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.store { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; }

footer.foot a.biz { color: #fff; font-weight: 600; }
footer.foot a.biz::after { content: '\2197'; display: inline-block; margin-left: 4px; font-size: .85em; transition: transform .2s var(--ease); }
footer.foot a.biz:hover::after { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* motion on scroll: only when scripts run, and not when asked for less */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal="scale"] { transform: scale(.94); } html.js [data-reveal="left"] { transform: translateX(-30px); } html.js [data-reveal="right"] { transform: translateX(30px); }
.hero [data-hero] { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.js [data-reveal] { opacity: 1; transform: none; }
    html.js .bars i { transform: none; }
}

/* the WhatsApp chat button, fixed in the corner on every page */
.wa-fab { position: fixed; z-index: 900; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 14px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 140, 70, .45), 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s var(--ease), box-shadow .2s, padding .2s; }
.wa-fab svg { width: 28px; height: 28px; flex: none; }
.wa-fab .wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 14.5px var(--body); opacity: 0; transition: max-width .25s var(--ease), opacity .2s, margin .2s; }
.wa-fab:hover, .wa-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18, 140, 70, .55), 0 2px 6px rgba(0, 0, 0, .2); }
@media (hover: hover) { .wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { max-width: 160px; opacity: 1; margin-left: 10px; } }
.wa-fab:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (max-width: 600px) { .wa-fab { right: 14px; bottom: 14px; height: 52px; min-width: 52px; padding: 0 12px; } }
@media print { .wa-fab { display: none; } }
