/* ==========================================================================
   ChargeGrid — Custom styles
   Tailwind handles layout/utilities; this file holds the 3D kiosk mockup,
   brand effects and motion that utilities can't express cleanly.
   ========================================================================== */

/* Self-hosted variable fonts, latin subset only. Equivalent of next/font swap. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink-900: #1E293B;
  --ink-800: #334155;
  --volt: #0D9488;
  --volt-deep: #0F766E;
  --canvas: #F8FAFC;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; color-scheme: light; }
html.dark { color-scheme: dark; }
[hidden] { display: none !important; } /* must beat Tailwind display utilities on tab panels */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* --------------------------------------------------------------------------
   Icons (injected by main.js from data-icon attributes)
   -------------------------------------------------------------------------- */
[data-icon] { display: inline-flex; flex-shrink: 0; }
[data-icon] svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Brand lockup — grid + lightning isotype + ChargeGrid wordmark
   -------------------------------------------------------------------------- */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: visible;
  color: #0D9488;
  transition: color 0.2s ease;
}
@media (min-width: 1024px) {
  .logo-mark { width: 40px; height: 40px; }
}
.logo-wordmark {
  font-family: "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #0F172A;
  transition: color 0.2s ease;
}
.logo-wordmark > span { color: #0D9488; }
html.dark .logo-mark { color: #14B8A6; }
html.dark .logo-wordmark { color: #F8FAFC; }
html.dark .logo-wordmark > span { color: #14B8A6; }
footer .logo-mark { color: #14B8A6; }
footer .logo-wordmark { color: #FFFFFF; }
footer .logo-wordmark > span { color: #14B8A6; }

/* --------------------------------------------------------------------------
   Backgrounds & brand effects
   -------------------------------------------------------------------------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
html.dark .bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
}

.glow-orb { display: none; }

.text-gradient { color: #0F766E; }
html.dark .text-gradient { color: #14B8A6; }

.text-outline {
  -webkit-text-stroke: 1.5px rgba(15, 23, 42, 0.14);
  color: transparent;
}
html.dark .text-outline {
  -webkit-text-stroke: 1.5px rgba(248, 250, 252, 0.12);
}

/* Primary CTA — solid muted teal */
.btn-volt {
  background: #0F766E;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-volt:hover { background: #115E59; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); }
html.dark .btn-volt { background: #0D9488; }
html.dark .btn-volt:hover { background: #0F766E; }

/* Nav — solid canvas. A blur here resampled the 3D station on every scroll. */
#siteNav {
  background: #F8FAFC;
  border-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
#siteNav.is-scrolled {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
html.dark #siteNav,
html.dark #siteNav.is-scrolled {
  background: #0F172A;
}
html.dark #siteNav.is-scrolled { border-color: #334155; }

/* Theme toggle — sun (dark mode) / moon (light mode) */
.theme-icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-moon { opacity: 1; transform: rotate(0) scale(1); }
html.dark .theme-sun { opacity: 1; transform: rotate(0) scale(1); }
html.dark .theme-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-icon svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Scroll reveal ("Framer Motion"-style fade-up)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   3D KIOSK MOCKUP — 8-Slot Desktop Smart Charging Kiosk
   Built from real CSS 3D volumes: every part is a .box whose faces are
   folded into place, so rotation reveals true side/top panels.
   ========================================================================== */
@property --pull { syntax: "<length>"; inherits: true; initial-value: 0px; }

.kiosk-scene {
  --kw: 220px; /* cabinet width — every other dimension derives from it */
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2.5rem 3.5rem 5rem;
  perspective: 1500px;
  perspective-origin: 50% 12%;
}
@media (min-width: 640px)  { .kiosk-scene { --kw: 250px; } }
@media (min-width: 1024px) { .kiosk-scene { --kw: 268px; } }
@media (min-width: 1280px) { .kiosk-scene { --kw: 292px; } }

.kiosk {
  --rx: -7deg;
  --ry: -22deg;
  --kd: calc(var(--kw) * 0.62);   /* cabinet depth */
  --sw: calc(var(--kw) * 1.1);    /* display width */
  --sh: calc(var(--sw) * 0.62);   /* display height (16:10 panel + bezel) */
  --mount-h: calc(var(--kw) * 0.09);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--sw);
  transform-style: preserve-3d;
  transform-origin: 50% 64%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}

/* --- Generic 3D box: the in-flow .front sizes the box, the rest fold around it.
       Each box sets --d (depth). ---------------------------------------------- */
.box { position: relative; transform-style: preserve-3d; }
.box > .face { position: absolute; display: block; }
.box > .face.front  { position: relative; transform: translateZ(calc(var(--d) / 2)); }
.box > .face.back   { inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.box > .face.left   { top: 0; bottom: 0; left: 0;  width: var(--d); transform-origin: left center;  transform: translateZ(calc(var(--d) / -2)) rotateY(-90deg); }
.box > .face.right  { top: 0; bottom: 0; right: 0; width: var(--d); transform-origin: right center; transform: translateZ(calc(var(--d) / -2)) rotateY(90deg); }
.box > .face.top    { left: 0; right: 0; top: 0;    height: var(--d); transform-origin: center top;    transform: translateZ(calc(var(--d) / -2)) rotateX(90deg); }
.box > .face.bottom { left: 0; right: 0; bottom: 0; height: var(--d); transform-origin: center bottom; transform: translateZ(calc(var(--d) / -2)) rotateX(-90deg); }

/* --- Upper display unit ------------------------------------------------- */
.kiosk-head {
  position: relative;
  width: var(--sw);
  height: calc(var(--sh) * 0.98 + var(--mount-h));
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--kd) * -0.14));
}

/* Pedestal block bolted to the cabinet top */
.kiosk-mount {
  --d: calc(var(--kw) * 0.2);
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(var(--kw) * 0.4);
  margin-left: calc(var(--kw) * -0.2);
}
.kiosk-mount > .face.front { height: var(--mount-h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #F1F5F9, #CBD5E1); box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -6px 8px rgba(15, 23, 42, 0.18); }
.kiosk-mount > .face.right,
.kiosk-mount > .face.left  { background: linear-gradient(90deg, #CBD5E1, #94A3B8); }
.kiosk-mount > .face.top   { background: #E2E8F0; }
.kiosk-mount > .face.back  { background: #A8B3C1; }

/* Brushed-metal hinge barrel the display pivots on */
.kiosk-hinge {
  --d: 12px;
  position: absolute;
  bottom: calc(var(--mount-h) - 7px);
  left: 50%;
  width: calc(var(--kw) * 0.58);
  margin-left: calc(var(--kw) * -0.29);
}
.kiosk-hinge > .face { background: linear-gradient(180deg, #64748B 0%, #F8FAFC 38%, #CBD5E1 60%, #475569 100%); }
.kiosk-hinge > .face.front { height: 12px; border-radius: 6px; }
.kiosk-hinge > .face.left,
.kiosk-hinge > .face.right { border-radius: 6px; background: radial-gradient(circle, #E2E8F0 30%, #64748B 100%); }

/* The 10" panel, leaning back on the hinge */
.kiosk-display {
  --d: 12px;
  position: absolute;
  left: 0;
  bottom: var(--mount-h);
  width: var(--sw);
  transform-origin: 50% 100%;
  transform: rotateX(13deg);
}
.kiosk-display > .face.front { height: var(--sh); }
.kiosk-display > .face.back {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #F1F5F9, #CBD5E1);
}
.display-logo { font: 700 11px/1 "Space Grotesk", sans-serif; letter-spacing: 0.1em; color: #94A3B8; }
.kiosk-display > .face.left,
.kiosk-display > .face.right { top: 8px; bottom: 8px; background: linear-gradient(90deg, #E2E8F0, #A3AFBE); }
.kiosk-display > .face.top    { left: 8px; right: 8px; background: linear-gradient(180deg, #CBD5E1, #F8FAFC); }
.kiosk-display > .face.bottom { left: 8px; right: 8px; background: #94A3B8; }

.kiosk-screen {
  padding: 7px;
  border-radius: 14px;
  background: #04070D;
  box-shadow:
    inset 0 0 0 1.5px #DCE3EA,   /* silver frame */
    inset 0 0 0 3px #0B1220,
    inset 0 1px 0 3px rgba(255, 255, 255, 0.08);
}
.screen-cam {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 9999px;
  background: #334155;
  box-shadow: 0 0 0 1px #0F172A;
}
.screen-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 33%;
  height: 100%;
  overflow: hidden;
  border-radius: 7px;
  color: #FFFFFF;
}
.screen-ad {
  position: relative;
  overflow: hidden;
  background: #0F766E;
}
.screen-ad::before { /* LCD sub-pixel scanlines */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.screen-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: #1E293B;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.screen-scan { font-size: 7.5px; font-weight: 700; line-height: 1.15; text-align: center; letter-spacing: 0.04em; color: #CBD5E1; }
.screen-low {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 6.5px;
  font-weight: 700;
  color: #0F172A;
  background: #FFFFFF;
}
.screen-low i { width: 9px; height: 5px; border: 1px solid #F43F5E; border-radius: 1.5px; background: linear-gradient(90deg, #F43F5E 25%, transparent 25%); }
.kiosk-qr {
  width: 76%;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 5px;
  background: #FFFFFF;
}

/* LCD glass: fixed specular highlight + a sheen band that slides with the tilt */
.screen-glass {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 24%, transparent 38%),
    linear-gradient(118deg,
      transparent calc(54% + var(--glare-shift, 0%)),
      rgba(255, 255, 255, 0.11) calc(58% + var(--glare-shift, 0%)),
      transparent calc(64% + var(--glare-shift, 0%))),
    linear-gradient(180deg, transparent 70%, rgba(2, 6, 23, 0.25));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.screen-hud {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.screen-hud .chip {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.45);
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #F43F5E;
}

/* Static DOOH frame. A crossfade inside preserve-3d repainted the whole station. */
.ad-slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 10px 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.ad-slide .ad-tag {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 9999px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
}
.ad-slide .ad-title { font-size: calc(var(--kw) * 0.056); line-height: 1.05; font-weight: 700; }
.ad-slide .ad-sub   { margin-top: 3px; font-size: 7.5px; opacity: 0.85; }
.ad-slide .ad-art {
  position: absolute;
  top: 16px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15) 60%, transparent 70%);
}

/* --- Lower main cabinet — matte white fire-retardant ABS ----------------- */
.kiosk-cabinet { --d: var(--kd); width: var(--kw); }

/* Key light comes from the upper-left front: front brightest, right side
   falls off toward the back, top catches a soft sheen. */
.cab-front {
  transform-style: preserve-3d;
  padding: calc(var(--kw) * 0.045);
  border-radius: 14px;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(172deg, #FFFFFF 0%, #F3F6F9 48%, #E1E7EE 100%);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.45),   /* metallic edge */
    inset 1.5px 1.5px 0 #FFFFFF,
    inset -2px 0 0 rgba(148, 163, 184, 0.35),
    inset 0 -14px 22px -10px rgba(15, 23, 42, 0.14);
}
.kiosk-cabinet > .face.right {
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #E8EDF2 0%, #D3DAE2 40%, #B8C2CD 100%);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(148, 163, 184, 0.35), inset 0 -18px 24px -12px rgba(15, 23, 42, 0.2);
}
.kiosk-cabinet > .face.left {
  border-radius: 10px 0 0 10px;
  background: linear-gradient(90deg, #AEB9C5, #D9E0E7);
}
.kiosk-cabinet > .face.top {
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #DEE4EB 0%, #F4F7FA 70%, #FFFFFF 100%);
  box-shadow: inset 0 -2px 0 #FFFFFF, inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}
.kiosk-cabinet > .face.back { border-radius: 14px; background: #C3CCD6; }
.kiosk-cabinet > .face.bottom {
  background: #64748B;
  box-shadow: 0 0 14px 6px rgba(15, 23, 42, 0.18);
}

/* Floor plane under the cabinet — soft slate contact shadow on the light canvas. */
.kiosk-ground {
  position: absolute;
  bottom: 0;
  left: -55%;
  width: 210%;
  height: calc(var(--kd) * 2.4);
  transform-origin: center bottom;
  transform: translateY(2px) translateZ(calc(var(--kd) * -1.2)) rotateX(-90deg);
  background:
    radial-gradient(closest-side at 51% 50%, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.08) 50%, transparent 68%);
  pointer-events: none;
}

/* Right side panel details */
.side-card {
  position: absolute;
  top: 7%;
  left: 18%;
  width: 34%;
  height: 4px;
  border-radius: 3px;
  background: #334155;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.7);
}
.side-seam {
  position: absolute;
  top: var(--y);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.45), rgba(255, 255, 255, 0.8));
}
.side-vent {
  position: absolute;
  bottom: 7%;
  left: 30%;
  width: 40%;
  height: 16px;
  background-image: radial-gradient(circle, rgba(71, 85, 105, 0.7) 1px, transparent 1.4px);
  background-size: 5px 5px;
}

/* Top surface: contactless pay pad + accepted cards */
.top-nfc {
  position: absolute;
  top: 66%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40%;
  height: 24%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  color: #64748B;
  background: linear-gradient(180deg, #E2E8F0, #F1F5F9);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.22), 0 1px 0 #FFFFFF;
}
.top-cards { position: absolute; top: 62%; left: 7%; display: flex; gap: 3px; }
.top-cards i { width: 13px; height: 8px; border-radius: 2px; background: #1D4ED8; }
.top-cards i + i { background: linear-gradient(90deg, #EF4444 50%, #F59E0B 50%); }

/* Glossy black brand plate */
.cab-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--kw) * 0.24);
  padding: 0 14px;
  overflow: hidden;
  border-radius: 9999px;
  background: #1E293B;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -6px 12px rgba(0, 0, 0, 0.55);
}
.cab-brand::after { /* acrylic gloss */
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 9999px 9999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.chev {
  width: 9px;
  height: 9px;
  border: solid rgba(255, 255, 255, 0.55);
  border-width: 1.5px 1.5px 0 0;
}
.chev.l { transform: rotate(-135deg); }
.chev.r { transform: rotate(45deg); }
.kiosk-avail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 7.5px;
  font-weight: 700;
  color: #5EEAD4;
  background: rgba(13, 148, 136, 0.22);
}
.kiosk-avail::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--volt);
  box-shadow: none;
}

/* --- 8 charging slots (2 columns × 4) ------------------------------------ */
.kiosk-slots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 9px;
  margin-top: 9px;
  padding: 10px 13px;
  border-radius: 16px;
  transform-style: preserve-3d;
  /* seam between the two stacked 4-slot modules */
  background:
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(148, 163, 184, 0.6) calc(50% - 1px), rgba(148, 163, 184, 0.6) 50%, #FFFFFF 50%, #FFFFFF calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #EEF2F6, #E2E8F0);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.12), inset 0 -1px 0 #FFFFFF;
}
/* Emerald light-guide rails along both outer edges */
.kiosk-slots::before,
.kiosk-slots::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: #0D9488;
  opacity: 0.85;
}
.kiosk-slots::before { left: 4px; }
.kiosk-slots::after  { right: 4px; }

.slot {
  --led: #0D9488;
  --led-glow: rgba(13, 148, 136, 0.22);
  position: relative;
  height: calc(var(--kw) * 0.148);
  border-radius: 13px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: --pull 0.8s var(--ease-out-expo), transform 0.2s ease;
  /* graphite housing with ambient occlusion so it reads as a deep cavity */
  background: radial-gradient(130% 150% at 50% 120%, #1E293B 0%, #0B1220 50%, #000000 100%);
  box-shadow:
    inset 0 8px 12px rgba(0, 0, 0, 0.95),
    inset 0 -3px 6px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 -1px 0 rgba(100, 116, 139, 0.35),
    0 0 10px -4px var(--led-glow);
}
.slot:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.slot:active { transform: scale(0.97); }

.slot-port { /* charging tongue at the back of the cavity, visible when empty */
  position: absolute;
  top: 50%;
  left: 38%;
  width: 18%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: #475569;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}

/* The power bank — an extruded body (stacked layers) + front face, pushed
   out along Z by --pull */
.slot .bank {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 6px;
  right: 20px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.bank-layer,
.bank-face {
  position: absolute;
  inset: 0;
  border-radius: 9px;
}
.bank-layer {
  transform: translateZ(calc(var(--pull) * var(--k)));
  background: #1E293B;
}
.bank-face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateZ(calc(var(--pull) + 0.5px));
  background: linear-gradient(180deg, #2B3648 0%, #111827 55%, #0B1220 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -4px 8px rgba(0, 0, 0, 0.5);
}
.bank-logo {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 9999px;
  color: #0D9488;
  box-shadow: inset 0 0 0 1.2px #0D9488;
}
.bank-logo svg { width: 8px; height: 8px; }
.bank-level { display: flex; gap: 2px; }
.bank-level i {
  display: block;
  width: 4px;
  height: 9px;
  border-radius: 1.5px;
  background: var(--led);
  box-shadow: 0 0 5px var(--led);
}

.slot:hover               { --pull: 7px; }
.slot.is-ejected          { --pull: calc(var(--kw) * 0.1); }

/* Status LED bar */
.slot .led {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 4px;
  height: 48%;
  border-radius: 4px;
  transform: translateY(-50%);
  background: var(--led);
  box-shadow: 0 0 4px var(--led);
}

.slot[data-state="charging"]      { --led: #3B82F6; --led-glow: rgba(59, 130, 246, 0.22); }
.slot[data-state="charging"] .bank-level i { opacity: 0.28; }
.slot[data-state="charging"] .bank-level i:nth-child(-n+2) { opacity: 1; }
.slot[data-state="empty"]         { --led: #475569; --led-glow: transparent; --pull: calc(var(--kw) * 0.35); }
.slot[data-state="empty"] .led    { box-shadow: none; opacity: 0.6; }
.slot[data-state="empty"] .bank > * { opacity: 0; }

.kiosk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 4px 0;
  font-size: calc(var(--kw) * 0.024);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #64748B;
}
.grille {
  flex-shrink: 0;
  width: 26px;
  height: 8px;
  background-image: radial-gradient(circle, #94A3B8 1px, transparent 1.3px);
  background-size: 4px 4px;
}

/* 2D energy halo on the hero grid, behind the 3D floor shadow */
.kiosk-floor {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: calc(var(--kw) * 1.9);
  height: 70px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.05) 48%, transparent 72%);
}

/* Floating glass badges — 2D overlays on the scene, always in front of the 3D kiosk */
.kiosk-badge {
  position: absolute;
  z-index: 20;
  pointer-events: none;
}
.kiosk-badge.b1 { top: 6%;  left: 0; }
.kiosk-badge.b2 { top: 38%; right: 0; }
.kiosk-badge.b3 { bottom: 12%; left: 0.25rem; }
.badge-glass {
  background: #FFFFFF;
  box-shadow:
    0 4px 16px -4px rgba(15, 23, 42, 0.12),
    0 0 0 1px #E2E8F0;
}
html.dark .badge-glass {
  background: #1E293B;
  box-shadow:
    0 4px 16px -4px rgba(0, 0, 0, 0.4),
    0 0 0 1px #334155;
}
@media (max-width: 639px) {
  .kiosk-badge.b1 { top: 2%; left: 0; }
  .kiosk-badge.b2 { top: 40%; right: 0; }
  .kiosk-badge.b3 { bottom: 8%; left: 0; }
  .kiosk-badge > div { transform-origin: center; scale: 0.82; }
}

/* ==========================================================================
   Product visual — 5,000 mAh power bank (Specs section)
   ========================================================================== */
.pb-stage {
  width: min(100%, 420px);
  margin: 0;
  min-height: 380px;
}
@media (min-width: 640px) {
  .pb-stage { min-height: 450px; }
}
@media (min-width: 1024px) {
  .pb-stage { min-height: 520px; }
}

/* Emerald halo behind the battery */
.pb-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 90%;
  height: 78%;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.1), transparent 70%);
  filter: blur(32px);
  animation: floorPulse 8s ease-in-out infinite;
}
.pb-floor {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 55%;
  height: 26px;
  transform: translateX(-42%);
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.35), transparent 70%);
  filter: blur(8px);
}

.pb-wrap { animation: kioskFloat 8s ease-in-out infinite; }
.pb-stage.is-fallback .pb-wrap { visibility: hidden; }
.asset-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  margin: 0;
}
.pb-stage.is-fallback .asset-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Component states
   ========================================================================== */
/* Vertical tabs */
.v-tab[aria-selected="true"] {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.35);
}
.v-tab[aria-selected="true"] .v-tab-icon { background: #0D9488; color: #FFFFFF; }
.v-tab[aria-selected="true"] .v-tab-desc { color: #94A3B8; }
html.dark .v-tab[aria-selected="true"] {
  background: #0F172A;
  border-color: #14B8A6;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}

.tab-panel-enter { animation: panelIn 0.6s var(--ease-out-expo) both; }

/* Model switcher indicator */
#modelIndicator { transition: transform 0.5s var(--ease-out-expo); }
[data-active-model="b"] #modelIndicator { transform: translateX(100%); }
.model-btn[aria-pressed="true"] { color: #FFFFFF; }

/* Range inputs */
.range {
  -webkit-appearance: none;
          appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0D9488 var(--fill, 50%), #CBD5E1 var(--fill, 50%));
  outline: none;
}
html.dark .range {
  background: linear-gradient(90deg, #14B8A6 var(--fill, 50%), #334155 var(--fill, 50%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 4px solid #0D9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 4px solid #0D9488;
  cursor: pointer;
}
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.2); }

/* Form validation */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field.has-error input,
.field.has-error select,
.field.has-error .phone-prefix { border-color: #F43F5E; background: #FFF1F2; }
html.dark .field.has-error input,
html.dark .field.has-error select,
html.dark .field.has-error .phone-prefix { background: #4c0519; }
.field .field-error { display: none; }
.field.has-error .field-error { display: block; }

/* Mobile sticky CTA */
#mobileCta { transform: translateY(140%); transition: transform 0.5s var(--ease-out-expo); }
#mobileCta.is-visible { transform: none; }

/* --------------------------------------------------------------------------
   ROI calculator — selected business type
   -------------------------------------------------------------------------- */
.roi-type[aria-checked="true"] {
  border-color: #0F766E;
  background: #F0FDFA;
  color: #134E4A;
  box-shadow: 0 8px 20px -16px rgba(15, 118, 110, 0.9);
}
html.dark .roi-type[aria-checked="true"] {
  border-color: #2DD4BF;
  background: rgba(13, 148, 136, 0.14);
  color: #CCFBF1;
}
.roi-type[aria-checked="true"] .roi-type-icon {
  background: #CCFBF1;
  color: #0F766E;
}
html.dark .roi-type[aria-checked="true"] .roi-type-icon {
  background: rgba(45, 212, 191, 0.16);
  color: #5EEAD4;
}

.roi-tier[aria-checked="true"] {
  background: #FFFFFF;
  color: #134E4A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html.dark .roi-tier[aria-checked="true"] {
  background: #1E293B;
  color: #CCFBF1;
  box-shadow: none;
}
.tier-card[aria-pressed="true"] {
  border-color: #0F766E;
  box-shadow: 0 8px 20px -16px rgba(15, 118, 110, 0.9);
}
html.dark .tier-card[aria-pressed="true"] {
  border-color: #2DD4BF;
  background: rgba(13, 148, 136, 0.14);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out-expo);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; min-height: 0; }
.faq-chevron { transition: transform 0.35s var(--ease-out-expo); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-item.is-open {
  border-color: #99F6E4;
  box-shadow: 0 16px 40px -28px rgba(15, 118, 110, 0.7);
}
html.dark .faq-item.is-open { border-color: #0F766E; }

/* --------------------------------------------------------------------------
   CDMX coverage map
   -------------------------------------------------------------------------- */
.coverage-map {
  width: fit-content;
  max-width: 100%;
  background-color: #1E2639;
}
.coverage-map > img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 550px;
}

.zone-pin {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.zone-pin:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 3px;
  border-radius: 9999px;
}
.zone-pin .zone-pulse,
.zone-pin .zone-core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 9999px;
}
.zone-pin .zone-core {
  width: 0.95rem;
  height: 0.95rem;
  background: #fff;
  border: 3px solid #0F766E;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out-expo), background-color 0.2s ease, box-shadow 0.2s ease;
}
html.dark .zone-pin .zone-core {
  background: #020617;
  border-color: #2DD4BF;
}
.zone-pin:hover .zone-core,
.zone-pin:focus-visible .zone-core {
  transform: translate(-50%, -50%) scale(1.12);
}
.zone-pin[aria-pressed="true"] .zone-core {
  background: #0F766E;
  box-shadow: 0 0 0 7px rgba(13, 148, 136, 0.22);
}
html.dark .zone-pin[aria-pressed="true"] .zone-core {
  background: #2DD4BF;
  border-color: #2DD4BF;
  box-shadow: 0 0 0 7px rgba(45, 212, 191, 0.18);
}
.zone-pin[aria-pressed="true"] .zone-pulse {
  width: 0.95rem;
  height: 0.95rem;
  background: rgba(13, 148, 136, 0.45);
  animation: zonePulse 2.2s var(--ease-out-expo) infinite;
}
.zone-label {
  position: absolute;
  z-index: 3;
  white-space: nowrap;
  pointer-events: none;
  border-radius: 9999px;
  padding: 0.22rem 0.6rem;
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
html.dark .zone-label {
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.94);
}
.zone-pin[aria-pressed="true"] .zone-label { background: #0F766E; color: #fff; }
.zone-pin[data-label-pos="top"] .zone-label { bottom: calc(100% - 0.4rem); left: 50%; transform: translateX(-50%); }
.zone-pin[data-label-pos="bottom"] .zone-label { top: calc(100% - 0.4rem); left: 50%; transform: translateX(-50%); }
.zone-pin[data-label-pos="left"] .zone-label { right: calc(100% - 0.65rem); top: 50%; transform: translateY(-50%); }
.zone-pin[data-label-pos="right"] .zone-label { left: calc(100% - 0.65rem); top: 50%; transform: translateY(-50%); }

/* Satellite map: the photo already draws nodes and labels.
   Pins stay as hit targets; the tooltip appears on hover, focus, and selection. */
.coverage-map .zone-pin {
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
}
.coverage-map .zone-pin .zone-core {
  width: 1.35rem;
  height: 1.35rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html.dark .coverage-map .zone-pin .zone-core {
  background: transparent;
  border-color: transparent;
}
.coverage-map .zone-pin:hover .zone-core,
.coverage-map .zone-pin:focus-visible .zone-core,
.coverage-map .zone-pin[aria-pressed="true"] .zone-core {
  background: rgba(45, 212, 191, 0.28);
  border-color: #99F6E4;
  box-shadow: 0 0 0 7px rgba(45, 212, 191, 0.22);
}
html.dark .coverage-map .zone-pin[aria-pressed="true"] .zone-core {
  background: rgba(45, 212, 191, 0.34);
  border-color: #5EEAD4;
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.2);
}
.coverage-map .zone-pin .zone-label {
  top: auto;
  right: auto;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  background: #0F172A;
  color: #F8FAFC;
  transition: opacity 0.2s ease;
}
.coverage-map .zone-pin[data-label-pos="top"] .zone-label {
  bottom: auto;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
}
.coverage-map .zone-pin:hover .zone-label,
.coverage-map .zone-pin:focus-visible .zone-label {
  opacity: 1;
}
.coverage-map .zone-pin[aria-pressed="true"] .zone-label {
  background: #0F766E;
  color: #fff;
}
.zone-list-btn[aria-pressed="true"] {
  border-color: #0F766E;
  background: #F0FDFA;
}
html.dark .zone-list-btn[aria-pressed="true"] {
  border-color: #2DD4BF;
  background: rgba(13, 148, 136, 0.14);
}

@media (max-width: 639px) {
  .zone-label { display: none; }
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes adCycle {
  0%   { opacity: 0; transform: translateY(10px) scale(0.98); }
  4%   { opacity: 1; transform: none; }
  30%  { opacity: 1; transform: none; }
  34%  { opacity: 0; transform: translateY(-10px) scale(1.02); }
  100% { opacity: 0; }
}
@keyframes progress   { from { width: 0; } to { width: 100%; } }
@keyframes blink      { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes breathe    { 0%, 100% { opacity: 1; filter: brightness(1.1); } 50% { opacity: 0.65; filter: brightness(0.9); } }
@keyframes levelFill  { 0% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes orbPulse   { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 0.6; } }
@keyframes kioskFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floorPulse { 0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); } 50% { opacity: 0.55; transform: translateX(-50%) scaleX(0.88); } }
@keyframes panelIn    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes zonePulse  {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}
@keyframes marquee    { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 30s linear infinite; }

/* ==========================================================================
   Accessibility — respect reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ad-slide[style*="--i:0"] { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
