:root {
  --black: #000;
  --ink: #111;
  --muted: #5e5e5e;
  --line: #e8e8e8;
  --soft: #f3f3f3;
  --bg: #fff;
  --band: #0d0f0e;           /* dark background behind the package cards */
  --card: #181b1a;
  --card-line: #2a2e2c;
  --volt: #8fd447;           /* EV green: used sparingly */
  --volt-ink: #3d6b12;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--black); color: #fff;
}
.brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; margin-left: -4px; }
.brand svg { color: var(--volt); }
.brand b { font-weight: inherit; }
.brand span { color: var(--volt); }
.top-nav { display: flex; gap: 18px; font-size: .9rem; }
.top-nav a { text-decoration: none; opacity: .85; }
.top-nav a:hover { opacity: 1; }
.top-nav { align-items: center; }
.top-nav a[hidden] { display: none; }
.top-nav .tab-pill { opacity: 1; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid #444; }
.top-nav .tab-pill:hover { border-color: var(--volt); }
@media (max-width: 480px) { .top-nav { gap: 12px; } .top-nav .hide-sm { display: none; } }

main { padding: 0 0 32px; }
.hero, .details, .how, .band-inner { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.hero { padding-top: 18px; padding-bottom: 18px; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero h1 { font-size: clamp(1.7rem, 6.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.lead { margin: 8px 0 0; color: #333; font-size: clamp(.92rem, 2.4vw, 1.1rem); line-height: 1.5; max-width: 38em; }

/* ---------- Dark package band with one thin green "racing stripe" ---------- */
.band { position: relative; background: var(--band); color: #fff; overflow: hidden; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: var(--volt); opacity: .9;
}
.band-inner { position: relative; padding-top: 18px; padding-bottom: 22px; }
.band-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #a3a3a3; margin-bottom: 14px; }

/* 2 columns on phones so all four fit near the first screen, 4 across on wider screens. */
.packages {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .packages { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.pkg {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 14px 14px; text-align: left; font: inherit; color: #fff;
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.pkg:hover, .pkg:focus-visible { border-color: #fff; outline: none; }
.pkg:active { transform: scale(.98); }
.pkg-hours { font-weight: 600; font-size: .95rem; color: #d4d4d4; }
.pkg-hours small { font-weight: 400; color: #8a8a8a; }
.pkg-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.pkg-km { font-size: .82rem; color: #9a9a9a; }
.pkg-cta {
  margin-top: 12px; align-self: stretch; text-align: center;
  padding: 9px; border-radius: 8px; background: #fff; color: var(--black); font-weight: 700; font-size: .9rem;
}
.badge {
  position: absolute; top: 12px; right: 10px;
  background: var(--volt); color: #03210f; font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
}

/* "Zip EV" badge on each package card. Slightly darker than the card, with a thin edge so it shows. */
.zip-badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 12px;
  background: #000; border: 1px solid var(--card-line);
  font-size: .72rem; font-weight: 700; line-height: 1.3; color: #fff;
}
.zip-badge .ev { color: var(--volt); margin-left: .25em; }

.extra { margin: 16px 0 0; font-size: .88rem; line-height: 1.5; color: #bdbdbd; }
.extra strong { color: #fff; }
.see-details {
  display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: #fff;
  text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 4px;
}
html { scroll-behavior: smooth; }

/* ---------- Package details ---------- */
.details { margin-top: 40px; }
.details h2, .how h2 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; }
.detail-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .detail-list { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.detail {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border-radius: var(--radius); background: var(--soft);
}
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.detail-hours { font-size: .85rem; font-weight: 600; color: var(--muted); }
.detail-price { font-weight: 800; }
.detail-price small { font-weight: 700; font-size: .72rem; color: var(--volt-ink); margin-left: 4px; }
.detail h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.detail p { margin: 0; line-height: 1.5; color: #333; }
.detail p.detail-km { font-size: .85rem; color: var(--muted); }
.btn-line {
  align-self: flex-start; margin-top: 8px; font: inherit; font-weight: 600; font-size: .9rem;
  padding: 9px 16px; border-radius: 8px; border: 1.5px solid var(--black); background: transparent; color: var(--black); cursor: pointer;
}
.btn-line:hover { background: var(--black); color: #fff; }

.included { margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.included h3 { font-size: 1rem; }
.included ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.included li { position: relative; padding-left: 22px; line-height: 1.45; }
.included li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 2px; background: var(--volt);
}

.how { margin-top: 40px; }
.how ol { padding-left: 1.2em; line-height: 1.55; }
.how li { margin: 8px 0; }
.fine { color: var(--muted); font-size: .85rem; }
.notice { padding: 12px; background: var(--card); border-radius: var(--radius); }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 32px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

/* ---------- Booking sheet ---------- */
dialog {
  border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 100dvh;
  border-radius: 18px; background: #fff; color: var(--ink);
}
dialog::backdrop { background: rgb(0 0 0 / .6); }
@media (max-width: 600px) {
  dialog { margin: auto 0 0; max-width: none; border-radius: 18px 18px 0 0; max-height: 94dvh; }
}
dialog form, .done { display: flex; flex-direction: column; max-height: inherit; }
dialog form[hidden], .done[hidden] { display: none; }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 1.15rem; }
.close { font-size: 1.6rem; line-height: 1; background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--muted); }
.sheet-body { overflow-y: auto; padding: 4px 16px 12px; -webkit-overflow-scrolling: touch; }
.sheet-foot {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.total { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.total strong { font-size: 1.2rem; color: var(--ink); }

fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
fieldset.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset.row2 legend { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 8px; }
label.inline select { width: auto; }

input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
textarea { resize: vertical; margin-top: 2px; }
.hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.hint a { color: var(--volt-ink); }

.loc-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: .85rem; padding: 7px 12px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--soft); color: var(--ink);
}
.chip:hover { border-color: var(--black); }
.map { height: 240px; margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

.payments { display: grid; gap: 8px; }
.pay {
  flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: .95rem;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
.pay input { width: auto; margin: 0; accent-color: var(--black); }
.pay:has(input:checked) { border-color: var(--black); background: var(--soft); }
.pay.off { opacity: .55; cursor: not-allowed; }
.pay small { color: var(--muted); }

.error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #8a1c1c; font-size: .9rem; }

.btn {
  font: inherit; font-weight: 700; padding: 12px 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--black); color: #fff; min-width: 150px;
}
.btn:disabled { opacity: .6; cursor: wait; }

.done { align-items: center; text-align: center; padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); gap: 12px; }
.done h2 { font-size: 1.2rem; max-width: 22em; }
.done p { color: var(--muted); margin: 0; }
.tick {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--volt); color: #062b17; font-size: 1.8rem; font-weight: 800;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Register your EV page ---------- */
.reg .hero { max-width: 640px; }
.reg-form-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.reg-form fieldset:first-child { margin-top: 0; }
.reg-form legend small { font-weight: 400; color: var(--muted); }
.reg-form .row3 { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; margin-top: 10px; }
.reg-submit { width: 100%; margin-top: 20px; padding: 14px; }
.reg-done { padding: 32px 0; }
.reg-done .btn { text-decoration: none; }
