/* ChargePros site styles. White background, blue/cyan/black accents, mobile-first. */
:root {
  --white: #FFFFFF;
  --blue: #1E5FBF;
  --blue-dark: #164A96;
  --cyan: #4FC3F7;
  --cyan-text: #026AA7; /* cyan-family text color: 5:1+ contrast on white and light-blue backgrounds */
  --ink: #1A1A1A;
  --gray: #555555;
  --row: #F5F5F5;
  --hl: #E3F2FD;
  --rule: #D6E3F5;
  --radius: 10px;
  --max: 1160px;
  --shadow: 0 6px 24px rgba(16, 52, 110, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--blue); }
h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--gray); max-width: 760px; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 0.6rem; }
.muted { color: var(--gray); }
.small { font-size: 0.86rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
section.tint { background: #F7FAFE; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { section { padding: 80px 0; } .wrap { padding: 0 28px; } }

/* ---------------- Header: nav left, logo top right ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(140%) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.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; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); padding: 8px 16px 16px; }
.main-nav.open { display: block; }
.main-nav a { display: block; padding: 11px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid #EEF3FA; }
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav .btn { margin-top: 12px; border-bottom: none; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Montserrat", "Inter", Arial, sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--blue); font-weight: 800; }
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex !important; position: static; padding: 0; border: 0; box-shadow: none; align-items: center; gap: 2px; background: transparent; }
  .main-nav a { border: 0; padding: 8px 11px; font-size: 0.93rem; border-radius: 6px; white-space: nowrap; }
  .main-nav a:hover { background: var(--hl); text-decoration: none; }
  .main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
  .main-nav .btn { margin: 0 0 0 10px; padding: 9px 16px; }
}

/* ---------------- Buttons ---------------- */
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 1rem; line-height: 1.2; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--hl); color: var(--blue-dark); border-color: var(--cyan); }
.btn.light { background: #fff; color: var(--blue); border-color: #fff; }
.btn.light:hover { background: var(--hl); color: var(--blue-dark); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn.ghost-light:hover { background: rgba(255,255,255,0.12); border-color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: #0B2A57; padding: 64px 0 72px; }
.hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,36,82,0.94) 0%, rgba(20,70,150,0.82) 48%, rgba(30,95,191,0.35) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: #DCEBFF; }
.hero .kicker { color: var(--cyan); }
.page-hero { background: linear-gradient(180deg, var(--hl) 0%, #fff 100%); border-bottom: 1px solid var(--rule); padding: 56px 0 44px; }
.page-hero h1 { color: var(--ink); }
@media (min-width: 900px) { .hero { padding: 110px 0 120px; } .page-hero { padding: 80px 0 56px; } }

/* ---------------- Grids & cards ---------------- */
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; } /* let wide children (tables) scroll inside their wrapper instead of widening the page */
@media (min-width: 640px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.accent { border-top: 4px solid var(--blue); }
.card.accent-cyan { border-top: 4px solid var(--cyan); }
.card h3 { margin-top: 0; }
.icon { width: 46px; height: 46px; border-radius: 10px; background: var(--hl); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.trust { background: #fff; border-bottom: 1px solid var(--rule); padding: 28px 0; }
.trust .grid { gap: 14px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon { margin: 0; flex: none; }
.trust-item strong { display: block; font-size: 1.02rem; }
.trust-item span { color: var(--gray); font-size: 0.86rem; }

.split .card { display: flex; flex-direction: column; }
.split .card .btn { margin-top: auto; align-self: flex-start; }
.split .card p { flex: 1 0 auto; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px 20px 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps li h3 { margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--gray); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.timeline { counter-reset: step; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin: 6px 0 4px; }
.timeline p { margin: 0; color: var(--gray); }

/* Lists */
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; }

/* Callouts & tables */
.callout { background: var(--hl); border: 1px solid var(--blue); border-left: 5px solid var(--blue); border-radius: 8px; padding: 18px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--blue); }
.note { font-size: 0.86rem; color: var(--gray); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--blue); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.97rem; }
table.data th { background: var(--blue); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--rule); }
table.data tbody tr:nth-child(even) td { background: var(--row); }
table.data .num { text-align: right; white-space: nowrap; }
.tag { display: inline-block; background: var(--cyan); color: var(--ink); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
tr.featured td { background: var(--hl) !important; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCEBFF; max-width: 640px; margin: 0 auto 1.2em; }

/* Stats */
.stat { text-align: left; }
.stat .v { font-family: "Montserrat", "Inter", Arial, sans-serif; font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat .l { color: var(--gray); font-size: 0.95rem; }

/* Chart */
.chart { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.chart svg { width: 100%; height: auto; display: block; }

/* FAQ */
.faq details { border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--blue); }
.faq .ans { padding: 0 20px 18px; color: var(--gray); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 34px; } }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--gray); font-size: 0.85rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #7A92B5; border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(79,195,247,0.35); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: none; color: #B42318; font-size: 0.85rem; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .err { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } }
.choice-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; border: 2px solid #7A92B5; border-radius: 10px; padding: 18px; cursor: pointer; font-weight: 700; height: 100%; margin: 0; }
.choice label span { display: block; font-weight: 400; color: var(--gray); font-size: 0.9rem; margin-top: 4px; }
.choice input:checked + label { border-color: var(--blue); background: var(--hl); }
.choice input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }

.progress { margin-bottom: 26px; }
.progress .meta { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 700; color: var(--gray); margin-bottom: 8px; }
.progress .track { height: 10px; background: #E6ECF4; border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; width: 20%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.step { display: none; }
.step.active { display: block; }
.step h2 { font-size: 1.5rem; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.review { background: var(--row); border-radius: 8px; padding: 16px 18px; }
.review dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 14px; margin: 0; }
.review dt { color: var(--gray); font-size: 0.9rem; }
.review dd { margin: 0; font-weight: 600; word-break: break-word; }
.form-msg { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-msg.show { display: block; }
.form-msg.error { background: #FEF3F2; color: #B42318; border: 1px solid #FDA29B; }
.form-msg.ok { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal .updated { color: var(--gray); font-size: 0.92rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0B2A57; color: #C9D8EE; padding: 48px 0 28px; font-size: 0.93rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .top { display: grid; gap: 26px; }
@media (min-width: 800px) { .site-footer .top { grid-template-columns: 1.3fr 2fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--cyan); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.site-footer .legalnote { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; color: #9FB4D3; }

@media print {
  @page { size: letter; margin: 0.75in; }
  .site-header, .nav-toggle, .cta-band, .btn-row, .site-footer .links { display: none !important; }
  body { font-size: 11pt; }
  section { padding: 16px 0; }
  .hero { background: #fff; color: var(--ink); padding: 0; }
  .hero::after, .hero .art { display: none; }
  .hero h1, .hero .lead { color: var(--ink); }
  .site-footer { background: #fff; color: var(--gray); padding: 12px 0 0; border-top: 1px solid var(--blue); }
  .site-footer a, .site-footer .brand { color: var(--ink); }
}
