/* Driver app. Built on vb.css (the website's tokens). One column; the dark stage carries the live numbers
   and the charger, hairline rows carry everything else. */
body{padding-bottom:env(safe-area-inset-bottom,0px)}
main{display:block;padding-bottom:48px;outline:none}

/* connection state in the header */
.conn{display:inline-flex;align-items:center;gap:9px;font-size:.8125rem;color:var(--ink-2);white-space:nowrap;min-height:44px}
.conn i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.conn.live i{animation:breathe 2.6s ease-in-out infinite}
.conn.wait i{background:var(--soon);box-shadow:0 0 0 4px var(--soon-soft)}
.conn.off i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ink-3)}
@keyframes breathe{0%,100%{box-shadow:0 0 0 3px rgba(122,201,67,.30)}50%{box-shadow:0 0 0 7px rgba(122,201,67,0)}}
.back{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:0;min-height:44px;font-size:.9375rem;font-weight:500;color:var(--ink);text-decoration:none}
.back svg{width:18px;height:18px;transition:transform .2s ease}
.back:hover svg{transform:translateX(-3px)}

/* ---------- the stage (dark product panel, as on the website) ---------- */
.stage{position:relative;isolation:isolate;margin-top:18px;background:var(--stage);color:var(--on-stage);border-radius:var(--radius);overflow:hidden;padding:26px 22px 22px}
.stage::before{content:"";position:absolute;z-index:-1;right:-22%;top:-18%;width:84%;height:118%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(122,201,67,.22),rgba(122,201,67,.06) 55%,transparent 75%)}
.stage .label{color:var(--on-stage-2);display:flex;align-items:center;gap:10px}
.stage-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.stage-visual{width:clamp(78px,24vw,124px);margin:-6px -4px -24px 0;align-self:end;pointer-events:none}
.stage-visual img{width:100%;filter:drop-shadow(0 26px 34px rgba(0,0,0,.55))}
.big{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-top:16px;font-variant-numeric:tabular-nums}
.big b{font-weight:200;font-size:clamp(4.4rem,23vw,6.6rem);letter-spacing:-.055em;line-height:.86}
.big span{font-size:1.25rem;font-weight:300;letter-spacing:-.01em}
.big.word b{font-size:clamp(2.6rem,12vw,3.6rem);letter-spacing:-.04em;line-height:1}
.stage .sub{margin-top:12px;color:var(--on-stage-2);font-size:.9375rem;line-height:1.5}
.next{position:relative;margin-top:24px;padding-top:20px;border-top:1px solid var(--stage-line);display:grid;gap:16px}
.next p{color:var(--on-stage-2);font-size:.9375rem;line-height:1.5}
.next p b{color:var(--on-stage);font-weight:500}
.next .ctas{gap:10px;flex-wrap:nowrap}
.next .ctas .btn{flex:1 1 0;min-width:0;padding:0 14px}
.stage-link{color:var(--on-stage);border-bottom-color:var(--stage-line)}
.stage-link:hover{border-bottom-color:var(--on-stage)}
.after-rows{margin-top:18px}

/* notices */
.note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:baseline;margin-top:22px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.note .dot{transform:translateY(-2px)}
.note p{color:var(--ink-2);font-size:.9375rem}
.note p b{color:var(--ink);font-weight:500}
.note .ctas{grid-column:2;margin-top:8px}
.note.alert .dot{animation:breathe 2.6s ease-in-out infinite}

/* ---------- list ---------- */
.list-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:36px 0 16px}
.filter-msg{font-size:.875rem;color:var(--ink-2);margin:-4px 0 14px}
.sites{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.site > a{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:4px 14px;padding:20px 0 18px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;transition:background-color .2s ease}
.site > a:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.site h3{font-size:1.25rem;font-weight:400;letter-spacing:-.015em;line-height:1.25;min-width:0}
.site .where{grid-column:1;color:var(--ink-2);font-size:.9375rem;line-height:1.45}
.site .where .km{color:var(--ink)}
.site .state{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;gap:10px;font-size:.9375rem;white-space:nowrap;justify-self:end}
.site .state.soon{color:var(--ink-2)}
.chev{grid-column:3;grid-row:1 / span 2;width:9px;height:9px;border-right:1.5px solid var(--ink-3);border-top:1.5px solid var(--ink-3);transform:rotate(45deg);justify-self:end}
.site .bell{display:inline-flex;color:var(--ink)}
.site .bell svg{width:16px;height:16px}
.strip{grid-column:1 / 3;display:flex;gap:4px;margin-top:10px;max-width:100%}
.strip i{flex:1 1 0;max-width:72px;height:6px;border-radius:3px;background:var(--line)}
.strip i.free{background:var(--accent)}
.strip i.busy{background:var(--ink)}
.strip i.off{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.strip i.soon{background:repeating-linear-gradient(90deg,var(--soon) 0 5px,transparent 5px 9px);opacity:.75}
.site.flash > a{animation:flash 2.4s ease}
@keyframes flash{0%,40%{background:var(--accent-soft)}100%{background:transparent}}
.empty{padding:28px 0;border-bottom:1px solid var(--line);display:grid;gap:8px}
.empty p{color:var(--ink-2)}
.empty b{color:var(--ink);font-weight:500}
.key{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px;font-size:.8125rem;color:var(--ink-2)}
.key span{display:inline-flex;align-items:center;gap:9px}
.key i{width:16px;height:6px;border-radius:3px;display:inline-block}
.key i.free{background:var(--accent)}
.key i.busy{background:var(--ink)}
.key i.off{box-shadow:inset 0 0 0 1px var(--line-2)}
.key i.soon{background:repeating-linear-gradient(90deg,var(--soon) 0 5px,transparent 5px 9px);opacity:.75}

/* ---------- sections ---------- */
.section{margin-top:52px}
.section > .label{display:block;margin-bottom:12px}
.section h2{font-size:clamp(1.75rem,7vw,2.25rem);letter-spacing:-.028em;line-height:1.08;margin-bottom:22px}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px;counter-reset:s}
.steps li{counter-increment:s;display:grid;gap:8px;align-content:start;padding-top:18px;border-top:1px solid var(--line-2);min-width:0}
.steps li::before{content:counter(s,decimal-leading-zero);font-family:var(--mono);font-size:.75rem;color:var(--ink-3);letter-spacing:.04em}
.steps h3{font-size:1.0625rem;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.steps p{color:var(--ink-2);font-size:.9375rem;line-height:1.5}

/* ---------- site detail ---------- */
.d-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}
.d-head{display:grid;gap:12px;margin-top:10px}
.d-head h1{font-size:clamp(2.35rem,10vw,3.4rem);letter-spacing:-.035em}
.d-head h1:focus{outline:none}
.d-state{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:var(--ink-2);font-size:.9375rem}
.d-state .now{color:var(--ink)}
.d-stage{padding:22px 22px 6px}
.d-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.d-visual{width:clamp(72px,21vw,112px);align-self:start;margin:4px -6px 0 0;pointer-events:none}
.d-visual img{width:100%;filter:drop-shadow(0 26px 34px rgba(0,0,0,.55))}
.bays{display:grid;min-width:0}
.bay{display:grid;gap:3px;padding:16px 0 18px;border-top:1px solid var(--stage-line);min-width:0}
.bay:first-child{border-top:0;padding-top:4px}
.bay .k{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;color:var(--on-stage-2);font-weight:500}
.bay .k span:last-child{letter-spacing:.08em}
.bay .st{display:flex;align-items:center;gap:12px;font-size:1.75rem;font-weight:300;letter-spacing:-.025em;line-height:1.2;margin-top:6px}
.bay .st .dot{transform:translateY(1px)}
.bay .t{color:var(--on-stage-2);font-size:.875rem;font-variant-numeric:tabular-nums}
.bay.free .st{color:var(--on-stage)}
.bay.changed .st,.bay.changed .t{animation:bayin .7s cubic-bezier(.2,.8,.2,1)}
.bay.changed.free .st .dot{animation:breathe 2.6s ease-in-out 2}
@keyframes bayin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.bay.off .st,.bay.soon .st{color:var(--on-stage-2)}
.stage .dot.busy{background:var(--on-stage);box-shadow:0 0 0 4px rgba(243,244,242,.12)}
.stage .dot.off{box-shadow:inset 0 0 0 1.5px var(--on-stage-2)}
.src{display:flex;align-items:center;gap:8px;margin:0 -22px;padding:14px 22px 16px;border-top:1px solid var(--stage-line);font-size:.8125rem;color:var(--on-stage-2)}
.d-actions{margin-top:20px;display:grid;gap:12px}
.d-actions .ctas{gap:10px}
.d-actions .btn{flex:1 1 auto}
.watching{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:.9375rem;color:var(--ink-2)}
.watching b{color:var(--ink);font-weight:500}
.cost{display:grid;gap:4px}
.cost small{color:var(--ink-3);font-size:.8125rem}
.help-pick{display:grid;gap:14px}
.help-pick p{color:var(--ink-2);font-size:.9375rem}
.help-links{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:6px}

/* ---------- footer ---------- */
.foot{margin-top:56px;padding-top:26px;border-top:1px solid var(--line);display:grid;gap:14px;color:var(--ink-2);font-size:.875rem}
.foot nav{display:flex;flex-wrap:wrap;gap:10px 22px}
.foot a{color:var(--ink-2);text-decoration:none}
.foot a:hover{color:var(--ink)}
.foot .brandline{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink-3);font-size:.8125rem}
.foot .brandline img{height:15px;width:auto}

/* ---------- sheet (install and alert help) ---------- */
.scrim{position:fixed;inset:0;z-index:50;background:rgba(10,12,14,.48);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s ease}
.sheet{width:100%;max-width:var(--col);background:var(--bg);color:var(--ink);border-radius:24px 24px 0 0;padding:26px max(var(--gutter),env(safe-area-inset-left,0px)) calc(26px + env(safe-area-inset-bottom,0px));display:grid;gap:16px;animation:rise .28s cubic-bezier(.2,.8,.2,1)}
.sheet h2{font-size:1.75rem;letter-spacing:-.028em}
.sheet p{color:var(--ink-2)}
.sheet ol{margin:0;padding:0;list-style:none;display:grid;border-top:1px solid var(--line)}
.sheet li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--line);align-items:baseline}
.sheet li span{font-family:var(--mono);font-size:.75rem;color:var(--ink-3)}
.sheet .ios-share{display:inline-block;width:15px;height:15px;vertical-align:-2px}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes rise{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}

.loading{padding:56px 0;color:var(--ink-2)}
.skel{margin-top:18px;height:248px;border-radius:var(--radius);background:var(--stage);opacity:.9}

@media (min-width:700px){
  .stage{padding:34px 34px 30px}
  .d-stage{padding:28px 34px 6px}
  .src{margin:0 -34px;padding:14px 34px 16px}
  .steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .scrim{align-items:center}
  .sheet{border-radius:24px;max-width:520px;padding:30px}
}
@media (max-width:359px){
  .stage-visual{display:none}
}

/* ---------- list | map ---------- */
.views{display:flex;gap:22px}
.views button{border:0;background:none;padding:6px 0 5px;min-height:38px;font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);
  border-bottom:1.5px solid transparent;cursor:pointer;transition:color .2s ease,border-color .2s ease}
.views button:hover{color:var(--ink)}
.views button[aria-pressed="true"]{color:var(--ink);border-bottom-color:var(--ink)}

/* ---------- the live map ---------- */
.map-box{position:relative;isolation:isolate;z-index:0;height:var(--map-h,max(380px,calc(100svh - 150px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))));max-height:680px;
  border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-2)}
.map-slot,.map{position:absolute;inset:0}
.map-box .leaflet-container{font:inherit;background:var(--bg-2);color:var(--ink);outline:none}
/* a quiet, grey street map, so the coloured pins carry the live status */
.map-box .leaflet-tile-pane{filter:grayscale(1) contrast(.92) brightness(1.04)}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .map-box .leaflet-tile-pane{filter:grayscale(1) invert(1) contrast(.82) brightness(.92)} }
:root[data-theme="dark"] .map-box .leaflet-tile-pane{filter:grayscale(1) invert(1) contrast(.82) brightness(.92)}
.map-box .leaflet-top.leaflet-right .leaflet-control{margin:12px 12px 0 0}
.map-box .leaflet-bar{border:0;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(10,12,14,.16)}
.map-box .leaflet-bar a{width:40px;height:40px;line-height:40px;background:var(--bg);color:var(--ink);border-bottom:1px solid var(--line);font:300 1.375rem/40px var(--sans)}
.map-box .leaflet-bar a:last-child{border-bottom:0}
.map-box .leaflet-bar a:hover,.map-box .leaflet-bar a:focus{background:var(--bg-2);color:var(--ink)}
.map-box .leaflet-bar a.leaflet-disabled{background:var(--bg);color:var(--ink-3)}
.map-box .map-locate{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:14px;background:var(--bg);color:var(--ink);
  box-shadow:0 6px 18px rgba(10,12,14,.16);cursor:pointer}
.map-box .map-locate:hover{background:var(--bg-2)}
.map-box .map-locate svg{width:20px;height:20px}
.map-box .leaflet-top.leaflet-left .leaflet-control-attribution{margin:0;border-radius:0 0 12px 0;padding:3px 9px;font-size:.6875rem;line-height:1.5;
  background:color-mix(in srgb,var(--bg) 84%,transparent);color:var(--ink-3)}
.map-box .leaflet-control-attribution a{color:var(--ink-2);text-decoration:none}
.map-box .leaflet-control-attribution a:hover{text-decoration:underline}
/* status pins: green with free bays, ink when full, amber when opening soon, outlined when offline */
.pin-wrap{width:0!important;height:0!important;background:none;border:0}
.pin{position:absolute;left:0;bottom:9px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;
  background:var(--accent);color:#15181B;font-size:.8125rem;font-weight:600;letter-spacing:-.005em;line-height:1;white-space:nowrap;cursor:pointer;
  box-shadow:0 0 0 2px var(--bg),0 8px 18px rgba(10,12,14,.26);transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s ease}
.pin::after{content:"";position:absolute;left:50%;bottom:-4px;width:10px;height:10px;margin-left:-5px;background:inherit;transform:rotate(45deg);border-radius:0 0 2px 0;z-index:-1}
.pin b{font-weight:600}
.pin svg{width:13px;height:13px}
.pin.busy{background:var(--ink);color:var(--bg)}
.pin.soon{background:var(--soon);color:#15181B}
.pin.off{background:var(--bg);color:var(--ink-2);box-shadow:inset 0 0 0 1.5px var(--line-2),0 0 0 2px var(--bg),0 8px 18px rgba(10,12,14,.18)}
.pin.sel{transform:translateX(-50%) scale(1.14);box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink),0 10px 24px rgba(10,12,14,.32)}
.pin.pop{animation:pinpop .65s cubic-bezier(.2,.8,.2,1)}
@keyframes pinpop{0%{transform:translateX(-50%) scale(.6)}60%{transform:translateX(-50%) scale(1.24)}100%{transform:translateX(-50%) scale(1)}}
.leaflet-marker-icon:focus{outline:none}
.leaflet-marker-icon:focus-visible .pin{outline:2px solid var(--focus);outline-offset:3px}
.me-wrap{background:none;border:0}
.me{display:block;width:20px;height:20px;border-radius:50%;background:var(--focus);box-shadow:0 0 0 3px var(--bg),0 0 0 10px color-mix(in srgb,var(--focus) 20%,transparent)}
/* the site card over the bottom of the map */
.map-card{position:absolute;left:12px;right:12px;bottom:12px;z-index:1100;display:grid;gap:6px;padding:14px 16px 16px;border-radius:18px;background:var(--bg);color:var(--ink);
  box-shadow:0 14px 34px rgba(10,12,14,.22)}
.map-card .mc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.map-card h3{font-size:1.125rem;font-weight:400;letter-spacing:-.015em;line-height:1.25;min-width:0}
.map-card .state{display:flex;align-items:center;gap:9px;padding-top:3px;font-size:.875rem;white-space:nowrap}
.map-card .state.soon{color:var(--ink-2)}
.map-card .where{color:var(--ink-2);font-size:.875rem}
.map-card .strip{grid-column:auto;margin-top:4px}
.map-card .ctas{margin-top:8px;gap:8px;flex-wrap:nowrap}
.map-card .ctas .btn{flex:1 1 0;min-width:0;padding:0 12px}
.map-hint{color:var(--ink-2);font-size:.9375rem;line-height:1.45}
.map-hint b{color:var(--ink);font-weight:500}
.map-note{position:absolute;left:50%;top:44px;transform:translateX(-50%);z-index:1050;width:max-content;max-width:calc(100% - 120px);padding:6px 12px;border-radius:999px;
  background:var(--bg);color:var(--ink-2);font-size:.75rem;line-height:1.4;text-align:center;box-shadow:0 4px 14px rgba(10,12,14,.14)}
.map-fail{position:absolute;inset:0 0 120px;z-index:1040;display:none;align-items:center;justify-content:center;padding:24px;text-align:center;color:var(--ink-2)}
.map-box.no-map .map-fail{display:flex}

/* ---------- directions: which maps app ---------- */
.nav-list{display:grid;border-top:1px solid var(--line)}
.nav-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:1.0625rem}
.nav-opt .go{width:9px;height:9px;margin-right:4px;border-right:1.5px solid var(--ink-3);border-top:1.5px solid var(--ink-3);transform:rotate(45deg);transition:border-color .2s ease}
.nav-opt:hover .go{border-color:var(--ink)}
.remember{display:flex;align-items:center;gap:10px;font-size:.9375rem;color:var(--ink-2);cursor:pointer}
.remember input{width:20px;height:20px;margin:0;accent-color:var(--ink)}
.nav-pref{font-size:.875rem;color:var(--ink-2)}
.link-btn{border:0;background:none;padding:0;color:var(--ink);font-weight:500;font-size:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;cursor:pointer}
@media (min-width:700px){ .map-box{max-height:620px} }
