/* ChargeOS website: "Mono" brand. Shared by / and /install/. */
:root {
  --black: #000;
  --ink: #0e0e11;
  --ink-2: #16161b;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2);
  --white: #fff;
  --g1: #f0f0f0;
  --g2: #eaeaea;
  --g3: #dedede;
  --muted: #9a9aa3;
  --steel: #647b89;
  --steel-2: #476c84;
  --steel-hi: #8fb0c4;
  --err: #ff8a8a;
  --r: 4px;
  --gutter: 20px;
  --max: 1120px;
  --head: "Michroma", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--g2);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--white); margin: 0; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow {
  font: 400 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--steel); }
.lead { font-size: 17px; color: var(--g3); max-width: 34em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  -webkit-appearance: none; appearance: none; border: 1px solid var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r);
  font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--g3); border-color: var(--g3); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--white); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }
:focus-visible { outline: 2px solid var(--steel-hi); outline-offset: 3px; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  padding-top: env(safe-area-inset-top);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { height: 22px; width: auto; }
.top a.link {
  font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--g3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px;
}

/* Sections */
section { position: relative; padding: 88px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(24px, 6.4vw, 40px); margin: 18px 0 18px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  section { padding: 128px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* 1. Hero */
.hero { min-height: 100svh; padding: 0; border: 0; display: flex; align-items: flex-end; overflow: hidden; background: var(--black); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.08); animation: heroZoom 14s cubic-bezier(.2, .6, .2, 1) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.9) 62%, #000 100%);
}
.hero-copy { position: relative; padding-bottom: calc(40px + env(safe-area-inset-bottom)); padding-top: 120px; }
.hero h1 { font-size: clamp(30px, 8.6vw, 64px); margin: 18px 0 16px; }
.hero .lead { margin-bottom: 28px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 13px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }
.hero-meta b { color: var(--white); font-weight: 400; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--steel-hi); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(143,176,196,.6); }
@media (min-width: 900px) { .hero-copy { padding-bottom: 96px; } .hero .btn-row { max-width: 520px; } }

/* 2. Problem */
.problem-img { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.problem-img img { width: 100%; height: 100%; object-fit: cover; }
.pains { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pains li { background: var(--ink); padding: 18px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.pains .n { font: 400 13px/1.6 var(--mono); color: var(--steel-hi); }
.pains b { color: var(--white); font-weight: 600; display: block; }
.pains span { color: var(--muted); font-size: 15px; }
.quote-stat { margin-top: 22px; font-size: 15px; color: var(--muted); }
.quote-stat .mono { color: var(--white); font-size: 18px; }

/* reveal (the one quiet animation for most sections) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 3. Honest pins */
.honest { background: var(--ink); }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--black); }
.legend b { color: var(--white); font-weight: 600; display: block; font-size: 15px; }
.legend span { color: var(--muted); font-size: 14px; }
.pin { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.pin.unchecked { background: #8d86c9; }
.pin.working { background: #7ea6c2; }
.pin.busy { background: #d9a05b; }
.pin.down { background: #d4585c; }
.pin.own { background: #6cc49a; }
.card-demo { border: 1px solid var(--line-2); border-radius: 8px; background: var(--black); padding: 22px; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.card-demo .brand { font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-demo h3 { font-size: 17px; margin: 10px 0 6px; }
.card-demo .addr { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--g2); }
.rel { margin-top: 6px; }
.rel-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--white); margin-bottom: 8px; }
.rel-top .mono { color: var(--steel-hi); }
.bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--steel-hi); transition: width 1.6s cubic-bezier(.2, .7, .2, 1) .3s; }
.card-demo.in .bar i { width: 81.8%; }
.rule { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); display: flex; gap: 10px; }
.rule .mono { color: var(--white); white-space: nowrap; }

/* 4. Vehicles */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.vcard { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink); }
.vcard figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.vcard img { width: 100%; height: 100%; object-fit: cover; }
.vcard .t { padding: 14px 16px 18px; }
.vcard b { font: 400 14px/1.3 var(--head); color: var(--white); display: block; margin-bottom: 6px; }
.vcard span { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.stagger .vcard { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.stagger.in .vcard { opacity: 1; transform: none; }
.stagger.in .vcard:nth-child(2) { transition-delay: .08s; }
.stagger.in .vcard:nth-child(3) { transition-delay: .16s; }
.stagger.in .vcard:nth-child(4) { transition-delay: .24s; }
.stagger.in .vcard:nth-child(5) { transition-delay: .32s; }
@media (min-width: 900px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 40px 0 0; } }

/* 5. Hubs */
.hub { padding-top: 0; overflow: hidden; }
.hub-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hub-media img { width: 100%; height: 100%; object-fit: cover; }
.hub-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, #000 100%); }
.hub-tag { position: absolute; z-index: 1; left: var(--gutter); top: 20px; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.6); border: 1px solid var(--line-2); padding: 9px 11px; border-radius: var(--r); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hub-tag .live-dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,176,196,.55); } 70% { box-shadow: 0 0 0 9px rgba(143,176,196,0); } 100% { box-shadow: 0 0 0 0 rgba(143,176,196,0); } }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.specs div { background: var(--black); padding: 18px 12px; }
.specs .v { font: 400 26px/1 var(--mono); color: var(--white); }
.specs .v small { font-size: 14px; color: var(--muted); margin-left: 2px; }
.specs .k { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.hub-copy { margin-top: -40px; position: relative; }
@media (min-width: 900px) { .hub-media { aspect-ratio: 21 / 8; } .hub-copy { margin-top: -120px; max-width: 640px; } }

/* 6. Final CTA */
.final { text-align: left; padding-bottom: 64px; }
.final h2 { font-size: clamp(26px, 7.4vw, 52px); }
.final .btn-row { margin-top: 30px; max-width: 520px; }
.final .mark { width: 54px; height: 54px; margin-bottom: 26px; }
.final .mark path { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.8s ease .2s; }
.final.in .mark path { stroke-dashoffset: 0; }
footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; color: var(--g3); }
footer a:hover { color: var(--white); }
footer .wordmark { height: 18px; }
footer small { font: 400 12px/1.6 var(--mono); letter-spacing: .04em; }

/* Lead modal (bottom sheet on phones) */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal.show .modal-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto;
  background: var(--ink); border-top: 1px solid var(--line-2); border-radius: 14px 14px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.modal.show .sheet { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet h3 { font-size: 18px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.x { -webkit-appearance: none; appearance: none; background: transparent; border: 1px solid var(--line-2); color: var(--white); width: 36px; height: 36px; border-radius: var(--r); cursor: pointer; flex: none; font-size: 18px; line-height: 1; }
@media (min-width: 640px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; border: 1px solid var(--line-2); border-radius: 10px; transform: translate(-50%, -46%); opacity: 0; transition: transform .28s, opacity .28s; padding: 24px; }
  .modal.show .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .grab { display: none; }
}
.field { margin-bottom: 14px; }
.field label { display: block; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input[type=text], .field input[type=email], .field input[type=tel] {
  width: 100%; height: 50px; padding: 0 14px; font: 400 16px var(--body); color: var(--white);
  background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r); outline: none;
}
.field input:focus { border-color: var(--steel-hi); }
.phone { display: flex; }
.phone span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); font: 400 16px var(--mono); color: var(--muted); background: var(--ink-2); }
.phone input { border-radius: 0 var(--r) var(--r) 0 !important; font-family: var(--mono) !important; letter-spacing: .06em; }
.field.bad input { border-color: var(--err); }
.ferr { display: none; color: var(--err); font-size: 13px; margin-top: 6px; }
.field.bad .ferr { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--g3); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--white); }
.form-err { display: none; color: var(--err); font-size: 14px; margin-bottom: 12px; }
.form-err.on { display: block; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger .vcard { opacity: 1; transform: none; }
  .card-demo .bar i { width: 81.8%; }
  .final .mark path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
