/* Kilolane marketing site
   Color tokens sampled from mockups/1-hero.jpg, 2-screens.jpg, 3-savings.jpg,
   4-how-it-works.jpg, 5-key-faq.jpg, 6-mobile.jpg (Dec 2, 2026).
   CTA is a bright cyan-to-lime pill with dark text (#00111c) so it meets WCAG 2.2 AA
   (contrast: 10.73:1 on #00D4F8, 12.45:1 on #00E5FF, 11.92:1 on #80E438).
*/
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000711;
  --bg-2: #000A14;
  --bg-card: #00101C;
  --bg-card-2: #000E1B;
  --text: #F4F4F4;
  --muted: #A8B8CC;          /* 10.01:1 on --bg */
  --cyan: #00D4F8;           /* 11.34:1 on --bg, large text */
  --cyan-2: #2BD9F1;
  --cyan-deep: #0079AC;      /* white text 4.85:1 */
  --lime: #80E438;           /* 12.59:1 on --bg */
  --lime-2: #A0E828;
  --stroke: rgba(0, 212, 248, 0.35);
  --stroke-lime: rgba(128, 228, 56, 0.4);
  --glow-cyan: 0 0 24px rgba(0, 212, 248, 0.45);
  --glow-lime: 0 0 24px rgba(128, 228, 56, 0.4);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --demo: demo-fixed/demo.html;
  --radius: 18px;
  --pill: 999px;
  --max: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-h: calc(72px + var(--safe-top));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pin-pulse, .route-draw, .route-draw-dot, .reveal { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* Plug-matched page background (js/plug-bg.js sets html[data-plug]). Our own SVG outlines at low opacity over a dark tint:
   body text stays at least 4.5:1 on every theme (qa-bg-contrast). Not animated.
   Line 37: the hero scrim, hero::before art, and sticky header also use --plug-bg / --plug-art so the chosen type is visible on the first screen. */
html {
  --plug-bg: #000711; --plug-art: url("../assets/plug-bg/default.svg"); --plug-art-alpha: 0.07; --plug-accent: #00D4F8;
  background: var(--plug-bg);
}
html[data-plug="nacs"] { --plug-bg: #1A0B05; --plug-art: url("../assets/plug-bg/nacs.svg"); --plug-art-alpha: 0.16; --plug-accent: #FF8A5B; }
html[data-plug="ccs"] { --plug-bg: #00131C; --plug-art: url("../assets/plug-bg/ccs.svg"); --plug-art-alpha: 0.16; --plug-accent: #00D4F8; }
html[data-plug="j1772"] { --plug-bg: #07160A; --plug-art: url("../assets/plug-bg/j1772.svg"); --plug-art-alpha: 0.16; --plug-accent: #7EE24A; }
html[data-plug="chademo"] { --plug-bg: #140A21; --plug-art: url("../assets/plug-bg/chademo.svg"); --plug-art-alpha: 0.16; --plug-accent: #C792FF; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--plug-art) center / min(110vw, 110vh) no-repeat; opacity: var(--plug-art-alpha);
}
html, body { margin: 0; padding: 0; color: var(--text); }
input::placeholder,
textarea::placeholder {
  color: #A8B8CC;
  opacity: 1;
}

body { background: transparent; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  min-width: 320px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--cyan-2); }
:focus-visible {
  outline: 3px solid #F4F4F4;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #F4F4F4;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cyan-deep);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--plug-bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 248, 0.12);
}
.site-header .wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}
.brand img, .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 0;
  filter: drop-shadow(0 0 8px #00D4F8) drop-shadow(0 0 16px rgba(0, 212, 248, 0.45));
}
.brand .wordmark {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(0, 212, 248, 0.28);
}
.site-footer .brand img, .site-footer .brand-mark { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.nav-mobile { display: none; position: relative; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(0, 212, 248, 0.45);
  border-radius: var(--pill);
  overflow: hidden;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.lang-toggle button[aria-pressed="true"] {
  background: rgba(0, 212, 248, 0.14);
  color: var(--text);
}
.badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: var(--pill);
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(128, 228, 56, 0.2);
  background: rgba(128, 228, 56, 0.06);
  text-decoration: none;
}
.badge-preview .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* Buttons */
.btn-demo, .btn-demo.gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(90deg, #00E5FF 0%, #00D4F8 58%, #7EE24A 100%);
  color: #00111c;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.175rem;
  line-height: 1.2;
  padding: 20px 42px;
  border-radius: var(--pill);
  border: 0;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.9),
    0 0 22px rgba(0, 212, 248, 1),
    0 0 48px rgba(0, 212, 248, 0.7),
    0 0 80px rgba(0, 229, 255, 0.45),
    0 0 110px rgba(128, 228, 56, 0.35);
  min-height: 60px;
  font-size: 1.175rem;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .btn-demo, .btn-demo.gradient, .cta-bar .btn-demo {
    white-space: normal;
    text-align: center;
    height: auto;
  }
}
.btn-demo .cta-arrow {
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}
.btn-demo:hover, .btn-demo.gradient:hover {
  color: #00111c;
  filter: brightness(1.07);
}

/* Layout helpers */
.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.section { position: relative; padding: 72px 0; }
/* Keep hash targets and scrollIntoView below the sticky header, including
   headings inside sections taller than the viewport. */
html {
  scroll-padding-top: var(--header-h);
}
#content,
section,
#home,
[id],
.section h2,
.streaks h2,
h2[id],
h3[id],
[id] > h2:first-child {
  scroll-margin-top: var(--header-h);
}
.section-frame {
  position: relative;
  border: 1px solid rgba(0, 212, 248, 0.12);
  border-radius: 24px;
  padding: 48px 24px 56px;
  overflow: hidden;
}
.section-frame::before, .section-frame::after,
.section-frame .corner-br, .section-frame .corner-bl {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
}
.section-frame::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  box-shadow: -2px -2px 12px rgba(0, 212, 248, 0.35);
}
.section-frame::after {
  top: 10px; right: 10px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  word-spacing: 0.12em;
  line-height: 1.05;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; word-spacing: 0.08em; }
/* Keep a real word space before a colored heading word (tight tracking must not eat it) */
h1 .map, h2 .map, h1 .accent-word, h2 .accent-word { margin-left: 0.2em; }
.h1-gap {
  display: inline-block;
  width: 0.3em;
  letter-spacing: 0;
  word-spacing: 0;
}
.h1-gap + .map, .h1-gap + .accent-word { margin-left: 0; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 38ch; }
.rule {
  width: 120px; height: 3px; border: 0; margin: 18px auto 8px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  border-radius: 2px;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--lime);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(834px - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 0 28px;
}
.hero-map {
  position: absolute;
  inset: -10% -6% -6%;
  z-index: 0;
  pointer-events: none;
  transform: perspective(1800px) rotateX(12deg) scale(1.06);
  transform-origin: 50% 60%;
}
.hero-map svg, .hero-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--plug-bg) 0%,
    color-mix(in srgb, var(--plug-bg) 94%, transparent) 26%,
    color-mix(in srgb, var(--plug-bg) 78%, transparent) 40%,
    color-mix(in srgb, var(--plug-bg) 40%, transparent) 56%,
    color-mix(in srgb, var(--plug-bg) 14%, transparent) 74%,
    color-mix(in srgb, var(--plug-bg) 8%, transparent) 100%
  );
}
/* Plug art in the hero so the chosen type is visible on the first screen, not only below it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--plug-art) 78% 42% / min(72vw, 78vh) no-repeat;
  opacity: var(--plug-art-alpha);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: block;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(920px, 100%);
}
.hero h1 {
  font-size: clamp(3.2rem, 7.6vw, 6.15rem);
  margin: 10px 0 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-spacing: 0.16em;
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 7, 17, 0.85);
  max-width: min(16.5em, 100%);
}
.hero h1 .h1-line,
.hero h1 .line2 { display: block; }
.hero h1 .h1-line { white-space: normal; }
.hero h1 .one { color: var(--cyan); letter-spacing: -0.04em; }
.hero h1 .map { color: var(--lime); letter-spacing: -0.04em; margin-left: 0; }
.map-caption {
  position: absolute;
  right: max(16px, calc((100% - var(--max)) / 2));
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px #000711;
  pointer-events: none;
}
@media (max-width: 900px) {
  .map-caption { right: 16px; bottom: 16px; }
}
.hero .lede {
  margin: 0 0 26px;
  font-size: 1.25rem;
  color: #D5DEE8;
  max-width: 22ch;
  text-shadow: 0 2px 16px rgba(0, 7, 17, 0.9);
}

/* Full-bleed invented street map (inline SVG) */
.route-solid {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-dot {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
}
.route-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.8s ease forwards 0.25s;
}
.route-draw-dot {
  opacity: 0;
  animation: fadeRoute 1s ease forwards 0.8s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeRoute { to { opacity: 1; } }
.pin { transform-box: fill-box; transform-origin: center bottom; }
.pin-pulse { animation: pulse 2.4s ease-in-out infinite; }
.pin-d0 { animation-delay: 0s; }
.pin-d1 { animation-delay: 0.25s; }
.pin-d2 { animation-delay: 0.5s; }
.pin-d3 { animation-delay: 0.75s; }
.pin-d4 { animation-delay: 1.0s; }
.pin-d5 { animation-delay: 1.2s; }
.accent-word, .hero h2 .map.accent-word { color: var(--lime); }
@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 22px currentColor); }
  50% { filter: drop-shadow(0 0 18px currentColor) drop-shadow(0 0 36px currentColor); }
}
@media (prefers-reduced-motion: reduce) {
  .route-draw { stroke-dashoffset: 0; }
  .route-draw-dot { opacity: 1; }
}

/* How it works */
.how { padding-top: 24px; }
.how .section-frame { text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 16%;
  right: 16%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #3aa8ff 40%, var(--lime));
  box-shadow: 0 0 10px rgba(0, 212, 248, 0.5);
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 0 8px; }
.step-icon {
  width: 156px; height: 156px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 20, 40, 0.6), rgba(0, 7, 17, 0.9));
  position: relative;
}
.step:nth-child(1) .step-icon {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 8px rgba(0, 212, 248, 0.06), var(--glow-cyan);
}
.step:nth-child(2) .step-icon {
  border: 2px solid #3B7BFF;
  box-shadow: 0 0 0 8px rgba(59, 123, 255, 0.08), 0 0 24px rgba(59, 123, 255, 0.35);
}
.step:nth-child(3) .step-icon {
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 8px rgba(128, 228, 56, 0.07), var(--glow-lime);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-weight: 800;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}
.step:nth-child(2) .step-num { border-color: #3B7BFF; }
.step:nth-child(3) .step-num { border-color: var(--lime); box-shadow: var(--glow-lime); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0 auto; color: var(--muted); max-width: 28ch; }
.how-mobile-title { display: none; }

/* Features / phones */
.features-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: center;
}
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feat-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(0, 212, 248, 0.06);
}
.feature-list h3 { font-size: 1.125rem; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); }
.phones {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
}
.phone-frame {
  width: 280px;
  background: #05080F;
  border: 3px solid rgba(0, 212, 248, 0.7);
  border-radius: 36px;
  padding: 12px 10px 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 50px rgba(0,0,0,0.5), 0 0 28px rgba(0, 212, 248, 0.55), 0 0 56px rgba(0, 212, 248, 0.25);
  position: absolute;
}
.phone-frame.lime {
  border-color: rgba(160, 232, 40, 0.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 50px rgba(0,0,0,0.5), 0 0 28px rgba(160, 232, 40, 0.5), 0 0 56px rgba(160, 232, 40, 0.22);
}
.phone-frame img, .phone-frame picture, .phone-frame picture img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 390 / 760;
  object-fit: cover;
  object-position: top center;
  background: #0B1530;
}
.phone-frame.p-map { transform: translate(-140px, 16px) rotate(-9deg); z-index: 2; width: 290px; }
.phone-frame.p-charge { transform: translate(130px, -86px) rotate(11deg); z-index: 3; width: 250px; }
.phone-frame.p-check { transform: translate(115px, 175px) rotate(7deg); z-index: 4; width: 250px; }
.mid-cta { text-align: center; margin-top: 56px; }

/* Calculator */
.savings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}
.calc-card {
  background: linear-gradient(180deg, rgba(0, 20, 36, 0.9), rgba(0, 10, 20, 0.9));
  border: 1px solid rgba(0, 212, 248, 0.4);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 0 28px rgba(0, 212, 248, 0.08);
}
.calc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.calc-row { margin-bottom: 8px; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-val {
  color: var(--lime);
  font-weight: 800;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(128, 228, 56, 0.55);
}
.calc-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
}
.calc-row input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #80E438 0 var(--pct, 50%), #0A2230 var(--pct, 50%));
  box-shadow: 0 0 12px rgba(128, 228, 56, 0.45), inset 0 0 0 1px rgba(128, 228, 56, 0.4);
}
.calc-row input[type="range"]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #000711, 0 0 0 6px var(--cyan), 0 0 14px rgba(0, 212, 248, 0.5);
}
.calc-row input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px #00111c, 0 0 0 6px var(--cyan), 0 0 16px #80E438;
}
.calc-row input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px #00111c, 0 0 0 6px var(--cyan);
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C8FF64;
  border: 0;
  box-shadow: 0 0 0 3px #00111c, 0 0 16px #80E438, 0 0 28px rgba(128, 228, 56, 0.85);
  cursor: pointer;
}
.calc-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C8FF64;
  border: 0;
  box-shadow: 0 0 0 3px #00111c, 0 0 16px #80E438;
  cursor: pointer;
}
.calc-row input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #80E438 0 var(--pct, 50%), #0A2230 var(--pct, 50%));
  box-shadow: 0 0 12px rgba(128, 228, 56, 0.45), inset 0 0 0 1px rgba(128, 228, 56, 0.4);
  border: 0;
}
.ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0;
}
.calc-row input[type="number"] {
  width: 7.5rem;
  background: #000A14;
  color: var(--text);
  border: 1px solid rgba(0, 212, 248, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-weight: 700;
}
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  background: #00060E;
  border: 1px solid rgba(0, 212, 248, 0.25);
  border-radius: 14px;
  padding: 16px 12px;
}
.results div { text-align: center; }
.results .lbl {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.results .lbl .res-ico { width: 18px; height: 18px; flex: none; }
.results .amt { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.results .you { color: var(--lime); text-shadow: 0 0 14px rgba(128, 228, 56, 0.6); }
.calc-year { text-align: center; font-weight: 700; color: var(--lime); margin: 14px 0 6px; }
.calc-note, .calc-hint { color: var(--muted); font-size: 1rem; margin: 8px 0 0; }
.sample {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(168, 184, 204, 0.45);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  text-transform: lowercase;
}
.feat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feat-card {
  border: 1px solid rgba(0, 212, 248, 0.4);
  border-radius: 16px;
  padding: 18px 16px 16px;
  background: rgba(0, 16, 28, 0.7);
  box-shadow: inset 0 0 20px rgba(0, 212, 248, 0.05);
}
.feat-card.lime { border-color: rgba(160, 232, 40, 0.45); }
.feat-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.feat-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.feat-card svg { width: 52px; height: 52px; filter: drop-shadow(0 0 8px currentColor); }

/* Key */
.key-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.key-visual { position: relative; min-height: 420px; display: grid; place-items: center; grid-column: 1; grid-row: 1; }
.key-copy { grid-column: 2; grid-row: 1; }
.key-card {
  width: min(100%, 340px);
  border-radius: 20px;
  padding: 22px 22px 18px;
  background: linear-gradient(160deg, rgba(0, 30, 50, 0.9), rgba(0, 10, 20, 0.85));
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan), 0 30px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.key-card h3 { font-size: 1.6rem; }
.key-card .sub { color: var(--muted); margin: 4px 0 16px; }
.key-phone {
  width: 200px;
  margin-top: -20px;
  position: relative;
  z-index: 3;
  border-radius: 28px;
  border: 2px solid rgba(0, 212, 248, 0.4);
  box-shadow: var(--glow-lime), 0 16px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  background: #0B1530;
}
.key-phone img { width: 100%; aspect-ratio: 390/680; object-fit: cover; object-position: top; }
.ripples {
  position: absolute;
  inset: 10% 8% 5%;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 248, 0.25);
  box-shadow: 0 0 0 24px rgba(128, 228, 56, 0.07), 0 0 0 48px rgba(0, 212, 248, 0.05);
  pointer-events: none;
}
.key-copy h2 { margin: 14px 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* FAQ */
.faq-head { margin-bottom: 22px; }
.faq-kicker { color: var(--lime); font-weight: 800; letter-spacing: 0.08em; font-size: 1rem; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid rgba(0, 212, 248, 0.35);
  border-radius: 16px;
  background: rgba(0, 16, 28, 0.65);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(0, 212, 248, 0.55); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 16px 16px;
  font-weight: 700;
  font-size: 1.0625rem;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 212, 248, 0.1);
  border: 1px solid rgba(0, 212, 248, 0.4);
}
.faq-item .chev { margin-left: auto; color: var(--muted); transition: transform 0.2s; }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--cyan); }
.faq-item .answer { padding: 0 16px 18px 64px; color: var(--muted); margin: 0; }

/* Final CTA bar */
.cta-bar {
  margin-top: 28px;
  border: 1px solid rgba(0, 212, 248, 0.45);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 20, 36, 0.7);
  box-shadow: var(--glow-cyan);
}
.cta-bar .left { display: flex; align-items: center; gap: 14px; }
.cta-bar h2 { font-size: 1.35rem; margin: 0 0 2px; }
.cta-bar p { margin: 0; color: var(--muted); }
.cta-ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 212, 248, 0.12);
  padding: 36px 0 calc(48px + var(--safe-bottom));
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  color: var(--muted);
  font-size: 1rem;
}
.site-footer .wrap { display: grid; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 4px; box-sizing: border-box; }
.credits { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(0, 212, 248, 0.12); }
.credits, .legal-credits {
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
.credits h2 { font-size: 1.35rem; margin: 0 0 12px; color: var(--text); }
.credits p, .credits-line { margin: 0 0 10px; max-width: 70ch; }

.foot-links a:hover { color: var(--text); }
.disclaimer { margin: 0; max-width: 70ch; }

/* Legal pages */
.legal { padding: 48px 0 80px; max-width: 720px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 16px; }
.legal h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .btn-demo { display: inline-flex; min-height: 44px; margin-top: 8px; white-space: normal; max-width: 100%; text-align: center; height: auto; box-sizing: border-box; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: fadeup 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* Mobile */
@media (max-width: 900px) {
  .site-header .nav-desktop { display: none; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; justify-content: space-between; width: min(100% - 24px, var(--max)); gap: 8px; }
  .nav-desktop .nav-links { display: none; }
  .header-tools { gap: 6px; flex-shrink: 0; }
  .brand { flex-shrink: 0; }
  .nav-mobile { display: block; position: relative; flex-shrink: 0; }
  .nav-mobile summary {
    list-style: none;
    cursor: pointer;
    color: transparent;
    font-weight: 600;
    font-size: 0.75rem;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 212, 248, 0.45);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    display: inline-block;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary::before,
  .nav-mobile summary::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    pointer-events: none;
  }
  .nav-mobile summary::before { top: 13px; box-shadow: 0 4px 0 var(--text); }
  .nav-mobile summary::after { top: 21px; }
  .nav-mobile .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 12px;
    right: 12px;
    top: var(--header-h);
    margin-top: 8px;
    padding: 10px;
    background: var(--plug-bg);
    border: 1px solid rgba(0, 212, 248, 0.35);
    border-radius: 12px;
    z-index: 80;
    min-width: 0;
    max-width: none;
    width: auto;
    box-sizing: border-box;
  }
  .hero-copy > .badge-preview { display: none; }
  .header-tools .badge-preview { display: inline-flex !important; }
  @media (max-width: 400px) {
    .header-tools .badge-preview { display: none !important; }
    .hero-copy > .badge-preview { display: inline-flex !important; }
  }
  .hero {
    min-height: 0;
    padding: 4px 0 220px;
    align-items: flex-start;
  }
  .hero .wrap { display: block; padding-top: 4px; }
  .hero-copy { max-width: 100%; padding-bottom: 0; }
  .hero-map {
    transform: perspective(1200px) rotateX(10deg) scale(1.1);
    transform-origin: 50% 90%;
    inset: 10% -6% 0;
  }
  .hero-scrim {
    background: linear-gradient(
      180deg,
      var(--plug-bg) 0%,
      color-mix(in srgb, var(--plug-bg) 92%, transparent) 42%,
      color-mix(in srgb, var(--plug-bg) 45%, transparent) 68%,
      color-mix(in srgb, var(--plug-bg) 12%, transparent) 100%
    );
  }
  .hero::before { background-position: 70% 28%; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.4rem); margin: 8px 0 12px; letter-spacing: -0.035em; word-spacing: 0.14em; max-width: none; }
  .hero h1 .h1-line { white-space: normal; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 18px; }
  .how-mobile-title { display: block; text-align: left; margin-bottom: 18px; }
  .how-mobile-title h2 { font-size: 2.2rem; }
  .how .desktop-title { display: none; }
  .how .section-frame { padding: 8px 0 24px; border: 0; }
  .how .section-frame::before, .how .section-frame::after { display: none; }
  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
  }
  .steps::before { display: none; }
  .step {
    border: 1px solid rgba(0, 212, 248, 0.3);
    border-radius: 14px;
    padding: 16px;
    background: rgba(0, 16, 28, 0.5);
  }
  .step-icon { width: 52px; height: 52px; margin: 0 0 10px; }
  .step-icon svg { width: 28px; height: 28px; }
  .step:nth-child(3) { grid-column: 1 / -1; }
  .features-grid, .savings-grid, .key-grid { grid-template-columns: 1fr; }
  .key-visual { grid-column: 1; grid-row: 1; }
  .key-copy { grid-column: 1; grid-row: 2; }
  .phones { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 10px 0 20px; }
  .phone-frame, .phone-frame.p-map, .phone-frame.p-charge, .phone-frame.p-check {
    position: relative;
    transform: none;
    width: min(260px, 80%);
  }
  .cta-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .results { grid-template-columns: 1fr; }
  .feat-cards { grid-template-columns: 1fr 1fr; }
  .faq-item .answer { padding-left: 16px; }
}
@media (max-width: 520px) {
  .feat-cards { grid-template-columns: 1fr; }
  .calc-pair { grid-template-columns: 1fr; }
}

.calc-row { position: relative; }
.calc-row input[type="number"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.calc-row input[type="number"]:focus {
  position: static;
  width: 7.5rem;
  min-height: 44px;
  height: 44px;
  clip: auto;
  clip-path: none;
  margin: 8px 0 0;
  padding: 0 12px;
  font-size: 16px;
  white-space: normal;
  overflow: visible;
  box-sizing: border-box;
}
.hero h1 .one { color: var(--cyan); }
.hero h1 .map { color: var(--lime); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#how { min-height: 0; padding-top: 36px; padding-bottom: 72px; }
#savings { padding-top: 20px; padding-bottom: 16px; }
#savings .calc-row { margin-bottom: 6px; }
#savings .calc-card { padding: 14px 18px 10px; }
#savings .results { margin-top: 6px; padding: 10px 8px 8px; }
#savings h2 { font-size: clamp(1.55rem, 3.2vw, 2.5rem); margin-bottom: 6px; }
#key { padding-top: 16px; padding-bottom: 8px; }
#key .key-visual { min-height: 260px; }
#key .key-phone { width: 150px; margin-top: -16px; }
#faq { padding-top: 8px; padding-bottom: 20px; }
.section-frame .corner-bl,
.section-frame .corner-br {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  content: none;
}
.section-frame .corner-bl {
  bottom: 10px; left: 10px;
  border-bottom: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.section-frame .corner-br {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
}
.features h2 .see-rule, #features h2 { }
#features h2 { position: relative; display: inline-block; }
#features h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.hero .lede { letter-spacing: 0.01em; word-spacing: 0.04em; }

/* ===== Round 4: spot matching to mockups 3, 4, 5, 6 (no inline styles; CSP-safe) ===== */

/* How it works (mockup 4) */
.pill-kicker { margin: 0 0 14px; }
.pill-kicker span {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(0, 212, 248, 0.55);
  border-radius: var(--pill);
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 212, 248, 0.06);
  box-shadow: 0 0 14px rgba(0, 212, 248, 0.2);
}
#how .section-frame { position: relative; padding-bottom: 96px; overflow: hidden; }
#how .steps { margin-top: 36px; }
#how .steps::before { top: 87px; height: 3px; }
#how .step-icon { width: 176px; height: 176px; margin-bottom: 20px; }
#how .step-icon svg { width: 124px; height: 124px; filter: drop-shadow(0 0 7px currentColor) drop-shadow(0 0 16px currentColor); }
#how .step:nth-child(1) .step-icon { color: var(--cyan); box-shadow: 0 0 0 10px rgba(0, 212, 248, 0.06), 0 0 0 22px rgba(0, 212, 248, 0.03), 0 0 36px rgba(0, 212, 248, 0.55); }
#how .step:nth-child(2) .step-icon { color: #3B9BFF; box-shadow: 0 0 0 10px rgba(59, 123, 255, 0.07), 0 0 0 22px rgba(59, 123, 255, 0.03), 0 0 36px rgba(59, 155, 255, 0.5); }
#how .step:nth-child(3) .step-icon { color: var(--lime); box-shadow: 0 0 0 10px rgba(128, 228, 56, 0.07), 0 0 0 22px rgba(128, 228, 56, 0.03), 0 0 36px rgba(128, 228, 56, 0.5); }
.glow-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 84px;
  pointer-events: none;
  z-index: 0;
}

/* Savings (mockup 3) */
#savings .calc-card {
  position: relative;
  border: 1px solid rgba(0, 212, 248, 0.7);
  border-radius: 26px;
  padding: 20px 24px 14px;
  background: linear-gradient(180deg, rgba(0, 30, 52, 0.94), rgba(0, 12, 24, 0.96));
  box-shadow: 0 0 0 5px rgba(0, 212, 248, 0.06), 0 0 38px rgba(0, 212, 248, 0.35), inset 0 0 30px rgba(0, 212, 248, 0.1);
}
#savings .calc-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 212, 248, 0.22);
  border-radius: 20px;
  pointer-events: none;
}
#savings .calc-row input[type="range"] {
  background: linear-gradient(90deg, #00D4F8 0, #80E438 var(--pct, 50%), #0A2230 var(--pct, 50%));
  box-shadow: 0 0 12px rgba(0, 212, 248, 0.4), inset 0 0 0 1px rgba(0, 212, 248, 0.35);
}
#savings .results {
  gap: 0;
  padding: 14px 6px 12px;
  background: rgba(0, 10, 20, 0.85);
  border: 1px solid rgba(0, 212, 248, 0.6);
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(0, 212, 248, 0.14), 0 0 18px rgba(0, 212, 248, 0.2);
}
#savings .results > div { padding: 0 8px; }
#savings .results > div + div { border-left: 1px solid rgba(0, 212, 248, 0.28); }
#savings .results .amt { font-size: 1.6rem; }
#savings .results .you { color: var(--lime); }
.feat-wrap { min-width: 0; }
.feat-kicker { margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.feat-kicker span { color: var(--cyan); font-weight: 700; font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.feat-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 212, 248, 0.5), transparent); }
.feat-card {
  border-width: 1.5px;
  border-radius: 20px;
  box-shadow: 0 0 22px rgba(0, 212, 248, 0.2), inset 0 0 22px rgba(0, 212, 248, 0.06);
}
.feat-card.lime { box-shadow: 0 0 22px rgba(128, 228, 56, 0.2), inset 0 0 22px rgba(128, 228, 56, 0.06); border-color: rgba(128, 228, 56, 0.6); }
.feat-card svg {
  box-sizing: border-box;
  width: 72px; height: 72px;
  padding: 8px;
  stroke-width: 2.6;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: rgba(0, 212, 248, 0.07);
  box-shadow: 0 0 18px rgba(0, 212, 248, 0.4);
  filter: none;
}
.feat-card.lime svg { border-color: var(--lime); background: rgba(128, 228, 56, 0.07); box-shadow: 0 0 18px rgba(128, 228, 56, 0.4); }

/* Key (mockup 5) */
#key { padding-top: 24px; padding-bottom: 20px; }
#key .key-grid { gap: 24px; }
#key .key-visual {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 600 / 520;
  grid-column: 1; grid-row: 1;
}
.key-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#key .key-card {
  position: absolute;
  left: 11%; right: 11%; top: 2%;
  width: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 20px 14px;
  border-radius: 20px;
  border: 2px solid rgba(0, 212, 248, 0.85);
  background: linear-gradient(150deg, rgba(0, 48, 76, 0.82), rgba(0, 16, 32, 0.9));
  box-shadow: 0 0 0 4px rgba(0, 212, 248, 0.08), 0 0 36px rgba(0, 212, 248, 0.5), inset 0 0 28px rgba(0, 212, 248, 0.18);
}
.key-ico { width: 56px; height: 56px; filter: drop-shadow(0 0 8px rgba(0, 212, 248, 0.8)); }
.key-card-text h3 { margin: 0; font-size: 1.5rem; }
#key .key-card .sub { margin: 2px 0 0; color: #7fe6fb; }
.key-bars { grid-column: 1 / -1; justify-self: end; width: 96px; height: 20px; margin-top: 8px; }
#key .key-copy { grid-column: 2; grid-row: 1; }
#key .key-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }

/* FAQ rows (mockup 5) */
.faq-list { gap: 10px; }
.faq-item {
  border: 1.5px solid rgba(0, 212, 248, 0.5);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(0, 28, 44, 0.8), rgba(0, 12, 22, 0.8));
  box-shadow: 0 0 16px rgba(0, 212, 248, 0.16), inset 0 0 14px rgba(0, 212, 248, 0.05);
}
.faq-item:nth-child(even) { border-color: rgba(128, 228, 56, 0.5); box-shadow: 0 0 16px rgba(128, 228, 56, 0.14), inset 0 0 14px rgba(128, 228, 56, 0.05); }
.faq-item[open] { box-shadow: 0 0 24px rgba(0, 212, 248, 0.3), inset 0 0 14px rgba(0, 212, 248, 0.08); }
.faq-item summary { padding: 10px 16px; min-height: 60px; }
.faq-item summary:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; }
.faq-ico {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  border-width: 1.5px;
  box-shadow: 0 0 14px rgba(0, 212, 248, 0.45);
}
.faq-item:nth-child(even) .faq-ico { background: rgba(128, 228, 56, 0.1); border-color: rgba(128, 228, 56, 0.6); box-shadow: 0 0 14px rgba(128, 228, 56, 0.4); }
.faq-item .answer { padding-left: 72px; }
.cta-bar {
  margin-top: 22px;
  padding: 18px 22px;
  border: 2px solid rgba(0, 212, 248, 0.75);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(0, 40, 64, 0.8), rgba(0, 16, 30, 0.85));
  box-shadow: 0 0 0 5px rgba(0, 212, 248, 0.06), 0 0 36px rgba(0, 212, 248, 0.4), inset 0 0 26px rgba(0, 212, 248, 0.12);
}
.cta-bar h2 { font-size: 1.6rem; }
.cta-ico { width: 64px; height: 64px; flex: 0 0 64px; border-width: 2px; }
.cta-bar .btn-demo { white-space: nowrap; }

/* Phone hero map card + horizontal step cards (mockup 6) */
.mapcard { display: none; }
@media (max-width: 600px) {
  .hero-map, .hero-scrim, .map-caption { display: none; }
  .hero {
    padding: 4px 0 18px;
    background: linear-gradient(
      180deg,
      var(--plug-bg) 0%,
      color-mix(in srgb, var(--plug-bg) 80%, transparent) 55%,
      color-mix(in srgb, var(--plug-bg) 0%, transparent) 100%
    );
  }
  .hero::before {
    display: block;
    background-position: 80% 8%;
    background-size: min(90vw, 52vh);
  }
  .hero .lede { max-width: none; }
  .mapcard {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: 26px;
    height: 300px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 248, 0.5);
    box-shadow: 0 0 26px rgba(0, 212, 248, 0.25), inset 0 0 20px rgba(0, 212, 248, 0.1);
    background: #040e1b;
  }
  .mapcard-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .mapcard-cap {
    position: absolute; left: 14px; bottom: 12px; margin: 0;
    font-size: 1rem; font-weight: 600; color: var(--muted);
    text-shadow: 0 1px 8px #000711;
  }
  .mapcard-locate {
    position: absolute; right: 12px; bottom: 12px;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(2, 12, 24, 0.85);
    border: 1px solid rgba(200, 212, 224, 0.4);
  }
  /* Keep the Illustration caption on the first screen at 320x640. */
  @media (max-width: 360px) {
    .mapcard { height: 200px; margin-top: 12px; }
    .hero .lede { margin-bottom: 14px; }
  }
  #how { padding-top: 12px; padding-bottom: 40px; }
  #how .section-frame { padding: 8px 0 8px; overflow: visible; }
  #how .glow-wave, #how .corner-bl, #how .corner-br { display: none; }
  #how .steps {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  #how .steps:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; border-radius: 14px; }
  #how .step {
    flex: 0 0 min(76%, 290px);
    scroll-snap-align: start;
    min-width: 0;
    padding: 16px 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 248, 0.45);
    box-shadow: 0 0 18px rgba(0, 212, 248, 0.15);
  }
  #how .step:nth-child(3) { grid-column: auto; border-color: rgba(128, 228, 56, 0.5); }
  #how .step:nth-child(2) { border-color: rgba(59, 155, 255, 0.55); }
  #how .step-icon { width: 76px; height: 76px; margin: 0 0 12px; box-shadow: 0 0 18px currentColor; }
  #how .step:nth-child(n) .step-icon { box-shadow: 0 0 18px currentColor; }
  #how .step-icon svg { width: 60px; height: 60px; }
  #how .step-num {
    position: absolute; top: 14px; right: 14px;
    width: auto; height: auto; min-width: 34px; margin: 0;
    padding: 2px 10px; border-radius: 8px;
    font-size: 1rem;
    background: rgba(128, 228, 56, 0.16);
    border-color: var(--lime);
    box-shadow: none;
  }
  #how .step p { max-width: none; }
  #how .step h3 { font-size: 1.15rem; }
  #savings .results > div + div { border-left: 0; border-top: 1px solid rgba(0, 212, 248, 0.28); padding-top: 10px; margin-top: 4px; }
  #key .key-card { left: 4%; right: 4%; padding: 14px 14px 10px; column-gap: 12px; }
  .key-ico { width: 44px; height: 44px; }
  .key-card-text h3 { font-size: 1.3rem; }
  #key .key-visual { aspect-ratio: 600 / 640; }
  .cta-ico { display: none; }
}
@media (max-width: 900px) {
  #savings .results > div + div { border-left: 0; border-top: 1px solid rgba(0, 212, 248, 0.28); padding-top: 10px; margin-top: 4px; }
  #how .step-icon { width: 128px; height: 128px; }
  #how .step-icon svg { width: 84px; height: 84px; }
  .faq-item .answer { padding-left: 16px; }
  #key .key-visual { grid-column: 1; grid-row: 1; }
  #key .key-copy { grid-column: 1; grid-row: 2; }
}

/* Homepage charger finder */
.find .lede { max-width: 38em; }
.find-bar { margin: 16px 0 8px; }
.find-bar label { display: block; font-weight: 600; margin-bottom: 8px; }
.find-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.find-row input[type="search"] {
  flex: 1 1 16rem; min-height: 44px; min-width: 0;
  border-radius: 12px; border: 1px solid rgba(0, 212, 248, 0.45);
  background: #02101c; color: var(--text); font: inherit; padding: 8px 14px;
}
.find-row input[type="search"]:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; }
.find-status { min-height: 1.4em; color: var(--muted); margin: 8px 0; }
.find-credit { font-size: 0.95rem; color: var(--muted); margin-top: 16px; }
.find-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.find-item {
  margin: 0; padding: 16px 18px; border-radius: 16px;
  border: 1px solid rgba(0, 212, 248, 0.35);
  background: rgba(2, 16, 28, 0.8);
}
.find-name { font-weight: 700; color: var(--text); text-decoration: none; }
.find-name:hover { color: var(--cyan); }
.find-meta { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.find-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.find-open, .find-save, .find-checkin, .find-near, .near-widen, .near-date {
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.find-open { display: inline-flex; align-items: center; color: #000711; background: var(--cyan); text-decoration: none; }
.find-save, .find-checkin, .find-near, .near-widen, .near-date {
  color: var(--text); background: transparent;
  border: 1px solid rgba(0, 212, 248, 0.5);
}
.find-save[aria-pressed="true"], .find-checkin[aria-pressed="true"], .find-near[aria-expanded="true"], .near-date[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
@media (max-width: 600px) {
  .find { padding-top: 28px; padding-bottom: 36px; }
  .find-row .btn-demo { width: 100%; justify-content: center; }
}

/* Plug quiz */
.quiz .lede { max-width: 42em; }
.quiz .find-bar label { margin-top: 12px; }
.quiz-card { margin-top: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(0, 212, 248, 0.35); background: rgba(2, 16, 28, 0.8); }
.quiz-car { margin: 0 0 6px; }
.quiz-years { color: var(--muted); font-weight: 500; }
.quiz-plugs { margin: 0 0 6px; font-weight: 700; }
.quiz-adapters, .quiz-note, .quiz-snap { margin: 6px 0 0; color: var(--muted); }
.quiz-list { margin-top: 16px; }
@media (max-width: 600px) {
  .quiz { padding-top: 28px; padding-bottom: 36px; }
}

/* EV tips page */
.tips-page .lede { max-width: 42em; }
.tip { margin: 32px 0 0; padding-top: 8px; }
.tip-disclaimer { font-weight: 600; color: var(--text); }
.tip-sources { margin: 8px 0 0; padding-left: 1.2em; }
.tip-sources a { color: var(--cyan); text-decoration: underline; }
.tip-sources a:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; }
.nav-links a[aria-current="page"] { color: var(--cyan); }

/* Trip cost calculator */
.trip .lede { max-width: 42em; }
.trip .find-bar label { margin-top: 12px; }
.trip-fields { margin: 16px 0 12px; padding: 12px 16px 16px; border: 1px solid rgba(0, 212, 248, 0.3); border-radius: 14px; }
.trip-fields legend { padding: 0 8px; font-weight: 700; }
.trip-field { display: grid; gap: 4px; }
.trip-field input {
  min-height: 44px;
  width: 100%;
  max-width: none;
  padding: 0 12px;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 248, 0.45);
  background: #02101c;
  color: var(--text);
  font-family: inherit;
}
.trip-field input:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; }
.trip-card { margin-top: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(0, 212, 248, 0.35); background: rgba(2, 16, 28, 0.8); }
.trip-card h3 { margin: 16px 0 6px; font-size: 1rem; }
.trip-route { margin: 0 0 10px; }
.trip-grid { margin: 0; display: grid; gap: 6px; }
.trip-grid > div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.trip-grid dt { color: var(--muted); }
.trip-grid dd { margin: 0; font-weight: 600; }
.trip-money { font-weight: 800; }
.trip-est { font-size: 0.78em; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.trip-assume, .trip-warns { margin: 0; padding-left: 1.2em; }
.trip-note, .trip-none { margin: 10px 0 0; color: var(--muted); }
.trip-stops { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.trip-warn { color: #ffd479; }
@media (min-width: 720px) { .trip-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; } .trip-fields legend { grid-column: 1 / -1; } }
@media (max-width: 720px) { .trip { padding-top: 28px; padding-bottom: 36px; } .trip-grid > div { flex-direction: column; } }

/* Check-in streaks and badges */
.streaks .lede { max-width: 42em; }
.streak-card { margin-top: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(0, 212, 248, 0.35); background: rgba(2, 16, 28, 0.8); }
.streak-card h3 { margin: 16px 0 6px; font-size: 1rem; }
.streak-self, .streak-prize, .streak-current, .streak-longest { margin: 0 0 8px; }
.streak-prize, .streak-empty { color: var(--muted); }
.streak-badges { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.streak-badge { border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-direction: column; gap: 4px; }
.streak-badge.is-locked { opacity: 0.55; background: rgba(0, 0, 0, 0.25); }
.streak-badge.is-unlocked { border-color: rgba(0, 212, 248, 0.55); background: rgba(0, 212, 248, 0.08); }
.streak-badge-name { font-weight: 700; }
.streak-badge-state { font-size: 0.85em; color: var(--muted); }
.streak-log { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.streak-savings { margin: 16px 0 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(0, 212, 248, 0.35); background: rgba(2, 16, 28, 0.8); }
.streak-savings h3 { font-size: 1.05rem; margin: 0 0 6px; }
.streak-savings-amt { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
.streak-savings-assume, .streak-savings-empty { margin: 0 0 4px; color: var(--muted); font-size: 0.9em; }
.near-spin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 10px; }
.near-spin-btn { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(0, 212, 248, 0.55); background: rgba(0, 40, 64, 0.8); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.near-spin-status { margin: 0; color: var(--muted); font-size: 0.95em; }
.place-item.is-spin-tick { outline: 2px solid rgba(0, 212, 248, 0.55); }
.place-item.is-spin-pick { outline: 2px solid var(--lime); background: rgba(126, 226, 74, 0.08); }
@media (prefers-reduced-motion: reduce) {
  .place-item.is-spin-tick, .place-item.is-spin-pick { transition: none; }
}
@media (max-width: 720px) { .streaks { padding-top: 28px; padding-bottom: 36px; } .find-actions { display: flex; flex-wrap: wrap; gap: 8px; } .find-checkin { margin-left: 0; } }

/* Near-charger places and the home range */
.near-panel { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); }
.near-title { margin: 0 0 6px; font-size: 0.95rem; }
.near-group { margin: 10px 0 4px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.place-list { margin: 0; padding-left: 1.1em; }
.place-item { margin: 0 0 6px; overflow-wrap: anywhere; }
.place-meta > span + span::before { content: " · "; color: var(--muted); }
.place-kind, .place-dist, .place-hours, .place-walk, .place-home { color: var(--muted); font-size: 0.85em; }
.place-dist abbr, .place-home abbr { text-decoration: underline dotted; cursor: help; }
.near-empty, .near-fail, .near-loading, .near-home, .near-far, .near-walk, .near-hint, .near-planned-note { margin: 6px 0 0; color: var(--muted); font-size: 0.9em; }
.near-tablist { display: flex; flex-wrap: nowrap; gap: 6px; margin: 10px 0 0; padding: 2px 2px 6px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.near-tab { flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.near-tab[aria-selected="true"] { border-color: #7EE24A; color: #7EE24A; background: rgba(126, 226, 74, 0.1); }
.near-tab:focus-visible, .near-tabpanel:focus-visible { outline: 3px solid #F4F4F4; outline-offset: 3px; box-shadow: 0 0 0 3px #000711, 0 0 0 9px #000711; }
.near-tabpanel { margin-top: 6px; min-width: 0; }
.near-tabpanel[hidden] { display: none; }
.near-datebar { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.near-date { min-height: 44px; padding: 4px 12px; font-size: 0.9rem; }
.near-date-on { color: var(--muted); font-size: 0.9em; }
.near-widen { min-height: 44px; padding: 4px 12px; font-size: 0.9rem; }
.home-bar { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); }
.home-title { margin: 0 0 4px; font-size: 1.05rem; }
.home-row { flex-wrap: wrap; align-items: center; gap: 8px; }
.home-row input, .home-row select { min-height: 44px; border-radius: 10px; padding: 6px 10px; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25); }
.home-row input { flex: 1 1 180px; min-width: 0; }
.home-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
@media (max-width: 720px) { .place-item { font-size: 0.95rem; } }
.find-item { min-width: 0; max-width: 100%; }


@media (max-width: 330px) {
  .site-header .brand .wordmark { display: none; }
}

a.osm-credit,
.credits .osm-credit,
.credits-line .osm-credit {
  display: inline-block;
  padding-block: 10px;
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Optional tip / support (inert EXAMPLE) and sponsored EXAMPLE slot */
.support { padding-top: 48px; padding-bottom: 36px; }
.support h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 10px; }
.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  margin: 8px 0 10px;
  box-sizing: border-box;
  text-decoration: none;
  /* Opaque fill so contrast is measured against the button, not the page,
     and a tight glow so it does not wash the note below. */
  background-color: #00D4F8;
  color: #00111c;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.9), 0 0 16px rgba(0, 212, 248, 0.45);
}
.tip-btn:hover { color: #00111c; }
.tip-note, .support-contact {
  color: var(--text);
  font-size: 0.95rem;
  max-width: 42em;
  background-color: var(--bg, #000711);
  padding: 4px 0;
}
.near-sponsored {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 212, 248, 0.55);
  background: rgba(2, 16, 28, 0.9);
}
.near-sponsored-label {
  margin: 0 0 6px;
  font-family: var(--hud-mono, ui-monospace, monospace);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--lime);
}
.near-sponsored-name { margin: 0 0 4px; font-weight: 700; color: var(--text); }
.near-sponsored-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .tip-btn, .near-sponsored { transition: none; }
}
