/* ============================================================
   SNAK4EV — Marketing site (multi-page)
   Palette: #E80B0B (red) · #FFFFFF (white) · #1ED516 (green)
   ============================================================ */

:root {
  --red: #e80b0b;
  --red-dark: #c40909;
  --red-soft: #fdecec;
  --green: #1ed516;
  --green-dark: #17ab11;
  --green-soft: #e9fbe8;
  --amber: #e8930f;
  --amber-dark: #a86800;
  --amber-soft: #fff4e0;
  /* logo wordmark colours sampled from assets/img/logo.png */
  --logo-red: #e80b0b;
  --logo-green: #1bbe17;
  --logo-red-light: #ff6b5e;
  --logo-green-light: #3ce034;
  --ink: #0f172a;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-gray: #f6f7f9;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.container {
  width: min(1120px, 100% - 44px);
  margin-inline: auto;
}

.txt-red { color: var(--red); }
.txt-green { color: var(--green-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; }

.section { padding: 72px 0; }
.section-gray { background: var(--bg-gray); }

section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-bolt {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--red-soft);
  display: grid; place-items: center;
  animation: bolt-pulse 1s ease-in-out infinite;
}
.preloader-bolt svg { width: 27px; height: 27px; }
.preloader span { font-weight: 800; color: var(--ink); letter-spacing: 0.12em; font-size: 12.5px; }
@keyframes bolt-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 11, 11, 0.25); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(232, 11, 11, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: 0 3px 3px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn .icon { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 20px rgba(232, 11, 11, 0.28);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(232, 11, 11, 0.34);
}

.btn-outline {
  border-color: var(--line); color: var(--ink); background: #fff;
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-white {
  background: #fff; color: var(--red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24); }

.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14px; color: var(--red);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 5px 13px rgba(232, 11, 11, 0.3);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-weight: 800; font-size: 17.5px; color: var(--ink); letter-spacing: 0.02em;
}
.brand-name em { font-style: normal; color: var(--green-dark); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative; font-weight: 600; font-size: 14px; color: var(--body);
  padding: 5px 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 21px; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO CAROUSEL (home)
   ============================================================ */
.hero-slider {
  position: relative;
  margin-top: var(--nav-h);
  height: clamp(440px, 66vh, 620px);
  overflow: hidden;
  background: var(--ink);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  z-index: 1;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide.is-active .slide-bg { animation: kenburns 8s var(--ease) forwards; }
@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.slide-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.82) 0%, rgba(8, 12, 22, 0.55) 42%, rgba(8, 12, 22, 0.08) 75%),
    linear-gradient(0deg, rgba(8, 12, 22, 0.35) 0%, transparent 35%);
}

.slide-content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 34px;
}
.slide-content > * {
  opacity: 0; transform: translateY(24px);
}
.slide.is-active .slide-content > * {
  animation: slide-rise 0.8s var(--ease) forwards;
}
.slide.is-active .slide-content > *:nth-child(1) { animation-delay: 0.25s; }
.slide.is-active .slide-content > *:nth-child(2) { animation-delay: 0.38s; }
.slide.is-active .slide-content > *:nth-child(3) { animation-delay: 0.51s; }
.slide.is-active .slide-content > *:nth-child(4) { animation-delay: 0.64s; }
@keyframes slide-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff; font-weight: 700; font-size: 12.5px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  position: relative; flex: none;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

.slide-title {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  margin: 16px 0 12px;
  max-width: 620px;
}
.slide-title .txt-red { color: #ff5252; }
.slide-title .txt-green { color: #35e62e; }
.slide-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  max-width: 480px;
  margin-bottom: 24px;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.slider-prev:hover { transform: translateY(-50%) translateX(-2px); }
.slider-next:hover { transform: translateY(-50%) translateX(2px); }

/* dots */
.slider-dots {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 9px;
}
.slider-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.35s var(--ease), background 0.25s;
}
.slider-dot.is-active { width: 26px; background: var(--green); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
}
.marquee-group span {
  font-weight: 800; font-size: 16.5px; color: var(--ink);
  white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-group i { font-style: normal; color: var(--red); font-size: 13.5px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats { padding: 52px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  text-align: center;
  padding: 24px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-num {
  display: block; font-weight: 800; font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.stat-label { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Section head ---------- */
.section-head { max-width: 590px; margin: 0 auto 42px; text-align: center; }
.section-head-left { margin: 0 0 34px; text-align: left; }
.eyebrow {
  display: inline-block;
  font-weight: 800; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 13px; border-radius: 999px;
  margin-bottom: 13px;
}
.section-title { font-size: clamp(24px, 2.9vw, 34px); font-weight: 800; margin-bottom: 12px; }
.section-text { font-size: 15px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  margin-top: var(--nav-h);
  padding: 58px 0 52px;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(30, 213, 22, 0.08), transparent 55%),
    radial-gradient(55% 130% at 10% 10%, rgba(232, 11, 11, 0.07), transparent 55%),
    var(--bg-gray);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 10px;
}
.page-hero .lead { max-width: 560px; margin: 0 auto; font-size: 15.5px; }
.crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.crumbs a { color: var(--red); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
}
.about-card-main { position: relative; }
.about-mini-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
  animation: chip-float 5.5s ease-in-out infinite;
}
.mini-1 { top: 6%; right: -4%; animation-delay: 0.8s; }
.mini-2 { bottom: 8%; left: -4%; animation-delay: 2s; }
.mini-num { display: block; font-weight: 800; font-size: 21px; }
.mini-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-copy .section-title { margin-bottom: 14px; }
.about-copy .eyebrow { margin-bottom: 11px; }
.about-copy .section-text { margin-bottom: 20px; }

.check-list { display: grid; gap: 11px; margin-bottom: 26px; }
.check-list li {
  display: flex; align-items: center; gap: 11px;
  font-weight: 600; color: var(--ink); font-size: 14px;
}
.check {
  width: 23px; height: 23px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center;
}
.check svg { width: 12px; height: 12px; }

.about-leaders {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.leader { display: flex; align-items: center; gap: 10px; }
.leader-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--bg, var(--red));
  color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.leader strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.3; }
.leader small { font-size: 11.5px; color: var(--muted); }

/* mission / vision cards */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mv-card h3 { font-size: 18px; margin: 14px 0 8px; }
.mv-card p { font-size: 14px; }

/* team cards */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 68px; height: 68px; border-radius: 20px;
  margin: 0 auto 14px;
  background: var(--bg, var(--red));
  color: #fff; font-weight: 800; font-size: 21px;
  display: grid; place-items: center;
}
.team-card strong { display: block; font-size: 15.5px; color: var(--ink); }
.team-card small { font-size: 12.5px; color: var(--muted); }
.team-avatar-ph {
  background: var(--bg-gray);
  border: 2px dashed #d3dae2;
  color: #9aa3ad;
}
.team-avatar-ph svg { width: 30px; height: 30px; }

/* product image placeholder (swap for a real <img> later) */
.product-img-ph {
  aspect-ratio: 16 / 10;
  border: 2px dashed #d3dae2;
  border-radius: 14px;
  background: var(--bg-gray);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #9aa3ad;
}
.product-img-ph svg { width: 44px; height: 44px; }
.product-img-ph span {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Cards grid ---------- */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* ---------- Solutions ---------- */
.sol-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.sol-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.sol-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sol-card:hover::before { transform: scaleX(1); }
.sol-card.is-featured { border-color: rgba(30, 213, 22, 0.45); box-shadow: var(--shadow-md); }

.featured-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.sol-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}
.sol-card:hover .sol-icon { transform: scale(1.08) rotate(-4deg); }
.sol-icon svg { width: 25px; height: 25px; }
.icon-red { background: var(--red-soft); color: var(--red); }
.icon-green { background: var(--green-soft); color: var(--green-dark); }
.icon-dark { background: #eef1f5; color: var(--ink); }

.sol-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.sol-card > p { font-size: 14px; margin-bottom: 16px; }
.sol-specs { display: grid; gap: 7px; margin-bottom: 18px; }
.sol-specs li {
  position: relative; padding-left: 19px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.sol-specs li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 7px; height: 7px; border-radius: 2.5px;
  background: var(--green);
}

/* spec table */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.spec-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.spec-table th, .spec-table td {
  padding: 13px 18px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  background: var(--bg-gray);
  color: var(--ink); font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.spec-table td:first-child { font-weight: 700; color: var(--ink); }
.spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Services ---------- */
.svc-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc-tile:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.svc-art {
  height: 132px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.svc-art::before, .svc-art::after {
  content: ""; position: absolute; border-radius: 50%;
  opacity: 0.5; transition: transform 0.5s var(--ease);
}
.svc-art::before { width: 170px; height: 170px; top: -95px; right: -50px; background: rgba(255,255,255,0.35); }
.svc-art::after { width: 120px; height: 120px; bottom: -70px; left: -35px; background: rgba(255,255,255,0.25); }
.svc-tile:hover .svc-art::before { transform: scale(1.25); }
.svc-tile:hover .svc-art::after { transform: scale(1.3); }
.svc-art svg {
  width: 52px; height: 52px; color: #fff; position: relative; z-index: 1;
  filter: drop-shadow(0 7px 15px rgba(0,0,0,0.18));
  transition: transform 0.4s var(--ease);
}
.svc-tile:hover .svc-art svg { transform: scale(1.12); }
.art-red { background: linear-gradient(135deg, #ff4d4d, var(--red) 60%, #b30808); }
.art-green { background: linear-gradient(135deg, #52e84c, var(--green) 60%, #12930d); }
.art-dark { background: linear-gradient(135deg, #3b4657, #0f172a); }
.svc-body { padding: 22px 22px 26px; }
.svc-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.svc-body p { font-size: 14px; margin-bottom: 14px; }

/* steps */
.steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}
.step {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.step:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-md); }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 13.5px;
  margin-bottom: 13px;
  box-shadow: 0 7px 15px rgba(232, 11, 11, 0.28);
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; }
.step-arrow { align-self: center; color: #c3c9d4; }
.step-arrow svg { width: 22px; height: 22px; }

/* ---------- App section ---------- */
.app-panel {
  background: linear-gradient(180deg, #fbfcfd, var(--bg-gray));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 52px 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center;
  position: relative;
  overflow: hidden;
}
.app-panel::before {
  content: "";
  position: absolute; top: -110px; right: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 213, 22, 0.12), transparent 65%);
}
.app-copy .section-title { margin-bottom: 12px; }
.app-copy .section-text { margin-bottom: 22px; max-width: 430px; }
.app-feats { display: grid; gap: 14px; margin-bottom: 26px; }
.app-feats li { display: flex; gap: 13px; align-items: center; }
.feat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: #fff; border: 1px solid var(--line);
  color: var(--red);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.feat-icon svg { width: 21px; height: 21px; }
.app-feats strong { display: block; color: var(--ink); font-size: 14px; }
.app-feats small { color: var(--muted); font-size: 12.5px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 9px 18px; border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 9.5px; opacity: 0.75; line-height: 1.2; }
.store-badge strong { font-size: 13.5px; line-height: 1.2; }

/* phone mockup */
.app-visual { position: relative; display: grid; place-items: center; }
.app-glow {
  position: absolute; width: 72%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 11, 11, 0.1), transparent 62%);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(250px, 80%);
  border-radius: 36px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(15, 23, 42, 0.6);
  animation: chip-float 6.5s ease-in-out infinite;
}
.phone-notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 18px; border-radius: 10px;
  background: var(--ink); z-index: 3;
}
.phone-screen {
  border-radius: 28px;
  background: #f7f8fa;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 15px 10px;
}
.app-logo {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800; font-size: 11.5px; color: var(--ink); letter-spacing: 0.04em;
}
.app-logo svg { width: 14px; height: 14px; }
.app-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
}
.app-map {
  position: relative;
  height: 122px;
  margin: 0 12px;
  border-radius: 15px;
  background:
    linear-gradient(rgba(15,23,42,0.05) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1.5px, transparent 1.5px),
    linear-gradient(160deg, #eef4ee, #e8f0f4);
  background-size: 22px 22px, 22px 22px, cover;
  overflow: hidden;
}
.map-route {
  position: absolute; left: 12%; top: 58%;
  width: 66%; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, transparent 9px 15px);
  transform: rotate(-14deg);
  opacity: 0.85;
}
.map-pin {
  position: absolute;
  width: 22px; height: 22px; border-radius: 50% 50% 50% 4px;
  background: var(--red);
  display: grid; place-items: center;
  box-shadow: 0 5px 10px rgba(232, 11, 11, 0.35);
  animation: pin-bob 2.6s ease-in-out infinite;
}
.map-pin svg { width: 11px; height: 11px; }
.pin-green { background: var(--green); box-shadow: 0 5px 10px rgba(30, 213, 22, 0.4); }
.p1 { top: 18%; left: 14%; }
.p2 { top: 36%; right: 20%; animation-delay: 0.6s; }
.p3 { bottom: 16%; left: 42%; animation-delay: 1.2s; }
@keyframes pin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.app-session {
  display: flex; align-items: center; gap: 12px;
  margin: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
}
.ring-wrap { position: relative; width: 62px; height: 62px; flex: none; }
.battery-ring { width: 62px; height: 62px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e9edf2; stroke-width: 7; }
.ring-fill {
  fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1;
}
.ring-text strong { font-size: 12.5px; color: var(--ink); }
.ring-text small { font-size: 8.5px; color: var(--muted); }
.session-info strong { display: block; font-size: 12px; color: var(--ink); }
.session-info small { display: block; font-size: 10px; color: var(--muted); margin: 2px 0 5px; }
.session-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: var(--green-dark);
  background: var(--green-soft);
  padding: 3px 9px; border-radius: 999px;
}
.app-btn {
  margin: 0 12px 15px;
  border: 0; border-radius: 12px;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 12.5px;
  padding: 11px;
  box-shadow: 0 7px 15px rgba(232, 11, 11, 0.3);
}

/* ---------- Testimonials ---------- */
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 13px; }
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quote-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.quote-card blockquote { font-size: 14px; color: var(--ink); line-height: 1.65; }
.quote-card figcaption { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.quote-card figcaption strong { display: block; font-size: 13.5px; color: var(--ink); }
.quote-card figcaption small { font-size: 12px; color: var(--muted); }
.t-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--bg, var(--red));
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}

/* Google reviews */
.review-summary {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.g-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.g-mark svg { width: 24px; height: 24px; }
.review-score {
  font-size: 44px; font-weight: 800; color: var(--ink);
  line-height: 1; letter-spacing: -0.02em;
}
.stars-lg { font-size: 17px; letter-spacing: 3px; }
.review-count { font-size: 13px; color: var(--muted); font-weight: 600; }

.review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.review-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.review-tags i {
  font-style: normal;
  font-size: 10px; font-weight: 700;
  background: var(--green-soft); color: var(--green-dark);
  padding: 3px 8px; border-radius: 999px;
}

.review-cta {
  align-items: center;
  text-align: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff, var(--red-soft));
  border-color: rgba(232, 11, 11, 0.25);
}
.review-cta h3 { font-size: 19px; }
.review-cta p { font-size: 13.5px; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 200% at 85% 0%, rgba(255,255,255,0.14), transparent 50%),
    linear-gradient(120deg, var(--red) 0%, #b90909 60%, #8f0707 100%);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: start;
}
.contact-info { display: grid; gap: 14px; }
.info-card {
  display: flex; gap: 15px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dde5; }
.info-icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 3px; }
.info-card p { font-size: 13.5px; }
.hours-card {
  background: var(--green-soft);
  border: 1px solid rgba(30, 213, 22, 0.3);
  border-radius: var(--radius);
  padding: 19px;
}
.hours-card strong { display: block; color: var(--ink); margin-bottom: 5px; font-size: 14.5px; }
.hours-card p { font-size: 13.5px; }
.hours-card b { color: var(--green-dark); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-weight: 700; font-size: 12.5px; color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg-gray);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 11, 11, 0.1);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #9aa3ad; }
.form-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #0b1120; color: #9aa5b5; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 38px;
  padding: 52px 0 42px;
}
.footer .brand-name { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 15px 0 18px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  display: grid; place-items: center;
  color: #cbd5e1;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer-col strong { display: block; color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a {
  display: block; font-size: 13.5px; padding: 4px 0;
  transition: color 0.2s, transform 0.25s var(--ease);
}
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-col p { font-size: 13.5px; margin-bottom: 8px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 14px; border: 0;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(232, 11, 11, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--red-dark); }
.back-top svg { width: 19px; height: 19px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 13.5px;
  padding: 13px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  max-width: min(90vw, 440px); text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { background: var(--green-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .mini-1 { right: 0; }
  .mini-2 { left: 0; }
}

@media (max-width: 960px) {
  .section { padding: 56px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.1);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 11px 6px; font-size: 15px; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-slider { height: clamp(430px, 62vh, 560px); }
  .slider-arrow { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { max-width: 460px; margin-inline: auto; width: 100%; }

  .cards-3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .mv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .step-arrow { justify-self: center; transform: rotate(90deg); }

  .app-panel { grid-template-columns: 1fr; padding: 42px 28px; gap: 38px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 46px 0; }

  .hero-slider { height: clamp(470px, 78vh, 580px); }
  .slide-shade {
    background:
      linear-gradient(0deg, rgba(8, 12, 22, 0.85) 12%, rgba(8, 12, 22, 0.45) 55%, rgba(8, 12, 22, 0.18) 100%);
  }
  .slide-content { justify-content: flex-end; padding-bottom: 62px; }
  .slide-title { font-size: clamp(26px, 8vw, 34px); }
  .slide-actions .btn { padding: 11px 18px; }

  .marquee-group span { font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 10px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .app-panel { padding: 34px 20px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 34px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .back-top { right: 16px; bottom: 16px; }
  .page-hero { padding: 42px 0 38px; }
}

/* ============================================================
   Logo wordmark (SVG)
   ============================================================ */
.logo-svg {
  height: 44px;
  width: auto;
  display: block;
}
.footer .logo-svg {
  height: 56px;
  background: #fff;
  padding: 11px 14px;
  border-radius: 12px;
}
.preloader .logo-svg { height: 54px; }

/* ============================================================
   CMS dashboard showcase
   ============================================================ */
.cms-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cms-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--line);
}
.cms-topbar i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.cms-topbar i:nth-child(1) { background: #ff5f57; }
.cms-topbar i:nth-child(2) { background: #febc2e; }
.cms-topbar i:nth-child(3) { background: #28c840; }
.cms-topbar span {
  margin-left: 10px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 14px;
}
.cms-body {
  display: grid; grid-template-columns: 180px 1fr;
  min-height: 420px;
}
.cms-side {
  background: #0b1120;
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.cms-side .logo-svg {
  height: 36px;
  margin: 4px 6px 14px;
  background: #fff;
  padding: 7px 9px;
  border-radius: 9px;
}
.cms-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  color: #9aa5b5; font-size: 12.5px; font-weight: 600;
}
.cms-menu-item svg { width: 15px; height: 15px; flex: none; }
.cms-menu-item.is-active { background: rgba(232, 11, 11, 0.16); color: #fff; }
.cms-menu-item.is-active svg { color: #ff6b6b; }

.cms-main { padding: 18px; background: #fafbfc; }
.cms-main-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cms-main-head strong { font-size: 14.5px; color: var(--ink); }
.cms-main-head span {
  font-size: 11px; font-weight: 700; color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cms-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.cms-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px;
}
.cms-stat small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.cms-stat strong { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.cms-stat b { display: block; font-size: 10px; font-weight: 700; margin-top: 3px; }
.cms-stat .up { color: var(--green-dark); }
.cms-stat .down { color: var(--red); }

.cms-panels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.cms-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px;
}
.cms-panel > small {
  display: block; font-size: 11px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}
.cms-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 110px;
}
.cms-chart .bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #ff6b6b, var(--red));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.07s);
  min-height: 8px;
}
.cms-chart .bar.green { background: linear-gradient(180deg, #52e84c, var(--green-dark)); }
.reveal.visible .cms-chart .bar, .cms-chart.visible .bar { transform: scaleY(1); }
.cms-chart-labels {
  display: flex; gap: 8px; margin-top: 6px;
}
.cms-chart-labels span {
  flex: 1; text-align: center; font-size: 9.5px; color: var(--muted); font-weight: 600;
}

.cms-table { width: 100%; border-collapse: collapse; }
.cms-table td {
  padding: 8px 4px; font-size: 11.5px; border-bottom: 1px solid var(--bg-gray);
  color: var(--body);
}
.cms-table tr:last-child td { border-bottom: 0; }
.cms-table td:first-child { font-weight: 700; color: var(--ink); }
.badge {
  display: inline-block;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.badge-green { background: var(--green-soft); color: var(--green-dark); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber-dark); }
.badge-gray { background: #eef1f5; color: var(--muted); }

@media (max-width: 860px) {
  .cms-body { grid-template-columns: 1fr; }
  .cms-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cms-side .logo-svg { margin: 0 10px 0 4px; }
  .cms-menu-item { padding: 7px 9px; }
  .cms-cards { grid-template-columns: repeat(2, 1fr); }
  .cms-panels { grid-template-columns: 1fr; }
}

/* ============================================================
   Station map (live demo)
   ============================================================ */
/* full-viewport map shell
   position+z-index create a stacking context so the panel, popups
   and map controls can never paint above the fixed navbar (z:100) */
.map-shell {
  position: relative;
  z-index: 1;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--bg-gray);
  display: flex; flex-direction: column;
}

/* stats bar on top of the map */
.map-topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 22px; flex-wrap: wrap;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 600;
}
.topbar-title .crumbs { margin: 0 0 1px; font-size: 11.5px; }
.topbar-title h1 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.topbar-stats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.topbar-stats .map-stat {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
}
.topbar-stats .map-stat b { font-size: 14px; color: var(--ink); }
.topbar-stats .map-stat small { color: var(--muted); font-weight: 600; }

.map-area {
  position: relative;
  flex: 1;
  min-height: 0;
}
.map-area .station-map {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
}

/* floating station panel */
.map-panel {
  position: absolute;
  top: 16px; left: 16px; bottom: 16px;
  z-index: 500;
  width: 330px;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 16px 15px 12px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.map-panel.is-collapsed {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}
.list-count {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.panel-note {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); text-align: center;
}

/* panel toggle button */
.panel-toggle {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 499;
  width: 42px; height: 42px;
  border: 0; border-radius: 12px;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s, color 0.2s;
}
.panel-toggle.is-open { opacity: 1; pointer-events: auto; }
.panel-toggle:hover { background: var(--red); color: #fff; }
.panel-toggle svg { width: 20px; height: 20px; }

.live-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 800; color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(30, 213, 22, 0.3);
  padding: 7px 14px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.live-tag b { color: var(--ink); font-weight: 700; }
.map-stat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.map-stat b { color: var(--ink); font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.dot-gray { background: #b6bec9; }
.dot-amber { background: var(--amber); }
.dot-outline { background: #fff; border: 2.5px solid var(--green); }

.map-search {
  position: relative;
  margin-bottom: 12px;
}
.map-search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: #9aa3ad;
}
.map-search input {
  width: 100%;
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg-gray);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.map-search input:focus { background: #fff; border-color: var(--red); }

.map-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--body);
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.station-list {
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-right: 4px;
  flex: 1;
}
.station-list::-webkit-scrollbar { width: 6px; }
.station-list::-webkit-scrollbar-thumb { background: #d8dde5; border-radius: 3px; }

.station-card {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  background: var(--bg-gray);
  border: 1.5px solid transparent;
  border-radius: 13px;
  padding: 11px 12px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.station-card:hover { background: #fff; border-color: var(--line); transform: translateX(3px); }
.station-card.is-active { background: #fff; border-color: var(--red); }
.stn-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
}
.stn-dot.available { background: var(--green); box-shadow: 0 0 0 4px rgba(30, 213, 22, 0.18); }
.stn-dot.busy { background: var(--red); box-shadow: 0 0 0 4px rgba(232, 11, 11, 0.15); }
.stn-dot.partial { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 147, 15, 0.22); }
.stn-dot.faulted { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 147, 15, 0.22); }
.stn-dot.offline { background: #b6bec9; box-shadow: 0 0 0 4px rgba(182, 190, 201, 0.2); }
.stn-info { flex: 1; min-width: 0; }
.stn-info strong { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.stn-info small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stn-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag {
  font-style: normal;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 5px;
  white-space: nowrap;
}
.tag-dc { background: var(--red-soft); color: var(--red); }
.tag-ac { background: var(--green-soft); color: var(--green-dark); }
.tag-skeleton { background: #eef1f5; color: #aab3bd; }
.stn-free { text-align: center; flex: none; font-weight: 800; font-size: 14px; }
.stn-free small { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.stn-free.available { color: var(--green-dark); }
.stn-free.busy { color: var(--red); }
.stn-free.partial { color: var(--amber-dark); }
.stn-free.offline { color: #9aa3ad; }
.stn-empty { font-size: 13.5px; color: var(--muted); text-align: center; padding: 24px 0; }

.station-map {
  width: 100%;
  background: #e8ecef;
  position: relative;
  z-index: 1;
  font-family: var(--font);
}
.map-fallback {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.map-fallback.show { display: flex; }
.map-fallback svg { width: 44px; height: 44px; color: #c3c9d4; }

/* ============================================================
   Skeleton loaders
   ============================================================ */
@keyframes skel-shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}
.skel {
  background: linear-gradient(90deg, #eef1f5 25%, #e0e6ee 37%, #eef1f5 63%);
  background-size: 400px 100%;
  animation: skel-shimmer 1.3s linear infinite;
  border-radius: 6px;
}

/* skeleton station cards (while API loads) */
.skel-card { pointer-events: none; }
.skel-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.skel-card .stn-info { display: grid; gap: 6px; }
.skel-line { height: 10px; display: block; }
.skel-line.w70 { width: 70%; }
.skel-line.w50 { width: 50%; }
.skel-line.w35 { width: 35%; height: 8px; }
.skel-free { width: 34px; height: 30px; border-radius: 8px; flex: none; }

/* skeleton behind big images while they load */
.slide-bg,
.about-card-main > img,
.about-card-main > picture > img {
  background: linear-gradient(90deg, #e8ecf1 25%, #dde3ea 37%, #e8ecf1 63%);
  background-size: 400px 100%;
  animation: skel-shimmer 1.3s linear infinite;
}

/* QR image skeleton */
.qr-img-wrap {
  position: relative;
  width: 190px; height: 190px;
  margin: 0 auto 12px;
}
.qr-skel {
  position: absolute; inset: 0;
  border-radius: 10px;
}
.qr-img-wrap img {
  position: relative;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.qr-img-wrap img.loaded { opacity: 1; }

/* panel toolbar */
.panel-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.tool-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--bg-gray);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tool-btn svg { width: 16px; height: 16px; }
.tool-btn:hover { border-color: var(--ink); color: var(--ink); }
.tool-btn.is-active { background: var(--red-soft); border-color: rgba(232, 11, 11, 0.4); color: var(--red); }
.tool-btn.is-busy { opacity: 0.6; pointer-events: none; }
.tool-btn.is-busy svg { animation: bolt-pulse 1s ease-in-out infinite; }

/* cost calculator popover */
.calc-pop {
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  margin-bottom: 10px;
}
.calc-pop strong { display: block; font-size: 13px; color: var(--ink); margin-bottom: 9px; }
.calc-pop label {
  display: block;
  font-size: 11.5px; font-weight: 700; color: var(--body);
  margin-bottom: 8px;
}
.calc-pop input {
  width: 100%;
  margin-top: 4px;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  outline: none;
}
.calc-pop input:focus { border-color: var(--red); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-actions { display: flex; gap: 8px; margin: 4px 0 8px; }
.calc-actions .btn { flex: 1; justify-content: center; }
.calc-pop p { font-size: 10.5px; color: var(--muted); }

/* filter sub-rows */
.map-filters.sub { align-items: center; }
.f-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 2px;
}
.map-filters.sub .chip { padding: 4px 10px; font-size: 11px; }

/* card right side: star + free count */
.stn-side { display: flex; align-items: center; gap: 6px; flex: none; }
.stn-fav {
  border: 0; background: transparent; cursor: pointer;
  width: 26px; height: 26px; padding: 3px;
  color: #c9d0d9;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.stn-fav svg { width: 100%; height: 100%; fill: currentColor; }
.stn-fav:hover { color: #f59e0b; transform: scale(1.15); }
.stn-fav.is-fav { color: #f59e0b; }
.stn-dist { color: var(--green-dark); font-weight: 800; }

/* popup extras */
.pp-head { display: flex; align-items: flex-start; gap: 8px; }
.pp-head > div { flex: 1; min-width: 0; }
.pp-fav {
  border: 0; background: transparent; cursor: pointer;
  width: 24px; height: 24px; padding: 2px; flex: none;
  color: #c9d0d9;
  transition: color 0.2s;
}
.pp-fav svg { width: 100%; height: 100%; fill: currentColor; }
.pp-fav.is-fav, .pp-fav:hover { color: #f59e0b; }
.pp-est {
  background: var(--green-soft);
  border: 1px solid rgba(30, 213, 22, 0.3);
  color: var(--green-dark);
  font-size: 11px; font-weight: 700;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.stn-popup-actions { display: flex; gap: 6px; }
.stn-popup-actions .stn-popup-btn { flex: 1; }
.pp-ico {
  width: 34px; height: 34px; flex: none;
  border: 1.5px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pp-ico svg { width: 16px; height: 16px; }
.pp-ico:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pp-ico.is-on { background: var(--green-soft); border-color: rgba(30, 213, 22, 0.45); color: var(--green-dark); }

/* cluster icon */
.cluster-icon-wrap { background: transparent; border: 0; }
.cluster-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5252, var(--red-dark));
  color: #fff;
  font-family: var(--font);
  font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
  border: 3.5px solid #fff;
  box-shadow: 0 8px 20px rgba(232, 11, 11, 0.4);
}

/* QR modal */
.qr-modal {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.qr-modal[hidden] { display: none; }
.qr-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 28px 30px 22px;
  text-align: center;
  max-width: 300px;
}
.qr-box strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.qr-tabs { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.qr-box img { margin: 0 auto 12px; border-radius: 10px; }
.qr-box p { font-size: 12px; color: var(--muted); }
.qr-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  border: 0; border-radius: 9px;
  background: var(--bg-gray); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.qr-close svg { width: 15px; height: 15px; }
.qr-close:hover { background: var(--red); color: #fff; }

/* markers */
.stn-marker-wrap { background: transparent; border: 0; }
.stn-pin {
  width: 38px; height: 38px;
  border-radius: 50% 50% 50% 9px;
  display: grid; place-items: center;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.32);
  position: relative;
  transition: transform 0.2s var(--ease);
}
.stn-pin:hover { transform: scale(1.12); }
.stn-pin svg { width: 18px; height: 18px; }

/* live gun count rendered on the pin (free / total) */
.stn-pin .pin-count {
  display: flex; align-items: baseline; justify-content: center;
  font-family: var(--font); line-height: 1;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}
.stn-pin .pin-count b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.03em; }
.stn-pin .pin-count i { font-style: normal; font-size: 9.5px; font-weight: 700; opacity: 0.9; }
.stn-pin.is-wide .pin-count b { font-size: 12px; }
.stn-pin.is-wide .pin-count i { font-size: 8.5px; }
.stn-pin .pin-off {
  font-family: var(--font); font-size: 16px; font-weight: 800; line-height: 1; opacity: 0.9;
}
.stn-pin.available { background: linear-gradient(135deg, #2ee825, var(--green-dark)); }
.stn-pin.available::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2.5px solid var(--green);
  animation: ping 1.8s ease-out infinite;
}
/* darker than the dot colour so the white gun count clears 3:1 on the pin */
.stn-pin.partial { background: linear-gradient(135deg, #d99100, #a86800); }
.stn-pin.busy { background: linear-gradient(135deg, #ff5252, var(--red-dark)); }
.stn-pin.offline { background: linear-gradient(135deg, #b6bec9, #8b95a1); }

/* user location marker */
.user-marker-wrap { background: transparent; border: 0; }
.user-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2f6fed;
  border: 3.5px solid #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.5);
  position: relative;
}
.user-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2.5px solid #2f6fed;
  animation: ping 2s ease-out infinite;
}

/* ---- branded Leaflet controls ---- */
.leaflet-bar {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-bar a {
  width: 38px !important; height: 38px !important; line-height: 38px !important;
  color: var(--ink) !important;
  font-size: 18px !important;
  border-bottom: 1px solid var(--line) !important;
  transition: background 0.2s, color 0.2s;
}
.leaflet-bar a:last-child { border-bottom: 0 !important; }
.leaflet-bar a:hover { background: var(--red) !important; color: #fff !important; }

.map-ui { display: flex; flex-direction: column; gap: 8px; }
.map-ui button {
  width: 40px; height: 40px;
  border: 0; border-radius: 12px;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.map-ui button:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.map-ui button svg { width: 19px; height: 19px; }

.map-legend {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 15px;
  box-shadow: var(--shadow-md);
  font-family: var(--font);
  font-size: 12px; font-weight: 700; color: var(--body);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .dot { width: 9px; height: 9px; }

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 8px 0 0 0;
  font-family: var(--font) !important;
}

/* dark map mode */
.station-map.map-dark { background: #14181d; }
.map-dark .map-legend {
  background: rgba(20, 24, 29, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.map-dark .map-ui button { background: #1c2128; color: #e5e9ef; }
.map-dark .map-ui button:hover { background: var(--red); color: #fff; }
.map-dark .leaflet-bar a {
  background: #1c2128 !important;
  color: #e5e9ef !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
.map-dark .leaflet-bar a:hover { background: var(--red) !important; color: #fff !important; }
.map-dark .leaflet-control-attribution {
  background: rgba(20, 24, 29, 0.75) !important;
  color: #8b95a1 !important;
}

/* popup */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font) !important; }
.stn-popup { min-width: 190px; }
.stn-popup strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.stn-popup small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.stn-popup-badges { display: flex; gap: 6px; margin-bottom: 9px; flex-wrap: wrap; }
.stn-popup-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--body);
  margin-bottom: 10px;
}
.stn-popup-meta b { color: var(--ink); }
.stn-popup-loading {
  font-size: 11.5px; color: var(--muted);
  padding: 4px 0 10px;
}
.pp-conns {
  display: grid; gap: 6px;
  margin-bottom: 10px;
  max-height: 130px; overflow-y: auto;
}
.pp-conn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11.5px; color: var(--body);
}
.pp-conn .stn-dot { width: 8px; height: 8px; box-shadow: none; flex: none; }
.pp-conn-name { flex: 1; font-weight: 600; }
.pp-kind {
  font-size: 9.5px; font-weight: 800;
  padding: 1px 5px; border-radius: 4px;
}
.pp-kind.dc { background: var(--red-soft); color: var(--red); }
.pp-kind.ac { background: var(--green-soft); color: var(--green-dark); }
.pp-conn-meta { display: flex; align-items: center; gap: 7px; flex: none; }
.pp-conn-meta em {
  font-style: normal; font-size: 10px; font-weight: 700;
}
.pp-conn-meta em.available { color: var(--green-dark); }
.pp-conn-meta em.busy { color: var(--red); }
.pp-conn-meta em.faulted { color: var(--amber-dark); }
.pp-conn-meta em.offline { color: #9aa3ad; }
.pp-conn-meta b { color: var(--ink); font-size: 11px; }
.badge-dark { background: #eef1f5; color: var(--ink); }
.stn-popup-btn {
  display: block; text-align: center;
  background: var(--red); color: #fff !important;
  font-weight: 700; font-size: 12.5px;
  padding: 8px; border-radius: 9px;
}
.stn-popup-btn:hover { background: var(--red-dark); }

/* ---------- Mobile station finder: full-screen map + native bottom sheet ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sheet-grab { display: none; }

@media (max-width: 900px) {
  /* the map is a full-height app screen, not a page section */
  .map-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin-top: 0;
    padding-top: var(--nav-h);
  }

  /* condensed header: one title line + a sideways-scrolling stat rail */
  .map-topbar {
    flex-direction: column; align-items: stretch;
    flex-wrap: nowrap; gap: 8px;
    padding: 9px 14px 10px;
  }
  .topbar-title .crumbs { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px; padding: 0 14px;
    scroll-snap-type: x proximity;
  }
  .topbar-stats::-webkit-scrollbar { display: none; }
  .topbar-stats > * { flex: none; scroll-snap-align: start; }
  .topbar-stats .map-stat { padding: 6px 11px; font-size: 11.5px; }
  .topbar-stats .map-stat b { font-size: 13px; }

  .map-area { flex: 1; min-height: 0; }
  /* map stops above the peeked sheet so the tile attribution stays visible */
  .map-area .station-map { position: absolute; inset: 0 0 30% 0; height: auto; width: auto; }

  /* ---- draggable bottom sheet ---- */
  .map-panel {
    position: absolute;
    inset: auto 0 0 0;
    width: auto; max-height: none;
    height: 92%;
    margin: 0;
    padding: 0 14px calc(6px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.16);
    transform: translateY(var(--sheet-y, 46%));
    transition: transform 0.42s var(--ease);
    will-change: transform;
    overscroll-behavior: contain;
  }
  .map-panel.is-dragging { transition: none; }
  /* the desktop collapse toggle has no meaning on a sheet */
  .map-panel.is-collapsed {
    transform: translateY(var(--sheet-y, 46%));
    opacity: 1; pointer-events: auto;
  }

  .sheet-grab {
    display: block; flex: none;
    width: calc(100% + 28px); margin: 0 -14px;
    padding: 11px 0 9px;
    background: none; border: 0;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  .sheet-grab-bar {
    display: block; margin: 0 auto;
    width: 42px; height: 5px; border-radius: 999px;
    background: #d4d9e1;
    transition: background 0.2s, width 0.2s var(--ease);
  }
  .map-panel.is-dragging .sheet-grab-bar { background: #a9b2be; width: 54px; }

  .panel-toggle { display: none; }

  /* comfortable touch targets; 16px input stops iOS zoom-on-focus */
  .map-search input { height: 46px; font-size: 16px; }
  .tool-btn { min-height: 44px; font-size: 13px; }
  .chip { padding: 9px 15px; font-size: 13px; }
  .map-filters.sub .chip { padding: 7px 13px; font-size: 12px; }
  .station-card { padding: 13px 12px; border-radius: 15px; }
  .station-card:hover { transform: none; background: var(--bg-gray); border-color: transparent; }
  .station-card:active { background: #eaeef3; transform: scale(0.985); }
  .stn-fav { width: 30px; height: 30px; padding: 5px; }

  /* filter rows scroll sideways instead of stacking three rows deep */
  .map-filters {
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -14px 9px; padding: 0 14px;
    scroll-snap-type: x proximity;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .map-filters > * { flex: none; }

  .station-list {
    flex: 1; min-height: 0; max-height: none;
    padding-right: 0;
    -webkit-overflow-scrolling: touch;
  }
  .list-count { margin-bottom: 7px; }
  .panel-note { margin-top: 8px; padding-top: 8px; }

  /* the header pills already carry the legend */
  .map-legend { display: none; }
  .leaflet-control-attribution { font-size: 9px !important; }
}

@media (max-width: 480px) {
  .topbar-title h1 { font-size: 16px; }
  .map-panel { padding: 0 12px calc(6px + env(safe-area-inset-bottom)); }
  .sheet-grab { width: calc(100% + 24px); margin: 0 -12px; }
  .map-filters { margin: 0 -12px 9px; padding: 0 12px; }
  .topbar-stats { margin: 0 -12px; padding: 0 12px; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal, .slide-content > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Legal pages (privacy / terms / refund) ---------- */
.legal { padding: 60px 0 76px; }
.legal-wrap { max-width: 860px; margin: 0 auto; }

.legal-updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-dark);
  border: 1px solid rgba(30, 213, 22, 0.28);
  border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 26px;
}
.legal-updated svg { width: 15px; height: 15px; }

.legal-intro p {
  font-size: 15px; line-height: 1.75; color: var(--body); margin-bottom: 14px;
}

.legal-toc {
  background: var(--bg-gray); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0 40px;
}
.legal-toc strong {
  display: block; color: var(--ink); font-size: 14px;
  font-weight: 800; margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 30px;
}
.legal-toc li { break-inside: avoid; margin-bottom: 9px; }
.legal-toc a {
  font-size: 13.5px; color: var(--body); font-weight: 600;
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--red); }

.legal-block { margin-bottom: 38px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-block h2 {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin-bottom: 14px; padding-left: 14px;
  border-left: 3px solid var(--red); line-height: 1.35;
}
.legal-block p {
  font-size: 14.5px; line-height: 1.8; color: var(--body); margin-bottom: 14px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--red); font-weight: 600; }
.legal-block a:hover { text-decoration: underline; }

.legal-list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.legal-list li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; line-height: 1.75; color: var(--body);
}
.legal-list li::before {
  content: ""; position: absolute; left: 8px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.legal-list strong { color: var(--ink); font-weight: 700; }

.legal-list-num { counter-reset: lgl; }
.legal-list-num li { padding-left: 32px; }
.legal-list-num li::before {
  counter-increment: lgl; content: counter(lgl) ".";
  left: 0; top: 0; width: auto; height: auto; border-radius: 0;
  background: none; color: var(--red); font-weight: 800; font-size: 13.5px;
}

.legal-note {
  background: var(--red-soft); border: 1px solid rgba(232, 11, 11, 0.2);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 18px;
}
.legal-note p {
  margin: 0; font-size: 13.5px; font-weight: 700;
  color: var(--red-dark); line-height: 1.7;
}

.legal-contact {
  background: var(--ink); border-radius: var(--radius-lg);
  padding: 30px 32px; margin-top: 46px; color: #fff;
}
.legal-contact strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.legal-contact p { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.72); margin-bottom: 18px; }
.legal-contact-rows { display: grid; gap: 10px; }
.legal-contact-rows a, .legal-contact-rows span {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, 0.9); font-weight: 600;
}
.legal-contact-rows a:hover { color: var(--green); }
.legal-contact-rows svg { width: 17px; height: 17px; flex: none; color: var(--green); }

/* legal links in the footer bottom bar */
.footer-legal { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; padding: 2px 0; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-legal span { opacity: 0.34; font-size: 12px; }

@media (max-width: 720px) {
  .legal { padding: 42px 0 54px; }
  .legal-toc { padding: 18px 18px; margin: 24px 0 32px; }
  .legal-toc ol { columns: 1; }
  .legal-block { margin-bottom: 30px; }
  .legal-block h2 { font-size: 16.5px; }
  .legal-contact { padding: 24px 22px; }
}

/* ---------- SNAK4EV wordmark in running text ---------- */
.s4 { white-space: nowrap; }
.s4-a { color: var(--logo-red); }
.s4-b { color: var(--logo-green); }

/* dark surfaces: lift both tints so the wordmark stays legible */
.footer .s4-a,
.cta-band .s4-a,
.legal-contact .s4-a { color: var(--logo-red-light); }
.footer .s4-b,
.cta-band .s4-b,
.legal-contact .s4-b { color: var(--logo-green-light); }
